Android recovery mode to update system

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Android recovery mode to update system

2,037 Views
JayZhang
Contributor I

Hi all, 

I have followed FSL user guider to make update.zip for updating system in recovery mode. 

But I have the error:

Finding update package...
I:Update location: /sdcard/update.zip
Opening update package...
I:1 key(s) loaded from /res/keys
Verifying update package...
E:failed to seek in /sdcard/update.zip (Invalid argument)
I:verify_file returned 1
E:signature verification failed
Installation aborted.

This is my shell script to do :

##################################################
rm -r *.zip
rm -r res
mkdir res

# Adding packages
#----------------------------------------------------------------------
rm -rf /home/jay/recovery/system/u-boot.bin
echo -e "\033[31;1m Add u-boot.bin (Only add when required) [y/n]?\033[0m"
read input
if [ "$input" = "y" ]; then
cp -rf /home/jay/Project/ljzj/bootable/bootloader/uboot-imx/u-boot.bin /home/jay/recovery/system/
fi

rm -rf /home/jay/recovery/system/uImage
echo -e "\033[34;1m Add uImage [y/n]?\033[0m"
read input
if [ "$input" = "y" ]; then
cp -rf /home/jay/Project/ljzj/kernel_imx/arch/arm/boot/uImage /home/jay/recovery/system/
fi

rm -rf /home/jay/recovery/system/uramdisk.img
echo -e "\033[34;1m Add ramdisk [y/n]?\033[0m"
read input
if [ "$input" = "y" ]; then
cp -rf /home/jay/Project/ljzj/out/target/product/imx53_smd/uramdisk.img /home/jay/recovery/system/
fi

rm -rf /home/jay/recovery/system/system.img
echo -e "\033[34;1m Add Android system [y/n]?\033[0m"
read input
if [ "$input" = "y" ]; then
cp -rf /home/jay/Project/ljzj/out/target/product/imx53_smd/system.img /home/jay/recovery/system/
fi

chmod 777 /home/jay/Project/ljzj/out/host/linux-x86/framework/dumpkey.jar
/home/jay/Project/ljzj/out/host/linux-x86/framework/dumpkey.jar /home/jay/Project/ljzj/build/target/product/security/testkey.x509.pem > res/keys
zip recovery.zip -r ./META-INF/ ./system/ ./res/
java -jar /home/jay/Project/ljzj/out/host/linux-x86/framework/signapk.jar -w /home/jay/Project/ljzj/build/target/product/security/testkey.x509.pem /home/jay/Project/ljzj/build/target/product/security/testkey.pk8 recovery.zip recovery_signed.zip

anyone had the same problem or can solve this?

Sorry for my poor English...

Labels (1)
0 Kudos
0 Replies