Difference between revisions of "Internal Used/By-pass advloader"
From ESS-WIKI
Line 2: | Line 2: | ||
== Yocto 1.5 == | == Yocto 1.5 == | ||
+ | |||
You can download patch file as below: | You can download patch file as below: | ||
Line 7: | Line 8: | ||
u-boot-imx/arch/arm/lib/board.c | u-boot-imx/arch/arm/lib/board.c | ||
+ | |||
Index: arch/arm/lib/board.c | Index: arch/arm/lib/board.c | ||
=================================================================== | =================================================================== | ||
Line 33: | Line 35: | ||
+ | |||
+ | build u-boot | ||
+ | make u-boot.imx -j4 | ||
+ | Then you can put this file to mfgtool folder | ||
== Yocto 2.1 == | == Yocto 2.1 == | ||
= Modify mfgtool UCL2.xml = | = Modify mfgtool UCL2.xml = |
Revision as of 09:13, 22 August 2017
Modify and Build U-boot
Yocto 1.5
You can download patch file as below:
File:bypass_advloader_Yocto_1.5.patch
u-boot-imx/arch/arm/lib/board.c
Index: arch/arm/lib/board.c =================================================================== --- arch/arm/lib/board.c (revision 2241) +++ arch/arm/lib/board.c (working copy) @@ -411,7 +411,6 @@ switch(dev) { case 1: - default: /* booting from SD*/ printf("booting from SD\n"); setenv("mmcdev", "0"); @@ -448,6 +447,11 @@ if(emmc_exist) setenv("mmcdev", "1"); break; #endif + default: + printf("Default boot device\n"); + printf("booting from SD\n"); + setenv("mmcdev", "1"); + break; } /*record ddr bit, 32 or 64 bit*/
build u-boot
make u-boot.imx -j4
Then you can put this file to mfgtool folder