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  [ 2 posts ] 
Author Message
 Post subject: U-Boot DataFlash Areas
PostPosted: Tue Jan 29, 2008 4:18 pm 
Offline

Joined: Tue Jan 29, 2008 4:09 pm
Posts: 1
Hi Forum,

I recently downloaded and compiled the U-Boot 1.2.0 for my AT91SAM9260-EK board. But I have some trouble using the serial DataFlash.
The init-output says:
Code:
DataFlash:AT45DB642
Nb pages:   8192
Page Size:   1056
Size= 8650752 bytes
Logical address: 0xD0000000
Area 0: D0000000 to D0000000


This looks quite strange to me .. especially since the 1.1.5 version of U-Boot that's delivered with the board shows a 'proper' mapping:
Code:
DataFlash:AT45DB642
Nb pages:   8192
Page Size:   1056
Size= 8650752 bytes
Logical address: 0xD0000000
Area 0: D0000000 to D0003FFF (RO)
Area 1: D0004000 to D0007FFF
Area 2: D0008000 to D0037FFF (RO)
Area 3: D0038000 to D083FFFF


Does anyone know where and how I can configure this mapping?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 21, 2008 9:37 am 
Offline

Joined: Thu Dec 06, 2007 10:40 am
Posts: 1
Solution:
1. before building u-boot 1.20 find in /[u-boot dir]/include/configs/ file at91sam9260ek.h. in this file please config your default parameters
2. find dataflash.c
in this file find variable area_list and change it for your system (don't forget about FLAG_SETENV)
for example:
{0x00000000, 0x00004144, FLAG_PROTECT_SET, FLAG_SETENV, "bootstrap"}, /* boot */
{0x00004200, 0x000083ff, FLAG_PROTECT_CLEAR, FLAG_SETENV, "Environment"}, /* env */
{0x00008400, 0x00041fff, FLAG_PROTECT_SET, FLAG_SETENV, "U-BOOT 1.20"}, /* data */
{0x00042000, 0x0041ffff, FLAG_PROTECT_CLEAR, FLAG_SETENV, "KERNEL"}, /* Invalid */
{0x00420000, 0x00800000, FLAG_PROTECT_CLEAR, FLAG_SETENV, "FS"}, /* Invalid */
{0xffffffff, 0x00000000, FLAG_PROTECT_INVALID, 0, "<Invalid>"}, /* Invalid */


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


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: