Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-23 Thread Thomas Dörfler
Hi, maybe this is too off-topic, but maybe it helps: I am currently proting U-Boot to a MPC512x design (with NAND boot). AFAIK the NFC is similar on MPX512x and iMX.31, The MPC512x nand flash driver, that is now available in U-Boot seems to maintain the ECC by software. I could use it to read/wr

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-23 Thread Magnus Lilja
Hi 2009/7/23 Ulrich Gerster : >> Not sure that I understand what "every program assumes..." means. > > I try to explain my problem in more detail. I had a working u-boot programed > in NAND-Flash. Then I wanted to update it. I used the nand write command and > wrote a the new image in the NAND-Fla

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-23 Thread Ulrich Gerster
Hello Magnus Lilja 23.07.09 11.18 Uhr >>> > Hi >>2009/7/22 Ulrich Gerster : >> Hello >> >> Magnus Lilja 14.07.09 19.43 Uhr >>> >>> Hi >>> >>2009/7/14 Ulrich Gerster : Hello. >>> Magnus Lilja 14.07.09 16.03 Uhr >>> >> I used the patch from you out of this pos

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-23 Thread Magnus Lilja
Hi 2009/7/22 Ulrich Gerster : > Hello > > Magnus Lilja 14.07.09 19.43 Uhr >>> >> Hi > >2009/7/14 Ulrich Gerster : >>> Hello. >>> >> Magnus Lilja 14.07.09 16.03 Uhr >>> >>> > I used the patch from you out of this posting: > [U-Boot-Users] [PATCH RFC 3/5] i.MX31: Add i.MX31 NAN

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-22 Thread Ulrich Gerster
Hello Magnus Lilja 14.07.09 19.43 Uhr >>> > Hi 2009/7/14 Ulrich Gerster : >> Hello. >> > Magnus Lilja 14.07.09 16.03 Uhr >>> >> I used the patch from you out of this posting: [U-Boot-Users] [PATCH RFC 3/5] i.MX31: Add i.MX31 NAND Flash Controller driver. http:/

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-14 Thread Magnus Lilja
Hi 2009/7/14 Ulrich Gerster : > Hello. > Magnus Lilja 14.07.09 16.03 Uhr >>> > >>> I used the patch from you out of this posting: >>> [U-Boot-Users] [PATCH RFC 3/5] i.MX31: Add i.MX31 NAND Flash Controller >>> driver. >>> http://lists.denx.de/pipermail/u-boot/2008-August/038239.html >>> >>>

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-14 Thread Ulrich Gerster
Hello. >>> Magnus Lilja 14.07.09 16.03 Uhr >>> >> CONFIG_SYS_NAND_BASE CS0_BASE should be correct because the Flash >> is located at 0xA000 which should be CS0_BASE. Why do you think it is >> wrong? > Because the NAND flash is not connected to any of the standard memory > mapped chip sel

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-14 Thread Magnus Lilja
Hi 2009/7/14 Ulrich Gerster : > Hello again, > Magnus Lilja 14.07.09 13.08 Uhr >>> >> Hi > >>> Another strange thing is the nand driver. I build my u-boot with: >>> #define CONFIG_MX31_NAND   1 >>> #define CONFIG_CMD_NAND >>> #define CONFIG_SYS_NO_FLASH   1 >>> #define CONFIG_ENV_IS_IN_NAND

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-14 Thread Wolfgang Denk
Dear "Ulrich Gerster", In message <4a5c8fd3024d00014...@hochblauen.ba-loerrach.de> you wrote: > > > Another strange thing is that I can't read from nand flash but I can = > write. > > > That's indeed strange. How do you know you can write then when you > > cannot read the data back for verif

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-14 Thread Ulrich Gerster
Hello, Wolfgang Denk 14.07.09 13.22 Uhr >>> > Dear "Ulrich Gerster", > In message <4a5c71da024d00014...@hochblauen.ba-loerrach.de> you wrote: >> >> I can ping my linux host and I'm able to download a binary file via TFTP >> into RAM. >> But I'm not able to ping the boad with u-boot fr

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-14 Thread Ulrich Gerster
Hello again, >>> Magnus Lilja 14.07.09 13.08 Uhr >>> > Hi >> Another strange thing is the nand driver. I build my u-boot with: >> #define CONFIG_MX31_NAND 1 >> #define CONFIG_CMD_NAND >> #define CONFIG_SYS_NO_FLASH 1 >> #define CONFIG_ENV_IS_IN_NAND 1 >> #define CONFIG_SYS_NAND_BASE CS0_

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-14 Thread Magnus Lilja
Hi 2009/7/14 Ulrich Gerster : > Hello. > Magnus Lilja 09.07.09 19.08 Uhr >>> > >>> I made the defines you mentioned above and build the image with make >>> mx31guf_config (it's quite similar to the PDK >>> board). Then I loaded the resulting u-boot.bin to 0x8100 and tried to >>> "run 0

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-09 Thread Magnus Lilja
Hi Could you please do reply-all and keep all addresses when replying to a mail? I don't read all mail from the list so it's easy to miss a followup. 2009/7/9 Ulrich Gerster : > Hello > > Magnus Lilja 08.07.09 17.42 Uhr >>> >> Hi >> >> You should define CONFIG_SKIP_LOWLEVEL_INIT since redboo

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-09 Thread Ulrich Gerster
Hello Magnus Lilja 08.07.09 17.42 Uhr >>> > Hi > > You should define CONFIG_SKIP_LOWLEVEL_INIT since redboot has already > setup the SDRAM. If you load U-boot to the address it's set up to > execute from you should also define CONFIG_SKIP_RELOCATE_UBOOT. > It's been a long while since I us

Re: [U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-08 Thread Magnus Lilja
Hi 2009/7/8 Ulrich Gerster : > Hello, > > I have a board with a i.MX31, NAND-Flash and RAM. > On the Board a RedBoot is preinstalled and runs properly. > I want to replace the RedBoot with my U-Boot port. > > How can I test U-Boot out of RedBoot when I load the u-boot image in the RAM? > What do I

[U-Boot] How to start U-Boot for i.MX31 NAND out of RedBoot (out of RAM)

2009-07-08 Thread Ulrich Gerster
Hello, I have a board with a i.MX31, NAND-Flash and RAM. On the Board a RedBoot is preinstalled and runs properly. I want to replace the RedBoot with my U-Boot port. How can I test U-Boot out of RedBoot when I load the u-boot image in the RAM? What do I have to configure in my u-boot if i want to