Difference between revisions of "Internal Used/By-pass advloader"

From ESS-WIKI
Jump to: navigation, search
(Created page with "= Modify and Build U-boot = == Yocto 1.5 == == Yocto 2.1 == = Modify mfgtool UCL2.xml =")
 
Line 1: Line 1:
 
= Modify and Build U-boot =
 
= Modify and Build U-boot =
 +
 
== Yocto 1.5 ==
 
== 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*/
 +
 +
 
== Yocto 2.1 ==
 
== Yocto 2.1 ==
  
 
= Modify mfgtool UCL2.xml =
 
= Modify mfgtool UCL2.xml =

Revision as of 09:12, 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*/


Yocto 2.1

Modify mfgtool UCL2.xml