[En-Nut-Discussion] Porting NutOS on the AT91SAM9X-EK
Ole Reinhardt
ole.reinhardt at embedded-it.de
Tue Sep 7 10:00:42 CEST 2010
Hi!
> > In your reply,Your suggestion use at91sam9xe512_ram.ld and
> > crtat91sam7x512_ram.S as linker script / startup code.I can't find
> > the file.I also don't quite understand that why uses
> > crtat91sam7x512_ram.S and how to use crtat91sam7x512_ram.S. Can you
> > say more.please? I have tried to use it by two methods,but the
> > results are fail. One,using Crtat91sam7sex_rom.S content to cover the
> > crtat91sam9xe512_ram.S content as startup file, the file name is
>
> Now, this is the part, where it looks like it was to late for me to
> answer any mail. Certainly I would not urge you to use a SAM7 script or
> code for the SAM9. Sorry if I wrote that.
> Afaik the SAM9 are not very different to each other. The Ethernut 5 is
> developed on SAM9260 but the final Board carries the SAM9XE cause most
> of the code should be portable. If you need to adapt linker script or
> startup code, take the SAM9260 ones for reference.
Sorry, I suppose it was me that confused him a little, as I did
copy&paste without looking what I've copied. Indeed you have to use
crtat91sam9xe512_ram.S together with at91sam9xe512_ram.ld
Always those two files have to match. Indeed the linker script
references the .S file which have to be used.
> > still crtat91sam9xe512_ram.S; The other, using crtat91sam7se512_ram.S
> > content to cover the crtat91sam9xe512_ram.S content as startup file,
> > the file name is still crtat91sam9xe512_ram.S. Then,Compiling
> > NutOS.Two methods's Resulting is the same, following errors:
> > C:/ethernut-4.9/nut/arch/arm/init/crtat91sam9xe512_ram.S:176: Error:
> > undefined symbol MC_FWS_2R3W used as an immediate value
> > C:/ethernut-4.9/nut/arch/arm/init/crtat91sam9xe512_ram.S:241: Error:
> > undefined symbol PMC_LOCK used as an immediate value
> > C:/ethernut-4.9/nut/arch/arm/init/crtat91sam9xe512_ram.S:258: Error:
> > undefined symbol PMC_CSS_PLL_CLK used as an immediate value
> > C:/ethernut-4.9/nut/arch/arm/init/crtat91sam9xe512_ram.S:177: Error:
> > internal_relocation (type: OFFSET_IMM) not fixed up
> > C:/ethernut-4.9/nut/arch/arm/init/crtat91sam9xe512_ram.S:238: Error:
> > internal_relocation (type: OFFSET_IMM) not fixed up
> >
> > so I added those: #define MC_FWS_2R3W 0x00000100 #define PMC_LOCK
> > 0x00000004 #define PMC_CSS_PLL_CLK 0x00000003
That should not happen. Which compiler version und NutOS Version do you
use? Normaly the Code should compile fine for the Ethernut 5 board (as
base for the sam9xe ek.
> I don't have any details about the SAM9XE at hand. I got a prototype of
> the Ethernut equipped with a SAM9260. Ole should have one with the final
> 9XE on it. May be he can help. But take care not to use the startup from
> the 7XE but the 9260 one.
Indeed the code which is running fine on the At91SAM9620 should run out
of the box in the AT91SAM9XE as well. More or less the only major
difference from the programmers side of view is the existence of the
internal flash in the AT91SAM9XE (beside of some other minor
differences). But in general: The code you could start on the
AT91SAM9620 EK Board should start fine on the AT91SAM9XE EK Board as
well! (if you run it both from the SD-RAM).
> The last new I got was, that he was busy to get uboot loading and
> starting Nut/OS applications but I didn't get any status update about
> that. Sorry.
I just fixed the U-Boot for the last Ethernut5E Prototype. I'm currently
updating the Linux Kernel as well and will upload the updated BSP in a
few days.
> But that reminds me that I have to call Harald and Ole for some other
> things, so I ask them about that and get back to you. But I am pretty
> sure that they read the list.
Fore sure :)
Regards,
Ole
--
Thermotemp GmbH, Embedded-IT
Embedded Hard-/ Software and Open Source Development,
Integration and Consulting
http://www.embedded-it.de
Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen -
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97
Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280
More information about the En-Nut-Discussion
mailing list