diff options
author | Ryan Harkin <ryan.harkin@linaro.org> | 2015-06-09 11:06:47 +0100 |
---|---|---|
committer | Ryan Harkin <ryan.harkin@linaro.org> | 2015-06-09 11:06:47 +0100 |
commit | b57c098ca0561ff39aa70b3fe2c795b7a0108717 (patch) | |
tree | 63837d4fcc9f4f3597b6dfffd3993aa31a397da5 |
Add files needed for ramdisk creationjuno
Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | files.txt | 15 | ||||
-rwxr-xr-x | init.sh | 41 |
3 files changed, 58 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d3cd217 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +busybox +*.img diff --git a/files.txt b/files.txt new file mode 100644 index 0000000..997342e --- /dev/null +++ b/files.txt @@ -0,0 +1,15 @@ +dir /dev 755 0 0 +nod /dev/console 644 0 0 c 5 1 +nod /dev/loop0 644 0 0 b 7 0 +dir /bin 755 1000 1000 +file /bin/busybox ./busybox 755 0 0 +slink /bin/sh /bin/busybox 777 0 0 +slink /linuxrc /bin/busybox 777 0 0 +dir /proc 755 0 0 +dir /sys 755 0 0 +dir /mnt 755 0 0 +dir /usr 755 0 0 +dir /sbin 755 0 0 +dir /usr/bin 755 0 0 +dir /usr/sbin 755 0 0 +file /init ./init.sh 777 0 0 @@ -0,0 +1,41 @@ +#!/bin/sh + +# Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# Redistributions of source code must retain the above copyright notice, this +# list of conditions and the following disclaimer. +# +# Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +# Neither the name of ARM nor the names of its contributors may be used +# to endorse or promote products derived from this software without specific +# prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. + +#Mount things needed by this script +/bin/busybox mount -t proc proc /proc +/bin/busybox mount -t sysfs sysfs /sys +echo "init.sh" + +#Create all the symlinks to /bin/busybox +/bin/busybox --install -s + +mdev -s + +exec sh |