public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Reinhard Meyer <reinhard.meyer@emk-elektronik.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] AVR32 / ATNGW100 FLASH adressing issues
Date: Mon, 31 May 2010 15:59:38 +0200	[thread overview]
Message-ID: <4C03C0CA.50504@emk-elektronik.de> (raw)

Hello,

currently the actual u-Boot (U-Boot 2010.03-00351-g40792d6-dirty) for 
AVR32/ATNGW100 defines FLASH to be at 0x00000000 (which is the true 
physical address):
#define CONFIG_SYS_FLASH_BASE            0x00000000
#define CONFIG_SYS_FLASH_SIZE            0x800000
#define CONFIG_SYS_MAX_FLASH_BANKS        1
#define CONFIG_SYS_MAX_FLASH_SECT        135
and
TEXT_BASE        = 0x00000000

however the "flinfo" command show FLASH to be at 0xa0000000 (which is 
translated to 0x00000000 by default)

any commands using FLASH (protect, copy, ...) must therefore use 
addresses at 0xa0000000 otherwise it will be denied not being in the 
FLASH address range.

To make "saveenv" work, the definition had to be changed to:
/*#define CONFIG_ENV_ADDR            (CONFIG_SYS_FLASH_BASE + 
CONFIG_SYS_FLASH_SIZE - CONFIG_ENV_SIZE)*/
#define CONFIG_ENV_ADDR            (0xA07F0000)

So far I could be happy, BUT
1. this seems like a bad hack
2. u-Boot is not aware of its sectors in the FLASH

I would like to fix this in a better way, but would like suggestions of 
where to attack the issue.
I think that the issue should be fixed by making sure FLASH is detected 
at 0x00000000 and NOT at 0xa0000000, correct?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: reinhard_meyer.vcf
Type: text/x-vcard
Size: 370 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100531/6107e388/attachment.vcf 

             reply	other threads:[~2010-05-31 13:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-31 13:59 Reinhard Meyer [this message]
2010-05-31 18:55 ` [U-Boot] AVR32 / ATNGW100 FLASH adressing issues Wolfgang Denk
2010-06-01 10:40   ` [U-Boot] Resigning as the AVR32 custodian (was Re: AVR32 / ATNGW100 FLASH adressing issues) Haavard Skinnemoen
     [not found]     ` <4C04F4B8.9000802@emk-elektronik.de>
2010-06-01 13:48       ` Haavard Skinnemoen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C03C0CA.50504@emk-elektronik.de \
    --to=reinhard.meyer@emk-elektronik.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox