NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-amd64/51279: bootxx_ffsv2 hangs



The following reply was made to PR port-amd64/51279; it has been noted by GNATS.

From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-amd64/51279: bootxx_ffsv2 hangs
Date: Sun, 7 Aug 2016 11:08:35 +0000 (UTC)

 bsiegert%gmail.com@localhost (Benny Siegert) writes:
 
 >I got grub2 (pc) to boot NetBSD working in the meantime. When booting from grub, machdep.diskinfo has
 >ld0 sd0
 
 >So ld0 is 0x80? The 0x81 comes from the fact (I think) that the BIOS inserts the USB as 0x80 when booting from it.
 
 
 machdep.diskinfo is the list of disk devices that exist when the kernel
 tries to determine the boot device.
 
 
 
 sysctl first prints the list of BIOS disks as
 
      biosnumber:numsectors(ncyl,nhead,nsec),flags
 
 then follows the list of matched netbsd devices as
 
      devunit[:biosnumber[,biosnumber,...]]
 
 
 
 Example:
 
 machdep.diskinfo: 80:976773168(1024/36/30),2 81:976773168(1023/64/32),2  wd0:80 wd1 sd0:81
 
 The BIOS knows about one boot disk (the first SATA drive wd0) and
 an USB boot disk (external USB enclosure).
 
 wd0 matches with BIOS disk 80.
 sd0 matches with BIOS disk 81.
 
 
 If you just get 'ld0 sd0', then the bootloader didn't provide the list
 of BIOS devices to the kernel and obviously there aren't any matches.
 
 
 -- 
 -- 
                                 Michael van Elst
 Internet: mlelstv%serpens.de@localhost
                                 "A potential Snark may lurk in every tree."
 


Home | Main Index | Thread Index | Old Index