Gentoo Archives: gentoo-embedded

From: Pierre Cassimans <kammicazze@×××××××.com>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] mdev problems
Date: Thu, 11 May 2006 19:38:48
Message-Id: BAY115-F1130662273002D5059B402CBAF0@phx.gbl
1 Hi,
2
3 i would like to use mdev on my device, but got some problems implementing
4 it. First of all the device is booted over the network with pxe and the root
5 is mounted over nfs read only.
6
7 If i use the normal baselayout, i can boot the device and login without
8 problems.
9
10 I wanted to mount the /dev dir read/write so i can use mdev to populate the
11 dir. I tried it with mount -n -t ramfs none /dev in the inittab, but now the
12 system hangs right after "Freeing unused kernel memory".
13
14 Here are my config files:
15
16 /etc/inittab:
17 =======
18 # Startup the system
19 #null::sysinit:/bin/mount -o remount,rw /
20 null::sysinit:/bin/mount -t proc none /proc
21 null::sysinit:/bin/mount -t sysfs none /sys
22 null::sysinit:/bin/mount -n -t ramfs none /dev
23 null::sysinit:/bin/mkdir /dev/pts
24 null::sysinit:/bin/mount -t devpts -o gid=4,mode=620 none /dev/pts
25 null::sysinit:/bin/mount -t tmpfs none /dev/shm
26 null::sysinit:/bin/mount -a
27 null::sysinit:/sbin/mdev -s
28 null::sysinit:/bin/hostname -F /etc/hostname
29 null::sysinit:/sbin/ifconfig lo 127.0.0.1 up
30 null::sysinit:/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
31 # now run any rc scripts
32 ::sysinit:/etc/init.d/rcS
33
34 # Set up a couple of getty's
35 tty1::respawn:/sbin/getty 38400 tty1
36 #tty2::respawn:/sbin/getty 38400 tty2
37
38 # Put a getty on the serial port
39 #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100
40
41 # Logging junk
42 null::sysinit:/bin/touch /var/log/messages
43 #null::respawn:/sbin/syslogd -n -m 0
44 null::respawn:/sbin/klogd -n
45 #tty3::respawn:/bin/tail -f /var/log/messages
46
47 # Stuff to do for the 3-finger salute
48 ::ctrlaltdel:/sbin/reboot
49
50 # Stuff to do before rebooting
51 null::shutdown:/etc/init.d/rcK
52 null::shutdown:/bin/killall klogd
53 null::shutdown:/bin/killall syslogd
54 null::shutdown:/bin/umount -a -r
55 null::shutdown:/sbin/swapoff -a
56
57
58 /etc/mdev.conf
59 =========
60 SLEEP=10
61
62 MAKEDEV -> ../sbin/MAKEDEV
63 /proc/core -> kcore
64 fd -> /proc/self/fd
65 ram -> ram1
66 stderr -> fd/2
67 stdin -> fd/0
68 stdout -> fd/1
69 vbi -> vbi0
70 video -> video0
71
72 null 0:0 777
73 zero 0:0 666
74
75 urandom 0:0 444
76 console 0:5 0600
77 fd0 0:11 0660
78 kmem 0:9 000
79 mem 0:9 0640
80 port 0:9 0640
81 ptmx 0:5 0660
82
83 tty 0:5 0660
84
85 tty0* 0:5 0660
86 tty1* 0:5 0660
87 tty2* 0:5 0660
88
89 ttyS* 0:20 640
90
91
92 i'm using Busybox-1.1.2 and uclibc-0.9.28
93
94 Any help would be appriciated :)
95
96 Pierre
97
98
99 --
100 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] mdev problems Ned Ludd <solar@g.o>