Re: Getting Atmel AT91SAM9 into eCos

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Getting Atmel AT91SAM9 into eCos

dushistov (Bugzilla)
On Wed, Mar 16, 2011 at 03:24:25PM +0000, John Dallaway wrote:

> I am looking to get QEMU working for review of your AT91SAM9263 eCos
> contribution.
>
> Evgeniy Dushistov wrote:
>
> >>> Actually, I and Filip Navara implemented AT91SAM7X and at91sam9263
> >>> support for qemu, one of the most recent version can be found here:
> >>> git://github.com/Dushistov/qemu_at91sam9263.git
> >>> It can run linux, freertos, ecos.
>
> I have tried running up an eCos test built for target "at91sam7xek" with
> "kernel" template (ROM startup) using QEMU built from your git sources:
>

There is little misconfiguration, qemu for sam7x have no support nor flash,
ecos for 7x have no support ram startup. I never try ecos for sam7,
but this is not big problem.

I fixed this issue (below path to repo and branch where is fix).
So little instruction for anybody who want try qemu with
at91 support:

$git clone --branch at91sam_support_for_merge git://github.com/Dushistov/qemu_at91sam9263.git qemu_at91sam
$cd qemu_at91sam
$./configure --target-list="arm-softmmu arm-linux-user armeb-linux-user"
$make

build at91sam7xek kernel and tests,
create binary file from some executable, for example:
$arm-eabi-objcopy -O binary bin_sem0 bin_sem0.bin

create flash image:

$dd if=/dev/zero of=/tmp/flash.bin count=128 bs=1024
$dd if=./bin_sem0.bin of=/tmp/flash.bin conv=notrunc

and run it:
$./arm-softmmu/qemu-system-arm   -serial tcp::4445,server  -M at91pes
-pflash /tmp/flash.bin &

connect to serial port:
$telnet localhost 4445
and you will see:
PASS:<Binary Semaphore 0 OK>
EXIT:<done>

--
/Evgeniy

Reply | Threaded
Open this post in threaded view
|

Re: Getting Atmel AT91SAM9 into eCos

John Dallaway-2
Evgeniy Dushistov wrote:

> On Wed, Mar 16, 2011 at 03:24:25PM +0000, John Dallaway wrote:
>
>> I have tried running up an eCos test built for target "at91sam7xek" with
>> "kernel" template (ROM startup) using QEMU built from your git sources:
>
> There is little misconfiguration, qemu for sam7x have no support nor flash,
> ecos for 7x have no support ram startup. I never try ecos for sam7,
> but this is not big problem.
>
> I fixed this issue (below path to repo and branch where is fix).
> So little instruction for anybody who want try qemu with at91 support:

Thank you, Evgeniy. I have this working for target at91sam7xek now and
will try experimenting with target at91sam9263ek.

John Dallaway
eCos maintainer
http://www.dallaway.org.uk/john