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

Latest commit

 

History

History
36 lines (25 loc) · 1.14 KB

level2.md

File metadata and controls

36 lines (25 loc) · 1.14 KB

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


Instructions:

Note: run bat or sh depending on HOST OS

  1. To work with the second level, you must unpack level 1 first

  2. run unpack/rkunpack/awunpack and select 2

  3. In the level2 folder, we replace/correct the files in the folders:

  • system - system section
  • vendor - vendor section
  • product - product section
  • system_ext - system_ext section
  • odm - odm section
  • oem - oem section
  • system_* - system A/B section
  • vendor_* - vendor A/B section
  • product_* - product A/B section
  • systemext* - product A/B section
  • odm_* - odm A/B section
  • oem_* - oem A/B section
  1. run pack/rkpack/awpack and select level 2

  2. then to pack level 1 run pack and select level1 or to create full OTA, run pack_level1_fota

Notes:

  • If you are adding new files or folders that require special permissions (by default, new files and folders are assigned permissions 0644 and 0755 when packing) then write these rights in *_fs_config.
  • The *_file_contexts files are required for setting SELinux privileges
  • And the *_size files set the size of a particular partition.