RE: bootloader setup

Tim Rightnour <[email protected]> Thu, 14 Sep 2006 13:43:52 -0700 (MST)
Newsgroups gmane.os.netbsd.ports.prep
Message-ID <[email protected]>
On 14-Sep-2006 Mauricio Lima Pilla wrote:
> /usr/mdec/mkbootimage -b /usr/mdec/boot_com0 -k /netbsd -s boot.fs
> 
> 
> Now, what's the next step? Should I dd it to /dev/sd0? 

Your disklabel should have a "boot" partition, like so:

#        size    offset     fstype [fsize bsize cpg/sgs]
 a:   8540700      9863     4.2BSD   2048 16384 27304  # (Cyl.      9*-   8143*)
 b:    263307   8550563       swap                     # (Cyl.   8143*-   8394*)
 c:   8813870         0     unused      0     0        # (Cyl.      0 -   8394*)
 e:      9800        63       boot                     # (Cyl.      0*-      9*)

So, in my case, I would:
dd if=boot.fs of=/dev/rsd0e bs=512 conv=sync

Allways write the new kernel to the boot partition.  Don't put it anywhere
else. :)

---
Tim Rightnour <[email protected]>
NetBSD: Free multi-architecture OS http://www.netbsd.org/
Genecys: Open Source 3D MMORPG: http://www.genecys.org/