List Info

Thread: bootloader setup




bootloader setup
user name
2006-09-14 20:35:35
Hi people,

I've compiled a new kernel (I need IP forwarding) and then
I want to boot it. 
I've read about mkbootimage and I want to be sure about
what I'm going to do, 
so I don't have to reinstall from zero again.

I've created  a boot image.

/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? 



Thanks in advance,

Pilla


-- 
Mauricio Lima Pilla                           pillaucpel.tche.br
PPGINF -- ESIN/UCPEL
http://g3pd.ucpel.tc
he.br/~pilla
key 0x37705BE0

"I'm just very selective about the reality I choose
to accept."
                                                        --
Calvin
bootloader setup
user name
2006-09-14 20: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 <rootgarbled.net>
NetBSD: Free multi-architecture OS http://www.netbsd.org/
Genecys: Open Source 3D MMORPG: http://www.genecys.org/
bootloader setup
user name
2006-09-14 21:17:34
On Thu, 14 Sep 2006 17:35:35 -0300
Mauricio Lima Pilla <pillaucpel.tche.br> wrote:

> I've compiled a new kernel (I need IP forwarding)
You should be able to enable IP forwarding with
sysctl -w net.inet.ip.forwarding=1
on a GENERIC kernel at runtime.

You can edit /etc/sysctl.conf to enable it at boottime.
-- 


tschüß,
       Jochen

Homepage: http://www.unix
ag-kl.fh-kl.de/~jkunz/

bootloader setup
user name
2006-09-14 21:24:02
Good thing I asked before exploding my disk! 
Rebooted with the new kernel 
and it's working.

On Thursday 14 September 2006 18:17, you wrote:
> On Thu, 14 Sep 2006 17:35:35 -0300
>
> Mauricio Lima Pilla <pillaucpel.tche.br> wrote:
> > I've compiled a new kernel (I need IP forwarding)
>
> You should be able to enable IP forwarding with
> sysctl -w net.inet.ip.forwarding=1
> on a GENERIC kernel at runtime.
>
> You can edit /etc/sysctl.conf to enable it at boottime.

Yes, I had it on but I did a mistake on the ipnat.conf file
(which I fixed 
now), so it wouldn't work and thus I blamed the kernel.

I'm more used to Linux, thus I still have a lot of things
to learn on netbsd.

Thanks,

Pilla
-- 
Mauricio Lima Pilla                           pillaucpel.tche.br
PPGINF -- ESIN/UCPEL
http://g3pd.ucpel.tc
he.br/~pilla
key 0x37705BE0

"I'm just very selective about the reality I choose
to accept."
                                                        --
Calvin
bootloader setup
user name
2006-09-14 22:43:18
On 14-Sep-2006 Mauricio Lima Pilla wrote:
> Good thing I asked before exploding my disk! 
Rebooted with the new kernel 
> and it's working.

Yeah.. I'd really like to put together a FAQ for prep, I
just haven't had the
time yet.

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

about | contact  Other archives ( Real Estate discussion Medical topics )