This repository has been archived by the owner on May 27, 2022. It is now read-only.
forked from koush/AnyKernel
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AnyKernel: Modify for U8800; removed unneeded binaries and modules; a…
…dded older mkbootimg and unpackbootimg binaries; added newer update-binary;
- Loading branch information
Showing
8 changed files
with
7 additions
and
13 deletions.
There are no files selected for viewing
Binary file not shown.
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,18 +1,8 @@ | ||
ui_print("AnyKernel Updater by Koush."); | ||
ui_print("Extracting System Files..."); | ||
set_progress(1.000000); | ||
mount("MTD", "system", "/system"); | ||
package_extract_dir("system", "/system"); | ||
unmount("/system"); | ||
assert(getprop("ro.product.device") == "u8800" || getprop("ro.build.product") == "u8800"); | ||
ui_print("Extracting Kernel files..."); | ||
package_extract_dir("kernel", "/tmp"); | ||
ui_print("Installing kernel..."); | ||
set_perm(0, 0, 0777, "/tmp/dump_image"); | ||
set_perm(0, 0, 0777, "/tmp/mkbootimg.sh"); | ||
set_perm(0, 0, 0777, "/tmp/mkbootimg"); | ||
set_perm(0, 0, 0777, "/tmp/unpackbootimg"); | ||
run_program("/tmp/dump_image", "boot", "/tmp/boot.img"); | ||
run_program("/tmp/unpackbootimg", "/tmp/boot.img", "/tmp/"); | ||
run_program("/tmp/mkbootimg.sh"); | ||
write_raw_image("/tmp/newboot.img", "boot"); | ||
ui_print("Done!"); |
Binary file not shown.
Binary file not shown.
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,6 +1,10 @@ | ||
#!/sbin/sh | ||
echo \#!/sbin/sh > /tmp/createnewboot.sh | ||
echo /tmp/mkbootimg --kernel /tmp/zImage --ramdisk /tmp/boot.img-ramdisk.gz --cmdline \"$(cat /tmp/boot.img-cmdline)\" --base $(cat /tmp/boot.img-base) --output /tmp/newboot.img >> /tmp/createnewboot.sh | ||
mkdir /boot | ||
mount /dev/block/mmcblk0p1 /boot | ||
/tmp/unpackbootimg -i /boot/image/boot.img -o /tmp/ | ||
echo /tmp/mkbootimg --kernel /tmp/zImage --ramdisk /tmp/boot.img-ramdisk.gz --cmdline \"$(cat /tmp/boot.img-cmdline)\" --base $(cat /tmp/boot.img-base) --pagesize $(printf "%d" 0x`cat /tmp/boot.img-pagesize`) --output /tmp/newboot.img >> /tmp/createnewboot.sh | ||
chmod 777 /tmp/createnewboot.sh | ||
/tmp/createnewboot.sh | ||
return $? | ||
cp /tmp/newboot.img /boot/image/boot.img | ||
umount /boot |
Binary file not shown.
Binary file not shown.
Binary file not shown.