All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hornung, Michael <mhornung@init-ka.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] i.MX35PDK: Starting U-Boot from serial NOR-Flash
Date: Mon, 9 Jul 2012 15:11:41 +0200	[thread overview]
Message-ID: <334319B2EBE0B144BAE1402B79D82DC5D31E1CB8@srvpegasus> (raw)
In-Reply-To: <CAOMZO5AKS1cJ_fqvYfP09DVoM7MQoLRm6CL=s38tW2dBKv0k1w@mail.gmail.com>

>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

  parent reply	other threads:[~2012-07-09 13:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-04 13:29 [U-Boot] i.MX35PDK: Starting U-Boot from serial NOR-Flash Hornung, Michael
2012-07-04 17:31 ` Fabio Estevam
2012-07-04 17:35   ` Fabio Estevam
     [not found]   ` <334319B2EBE0B144BAE1402B79D82DC5D31358D8@srvpegasus>
2012-07-05 18:06     ` Fabio Estevam
2012-07-09 13:11   ` Hornung, Michael [this message]
     [not found]   ` <334319B2EBE0B144BAE1402B79D82DC5D31358DF@srvpegasus>
2012-07-09 19:45     ` Fabio Estevam
2012-07-10 19:08       ` Hornung, Michael
2012-07-26 20:32         ` Fabio Estevam
2012-07-31 13:47           ` Michael Hornung
2012-08-02  9:00             ` Michael Hornung
2012-08-02 12:55               ` Fabio Estevam
2012-08-02 13:07                 ` Stefano Babic
2012-08-03  8:03                 ` Michael Hornung
2012-08-03  9:30                   ` Stefano Babic
2012-07-05  9:16 Hornung, Michael

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=334319B2EBE0B144BAE1402B79D82DC5D31E1CB8@srvpegasus \
    --to=mhornung@init-ka.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.