On Thu, 2006-05-11 at 19:37 +0000, Pierre Cassimans wrote: > Hi, > > i would like to use mdev on my device, but got some problems implementing > it. First of all the device is booted over the network with pxe and the root > is mounted over nfs read only. > > If i use the normal baselayout, i can boot the device and login without > problems. > > I wanted to mount the /dev dir read/write so i can use mdev to populate the > dir. I tried it with mount -n -t ramfs none /dev in the inittab, but now the > system hangs right after "Freeing unused kernel memory". > > Here are my config files: > > /etc/inittab: > ======= > # Startup the system > #null::sysinit:/bin/mount -o remount,rw / > null::sysinit:/bin/mount -t proc none /proc > null::sysinit:/bin/mount -t sysfs none /sys > null::sysinit:/bin/mount -n -t ramfs none /dev > null::sysinit:/bin/mkdir /dev/pts > null::sysinit:/bin/mount -t devpts -o gid=4,mode=620 none /dev/pts > null::sysinit:/bin/mount -t tmpfs none /dev/shm > null::sysinit:/bin/mount -a > null::sysinit:/sbin/mdev -s > null::sysinit:/bin/hostname -F /etc/hostname > null::sysinit:/sbin/ifconfig lo 127.0.0.1 up > null::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo > # now run any rc scripts > ::sysinit:/etc/init.d/rcS > > # Set up a couple of getty's > tty1::respawn:/sbin/getty 38400 tty1 > #tty2::respawn:/sbin/getty 38400 tty2 > > # Put a getty on the serial port > #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 > > # Logging junk > null::sysinit:/bin/touch /var/log/messages > #null::respawn:/sbin/syslogd -n -m 0 > null::respawn:/sbin/klogd -n > #tty3::respawn:/bin/tail -f /var/log/messages > > # Stuff to do for the 3-finger salute > ::ctrlaltdel:/sbin/reboot > > # Stuff to do before rebooting > null::shutdown:/etc/init.d/rcK > null::shutdown:/bin/killall klogd > null::shutdown:/bin/killall syslogd > null::shutdown:/bin/umount -a -r > null::shutdown:/sbin/swapoff -a > > > /etc/mdev.conf > ========= > SLEEP=10 That line is a debug line. Does not exist or do anything.
> > MAKEDEV -> ../sbin/MAKEDEV > /proc/core -> kcore > fd -> /proc/self/fd > ram -> ram1 > stderr -> fd/2 > stdin -> fd/0 > stdout -> fd/1 > vbi -> vbi0 > video -> video0 > > null 0:0 777 > zero 0:0 666 > > urandom 0:0 444 > console 0:5 0600 > fd0 0:11 0660 > kmem 0:9 000 > mem 0:9 0640 > port 0:9 0640 > ptmx 0:5 0660 > > tty 0:5 0660 > > tty0* 0:5 0660 > tty1* 0:5 0660 > tty2* 0:5 0660 > > ttyS* 0:20 640 > > > i'm using Busybox-1.1.2 and uclibc-0.9.28 there might be a bug in 0.9.28 with getdents(). Mike would know best. > > Any help would be appriciated :) > > Pierre > > -- Ned Ludd <[EMAIL PROTECTED]> Gentoo Linux -- [email protected] mailing list
