All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] i.MX35PDK: Starting U-Boot from serial NOR-Flash
@ 2012-07-04 13:29 Hornung, Michael
  2012-07-04 17:31 ` Fabio Estevam
  0 siblings, 1 reply; 15+ messages in thread
From: Hornung, Michael @ 2012-07-04 13:29 UTC (permalink / raw)
  To: u-boot

Dear list,

I have an i.MX35PDK (mx35_3stack) with one U-Boot running within the NAND flash and one U-Boot running within the parallel NOR flash. 

I am now trying to get another one running in a serial NOR flash (S25FL064K) I soldered to the CSPI1 lines with CSPI1_SS1 as chip select line. 

Then I changed the bootstrap switches as follows:

BOOT_MODE[1:0]:	00 	Internal boot
BT_MEM_CTL[1:0]:	11 	Expansion device (... , serial ROM)
BT_BUS_WIDTH:	1 	3-byte address SPI device (serial Flash)
BT_MEM_TYPE[1:0]	11 	Serial ROM via SPI

According to my oscilloscope (SPI decoder included), the hardware setup behaves as it should do. The processor clocks, it activates the SS1 line, 
it sends read commands (0x03) following an address and the serial flash sends answers with bytes matching the u-boot.bin file.

I tried the following to build the u-boot binary:

1. 	$ make mx35pdk
	Then I burned u-boot.bin to the serial flash starting at address 0x00

2. 	See 1. but burning the u-boot.bin file to the serial flash starting at address 0x400 (doc/README.imximage)

3.	$ make mx35pdk
	$ cp board/freescale/mx51evk/imximage.cfg board/freescale/mx35pdk/
          	$ ./tools/mkimage -n ./board/freescale/mx35pdk/imximage.cfg -T imximage -e 0xA0000000 -d u-boot.bin u-boot.imx
	Then I burned u-boot.imx to the serial flash starting at address 0x00

4.	See 3. but burning the u-boot.imx file to the serial flash starting at address 0x400 (doc/README.imximage)
 
As you might guess, none of the above attempts works. I get no serial output from U-Boot.

Has anyone a short description how to compile U-Boot in order to run from serial NOR flash?

Thank you very much in advance.

With best regards


Michael Hornung

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [U-Boot] i.MX35PDK: Starting U-Boot from serial NOR-Flash
@ 2012-07-05  9:16 Hornung, Michael
  0 siblings, 0 replies; 15+ messages in thread
From: Hornung, Michael @ 2012-07-05  9:16 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

thank you very much for your reply.

> With these values you can create a correct imximage.cfg file for mx35pdk.

Thank you, I'll try my best.

>> $ ./tools/mkimage -n ./board/freescale/mx35pdk/imximage.cfg -T 
>> imximage -e 0xA0000000 -d u-boot.bin u-boot.imx

Can you tell me which address I have to append to the -e switch of the mkimage program? I think that my choice (0xA0000000) is incorrect since it is /CS0 memory region of the WEIM. Is it 0x10000000 for internal RAM? And if so, do I have to change the following define within "include/configs/mx35pdk.h", too?

/* Set TEXT at the beginning of the NOR flash */
#define CONFIG_SYS_TEXT_BASE    0xA0000000

> So my suggestion for you is to try to boot from internal boot mode first. Try booting from SD card first as this would be easier.

Could you please give a short explanation, why it is easier to boot from SD than from serial NOR?

> Regards,

> Fabio Estevam


Thank you very much!

With best regards

Michael Hornung

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-08-03  9:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
     [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

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.