- Network boot problems

PDA

View Full Version : Network boot problems


Ivaylo Riskov
07-24-2004, 09:01 PM
Hi!

I'm having problems with network booting Linux on my Dell Inspiron 1100
Laptop. I am using DHCP+TFTP to boot it.

What I do is the following:
1. I compile a kernel image
2. use:
mknbi-linux bzImage --output=/tftpboot/tftpboot.img --rootdir=/nfsboot
3. Set up /etc/dhcpd.conf as follows:

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.10;
}


host laptop {
hardware ethernet 00:0B:DB:9B:24:C4;
fixed-address 192.168.1.2;
filename "/tftpboot/tftpboot.img";
}

4. run dchpd as root on the server, running linux
5. run:
in.tftpd -l
for the TFTP deamon
6. Start the target PC

My problem is that when the DHCP gets the IP from the server, TFTP loads the
kernel, the kernel won't start i.e. there are no messages, whatsoever
indicating that the kernel is running and therefore the machine hangs.

I used tcpdump to see that a TFTP request have been made and packets from
the server to the client have been sent, whose size matched that of the
kernel image.

I have tested the kernel image and it works.

Can somebody help me?

Thanks!

--
Ivaylo Riskov

Bernie
07-24-2004, 09:33 PM
Ivaylo Riskov <ivaylo_riskov@mail.bg> wrote in message news:<bijf22$a0ngo$1@ID-180073.news.uni-berlin.de>...
> My problem is that when the DHCP gets the IP from the server, TFTP loads the
> kernel, the kernel won't start i.e. there are no messages, whatsoever
> indicating that the kernel is running and therefore the machine hangs.

Some people spend ages on that problem before they notice, that the
kernel needs to be compiled for the client-cpu and not for the
server-cpu.

I was among them.

Check the cpu-type set in your kernel config.

Bernie