Rockchip Android Firmware

0 views
Skip to first unread message

Giovanni Sealy

unread,
Aug 3, 2024, 4:18:34 PM8/3/24
to brokimdoca

I am gonna implement ota-update system on AOSP for rockchip. This is source code repo - -androidActually, my ROM has a few customized parts, but almost similar to the above AOSP.I would like someone to let me know if it is possible to implement ota-update with the source code, and ideally give me valuable tips such as references, or step-by-step guide for that if it's possible.My ROM is based on Android 5.0 lollipop.

This is the app that checks for OTA images in a server, downloads and installs them.
By default, the url is defined with ro.product.ota.host prop, but you can modify the whole process.

Server side, there is a Java app which you deploy in Apache Tomcat instance.
If you don't have this, contact your Rockchip representative.
Alternatively, you can develop your own server code, since it doesn't do anything fancy, it just provides a way to return some specific OTA zip file when the device requests it.

When the BootRom code fails to verify bootloader, it will boot into MaskRom mode, which waits for host to send bootloader code through USB, then we can use upgrade_tool(provided by rockchip) to sned a bootloader and make it take control.

This method can help you update system via sd-card.
Insert your sd-card and reset the device.As we said in boot-sequence, device will detect sd-card and boot in it.
So we can use this way to boot in a ramdisk and flash firmware.

To make update safely, you can use a backup for kernel.
You can save two images(zimage_a zimage_b) in boot partition, and decide which one to use by extlinux.conf.
If you are worried that fatfs may be easily brokenyou can use a,b partion and use bootable flag to determind which one to use.

c80f0f1006
Reply all
Reply to author
Forward
0 new messages