From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1FeHGl-0002aJ-F3 for garchives@archives.gentoo.org; Thu, 11 May 2006 19:56:19 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k4BJtCl2012193; Thu, 11 May 2006 19:55:12 GMT Received: from mail01.emarketsouth.com (mail01.emarketsouth.com [208.247.233.6]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k4BJtAfp028995 for ; Thu, 11 May 2006 19:55:10 GMT Received: (qmail 7292 invoked by uid 399); 11 May 2006 19:58:05 -0000 Received: from unknown (HELO onyx) (64.192.54.4) by mail01.emarketsouth.com with SMTP; 11 May 2006 19:58:05 -0000 Subject: Re: [gentoo-embedded] mdev problems From: Ned Ludd To: gentoo-embedded@lists.gentoo.org In-Reply-To: References: Content-Type: text/plain Organization: Gentoo Linux Date: Thu, 11 May 2006 15:55:08 -0400 Message-Id: <1147377308.30754.146.camel@onyx> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Content-Transfer-Encoding: 7bit X-Archives-Salt: 20417258-466c-42db-91b6-42e647fa21f7 X-Archives-Hash: a6d30d31b1d034001914ef53da05a3d1 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 Gentoo Linux -- gentoo-embedded@gentoo.org mailing list