Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Latest commit

 

History

History
33 lines (24 loc) · 1.35 KB

level1.md

File metadata and controls

33 lines (24 loc) · 1.35 KB

Working with the first level of Amlogic/Rockchip/AllWinner firmware


Instructions:

Note: run bat or sh depending on HOST OS

  1. To unpack the firmware, take the amlogic/rockchip/allwinner flash image (.img) file and put it in the in folder. If the name is confusing, rename it to something simple, like S905X.img/RK2550.img, avoid using space.

  2. run unpack/rkunpack/awunpack and select 1

  3. In the level1 folder, we can replace/edit the files:

  • image.cfg - config file to compile amlogic firmware
  • aml_sdc_burn.UBOOT - bootloader
  • DDR.USB - bootloader
  • boot.PARTITION - kernel (boot_a for some A/B firmwares)
  • _aml_dtb.PARTITION - kernel settings file
  • recovery.PARTITION - recovery (some A/B devices doesn't have recovery partition, its embedded in boot)
  • logo.PARTITION - logo (sometimes depends on the loader).
  • oem.PARTITION -
  • odm.PARTITION -
  • product.PARTITION -
  • system.PARTITION -
  • system_ext.PARTITION -
  • vendor.PARTITION - these 6 partitions contain system files. (partitions differ per firmwares/android versions)
  • super.PARTITION - (mainly for a/b device) - contains 4 or more system partitions inside
  1. run pack/rkpack/awpack, select 1 and in out folder we can take the finished img file or to create full OTA, run pack_level1_fota

note: A/B devices will be having partitions like '_a.PARTITION' or 'b.PARTITION' in the filename