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...")
 
No edit summary
 
(3 intermediate revisions by one other user not shown)
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/
 
Sync and safely remove the SD card after replacing image.
 
= Boot And Flash new updated bootloader =
 
== Change the DIP switch settings to SD boot mode depending upon your HW==
== Flash the Android images ==
* Note: Be careful this will wipe out your Android partitions and re-create it on eMMC / NAND.

Latest revision as of 10:34, 26 December 2019

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/

Sync and safely remove the SD card after replacing image.

Boot And Flash new updated bootloader

Change the DIP switch settings to SD boot mode depending upon your HW

Flash the Android images

  • Note: Be careful this will wipe out your Android partitions and re-create it on eMMC / NAND.