From c55e9389f577a2713ccea76ffc0bae5848e0db92 Mon Sep 17 00:00:00 2001 From: Jamey Hicks Date: Fri, 3 Jun 2016 14:13:14 -0400 Subject: [PATCH] fixed init rc for new kernel --- data/init.rc | 6 ++++++ data/init.xilinxzynqplatform.rc | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/data/init.rc b/data/init.rc index 65da121..0786935 100644 --- a/data/init.rc +++ b/data/init.rc @@ -12,6 +12,12 @@ on early-init # Set init and its forked children's oom_adj. write /proc/1/oom_adj -16 + loglevel 3 + + mkdir /devtmpfs 0775 root system + mount devtmpfs none /devtmpfs + write /devtmpfs/console "mounting devtmpfs" + start ueventd # create mountpoints diff --git a/data/init.xilinxzynqplatform.rc b/data/init.xilinxzynqplatform.rc index 31b5d4b..c7ea43c 100644 --- a/data/init.xilinxzynqplatform.rc +++ b/data/init.xilinxzynqplatform.rc @@ -3,12 +3,23 @@ on early-init mkdir /mnt/sdcard 0000 system system # for backwards compatibility - mount vfat /dev/block/mmcblk0p1 /mnt/sdcard rw wait + write /devtmpfs/console "waiting for /dev/console" + wait /dev/console 20 + write /devtmpfs/console "waiting for /dev/block" + wait /dev/block 20 + write /devtmpfs/console "waiting for /dev/block/mmcblk0p1" + wait /dev/block/mmcblk0p1 + write /devtmpfs/console "waiting for /devtmpfs/mmcblk0p1" + wait /devtmpfs/mmcblk0p1 20 + mount vfat /devtmpfs/mmcblk0p1 /mnt/sdcard rw wait + write /devtmpfs/console "waiting for system.img" + wait /mnt/sdcard/system.img 20 mount ext4 loop@/mnt/sdcard/system.img /system rw wait mount ext4 loop@/mnt/sdcard/userdata.img /data rw nosuid nodev wait chown 0 /fpgajtag #doesn't exist chgrp 0 /fpgajtag chmod 4755 /fpgajtag + mkdir /mnt/sdcard/tmp 0000 system system mount tmpfs tmpfs /mnt/sdcard/tmp mkdir /mnt/sdcard1 0000 system system mount debugfs debugfs /sys/kernel/debug