This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ecos porting for Atmel AT91RM9200-DK


Hi,
   Good news.
(Another bad news is that my hard-disk go on strike, all data are crash)
The RomBoot from atmel is 1.02 and I compiled it with ADS 1.2
http://www.at91.com/Pages/products/EvaluationBoard/AT91RM9200EK/other/AT91RM9200-DataFlashBoot.zip

I just modify the the last sources/main.c:AT91F_StartBoot()
Skip copy/check and jump to proper location of redboot (ROM).
The PLL is configured by sources/main.c:AT91F_SetPLL()
I tried to reset it in hal_hw_init() of ecos, but do not work fine.
I need to check errata.

I will not use serial flash in my design, but only parallel flash.
The datasheed said it will check the 6th vector (0x14) as length of bootloader,
and copy it to sram then run it ?!
However, the 6th vector is zero, and do you know how to let it work ?
Because I think it's too burdensome to use 2 boot-loader.


I do not get timeout problems.
Maybe you can check the configuration of PHY,
and disable or replace hw_delay_us()


2005/8/13, Wolfgang Kobler <wk-list@koebler.com>:
Hi,

I succeeded in compiling and running redboot on my lomx-board with an
additional AT45DB041B Dataflash.
I had to modify my atmel bootloader so it
- supports my small dataflash device,
 (quite simple, changes available at request if someone is interested)
- loads redboot at the correct address (0x20001000),
 (I corrected this value and suddenly it just worked)
- and uses the correct PLL settings, but now it works.
 (you get funny characters on the serial console if the clock settings
 are not correct and you try to boot linux.)

I used the gcc version of the atmel bootloader (from teest.com, version 1.01).
You seem to use version 1.02 of the bootloader. Do you use the ADS compiler
or is there also a gcc version of it ? (I use the ecos gcc for the
bootloader, too.)


I also noticed that the default frequency setting in redboot is at 184MHz.
(CYGNUM_HAL_ARM_AT91RM9200_CPU_CLOCK). I thought the CPU would always run at
180MHz ? At least the current AT91RM9200 errata (page 2) says the PLL is
limited to 180MHz.


I get some timeouts when I use tftp when downloading big files, but not too
many.


I can not boot the linux delivered with my board, as this uses a ramdisk
and thus would require the redboot exec command. I can run it via "go", but of
course then I get a kernel panic. But this is not a problem to me as I do not
want to use linux here anyway.



Bye, Wolfgang





-- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]