SNSO 发表于 2022-7-12 11:26:47

ROC-RK3588S-PC OTA升级失败

OTA升级失败的log
Installing update...
I:old spl: 2022-04-05 new spl: 2022-04-05 CHECK passes
SELinux: Loaded file_contexts
mmapped 2 ranges
Source: Vizum/rk3588/rk3588:12/SP2A.220405.004/yangjie07112024:userdebug/release-keys
Target: Vizum/rk3588/rk3588:12/SP2A.220405.004/yangjie07112226:userdebug/release-keys
Verifying current system...
Partition contents don't have the expected checksum
Failed to read "/cache/saved.file": No such file or directory
Both of partition contents and backup don't have the expected checksum
script aborted: E3005: "EMMC:/dev/block/by-name/boot:39890944:72c08397343921fac820ece27581aff86a946a9f" or "EMMC:/dev/block/by-name/boot:39890944:f3bd0947327a5236c8459acf9348c16ed0c1b195" has unexpected contents.
E:Error in @/cache/recovery/block.map (status 1)

ensure_path_mounted path=/cache/recovery/uncrypt_status
I:current maximum temperature: 32384
I:@/cache/recovery/block.map
0
time_total: 1
retry: 0
source_build: eng.yangji.20220711.202550
target_build: eng.yangji.20220711.222644
error: 3005
uncrypt_time: 0
temperature_start: 31461
temperature_end: 32384
temperature_max: 32384

Installation aborted.
I:Saving locale "zh-CN"
ensure_path_mounted path=/cache/recovery/last_locale
ensure_path_mounted path=/cache/recovery/last_log
ensure_path_mounted path=/cache/recovery/last_kmsg
ensure_path_mounted path=/cache/recovery/log
ensure_path_mounted path=/cache/recovery/last_log
ensure_path_mounted path=/cache/recovery/last_install
ensure_path_mounted path=/cache/recovery/command



SNSO 发表于 2022-7-12 11:35:56

OTA修改操作
1. 编译修改
--- a/FFTools/make.sh
+++ b/FFTools/make.sh
-./make.sh $UBOOT_DEFCONFIG --spl-new
+./make.sh $UBOOT_DEFCONFIG --spl-new--rollback-index-uboot 1--burn-key-hash

+#build dist
+echo -n "${color_success}make dist -j$MAKE_THEARD" && echo "${color_reset}"
+make dist -j$MAKE_THEARD

-./mkimage.sh
+echo -n "${color_success}./mkimage.sh ota" && echo "${color_reset}"
+#./mkimage.sh
+./mkimage.sh ota
2. 保存升级包
mv ./out/target/product/roc_rk3588s_pc/obj/PACKAGING/target_files_intermediates/roc_rk3588s_pc-target_files-eng.*.zip version.zip
3. 制作升级包
./out/host/linux-x86/bin/ota_from_target_files --block -v-i old_version.zip -p out/host/linux-x86 new_version.zip update.zip

jpchen 发表于 2022-7-18 08:58:49

SNSO 发表于 2022-7-12 11:35
OTA修改操作
1. 编译修改
--- a/FFTools/make.sh


可以参考如下文章
https://wenku.baidu.com/view/3a6e18a2bad528ea81c758f5f61fb7360b4c2b1d.html
页: [1]
查看完整版本: ROC-RK3588S-PC OTA升级失败