Boot problems with NFS

Per Dalgas Jakobsen pdj at knaldgas.dk
Mon Feb 20 21:26:52 UTC 2006


Hi again,

I found the problem:

My buildroot/build-<arch>/root/dev/* were all ordinary files, not
special nodes (of course, since it's made by fakeroot).

So when init starts, it outputs to /dev/console, which is just an
ordinary file... No errors, no output, DUH!!!!

Running makedevs as root solved everything.

*BLUSH*

~Per


On Sat, 2006-02-18 at 14:11 +0100, Per Dalgas Jakobsen wrote:
> Hi,
> 
> I'm trying to get a remote-booting PC up and running with
> buildroot/busybox, but I have ran into some trouble...
> 
> The system remote boots fine up to this:
> ---
> VFS: Mounted root (nfs filesystem).
> Freeing unused kernel memory: 272K freed
> ---
> And then it just sits there.
> 
> I have tried to replace /sbin/init with a "hello world" program:
> No "Hello world" text on monitor, but now the kernel panics due to init
> exiting (fair enough). Just for fun I tried to let "hello world" print
> out its text one million times before exiting; No "Hello world" text and
> the kernel panic message appears after a reasonable time (a couple of
> seconds).
> 
> So it seems like the kernel is fetched fine from tftp.
> It also seems like the nfs file system is mounted ok
> (changing /sbin/init certainly have some effect).
> 
> Any ideas?
> I have described the setup below. Please let me know if I have done
> something stupid.
> 
> ~Per
> 
> -------------------
> Client setup:
> *) i586 PC with Etherboot 5.0.6 in BIOS payload.
> *) Etherboot modified to look for a DHCP-server at port 1067
> *) CompactFlash disk attached but NOT used (yet).
> 
> Boot-server setup:
> *) i686 PC running Debian testing.
> *) DHCP server listening on port 1067
> *) tftp server running.
> 
> (Alternative DHCP port 1067 used because primary DHCP-server must not be
> touched).
> 
> 
> I'm using Buildroot snapshot 20060213:
> *) Target architecture: i386 - variant: i586
> *) Linux-2.4.31 (patched to allow for gcc-4.0.2 compiler)
> *) NOT using uClibc snapshot (uClibc-0.9.28)
> *) Binutils-2.16.1
> *) gcc-4.0.2
> *) Multilib support enabled, no large file support
> *) Busybox minimal system with daily snapshot (fetched 20060213)
> *) No extra packages selected.
> *) ext2 root
> 
> Kernel build steps:
> $ make ARCH=i386 CROSS_COMPILE=i586-linux- bzImage
> $ cp arch/i386/boot/bzImage <tftp-server-path>
> $ mkelf-linux --rootdir=<nfs-kernel-root> \
> --ip=<CLIENTIP>:<SERVERIP>:<GATEWAYIP>:<NETMASK>:<HOSTNAME> \
> arch/i386/boot/bzImage > <tftp-kernel-image>
> --------------------
> 
> 
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox




More information about the busybox mailing list