From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12770 invoked by alias); 17 Mar 2011 14:53:43 -0000 Received: (qmail 12761 invoked by uid 22791); 17 Mar 2011 14:53:42 -0000 X-SWARE-Spam-Status: No, hits=1.9 required=5.0 tests=BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FSL_RU_URL,RCVD_IN_DNSWL_LOW,SARE_FREE_WEBM_RuMail,TW_BJ,TW_JC,TW_QE X-Spam-Check-By: sourceware.org Received: from smtp9.mail.ru (HELO smtp9.mail.ru) (94.100.176.54) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Mar 2011 14:53:37 +0000 Received: from [89.23.194.117] (port=59817 helo=maclin) by smtp9.mail.ru with asmtp id 1Q0EZw-0006Uk-00; Thu, 17 Mar 2011 17:53:32 +0300 Received: by maclin (nbSMTP-1.00) for uid 1000 dushistov@mail.ru; Thu, 17 Mar 2011 17:53:42 +0300 (MSK) Date: Thu, 17 Mar 2011 14:53:00 -0000 From: Evgeniy Dushistov To: John Dallaway Cc: eCos Development List Subject: Re: Getting Atmel AT91SAM9 into eCos Message-ID: <20110317145342.GA11311@maclin> References: <1266877649.3024.105.camel@localhost.localdomain> <4B839F37.50904@dallaway.org.uk> <20100223100104.GA15310@rain> <4B840808.1090208@mlbassoc.com> <20100223175227.GA16660@rain> <4D80D629.40307@dallaway.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D80D629.40307@dallaway.org.uk> User-Agent: Mutt/1.5.20 (2009-06-14) X-MR-Warn: 1 X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2011-03/txt/msg00013.txt.bz2 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: EXIT: -- /Evgeniy