Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: large nandflash devices (>4k pages) support?
PostPosted: Mon May 02, 2011 1:12 pm 
Offline

Joined: Fri Mar 18, 2011 6:40 pm
Posts: 4
Hello,

I see in the release notes of SAM-BA 2.10 this statement:
"Latest large nandflash devices have bigger page size (4K for instance) and SAMBA and the SW library does not support it. This

may be due to the new spare zone organization."

Is there any patch or new release that includes the support of these "new" NAND chips?

As a side note, the definition of the nand spare bytes scheme in the applets/at91lib/memories/nandflash/NandSpareScheme.c file seems false (at least compared to the Micron NANDs scheme):
The nandSpareScheme2048 is 64 bytes long, it seems to correspond to a 1K page, and the nandSpareScheme4096 corresponds to a 2K page.

Thanks
Simon


Top
 Profile  
 
 Post subject: Re: large nandflash devices (>4k pages) support?
PostPosted: Thu May 05, 2011 4:57 am 
Offline

Joined: Fri Oct 22, 2010 4:25 am
Posts: 43
No - as far as I know, Simon, SAM-BA does not yet support these large flash devices. I've had experiences with a Numonyx NAND16GW3F2AN6E, and there is a good possibility that such a large flash is not supported by SAM-BA.

As an aside, if you place AT91bootstrap on an SPI dataflash and then use a bootloader such as U-boot (also loaded from the Dataflash), it is possible to boot the Linux kernel from a partition on NAND flash. The U-boot bootloader can read the kernel from either a UBI partition on the flash, or from "raw" flash.

IMHO, your best bet to use such large NAND flash chips is to let a bootloader (such as U-boot) program and read them.


Top
 Profile  
 
 Post subject: Re: large nandflash devices (>4k pages) support?
PostPosted: Thu May 05, 2011 9:58 am 
Offline

Joined: Fri Mar 18, 2011 6:40 pm
Posts: 4
Thanks for your answer,

I have succeeded to load u-boot through JTAG in RAM, and could flash the bootstrap from there in the NAND (you need to modify the sixth vector of the bootstrap binary so that it reflects the size of the bootstrap) , then boot the bootstrap from NAND.
Still, the boostrap is not able to load the u-boot flashed from NAND. Probably a geometry issue.

Edit: The bootstrap now boots the u-boot from NAND, the issue was probably related to the fact I was not doing an erase before each writing.

Still no luck with SAM-BA, but it's not absolutely necessary, just more convenient.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: