AK3: fix unpackbootimg/unpackelf suffixes, fix elf to bootimg repack
- unpackbootimg/unpackelf kernel+ramdisk suffixes were corrected to match their corresponding mkbootimg argument in my latest forked tools (AIK-mobile v3.8) - fix repack from unpackelf to mkbootimg broken base value introduced with AK3 rewrite
This commit is contained in:
1 file changed
+3
-3
+3
-3
@@ -92,8 +92,8 @@ split_boot() {
|
||||
fi;
|
||||
$bin/unpackelf -i $bootimg;
|
||||
[ $? != 0 ] && dumpfail=1;
|
||||
mv -f boot.img-zImage kernel.gz;
|
||||
mv -f boot.img-ramdisk.cpio.gz ramdisk.cpio.gz;
|
||||
mv -f boot.img-kernel kernel.gz;
|
||||
mv -f boot.img-ramdisk ramdisk.cpio.gz;
|
||||
mv -f boot.img-cmdline cmdline.txt 2>/dev/null;
|
||||
if [ -f boot.img-dt -a ! -f "$bin/elftool" ]; then
|
||||
case $(od -ta -An -N4 boot.img-dt | sed -e 's/ del//' -e 's/ //g') in
|
||||
@@ -304,7 +304,7 @@ flash_boot() {
|
||||
$bin/rkcrc -k $ramdisk $home/boot-new.img;
|
||||
elif [ -f "$bin/mkbootimg" -a -f "$bin/unpackelf" -a -f boot.img-base ]; then
|
||||
[ "$dt" ] && dt="--dt $dt";
|
||||
$bin/mkbootimg --kernel $kernel --ramdisk $ramdisk --cmdline "$cmdline" --base $home --pagesize $pagesize --kernel_offset $kernel_offset --ramdisk_offset $ramdisk_offset --tags_offset "$tags_offset" $dt --output $home/boot-new.img;
|
||||
$bin/mkbootimg --kernel $kernel --ramdisk $ramdisk --cmdline "$cmdline" --base $base --pagesize $pagesize --kernel_offset $kernel_offset --ramdisk_offset $ramdisk_offset --tags_offset "$tags_offset" $dt --output $home/boot-new.img;
|
||||
else
|
||||
[ "$kernel" ] && cp -f $kernel kernel;
|
||||
[ "$ramdisk" ] && cp -f $ramdisk ramdisk.cpio;
|
||||
|
||||
Reference in new issue
Block a user