aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro
diff options
context:
space:
mode:
authorTyler Baker <tyler.baker@linaro.org>2013-11-15 15:48:08 -0800
committerTyler Baker <tyler.baker@linaro.org>2013-11-15 15:48:29 -0800
commit8aa1a29d70db7d7de635c525e1134df6863e3bb3 (patch)
tree364ac703f5514840a20b1a8415172ba3881a111a /meta-linaro
parentd2dcea58c463ab86fd3021470e740befd05933f1 (diff)
downloadmeta-linaro-8aa1a29d70db7d7de635c525e1134df6863e3bb3.tar.gz
linaro-image-minimal-initramfs: use devtmpfs over mknod to increase portability
Change-Id: I9b215b779d8273027d8c950f85d6955186ae1c8a Signed-off-by: Tyler Baker <tyler.baker@linaro.org>
Diffstat (limited to 'meta-linaro')
-rwxr-xr-xmeta-linaro/recipes-core/initrdscripts/files/init-boot-linaro.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/meta-linaro/recipes-core/initrdscripts/files/init-boot-linaro.sh b/meta-linaro/recipes-core/initrdscripts/files/init-boot-linaro.sh
index b342ce63..eadb2754 100755
--- a/meta-linaro/recipes-core/initrdscripts/files/init-boot-linaro.sh
+++ b/meta-linaro/recipes-core/initrdscripts/files/init-boot-linaro.sh
@@ -6,21 +6,13 @@ PS1="linaro-test [rc=$(echo \$?)]# "
export HOME PS1 PATH
early_setup() {
- mkdir /proc /sys /tmp /run
+ mkdir -p /proc /sys /tmp /run
mount -t proc proc /proc
mount -t sysfs sysfs /sys
+ mount -t devtmpfs none /dev
ln -s /run /var/run
- # ARM AMBA SoCs
- mknod /dev/ttyAMA0 c 204 64
- mknod /dev/ttyAMA2 c 204 66
- # Samsung ARM SoCs
- mknod /dev/ttySAC2 c 204 66
- # TI OMAP SoCs
- mknod /dev/ttyO0 c 249 0
- mknod /dev/ttyO2 c 249 2
-
chmod 0666 /dev/tty*
chown root:tty /dev/tty*
}