NetBSD-Bugs archive

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

Re: bin/40259: pxeboot_ia32.bin loads a kernel on the heap



The following reply was made to PR bin/40259; it has been noted by GNATS.

From: enami tsugutomo <enami%sm.sony.co.jp@localhost>
To: dyoung%cuw.ojctech.com@localhost
Cc: gnats-bugs%gnats.NetBSD.org@localhost
Subject: Re: bin/40259: pxeboot_ia32.bin loads a kernel on the heap
Date: Tue, 27 Jan 2009 18:50:51 +0900 (JST)

 > Try to boot from a kernel that is served by TFTP.  Here is a fragment
 > from the dhcpd.conf that I use:
 > 
 > 
 >   host kernel {
 >           hardware ethernet 00:00:24:C6:A5:24;
 >           fixed-address 192.168.1.2;
 >           next-server 192.168.1.101;
 >           option root-path "/home/dyoung/scratch-cuw/i386/N";
 >           if substring(option vendor-class-identifier, 0, 19) =
 >              "NetBSD:i386:libsa" {
 >                   filename "tftp:kernel";
 >           } elsif substring(option vendor-class-identifier, 0, 9) =
 >                      "PXEClient" {
 >                   filename "pxeboot_ia32_com0_19200.bin";
 >           }
 >   }
 
 You need to conditionalize reply to the request from pxeboot.  Your
 current setting tells pxeboot to load /kernel using tftp for any
 request (so, pxeboot loaded the kernel).  Instead, you need to write
 something like this;
 
           if substring(option vendor-class-identifier, 0, 19) =
              "NetBSD:i386:libsa" {
                  if filename = "boot.cfg" {
                        # since pxeboot ignores filename without :,
                        # this makes pxeboot to try to load /boot.cfg
                        # via nfs.
                        filename "";
                        # of course, you can specify real one.
                        # filename "tftp:my_boot.cfg";
                  } else {
                        filename "tftp:kernel";
                  }
          }
 
 Probably, man page need to be updated.
 
 enami.
 


Home | Main Index | Thread Index | Old Index