Re: Getting Atmel AT91SAM9 into eCos

Evgeniy Dushistov <[email protected]>
Newsgroups gmane.os.ecos.devel
Message-ID <20110317145342.GA11311@maclin>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.