Internal Used/By-pass advloader

From ESS-WIKI
Revision as of 09:13, 22 August 2017 by Tim.liang (talk | contribs)
Jump to: navigation, search

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

Yocto 2.1

Modify mfgtool UCL2.xml