Port-sparc archive

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

Re: Booting on raid1 rootfs



Hi,

> Based on this output, the machine found the bootblock and second level 
> bootloader, but the second level bootloader wasn't able to find the 
> kernel.  

> On sparc32 (unless someone has changed things over the years) the first 
> level bootblock is a SPARC C+assembly language executable that has the 
> disk blocks containing the second level bootloader encoded in it.  It just 
> reads those disk blocks and jumps to the program it loaded.
> 
> The second level boot loader then walks the filesystem structures to find 
> the kernel.  It's this step that's failing.  My guess is that the sparc 
> bootloader is missing some bits from libsa that jump over the 64KB empty 
> space that raidframe leaves when looking for the ufs superblock.  

This used to work OK on sun4, sun4c and sun4m [*].  As you point out, the
first level boot loader is working OK, and is loading the second level
boot loader.  Questions that come to mind are:

  how large is the RAID 1 boot partition and where does it start on the disk
  (see man boot for some PROM size limitations)?

  is the kernel at the start of this partition (if it's larger than 1, 2, or
  4GB)?

  did this disk previously contain a disklabel for a non-RAID installation
  (the previous disklabel might be confusing things)?

Thanks,

J

[*] Originally committed in 2006:

  http://mail-index.NetBSD.org/port-sparc/2006/06/20/0015.html

-- 
   NetBSD: simple; works; documented    /        Sailing at Newbiggin
        http://www.netbsd.org/        /   http://www.newbigginsailingclub.org/


Home | Main Index | Thread Index | Old Index