* [U-Boot] AVR32 / ATNGW100 FLASH adressing issues
@ 2010-05-31 13:59 Reinhard Meyer
2010-05-31 18:55 ` Wolfgang Denk
0 siblings, 1 reply; 4+ messages in thread
From: Reinhard Meyer @ 2010-05-31 13:59 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] AVR32 / ATNGW100 FLASH adressing issues
2010-05-31 13:59 [U-Boot] AVR32 / ATNGW100 FLASH adressing issues Reinhard Meyer
@ 2010-05-31 18:55 ` Wolfgang Denk
2010-06-01 10:40 ` [U-Boot] Resigning as the AVR32 custodian (was Re: AVR32 / ATNGW100 FLASH adressing issues) Haavard Skinnemoen
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2010-05-31 18:55 UTC (permalink / raw)
To: u-boot
Dear Reinhard Meyer,
In message <4C03C0CA.50504@emk-elektronik.de> you wrote:
>
> 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):
...
> however the "flinfo" command show FLASH to be at 0xa0000000 (which is
> translated to 0x00000000 by default)
...
> I think that the issue should be fixed by making sure FLASH is detected
> at 0x00000000 and NOT at 0xa0000000, correct?
This has been discussed in one of the longer and more heated
discussions on that list; see thread starting here:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/66904
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The only thing necessary for the triumph of evil is for good men to
do nothing. - Edmund Burke
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Resigning as the AVR32 custodian (was Re: AVR32 / ATNGW100 FLASH adressing issues)
2010-05-31 18:55 ` Wolfgang Denk
@ 2010-06-01 10:40 ` Haavard Skinnemoen
[not found] ` <4C04F4B8.9000802@emk-elektronik.de>
0 siblings, 1 reply; 4+ messages in thread
From: Haavard Skinnemoen @ 2010-06-01 10:40 UTC (permalink / raw)
To: u-boot
Wolfgang Denk <wd@denx.de> wrote:
> > I think that the issue should be fixed by making sure FLASH is detected
> > at 0x00000000 and NOT at 0xa0000000, correct?
>
> This has been discussed in one of the longer and more heated
> discussions on that list; see thread starting here:
> http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/66904
Right...and since we never reached an agreement, and I still have no
idea about how to bring the most popular AVR32 board into working
shape, it seems kind of pointless for me to continue as the AVR32
custodian. In fact, I should probably have resigned a long time ago,
but this kind of failure is not easy to admit.
Please remove me from the list. I'm sorry it didn't work out.
Haavard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-06-01 13:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-31 13:59 [U-Boot] AVR32 / ATNGW100 FLASH adressing issues Reinhard Meyer
2010-05-31 18:55 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox