Android Customizing IMX8 U-Boot
From Variscite Wiki
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.