Android Customizing IMX8 U-Boot

From Variscite Wiki
Revision as of 01:41, 23 January 2020 by Admin (talk | contribs) (Created page with "<!-- Set release according to "release" parameter in URL and use RELEASE_N7.1.1_1.0.0_VAR-SOM-MX6 as default --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- --> {{#l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Android - Customizing U-boot

Overview

This section explains how to customize bootloader and update it on VAR-SOM-MX6 platform via adb.

Making changes to U-boot

Setting the permission in Boot image

Edit U-Boot command line arguments

https://github.com/varigit/uboot-imx/blob/n7.1.1_1.0.0_ga_var01/ Change following macro

#define CONFIG_EXTRA_ENV_SETTINGS \
	"bootargs=" \
	.......
       ....\0" 

And append "androidboot.selinux=permissive\0" to the kernel

#define CONFIG_EXTRA_ENV_SETTINGS \
	"bootargs=" \
	.......
       androidboot.selinux=permissive\0"

Compile U-Boot

Compile the new U-Boot

Update U-Boot

Flash the binaries following Android Recovery SD card and replacing your binaries in /opt/images/Android/

The updated U-Boot should have the SeLinux in permissive mode.