Subject: RE: bootloader setup
To: Mauricio Lima Pilla <pilla@ucpel.tche.br>
From: Tim Rightnour <root@garbled.net>
List: port-prep
Date: 09/14/2006 13:43:52
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 <root@garbled.net>
NetBSD: Free multi-architecture OS http://www.netbsd.org/
Genecys: Open Source 3D MMORPG: http://www.genecys.org/