Android Customizing IMX8 U-Boot: Difference between revisions

From Variscite Wiki
(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...")
 
Line 7: Line 7:


=Making changes to U-boot=
=Making changes to U-boot=
==Setting the permission in Boot image==
==Making Changes to U-boot config==
$ cd {{#var:BUILD_FOLDER}}/{{#var:BUILD_FOLDER_ANDROID}}/vendor/variscite/uboot-imx/
$ make mrproper
$ make {{#var:U-BOOT_SD_DEFCONFIG}}
$ make menuconfig
Navigate the menu and select the desired u-boot functionalities, save the new configuration and exit.<br>
Then, save the new configuration as the default configuration:<br>
$ make savedefconfig
 
===Edit U-Boot command line arguments===
===Edit U-Boot command line arguments===
https://github.com/varigit/uboot-imx/blob/{{#var:U-BOOT_BRANCH}}/{{#var:U-BOOT_ANDROID_CONFIG_FILE}}
https://github.com/varigit/uboot-imx/blob/{{#var:U-BOOT_BRANCH}}/{{#var:U-BOOT_ANDROID_CONFIG_FILE}}

Revision as of 01:44, 23 January 2020

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

Making Changes to U-boot config

$ cd ~/var_n_711_100/n_711_100_build/vendor/variscite/uboot-imx/
$ make mrproper
$ make mx6var_som_sd_android_defconfig
$ make menuconfig

Navigate the menu and select the desired u-boot functionalities, save the new configuration and exit.
Then, save the new configuration as the default configuration:

$ make savedefconfig

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.