-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6f7b391
commit 9aa2fc0
Showing
27 changed files
with
657 additions
and
134 deletions.
There are no files selected for viewing
Submodule sunxi-tools
updated
29 files
+19 −13 | Makefile | |
+5 −7 | README.md | |
+ − | bin/fel-pio.bin | |
+0 −2 | bin/fel-pio.nm | |
+0 −49 | fel-copy.c | |
+12 −14 | fel-gpio | |
+0 −63 | fel-pio.c | |
+0 −28 | fel-pio.lds | |
+159 −80 | fel.c | |
+141 −0 | fel_lib.c | |
+10 −0 | fel_lib.h | |
+13 −0 | find-arm-gcc.sh | |
+6 −0 | soc_info.c | |
+18 −0 | soc_info.h | |
+35 −0 | thunks/Makefile | |
+20 −0 | thunks/README.md | |
+17 −0 | thunks/clrsetbits.S | |
+9 −0 | thunks/clrsetbits.h | |
+0 −0 | thunks/fel-to-spl-thunk.S | |
+13 −0 | thunks/fel-to-spl-thunk.h | |
+70 −0 | thunks/memcpy.S | |
+55 −0 | thunks/memcpy.h | |
+33 −0 | thunks/objdump_to_h.awk | |
+41 −0 | thunks/readl_writel.S | |
+24 −0 | thunks/readl_writel.h | |
+24 −0 | thunks/rmr-thunk.S | |
+13 −0 | thunks/rmr-thunk.h | |
+0 −0 | thunks/sid_read_root.S | |
+0 −0 | thunks/sid_read_root.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
rm -f "./etc/preinit.d/p0000_config" | ||
cd "./bin/" | ||
./busybox --list | xargs -n1 ln -s "/bin/busybox" 2>/dev/null || true | ||
./busybox --list | xargs -n1 ln -s "busybox" 2>/dev/null || true | ||
cd ".." | ||
return 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
return 0 | ||
no-uninstall |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
#!/bin/sh | ||
uistop 1>/dev/null 2>&1 | ||
/opt/test/bin/test-menu </dev/null | ||
uistart | ||
exec /opt/test/bin/test-menu </dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
squashfs | ||
ext4 | ||
ext3 | ||
ext2 | ||
ntfs | ||
vfat | ||
exfat | ||
cramfs | ||
fuseblk | ||
iso9660 | ||
msdos | ||
udf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,3 +33,5 @@ fi | |
export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM | ||
|
||
umask 022 | ||
|
||
eval $(resize) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/sh | ||
|
||
cd /bin | ||
busybox --list | busybox xargs -n1 busybox ln -s "busybox" 2>/dev/null | ||
cd / | ||
|
||
# devtmpfs does not get automounted for initramfs | ||
mkdir -p /dev /proc /sys | ||
mount -t devtmpfs devtmpfs /dev | ||
exec 0</dev/console | ||
exec 1>/dev/console | ||
exec 2>/dev/console | ||
mount -t proc proc /proc | ||
mount -t sysfs sys /sys | ||
|
||
keyfile="/key-file" | ||
for i in $(cat /proc/cmdline); do | ||
if [ "$i" = "ro" ]; then | ||
READONLY="y" | ||
elif [ "${i#root=}" != "$i" ]; then | ||
ROOTFS="${i#root=}" | ||
elif [ "$i" = "decrypt" ]; then | ||
DECRYPT="y" | ||
elif [ "${i#hakchi-key-file=base64:}" != "$i" ]; then | ||
echo "${i#hakchi-key-file=base64:}" | base64 -d >"$keyfile" | ||
fi | ||
done | ||
[ -f "$keyfile" ] || sntool sunxi_flash ramdisk | cpio -iu "$(basename "$keyfile")" 2>/dev/null | ||
|
||
MOUNT_OPTS="noatime" | ||
[ "${READONLY}" = "y" ] && MOUNT_OPTS="ro,${MOUNT_OPTS}" | ||
|
||
if [ "${DECRYPT}" = "y" ]; then | ||
[ "${READONLY}" = "y" ] && READONLY="--readonly" | ||
cryptsetup open "${ROOTFS}" root-crypt "${READONLY}" --type plain --cipher aes-xts-plain --key-file "$keyfile" | ||
ROOTFS="/dev/mapper/root-crypt" | ||
fi | ||
|
||
mountpoint="/newroot" | ||
mkdir -p "$mountpoint" | ||
mount -o "${MOUNT_OPTS}" "${ROOTFS}" "$mountpoint" | ||
|
||
[ -f "/hakchi/init" ] && sh "/hakchi/init" | ||
|
||
mount --move /dev "$mountpoint/dev" | ||
mount --move /proc "$mountpoint/proc" | ||
mount --move /sys "$mountpoint/sys" | ||
exec switch_root "$mountpoint" /sbin/init |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.