Android Customizing U-Boot: Difference between revisions

From Variscite Wiki
(Created page with "= Manual operations = == Build boot.img == When you perform changes to the kernel, you may build boot.img solely instead of building the whole Android. {{#ifeq: {{#var:ANDRO...")
 
Line 1: Line 1:
= Manual operations =
= Toolchain setup for manual U-Boot build =
 
== Build boot.img ==
When you perform changes to the kernel, you may build boot.img solely instead of building the whole Android.
{{#ifeq: {{#var:ANDROID_NXP_VERSION}} | O8.0.0_1.0.0 |
$ cd {{#var:BUILD_FOLDER_ANDROID}}
$ source build/envsetup.sh
$ lunch var_mx6-eng
or
$ lunch var_mx6-userdebug
|
$ cd {{#var:BUILD_FOLDER}}/{{#var:BUILD_FOLDER_ANDROID}}
$ source build/envsetup.sh
$ lunch var_mx6-eng
or
$ lunch var_mx6-user
}}
$ make bootimage
 
== Toolchain setup for manual U-Boot build ==
  $ export ARCH=arm
  $ export ARCH=arm
  {{#ifeq: {{#var:ANDROID_NXP_VERSION}} | O8.0.0_1.0.0 |
  {{#ifeq: {{#var:ANDROID_NXP_VERSION}} | O8.0.0_1.0.0 |
Line 31: Line 12:
||}}
||}}


== Manual build Bootloader  ==
= Manual build Bootloader  =


Change directory to U-Boot
Change directory to U-Boot
Line 52: Line 33:
$ make -j4
$ make -j4
</pre>
</pre>
<br/>This command will generate the U-Boot images 'SPL' and 'u-boot.img'.
<br/>This command will generate the U-Boot images 'SPL' and 'u-boot'.
 
= Flash newly created bootloader =
To flash the newly created SPL and u-boot images, replace the following files in the recovery SD card image.
 
SPL Images:
SPL-nand ---------------- NAND SPL
SPL-sd ------------------ eMMC / SD SPL
U-boot Images:
u-boot-var-imx6-nand.img - NAND U-boot
u-boot-var-imx6-sd.img --- eMMC / SD U-boot
 
Path Where to Replace Android Image: /opt/images/Android/

Revision as of 23:49, 31 December 2018

Toolchain setup for manual U-Boot build

$ export ARCH=arm
Setup the toolchain path to point to arm-eabi- tools in prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin
$ export CROSS_COMPILE=//prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-

Manual build Bootloader 

Change directory to U-Boot

$ cd //bootable/bootloader/uboot-imx

Execute following commands:

clean tree:
$ make mrproper

Choose build for SD card or NAND flash:
$ make mx6var_som_sd_android_defconfig
or
$ make mx6var_som_nand_android_defconfig

Build U-Boot:
$ make -j4


This command will generate the U-Boot images 'SPL' and 'u-boot'.

Flash newly created bootloader

To flash the newly created SPL and u-boot images, replace the following files in the recovery SD card image.

SPL Images:

SPL-nand ---------------- NAND SPL
SPL-sd ------------------ eMMC / SD SPL

U-boot Images:

u-boot-var-imx6-nand.img - NAND U-boot
u-boot-var-imx6-sd.img --- eMMC / SD U-boot

Path Where to Replace Android Image: /opt/images/Android/