* Re: Getting Atmel AT91SAM9 into eCos
[not found] ` <4D80D629.40307@dallaway.org.uk>
@ 2011-03-17 14:53 ` Evgeniy Dushistov
2011-03-17 15:39 ` John Dallaway
0 siblings, 1 reply; 2+ messages in thread
From: Evgeniy Dushistov @ 2011-03-17 14:53 UTC (permalink / raw)
To: John Dallaway; +Cc: eCos Development List
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
^ permalink raw reply [flat|nested] 2+ messages in thread