rootfs: add /init to make ram boot working, use fakeboot, update README.md

This commit is contained in:
Jaroslav Kysela 2015-03-27 14:37:42 +01:00
parent 71f9800e98
commit 8c760debc6
3 changed files with 11 additions and 2 deletions

View File

@ -14,7 +14,7 @@ all: kernel-axe-modules kernel
# #
fs.cpio: fs.cpio:
tools/do_min_fs.py fakeroot tools/do_min_fs.py
# #
# kernel # kernel

View File

@ -1 +1,7 @@
# satip-axe # satip-axe
Requirements:
- git, python
- STLinux 2.4 (all-sh4-glibc) - http://www.stlinux.com - installed to /opt/STM/STLinux-2.4/
- fakeroot package/tools

View File

@ -179,6 +179,9 @@ def setup_busybox():
cmd = 'ln -s /bin/busybox fs/sbin/init' cmd = 'ln -s /bin/busybox fs/sbin/init'
run_cmd(cmd) run_cmd(cmd)
print cmd print cmd
cmd = 'ln -s /sbin/init fs/init'
run_cmd(cmd)
print cmd
# init.d/rcS # init.d/rcS
fd = open('fs/etc/init.d/rcS', 'wr') fd = open('fs/etc/init.d/rcS', 'wr')
@ -291,7 +294,7 @@ def make_dev():
print cmd print cmd
run_cmd(cmd) run_cmd(cmd)
run_cmd(' ln -s fs/dev/ram1 fs/dev/ram ') run_cmd(' ln -s ram1 fs/dev/ram ')
#------------------------------------------------ #------------------------------------------------