Skip to content

Commit

Permalink
fixed init rc for new kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
jameyhicks committed Jun 3, 2016
1 parent 0f72d6c commit c55e938
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
6 changes: 6 additions & 0 deletions data/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 12 additions & 1 deletion data/init.xilinxzynqplatform.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c55e938

Please sign in to comment.