imx8mp ota upgrade problem

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

imx8mp ota upgrade problem

3,265 Views
jieh朱
Contributor III

Hi

I refer to ANDROID_USERS_GUIDE.pdf for OTA upgrade, use make otapackage -j4 to compile and generate evk_8mp-ota-**.zip, then Unzip evk_8mp-ota-**.zip to get payload.bin and payload_properties.txt, push payload.bin to Locally, enter update_engine_client --payload=file:///data/ota_package/payload.bin --update -- in the command
headers="FILE_HASH=0fSBbXonyTjaAzMpwTBgM9AVtlBeyOigpCCgkoOfHKY=
FILE_SIZE=379074366
METADATA_HASH=Icrs3NqoglzyppyCZouWKbo5f08IPokhlUfHDmz77WQ=
METADATA_SIZE=46866", but it reported an error, such as the log in the attachment, what might be the reason for this
Looking forward to your reply

0 Kudos
Reply
8 Replies

3,244 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

照搬手册上的命令格式会出错,建议使用这种格式:

update_engine_client --payload=file:///data/ota_package/payload.bin --update \ 
--headers="FILE_HASH=TT00vk5kiMvwz35A9UqgihgcRCS/UJwvueWiz/QIpbQ= 
FILE_SIZE=536752574 
METADATA_HASH=3rN/LK38ETwUjreGvkYfTF5Vm9/mg1ue5g3Y82xCEiU= 
METADATA_SIZE=53975"

 

0 Kudos
Reply

3,241 Views
jieh朱
Contributor III

你好

我采用你给的格式,还是没会报错,如附件的log。下面的截图是我输入的命令

jieh_0-1652061901344.png

update_engine_client --payload=file:///data/ota_package/payload.bin --update \ --headers="FILE_HASH=Y6FhWFc0caEjkSXbdKIMd51YKHcwQ7VPk4qgvoQpTDE= FILE_SIZE=550595430 METADATA_HASH=kys8bsucjWq+bYFo3pDQ+Ej3DpF41SHovALyWsMBe2Y= METADATA_SIZE=56686"

0 Kudos
Reply

3,238 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Qmiller_0-1652062521003.png

你再调整一下格式,就是格式不对,导致获取不到update信息

 

0 Kudos
Reply

3,236 Views
jieh朱
Contributor III

我看到手册上也说格式的问题,但是我已经修改了很多次,还是没解决这个问题

jieh_0-1652063050668.png

 

0 Kudos
Reply

3,210 Views
jieh朱
Contributor III

你好!

我修改了格式,现在可以用logcat看到更新的日志,但是当它打印update_engine: [INFO:update_attempter_android.cc(535)] Update successfully applied, waiting to reboot.后,并没有重启,当我等待了一会,手动重启并没有看到升级后的内容,

0 Kudos
Reply

3,201 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

手动重启是通过软件还是硬件?

0 Kudos
Reply

3,192 Views
jieh朱
Contributor III

手动重启可以看到系统从boot_a切换到了boot_b,怎么样才可以让系统升级完自动重启,或者android界面上有弹窗提示

0 Kudos
Reply

3,189 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

文档里有,用SystemUpdate app,这只是aosp的一个demo,我记得也是已经融合进了系统设置里面。

0 Kudos
Reply