public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* 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

* Re: Getting Atmel AT91SAM9 into eCos
  2011-03-17 14:53           ` Getting Atmel AT91SAM9 into eCos Evgeniy Dushistov
@ 2011-03-17 15:39             ` John Dallaway
  0 siblings, 0 replies; 2+ messages in thread
From: John Dallaway @ 2011-03-17 15:39 UTC (permalink / raw)
  To: Evgeniy Dushistov; +Cc: eCos Development List

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-17 15:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1266877649.3024.105.camel@localhost.localdomain>
     [not found] ` <4B839F37.50904@dallaway.org.uk>
     [not found]   ` <20100223100104.GA15310@rain>
     [not found]     ` <4B840808.1090208@mlbassoc.com>
     [not found]       ` <20100223175227.GA16660@rain>
     [not found]         ` <4D80D629.40307@dallaway.org.uk>
2011-03-17 14:53           ` Getting Atmel AT91SAM9 into eCos Evgeniy Dushistov
2011-03-17 15:39             ` John Dallaway

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).