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.
- Loading branch information
Koushik K. Dutta
authored and
Koushik K. Dutta
committed
Apr 12, 2010
0 parents
commit 891a9bc
Showing
10 changed files
with
3,484 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ui_print("One size fits all kernel updater: Written by Koush."); | ||
ui_print("Extracting System Files..."); | ||
set_progress(1.000000); | ||
mount("MTD", "system", "/system"); | ||
package_extract_dir("system", "/system"); | ||
unmount("/system"); | ||
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"); | ||
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", "--kernel", "/tmp/zImage", "--ramdisk", "/tmp/boot.img-ramdisk.img", "--cmdline", "console=ttyS2,115200n8 rw mem=244M@0x80C00000 init=/init ip=off brdrev=P3A_CDMA mtdparts=omap2-nand.0:640k@128k(mbm),384k@1408k(cdt),384k@3328k(lbl),384k@6272k(misc),3584k(boot),4608k(recovery),143744k(system),94848k(cache),268032k(userdata),2m(kpanic)", "--base", "0x10000000", "--output", "/tmp/newboot.img"); | ||
write_raw_image("/tmp/newboot.img", "boot"); | ||
ui_print("Done!"); |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.