Executing an install from another computer? reddit / BSD ---------------------------------------------------------------------- grewil · 2019-04-06 14:28 Hi! I own an old headless machine called Bubba 2 ([best link I could find](https://www.linux.com/news/bubba-two-little-server-could)). It currently has Debian 8 installed, but it's out of date, so I was thinking it could be possible to install a *BSD instead. The machine runs a 32 bit PowerPC CPU. However, a regular install by booting the machine with an installation media seems hard, as it is headless with no graphics card, so I wouldn't see what was happening. It doesn't have a serial port neither. I am wondering if it could be doable to connect its harddrive to another computer, install *BSD onto said harddrive, and then reconnect it to the Bubba 2 and boot. This seems like a non-typical way of installing *BSD, so I thought I'd throw out the question here and see if someone has some input. Thanks! EDIT: Lots of thanks to all of you who have given me advice and pointers! I really appreciate it! ---------------------------------------------------------------------- grewil · 2019-04-06 14:33 (in a lazy-utopian universe, there would exist a downloadable harddrive image file I could just dd onto the harddrive with partitions, OS and all) ---------------------------------------------------------------------- CSI_Tech_Dept · 2019-04-06 15:35 I'm mostly familiar with FreeBSD, so my response is based on it. I never did it myself, but theoretically when you have another FreeBSD, attach the hard drive, partition it, format it, mount it, build the world and kernel for the PowerPC architecture and then do "make installworld/installkernel" with DESTDIR argument, to install it into that hard drive. It looks like you could mostly follow https://wiki.freebsd.org/FreeBSD/arm/crossbuild except you should use TARGET_ARCH After that you will need to install boot loader, so your machine can actually boot. ---------------------------------------------------------------------- FUZxxl · 2019-04-06 15:36 At least for FreeBSD I can't say if it would work. This is mainly because I have no idea how this machine actually boots and what hardware it contains. ---------------------------------------------------------------------- grewil · 2019-04-06 16:00 Thanks! I'll read through that instruction and see what I can make of it. Installing a boot loader will be an interesting task in itself. ---------------------------------------------------------------------- grewil · 2019-04-06 16:09 It seems I don't have dmidecode nor lshw installed (and the Debian PowerPC repos have been taken down), so all I can think of is: ``` $ sudo lscpu Architecture: ppc CPU op-mode(s): 32-bit Byte Order: Big Endian CPU(s): 1 On-line CPU(s) list: 0 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 1 Model: MPC8313ERDB BogoMIPS: 66.66 L1d cache: 16K L1i cache: 16K $ sudo lspci -v 00:00.0 Power PC: Freescale Semiconductor Inc Device 00b0 (rev 10) Flags: bus master, 66MHz, fast devsel, latency 128 Memory at (64-bit, prefetchable) Memory at (64-bit, non-prefetchable) Capabilities: [48] CompactPCI hot-swap Capabilities: [80] Power Management version 3 00:10.0 Mass storage controller: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02) Subsystem: Silicon Image, Inc. SiI 3114 SATALink Controller Flags: bus master, 66MHz, medium devsel, latency 128, IRQ 20 I/O ports at 1000 [size=8] I/O ports at 1008 [size=4] I/O ports at 1010 [size=8] I/O ports at 1018 [size=4] I/O ports at 1020 [size=16] Memory at 90000000 (32-bit, non-prefetchable) [size=1K] [virtual] Expansion ROM at 80000000 [disabled] [size=512K] Capabilities: [60] Power Management version 2 Kernel driver in use: sata_sil ``` ---------------------------------------------------------------------- FUZxxl · 2019-04-06 16:10 Please put four blanks in front of every line of code; triple back ticks do not work on reddit. Alternatively, upload the text to a paste service and link to it. ---------------------------------------------------------------------- FUZxxl · 2019-04-06 16:15 Now I also need to know how this machine boots. Can you show me the partition table of its hard disk and the content of the `/boot` directory? ---------------------------------------------------------------------- CSI_Tech_Dept · 2019-04-06 17:01 You probably would have to use this command to partition: https://www. freebsd.org/cgi/man.cgi?query=gpart&apropos=0&sektion=8&manpath=FreeBS D+12.0-RELEASE+and+Ports&arch=default&format=html You probably should use APM or BSD for partition scheme). The bootcode installs the boot loader, after cross compiling and installing I think it should be in boot directory. ---------------------------------------------------------------------- grewil · 2019-04-06 18:21 Thanks! ---------------------------------------------------------------------- grewil · 2019-04-06 18:22 Sorry, I didn't know that, will do that next time! ---------------------------------------------------------------------- FUZxxl · 2019-04-06 18:24 OPs computer is not a PowerPC Mac and thus likely doesn't boot the same way a PowerPC Mac does. I originally wanted to recommend the same, but refrained from doing so when I found out what machine he uses. ---------------------------------------------------------------------- grewil · 2019-04-06 18:24 Thank you! I think the following should do: [https://paste.debian.net/1076445/](https://paste.debian.net/1076445/) ---------------------------------------------------------------------- FUZxxl · 2019-04-06 18:25 Please don't blindly follow this advice; your computer likely won't boot the same way a PowerPC Mac boots, so these instructions might not be applicable. ---------------------------------------------------------------------- Kernigh · 2019-04-06 18:27 BSD might not run on a Bubba 2. It might not have a working kernel or bootloader. NetBSD has [10 different PowerPC ports](https://www.netbsd.org/ports/#ports-by-cpu). I glanced at all 10 (amigappc, bebox, evbppc, ibmnws, macppc, mvmeppc, ofppc, prep, rs6000, sandpoint) and didn't see Bubba 2 in their supported systems. The different 32-bit PowerPC systems need different bootloaders and device drivers. (Almost all 32-bit Intel systems look like an IBM PC, so NetBSD has just 1 port (i386), with a bootloader for an IBM- compatible BIOS.) [FreeBSD/powerpc](https://www.freebsd.org/platforms/ppc.html) runs on a New World Macintosh or a 64-bit machine. FreeBSD/powerpcspe runs on "MPC85XX evaluation boards" and some AmigaOne models. SPE floating- point is incompatible with classic floating-point, so powerpc (classic) and powerpcspe are different platforms. I don't know if your Bubba 2 has classic or SPE floating-point. [OpenBSD/macppc](https://www.openbsd.org/macppc.html) only runs on a New World Mac; I have OpenBSD/macppc on a PowerBook G4. Debian dropped official support for 32-bit PowerPC after Debian 8, but kept unofficial support in [debian- ports](https://www.ports.debian.org/). This is hard to set up and only has unstable packages. I tried debian-ports in qemu-system-ppc, which emulates a New World Mac. [Adélie Linux](https://www.adelielinux.org/) claims to support "[at least a G3 CPU](https://help.adelielinux.org/html/install/requirements .html#idm70361672030256)". That would include the New World Macs, the Old World "beige G3", and almost nothing else. Check the hardware in your Bubba 2. Identify its processor (the MPC7447A in my PowerBook is a G4), and whether it has classic or SPE floating-point. Identify its Linux bootloader. (Debian uses *quik* in an Old World Mac or *yaboot* in a New World Mac.) You might want to know if you have Open Firmware and PCI, or something more unusual. ---------------------------------------------------------------------- FUZxxl · 2019-04-06 18:28 Please also post the output of `file -s /dev/sda`. This shows me what kind of partition table you use. ---------------------------------------------------------------------- grewil · 2019-04-06 20:29 Thanks for the heads up! ---------------------------------------------------------------------- grewil · 2019-04-06 20:37 Thank you very much for this detailed reply! From what I gather so far, things may not be hopeless, but will require research and study to make up for my current lack of knowledge. ---------------------------------------------------------------------- grewil · 2019-04-06 20:44 Here it goes! [https://paste.debian.net/1076465/](https://paste.debian.net/1076465/) ​ I managed to find the page where I originally found the Debian 8 installation. I might be able to figure something out by studying how they did it. [https://forum.excito.com/viewtopic.php?t=5871](https://f orum.excito.com/viewtopic.php?t=5871) ---------------------------------------------------------------------- CSI_Tech_Dept · 2019-04-07 00:51 Yeah, I should be more explicit about it, I never used PowerPC myself, but on machine that has no monitor or serial port, I think cross compiling and installing would be the way to do it, assuming the platform is supported. ---------------------------------------------------------------------- FUZxxl · 2019-04-07 00:57 No need to compile! Just use the release tar balls. ---------------------------------------------------------------------- CSI_Tech_Dept · 2019-04-07 04:30 Good point. ---------------------------------------------------------------------- grewil · 2019-04-07 12:14 I will definitely look up this tar ball option, thanks! ---------------------------------------------------------------------- CSI_Tech_Dept · 2019-04-08 16:38 So it is PowerPC, but the partition layout comes from x86. Looks like it is a custom platform. I would try PPC mailing list https://www.freebsd.org/platforms/ppc.html#list and provide these details to them. On https://www.freebsd.org/platforms/ppc.html Says that FreeBSD runs on Apple machines Sony Playstation 3 and there is work on progress for IBM pSeries. Maybe your platform is similar to the last one. Otherwise someone either from FreeBSD or from Excito would have to add support for it. Although if you are the only person interested in it it might be tough. Hopefully it is compatible with existing platforms. ---------------------------------------------------------------------- grewil · 2019-04-11 07:13 I am very grateful for your useful input, and by your knowledge! Thank you! ---------------------------------------------------------------------- CorgiDude · 2019-05-25 18:31 MPC8313E-RDB -> [NXP reference](https://www.nxp.com/support/developer- resources/software-development-tools/qoriq-developer- resources/mpc8313e-rdb-reference-platform:MPC8313E-RDB) - looks like it might work with [U-Boot](https://community.nxp.com/thread/317828) but this may depend on the Bubba firmware. The MPC8313E is a e300e3, which is based on the PowerPC 603e CPU. It is comparable to what has been retroactively termed the "G2". I'm actually the project lead of Adélie Linux and I can confirm our current PowerPC port won't boot on here due to the CPU requirements. We are planning a 601/603 port at some point for the 603 and e300 boards out there, but it's probably a few months out at best.