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