[syslinux] adding networking support in initrd

Marc Haisenko haisenko at comdasys.com
Tue Jan 2 03:14:39 PST 2007


On Tuesday 02 January 2007 10:26, pankaj takawale wrote:
> Im pxebooting target machine with vmlinuz & initrd.
> Once vmlinuz loads initrd, Im calling "/bin/sh" from
> linuxrc script so that I get command prompt.
> But my machine is not connected to network. 
> # ping 192.168.25.2
> connect: network is unreachable
> #ifconfig -a
> can not open /proc/net/dev : No such file or directory
> 
> my /proc is empty.

mount -t proc none /proc

> Please advice how to customize initrd image to support networking

It depends on a lot of stuff:
- you need the correct drivers
- you need to load them via insmod/modprobe if you haven't compiled them
  into the kernel (this means you need those programs in your initrd)
- you could then hardcode the network config in your initrd with a direct call
  to ifconfig or use a DHCP client, which means you need to include the DHCP
  client and its libraries in the initrd as well (there are lots of other 
  things you could do here or even need to do here...)

Just google for some initrd howto, there are a few. Maybe they'll explain the 
steps you need to do more in-depth.

Marc

-- 
Marc Haisenko
Comdasys AG

Rüdesheimer Straße 7
D-80686 München
Tel:   +49 (0)89 - 548 43 33 21
Fax:   +49 (0)89 - 548 43 33 29
e-mail: haisenko at comdasys.com
http://www.comdasys.com




More information about the Syslinux mailing list