Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Zero/dev/LineageOS"

< Zero‎ | dev
(Created page with "{{zero_header}} {{Languages|zero/dev/LineageOS}} Radxa Zero > Development > Build LineageOS === Build custom LineageO...")
 
(Build Android TV flavor)
 
Line 25: Line 25:
 
3. Run <code>source build/envsetup.sh</code>.
 
3. Run <code>source build/envsetup.sh</code>.
  
4. Run <code>breakfast lineage_radxa0-eng</code> instead of <code>breakfast I01WD</code>.
+
4. Run <code>breakfast radxa0</code> instead of <code>breakfast I01WD</code>.
  
 
5. No need to run <code>extract-files.sh</code>.
 
5. No need to run <code>extract-files.sh</code>.

Latest revision as of 12:06, 14 January 2022

    Radxa Zero >  Development >  Build LineageOS

Build custom LineageOS image

Prerequisite: You will need a Linux (preferably Ubuntu 20.04) machine with at least 16GB of RAM, at least 100GB of disk space (SSD), and at least 4 CPU threads.

Additionally you will need a lot of time. The whole process could take days to finish depending on your hardware.

Build Android TV flavor

You can then follow any generic LineageOS build guide like this. However there are a few things specific to Radxa Zero:

1. Choose lineage-18.1 branch.

2. After running repo sync, edit .repo/local_manifests/roomservice.xml and add the following line before </manifest>:

<project depth="1" name="TheMuppets/proprietary_vendor_amlogic" path="vendor/amlogic" />

Then run repo sync again.

3. Run source build/envsetup.sh.

4. Run breakfast radxa0 instead of breakfast I01WD.

5. No need to run extract-files.sh.

6. You will need to build the bootloader with the following commands:

git clone https://github.com/Stricted/deadpool_u-boot_build ~/deadpool_u-boot_build
cd ~/deadpool_u-boot_build
./build_radxa0.sh
cp uboot-bins/u-boot.bin ~/android/lineage/device/radxa/radxa0/factory

7. Run croot.

8. Run m aml_upgrade back inside LineageOS instead of brunch I01WD.

This will get you an Android TV build of LineageOS 18.1, located at out/target/product/radxa0/aml_upgrade_package.img. You can flash it with aml-flash-tool.

Build standard Android

To build normal Android, please change the content of device/radxa/radxa0/lineage_radxa0.mk to match this gist, and change this line from device/amlogic/g12-common/BoardConfigCommon.mk:

BOARD_KERNEL_CMDLINE := androidboot.dtbo_idx=0 androidboot.boot_devices=ffe07000.emmc otg_device=1

to this:

BOARD_KERNEL_CMDLINE := androidboot.dtbo_idx=0 androidboot.boot_devices=ffe07000.emmc otg_device=1 androidboot.selinux=permissive

If you already built the Android TV image, you only need to run breakfast lineage_radxa0, croot and m aml_upgrade to generate the image in the same output location.

Need help?

For more details and discussion, please visit our forum thread.