backport devtmpfs to the lucid linux-imx51 kernel tree
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Lucid |
Invalid
|
Undecided
|
Unassigned | ||
linux-fsl-imx51 (Ubuntu) |
Fix Released
|
High
|
Bryan Wu | ||
Lucid |
Fix Released
|
High
|
Bryan Wu | ||
linux-mvl-dove (Ubuntu) |
Fix Released
|
Undecided
|
Eric Miao | ||
Lucid |
Fix Released
|
Undecided
|
Eric Miao |
Bug Description
currently the init script of initramfs-tools assumes that devtmpfs is available in the kernel in lucid, other userspace tools like udev or upstart might probably make use of this feature as well.
booting a babbage board currently results in an error message from init that it "can't mount none on /dev".
this error results from the following code in the init script in initramfs:
--
# Note that this only becomes /dev on the real filesystem if udev's scripts
# are used; which they will be, but it's worth pointing out
if ! mount -t devtmpfs -o mode=0755 none /dev; then
mount -t tmpfs -o mode=0755 none /dev
mknod -m 0600 /dev/console c 5 1
mknod /dev/null c 1 3
fi
--
if kernels without devtmpfs are still fully supported the error should be quietened down, if we stop supporting kernels without devtmpfs in the lucid release, the devtmpfs patch needs to be addded to the linux-imx51 tree.
note that not having devtmpfs is said to slow down booting by about 2 seconds.
Changed in linux-fsl-imx51 (Ubuntu): | |
assignee: | nobody → Bryan Wu (cooloney) |
importance: | Undecided → High |
tags: | added: armel |
Changed in initramfs-tools (Ubuntu Lucid): | |
status: | New → Invalid |
Changed in linux-fsl-imx51 (Ubuntu Lucid): | |
status: | New → Fix Committed |
Changed in linux-mvl-dove (Ubuntu Lucid): | |
status: | New → Invalid |
assignee: | nobody → Andy Whitcroft (apw) |
Changed in linux-mvl-dove (Ubuntu Lucid): | |
status: | Invalid → In Progress |
Changed in linux-mvl-dove (Ubuntu Lucid): | |
assignee: | Andy Whitcroft (apw) → Eric Miao (eric.y.miao) |
Changed in linux-mvl-dove (Ubuntu Lucid): | |
status: | In Progress → Fix Committed |
summary: |
- please backport devtmpfs to the lucid linux-imx51 kernel tree + backport devtmpfs to the lucid linux-imx51 kernel tree |
Ogra,
I already cherry picked 2 devtmpfs patches to my fsl-imx51 git branch: kernel. ubuntu. com/git? p=roc/ubuntu- lucid.git; a=shortlog; h=refs/ heads/lp512321_ devtmpfs
http://
And please download the kernel package here to help me test: people. canonical. com/~roc/ kernel/ lp512321_ devtmpfs/
http://
Here is some test on my side: init_node: node 0, pgdat c061cce4, node_mem_map c0692000 nodev,noexec, relatime 0 0 nodev,noexec, relatime 0 0 size=234340k, nr_inodes= 58585,mode= 755 0 0 /proc proc rw,relatime 0 0 by-uuid/ fd8c99d5- 8e53-4d99- 9d4e-75b8c96e7b 94 / ext4 rw,relatime, errors= remount- ro,barrier= 1,data= ordered 0 0 fuse/connection s fusectl rw,relatime 0 0 security securityfs rw,relatime 0 0 noexec, relatime, gid=5,mode= 620,ptmxmode= 000 0 0 nodev,relatime 0 0 relatime, mode=755 0 0 nodev,noexec, relatime 0 0 relatime, mode=755 0 0 fs/binfmt_ misc binfmt_misc rw,nosuid, nodev,noexec, relatime 0 0 fuse-daemon rw,nosuid, nodev,relatime, user_id= 1000,group_ id=1000 0 0
--
roc@babbage:~$ dmesg | head
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.31-602-imx51 (root@roc-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #4 Tue Jan 26 11:27:08 CST 2010 (Ubuntu 2.6.31-602.4-imx51)
CPU: ARMv7 Processor [412fc081] revision 1 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Freescale MX51 Babbage Board
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 122880
free_area_
DMA zone: 128 pages used for memmap
roc@babbage:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 152459812 2446924 142268356 2% /
none 234340 21244 213096 10% /dev
none 239172 1164 238008 1% /dev/shm
none 239172 84 239088 1% /var/run
none 239172 0 239172 0% /var/lock
none 239172 0 239172 0% /lib/init/rw
roc@babbage:~$ cat /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,
none /proc proc rw,nosuid,
none /dev devtmpfs rw,relatime,
none /dev/.bootchart
/dev/disk/
none /sys/fs/
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/
none /dev/pts devpts rw,nosuid,
none /dev/shm tmpfs rw,nosuid,
none /var/run tmpfs rw,nosuid,
none /var/lock tmpfs rw,nosuid,
none /lib/init/rw tmpfs rw,nosuid,
binfmt_misc /proc/sys/
gvfs-fuse-daemon /home/roc/.gvfs fuse.gvfs-
roc@babbage:~$ sudo mount -t devtmpfs -o mode=0755 none dev
[sudo] password for roc:
roc@babbage:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 152459812 2447320 142267960 2% /
none 234340 22336 212004 10% /dev
none 239172 1164 238008 1% /dev/shm
none 239172 84 239088 1% /var/run
none 239172 0 239172 0% /var/lock
none 239172 0 239172 0% /lib/init/rw
none 234340 22336 2...