Subject: Re: 1.6 miniroot won't boot
To: None <eeh@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-sparc64
Date: 06/07/2002 17:17:32
On Fri, Jun 07, 2002 at 02:19:28PM -0000, eeh@netbsd.org wrote:
>
> | On Fri, Jun 07, 2002 at 12:34:02AM -0000, eeh@netbsd.org wrote:
> |
> | > ok setenv fcode-debug? true
> | > ok boot disk:b -V
> | >
> | > That should give us some useful debug info.
> |
> | 220r (both -current and 1.6 20020603)
> |
> | {0} ok setenv fcode-debug? true
> | fcode-debug? = true
> | {0} ok boot disk:b -V
> | Boot device: /pci@1f,4000/scsi@3/disk@0,0:b File and args: -V
> | NetBSD IEEE 1275 Bootblock
> | Loading file /ofwboot
> | from device /pci@1f,4000/scsi@3/disk@0,0:b
> | ufs-open complete
> | .Looking for ofwboot in directory...
>
> If that's as far as it gets then it seems that the boot block
> is unable to read the root directory. It should be printing
> out each directory entry it finds, and it obviously hasn't found
> anything. You might want to mount the filesystem and make sure
> it's O.K.
I can mount it:
# mount -r /dev/sd1b /mnt
# ls /mnt
.profile dev etc mnt netbsd sbin tmp var
bin dist kern mnt2 ofwboot sysinst usr
>
> Beyond that is FCode debygging. Boot with -DV. Once you get the
> message "The file just loaded does not appear to be executable."
> you enable debug on an interesting function, say search-directory
> and tell the boot block to read a file:
>
> ok debug search-directory
> ok " /ofwboot" do-boot
>
> Once it gets to the routine under debug you can single-step through
> it to see where it hangs.
Well, this doesn't seem to work well:
ok boot disk1:b -DV
Boot device: /sbus/espdma@e,8400000/esp@e,8800000/sd@1,0:b File and args: -DV
The file just loaded does not appear to be executable.
ok debug search-directory
Stepper keys: <space> Down Up Continue Forth Go Help ? See $tring Quit
search-directory ?
ok debug search-directory
Stepper keys: <space> Down Up Continue Forth Go Help ? See $tring Quit
search-directory ?
ok " /ofwboot" do-boot
do-boot ?
ok
It's a:
Sun Ultra 1 SBus (UltraSPARC 143MHz), No Keyboard
OpenBoot 3.11, 128 MB memory installed, Serial #8793333.
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
--