* [gentoo-embedded] mdev problems
@ 2006-05-11 19:37 Pierre Cassimans
2006-05-11 19:55 ` Ned Ludd
0 siblings, 1 reply; 4+ messages in thread
From: Pierre Cassimans @ 2006-05-11 19:37 UTC (permalink / raw
To: gentoo-embedded
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
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
Any help would be appriciated :)
Pierre
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-embedded] mdev problems
2006-05-11 19:37 [gentoo-embedded] mdev problems Pierre Cassimans
@ 2006-05-11 19:55 ` Ned Ludd
2006-05-12 2:53 ` Mike Frysinger
0 siblings, 1 reply; 4+ messages in thread
From: Ned Ludd @ 2006-05-11 19:55 UTC (permalink / raw
To: gentoo-embedded
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 <solar@gentoo.org>
Gentoo Linux
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-embedded] mdev problems
2006-05-11 19:55 ` Ned Ludd
@ 2006-05-12 2:53 ` Mike Frysinger
2006-05-15 19:17 ` Pierre Cassimans
0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2006-05-12 2:53 UTC (permalink / raw
To: gentoo-embedded
On Thursday 11 May 2006 15:55, Ned Ludd wrote:
> On Thu, 2006-05-11 at 19:37 +0000, Pierre Cassimans wrote:
> > 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.
looks like i included the patch but never released it
http://sources.gentoo.org/gentoo/src/patchsets/uclibc/0.9.28/48_all_uClibc-svn-getdents.patch?rev=1.1&view=markup
-mike
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-embedded] mdev problems
2006-05-12 2:53 ` Mike Frysinger
@ 2006-05-15 19:17 ` Pierre Cassimans
0 siblings, 0 replies; 4+ messages in thread
From: Pierre Cassimans @ 2006-05-15 19:17 UTC (permalink / raw
To: gentoo-embedded
Hi,
i applied the patch, compiled uclibc in my uclibc-chroot, recompiled busybox
and ROOT=/blah emerge -K uclibc busybox.
Then i chroot /blah /bin/busybox --install -s
and restarted the device, but still nothing. how do i know if the patch was
well applied and that the right version is installed on the device? can i
test it in an other way then to let my device hang :p
Did i forget to do a compilation of something other important thing to make
it work?
Pierre
>From: Mike Frysinger <vapier@gentoo.org>
>Reply-To: gentoo-embedded@lists.gentoo.org
>To: gentoo-embedded@lists.gentoo.org
>Subject: Re: [gentoo-embedded] mdev problems
>Date: Thu, 11 May 2006 22:53:07 -0400
>
>On Thursday 11 May 2006 15:55, Ned Ludd wrote:
> > On Thu, 2006-05-11 at 19:37 +0000, Pierre Cassimans wrote:
> > > 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.
>
>looks like i included the patch but never released it
>
>http://sources.gentoo.org/gentoo/src/patchsets/uclibc/0.9.28/48_all_uClibc-svn-getdents.patch?rev=1.1&view=markup
>-mike
>--
>gentoo-embedded@gentoo.org mailing list
>
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-05-15 19:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-11 19:37 [gentoo-embedded] mdev problems Pierre Cassimans
2006-05-11 19:55 ` Ned Ludd
2006-05-12 2:53 ` Mike Frysinger
2006-05-15 19:17 ` Pierre Cassimans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox