What does this kernel panic mean? I can't really find any info online. This is on a Power Mac G5. reddit / BSD ---------------------------------------------------------------------- ptthree420 · 2022-03-15 20:43 This is OpenBSD 7.0. The machine is a G5, PowerPC 1.8ghz SP, with 512mb RAM. The bootloader is ofwboot. ---------------------------------------------------------------------- polprog · 2022-03-15 21:10 "Root filesystem has size zero" I would try to reinstall it and pay attention to formatting the root filesystem, i dont know if its possible to accidentally make it broken like that but everything is possible. You can ask for help on the mailing list or some openbsd IRC channel, i think #openbsd on irc.libera.chat ---------------------------------------------------------------------- ptthree420 · 2022-03-15 21:13 I used auto partitioning (because I used the whole disk), so I'm fairly certain it wasn't zero when it installed. I think it was set to be around 980gb. ---------------------------------------------------------------------- toastmaster124 · 2022-03-15 22:49 Try manually partitioning it and maybe leave a few sectors at the front of the disk empty 🤷‍♂️ ---------------------------------------------------------------------- Q_whew · 2022-03-16 05:37 I notice swap and dump are on the same slice. Is this normal? ---------------------------------------------------------------------- ptthree420 · 2022-03-16 05:40 I'm not even sure at this point lol, Macs are really screwy when it comes to other operating systems. I did use auto partition though, so I assume so. ---------------------------------------------------------------------- ptthree420 · 2022-03-16 05:43 Actually, 980gb was the slice. The root was set to be 1gb. ---------------------------------------------------------------------- Q_whew · 2022-03-16 05:47 Using fdisk # The fdisk utility is used on some platforms (i386, amd64 and macppc) to create a partition recognized by the system boot ROM. Normally, only one OpenBSD fdisk partition will be placed on a disk and that partition will then be subdivided into disklabel partitions. View your partition table with: ---------------------------------------------------------------------- Q_whew · 2022-03-16 05:49 Is this a powerpc? If so you may need to setup your partitions using fdisk: Using fdisk # The fdisk utility is used on some platforms (i386, amd64 and macppc) to create a partition recognized by the system boot ROM. Normally, only one OpenBSD fdisk partition will be placed on a disk and that partition will then be subdivided into disklabel partitions. View your partition table with: ---------------------------------------------------------------------- [deleted] · 2022-03-16 05:49 [deleted] ---------------------------------------------------------------------- Q_whew · 2022-03-16 05:50 It could be that your root is on a different device also wd1 instead of wd0 for example. ---------------------------------------------------------------------- ptthree420 · 2022-03-16 05:51 Well, it does show me the layout before installation and allows me to make changes if I want. Everything looks normal. Root is set up to be 1gb by default, and I didn't change it. And yes, it's PowerPC 970+ ---------------------------------------------------------------------- Q_whew · 2022-03-16 05:54 Try this at the boot prompt: boot wd0a:/bsd Then hit enter and see if that works. ---------------------------------------------------------------------- ptthree420 · 2022-03-16 05:59 That wouldn't work. It has to be a valid open firmware device. The device name for the hard drive it's installed on is sd1, so the code would be "boot sd1:,ofwboot /bsd". Absolutely nothing else works, trust me. It took me hours of sifting through OF devices to find the correct one since there's very little documentation on open firmware on Macs. There's plenty for other machines that use it, but apple changed the code so much that almost nothing matches up with other machines. ---------------------------------------------------------------------- Q_whew · 2022-03-16 06:02 Oh you're using open firmware...shit. chances are you're probably missing a blob or two in an efi-like directory. ---------------------------------------------------------------------- Q_whew · 2022-03-16 06:06 There's also this: The OpenBSD bootstrap program is named “ofwboot”. It can be installed either in a HFS partition or in a MSDOS partition on the disk. Im sure you've done this as your bootloader tried to boot your kernel. ---------------------------------------------------------------------- ptthree420 · 2022-03-16 06:07 Yeah, it has a fat12 partition that comes before the OpenBSD partition. It only contains the bootloader though, which is ofwboot. It DOES give me a bootloader prompt before it boots though. If you wait 5 seconds, it autoboots to wd0: /bsd. I've tried typing different things into it, but it usually crashes open firmware with an illegal instruction exception. ---------------------------------------------------------------------- Q_whew · 2022-03-16 06:10 Im guessing they're sata drives? ---------------------------------------------------------------------- ptthree420 · 2022-03-16 06:13 Yes, and there is documentation on how to install and run it on Macs on the OpenBSD website, BUT it's very vague. It doesn't mention much of G5s, but it mentions G4s a bunch. And it mentions IDE, but not SATA. The boot command that it gives on there also does not work, so that's why I had to figure it out myself. I think they assume that you're going to either install OpenBSD as the only OS or dual boot OS X and OpenBSD on the same drive, but I'm not. I'm trying to set up seperate drives for both. ---------------------------------------------------------------------- Q_whew · 2022-03-16 06:23 setenv auto-boot? true setenv boot-device hd:,ofwboot For those steps above, what did you change? Have you tried disconnecting one drive? In the "bios" not even sure if it has one can you change the mode used by the sata controller to IDE legacy perhaps? ---------------------------------------------------------------------- ptthree420 · 2022-03-16 06:29 Nope. It's very bare bones and there's barely any settings. And the setenv command only changes the default boot device and whether the machine autoboots or drops into an OF prompt, nothing more. The default is sd0 (I'm using sd1, but I use the boot command to bypass default) I'm assuming SD stands for "SATA drive" since there's a sd0 and sd1. There's also ultra0 and ultra1 for the IDE devices, but that's only a DVD drive and it's on 0. And I did try one drive connected. Same results. Also tried both SATA ports. Honestly, the machine is old enough that it's probably in legacy mode anyway rather than EHCI. ---------------------------------------------------------------------- Q_whew · 2022-03-16 06:40 Pass this to the end of the boot command: set device sda and see if that does it...or try hda and wd...so on...if that doesn't work you maybe able to just use your usb drive or cdrom drive to boot the system. ---------------------------------------------------------------------- ptthree420 · 2022-03-16 06:47 Open firmware is overly complicated. The bootloader has to be on the device you're booting. You can't use a bootloader on one device to boot a different device. For example, if I tried to use the CD to boot the hard drive, the bootloader will crash with an illegal instruction exception. Same if I put the bootloader on the OS X HFS partition. It only boots the drive if it's in that small fat12 partition. What I don't get is how it's even able to make it that far into booting if it sees root size as 0. You'd think it would just fail outright. I mean, it HAS to be reading something from the root. ---------------------------------------------------------------------- Q_whew · 2022-03-16 07:16 The only time I've seen this is when I installed FreeBSD using sata mode then had to rebert bios settings back to defaults which put my drives into IDE legacy mode. There has to be a switch within OF to get it to recognize the drive in the mode that it's in. ---------------------------------------------------------------------- Q_whew · 2022-03-16 07:18 What firmware version are you running? ---------------------------------------------------------------------- Q_whew · 2022-03-16 07:21 It seems the G7 is not mentioned at all in the install doc....also they only state support for IDE hard disk controllers like wdc_obio, kuaiata (ATA 100) and pci controllers. No mention of sata. That's why I'm thinking that maybe setting the sata drives to IDE legacy config might help. ---------------------------------------------------------------------- ptthree420 · 2022-03-16 07:28 It specifically says my model is supported (powermac9,1), but nothing else about G5s. How's it going to say it's supported, but not give instructions specific to G5 machines too (as G5 machines are the ONLY PowerPC Mac with SATA, unless of course you include the xServe G5, which is basically a 1U version of the PowerMac with a serial console) And I have the latest firmware. I've already tried updating. ---------------------------------------------------------------------- Q_whew · 2022-03-16 07:32 Did you try booting from ultra0? ---------------------------------------------------------------------- ptthree420 · 2022-03-16 07:33 That's the DVD drive. Ultra0 is primary IDE master and ultra1 is primary IDE slave, but there's no drive bay for a slave. ---------------------------------------------------------------------- Q_whew · 2022-03-16 07:43 Did you try it? ---------------------------------------------------------------------- ptthree420 · 2022-03-16 07:47 Honestly, it might just be better to stick to PC for other operating systems 😂. I've always tried working with PowerPC Macs, but I swear that every single one is different. EVERY. SINGLE. ONE. Even if you have two that are the same exact model. I have two of the exact same model, and one will boot from USB, the other one won't even touch a bootable USB with a 10 foot pole. Same firmware, same USB controller, same USB drive, same everything. What's also weird, one will boot the OpenBSD CD, the other outright refuses, with the same DVD drive. It'll boot Linux though. PPC Macs are very estranged from machine to machine. It's like getting a cat. You might get one that plays nice, you might get one that's a bitch. ---------------------------------------------------------------------- Q_whew · 2022-03-16 08:11 Ive had cats...and totally understand. ---------------------------------------------------------------------- FOSSilized_D43mon · 2022-03-16 16:21 My guess would be that root does not have the space needed. If it only has 1GB I would try reinstalling with it having more. I am unsure off the top of my head what space root needs on its own though.