[U-Boot] i.MX35PDK: Starting U-Boot from serial NOR-Flash

Hornung, Michael mhornung at init-ka.de
Mon Jul 9 15:11:41 CEST 2012


>On Thu, Jul 5, 2012 at 6:09 AM, Estevam, wrote:

>Hi Michael,

Hi Fabio,

Thank you very much for your support, I'm getting closer. 

>The best way to generate 'u-boot.imx' is to simply do 'make u-boot.imx' and then you don't need to pass the above line manually.

>In internal mode you should do:

>#define CONFIG_LOADADDR		0x80800000
>#define CONFIG_SYS_TEXT_BASE    0x87800000

>You probably will need to skip the RAM init in board/freescale/mx35pdk/lowlevel_init.S

>For a quick test I would remove the call to 'setup_sdram' there, because RAM will be inited by the values from your created imximage.cfg file.


OK, here what I did:

--- a/boards.cfg
+++ b/boards.cfg

-mx35pdk                      arm         arm1136     -                   freescale      mx35
+mx35pdk                     arm         arm1136     mx35pdk   freescale      mx35        mx35pdk:IMX_CONFIG=board/freescale/mx35pdk/imximage.cfg

--- a/include/configs/mx35pdk.h
+++ b/include/configs/mx35pdk.h

-#define CONFIG_SYS_TEXT_BASE   0xA0000000
+#define CONFIG_SYS_TEXT_BASE   0x87800000

+++ b/board/freescale/mx35pdk/imximage.cfg

+BOOT_FROM      spi

+# DDR2 init
+DATA 4 0xB8001010 0x00000304
+DATA 4 0xB8001010 0x0000030C
+DATA 4 0xB8001004 0x007ffc3f
+DATA 4 0xB8001000 0x92220000
+DATA 4 0x80000400 0x12345678
+DATA 4 0xB8001000 0xA2220000
+DATA 4 0x80000000 0x87654321
+DATA 4 0x80000000 0x87654321
+DATA 4 0xB8001000 0xB2220000
+DATA 1 0x80000233 0xda
+DATA 1 0x82000780 0xda
+DATA 1 0x82000400 0xda
+DATA 4 0xB8001000 0x82226080
+DATA 4 0xB8001004 0x007ffc3f
+DATA 4 0xB800100C 0x007ffc3f
+DATA 4 0xB8001010 0x00000304
+DATA 4 0xB8001008 0x00002000


--- a/board/freescale/mx35pdk/lowlevel_init.S
+++ b/board/freescale/mx35pdk/lowlevel_init.S

init_sdram_start:
        /*init_sdram*/
-       setup_sdram
+  /* setup_sdram */


And here the result (output on the serial line):

---------------------------------------------------------------------------------------------------
U-Boot 2012.04.01-00077-g48bcd18-dirty (Jul 09 2012 - 15:22:31)

CPU:   Freescale i.MX35 rev 2.1 at 532 MHz.
Reset cause: POR
I2C:   ready
----------------------------------------------------------------------------------------------------

And that's it, no more output after "I2C:   ready".  Perhaps you have some more hints about what to do?


With best regards

Michael Hornung


More information about the U-Boot mailing list