* [U-Boot-Users] Flash vs DataFlash vs NAND Flash
@ 2007-03-22 20:54 Matt Gessner
2007-03-22 21:25 ` Jerry Van Baren
0 siblings, 1 reply; 5+ messages in thread
From: Matt Gessner @ 2007-03-22 20:54 UTC (permalink / raw)
To: u-boot
Hi, all,
On my AT91RM9200 board, I have an Atmel DataFlash for booting off my
SPI, and I have a NAND flash.
I do not, however, have any other kind of flash.
My 128K DataFlash address is 0xc0000000, and my 128MB of RAM is at
0x20000000.
When I do
cp.b 20200000 c0000000 2c60
Copy to DataFlash... done
it works just fine.
When I do
cp.b c0000000 20200000 2c60
the system crashes with a data abort, but before the crash, it reports
Copy to Flash...
Well, I'm quite confused how to set the various flash flags to make all
this work.
If I try to set CFG_NO_FLASH, the system won't compile.
But there is no "conventional" flash on the board... just the nand
(8-bit port) and dataflash (spi).
Would someone kindly point me to a reference that explains how I can set
up u-boot 1.2.0 to make this work? Or just come straight out and tell
me?
Thanks in advance,
Regards,
Matt Gessner
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] Flash vs DataFlash vs NAND Flash
2007-03-22 20:54 [U-Boot-Users] Flash vs DataFlash vs NAND Flash Matt Gessner
@ 2007-03-22 21:25 ` Jerry Van Baren
2007-03-22 22:40 ` Ulf Samuelsson
0 siblings, 1 reply; 5+ messages in thread
From: Jerry Van Baren @ 2007-03-22 21:25 UTC (permalink / raw)
To: u-boot
Matt Gessner wrote:
> Hi, all,
>
> On my AT91RM9200 board, I have an Atmel DataFlash for booting off my
> SPI, and I have a NAND flash.
>
> I do not, however, have any other kind of flash.
>
> My 128K DataFlash address is 0xc0000000, and my 128MB of RAM is at
> 0x20000000.
>
> When I do
>
> cp.b 20200000 c0000000 2c60
>
> Copy to DataFlash... done
>
> it works just fine.
>
> When I do
>
> cp.b c0000000 20200000 2c60
>
> the system crashes with a data abort, but before the crash, it reports
>
> Copy to Flash...
>
> Well, I'm quite confused how to set the various flash flags to make all
> this work.
>
> If I try to set CFG_NO_FLASH, the system won't compile.
>
> But there is no "conventional" flash on the board... just the nand
> (8-bit port) and dataflash (spi).
>
> Would someone kindly point me to a reference that explains how I can set
> up u-boot 1.2.0 to make this work? Or just come straight out and tell
> me?
>
> Thanks in advance,
>
> Regards,
>
> Matt Gessner
From the last message before the crash, it looks like you have
non-existent "flash" configured in the memory space where your RAM
resides, so the second cp.b tries to do the NOR flash "song & dance" to
"unlock" it. Of course, this writes trash into your SDRAM which crashes
your program.
1) Find where NOR flash in configured for your board/cpu/system and
fix it.
2) Figure out why CFG_NO_FLASH causes your compile to break. You
apparently have an inadvertent dependency, or NAND flash requires
it (I don't have any experience with NAND flash or ARM(r)
processors)
Fixing #1 may fix #2. Finding #2 may point to where #1 is broken.
HTH,
gvb
^ permalink raw reply [flat|nested] 5+ messages in thread* [U-Boot-Users] Flash vs DataFlash vs NAND Flash
2007-03-22 21:25 ` Jerry Van Baren
@ 2007-03-22 22:40 ` Ulf Samuelsson
2007-03-23 12:48 ` Matt Gessner
0 siblings, 1 reply; 5+ messages in thread
From: Ulf Samuelsson @ 2007-03-22 22:40 UTC (permalink / raw)
To: u-boot
> Matt Gessner wrote:
>> Hi, all,
>>
>> On my AT91RM9200 board, I have an Atmel DataFlash for booting off my
>> SPI, and I have a NAND flash.
>>
>> I do not, however, have any other kind of flash.
>>
>> My 128K DataFlash address is 0xc0000000, and my 128MB of RAM is at
>> 0x20000000.
>>
>> When I do
>>
>> cp.b 20200000 c0000000 2c60
>>
>> Copy to DataFlash... done
>>
>> it works just fine.
>>
>> When I do
>>
>> cp.b c0000000 20200000 2c60
>>
>> the system crashes with a data abort, but before the crash, it reports
>>
>> Copy to Flash...
>>
>> Well, I'm quite confused how to set the various flash flags to make all
>> this work.
>>
>> If I try to set CFG_NO_FLASH, the system won't compile.
>>
>> But there is no "conventional" flash on the board... just the nand
>> (8-bit port) and dataflash (spi).
>>
>> Would someone kindly point me to a reference that explains how I can set
>> up u-boot 1.2.0 to make this work? Or just come straight out and tell
>> me?
>>
Why not use U-Boot 1.1.5 from
ftp://at91dist:distrib at 81.80.104.162/U-Boot-1.1.5 ?
That has probably got later patches for the AT91RM9200 than 1.2.0
Best Regards
Ulf Samuelsson
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] Flash vs DataFlash vs NAND Flash
2007-03-22 22:40 ` Ulf Samuelsson
@ 2007-03-23 12:48 ` Matt Gessner
2007-03-23 17:44 ` Ulf Samuelsson
0 siblings, 1 reply; 5+ messages in thread
From: Matt Gessner @ 2007-03-23 12:48 UTC (permalink / raw)
To: u-boot
Um... I wasn't aware that an earlier version of u-boot would have better
support than 1.2.0.
I'll check into it.
One of the reasons I wanted 1.2.0 was that it had NAND flash support for
very large NAND flash devices.
I'll check it out.
Matt
> -----Original Message-----
> From: Ulf Samuelsson [mailto:ulf at atmel.com]
> Sent: Thursday, March 22, 2007 6:40 PM
> To: Jerry Van Baren; Matt Gessner
> Cc: u-boot-users at lists.sourceforge.net
> Subject: Re: [U-Boot-Users] Flash vs DataFlash vs NAND Flash
>
> > Matt Gessner wrote:
> >> Hi, all,
> >>
> >> On my AT91RM9200 board, I have an Atmel DataFlash for booting off
my
> >> SPI, and I have a NAND flash.
> >>
> >> I do not, however, have any other kind of flash.
> >>
> >> My 128K DataFlash address is 0xc0000000, and my 128MB of RAM is at
> >> 0x20000000.
> >>
> >> When I do
> >>
> >> cp.b 20200000 c0000000 2c60
> >>
> >> Copy to DataFlash... done
> >>
> >> it works just fine.
> >>
> >> When I do
> >>
> >> cp.b c0000000 20200000 2c60
> >>
> >> the system crashes with a data abort, but before the crash, it
reports
> >>
> >> Copy to Flash...
> >>
> >> Well, I'm quite confused how to set the various flash flags to make
all
> >> this work.
> >>
> >> If I try to set CFG_NO_FLASH, the system won't compile.
> >>
> >> But there is no "conventional" flash on the board... just the nand
> >> (8-bit port) and dataflash (spi).
> >>
> >> Would someone kindly point me to a reference that explains how I
can
> set
> >> up u-boot 1.2.0 to make this work? Or just come straight out and
tell
> >> me?
> >>
>
>
> Why not use U-Boot 1.1.5 from
> ftp://at91dist:distrib at 81.80.104.162/U-Boot-1.1.5 ?
> That has probably got later patches for the AT91RM9200 than 1.2.0
>
> Best Regards
> Ulf Samuelsson
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] Flash vs DataFlash vs NAND Flash
2007-03-23 12:48 ` Matt Gessner
@ 2007-03-23 17:44 ` Ulf Samuelsson
0 siblings, 0 replies; 5+ messages in thread
From: Ulf Samuelsson @ 2007-03-23 17:44 UTC (permalink / raw)
To: u-boot
Um... I wasn't aware that an earlier version of u-boot would have better
support than 1.2.0.
I'll check into it.
One of the reasons I wanted 1.2.0 was that it had NAND flash support for
very large NAND flash devices.
I'll check it out.
Matt
==> I think you should download the Atmel 1.1.5
create a diff vs vanilla 1.1.5 and then reapply on top of 1.2.0
This way, you make sure that you have the latest Atmel stuff
AND the latest generic stuff.
Best Regards
Ulf Samuelsson ulf at atmel.com
Atmel Nordic AB
Mail: Box 2033, 174 02 Sundbyberg, Sweden
Visit: Kavalleriv?gen 24, 174 58 Sundbyberg, Sweden
Phone +46 (8) 441 54 22 Fax +46 (8) 441 54 29
GSM +46 (706) 22 44 57
Technical support when I am not available:
AT89 C51 Applications Group: mailto:micro.hotline at nto.atmel.com
AT90 AVR Applications Group: mailto:avr at atmel.com
AT91 ARM Applications Group: mailto:at91support at atmel.com
FPSLIC Application Group: mailto:fpslic at atmel.com Best AVR
link: www.avrfreaks.net
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-03-23 17:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-22 20:54 [U-Boot-Users] Flash vs DataFlash vs NAND Flash Matt Gessner
2007-03-22 21:25 ` Jerry Van Baren
2007-03-22 22:40 ` Ulf Samuelsson
2007-03-23 12:48 ` Matt Gessner
2007-03-23 17:44 ` Ulf Samuelsson
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.