On Jun 12 23:18:57, Otto Moerbeek wrote: > On Tue, Jun 12, 2012 at 11:04:35PM +0200, Jan Stary wrote: > > > On Jun 12 22:20:16, Otto Moerbeek wrote: > > > On Tue, Jun 12, 2012 at 10:00:05PM +0200, Jan Stary wrote: > > > > > > > On Jun 12 21:27:18, Jan Stary wrote: > > > > > On Jun 12 20:17:38, Jan Stary wrote: > > > > > > > There is another problem now though: > > > > > > > the booting sequence ends with > > > > > > > > > > > > > > bootpath /pci@f4000000/ata-6@d/disk@1:/bsd > > > > > > > root device: _ > > > > > > > > > > > > > > and that's where it stops, with '_' indicating the cursor. > > > > > Also, I cannot actually type anything here. > > > > > > > > > > Could this be that the installed /bsd does not > > > > > understand the DUID names in /etc/fstab? > > > > > > > > No, that's not it. I reinstalled yet again, using the old wd0.x > > > > instead of DUIDs, but the boot of the installed /bsd fails > > > > in the same way. > > > > > > > > > > > > > > > > I can still boot from the cd, with > > > > > > > > > > > > boot /pci@f4000000/ata-6@d/disk@1:,ofwboot /5.1/macppc/bsd > > > > > > > > > > > > That boots fine, with the dmesg ending with > > > > > > > > > > > > bootpath /pci@f4000000/ata-6@d/disk@0:/5.1/macppc/bsd > > > > > > root on wd0a (duid.a) swap on wd0b dump on wd0b > > > > > > > > What could be the difference between /5.1/macppc/bsd > > > > that boots fine and the installed /bsd that fails as above? > > > > > > > > If I just copy /5.1/macppc/bsd to /bsd, it fails the same, > > > > which puzzles me even more. > > > > > > > > The installed /bsd.rd boots fine - but that knows about > > > > root being on rd0a in advance, right? > > > > > > If ofw is is confused about the paths the following two scenarios can > > > happen: > > > > > > boot from cd: bsd gets an incorrect boot path from ofw that actually > > > points to the hard disk, and (by acccident) you boot ok. > > > > That's quite possibly what happens for me. > > Thank you for the insight. > > > > > boot from hd: bsd gets an incorrect boot path from ofw that points to > > > nowhere, so you don;t boot ok. > > > > Is there a way to unconfuse ofw and make it pass the right > > boot path to the kernels it boots? > > > > Not that I fully understand what a "bootpath" is. > > The pre-last line of the dmesg of both my boot attempts > > (from the CD, from the disk) seems to be the right path > > to the kernel that is actually booting. It's the "root device" > > where it gets stuck. > > iirc the kernel gets a boot path from ofw, and tries to map that to a > unix device to find it's root partition.
If that is the case, then (1) the installed /bsd gets the bootpath "/pci@f4000000/ata-6@d/disk@1:/bsd" from ofw, but fails to map that to "/dev/wd0a" (2) /5.1/macppc/bsd gets "/pci@f4000000/ata-6@d/disk@0:/5.1/macppc/bsd" and maps that to "root on wd0a ..." - am I understanding that correctly? If so, is that /bsd's problem, (not to be able to figure out the root device), or do I need to somehow unconfuse ofw about the devices? I tried devalias hd /pci@f4000000/ata-6@d/disk@1 devalias cd /pci@f4000000/ata-6@d/disk@0 reset-all to set it straight, but that (a) doesn't solve it and (b) doesn't survive a reboot. > You might be able to build a GENERIC with a line: > > config bsd root on wd0a > > (instead of config bsd swap generic) > > That producs a kernel that will look for its root on wd0a. Thanks, I will try that. Meanwhile, I got the same advice from http://www.netbsd.org/ports/macppc/faq.html#dash-a (the whole page is actually quite helpful to a macppc newcomer). Jan