From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12400 invoked by alias); 29 Nov 2008 18:22:07 -0000 Received: (qmail 12389 invoked by uid 22791); 29 Nov 2008 18:22:06 -0000 X-Spam-Level: * X-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,KAM_MX,SARE_FREE_WEBM_RuMail,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2-2.mail.ru (HELO mx2.mail.ru) (194.67.23.122) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 29 Nov 2008 18:21:26 +0000 Received: from [79.134.88.41] (port=53372 helo=rain) by mx2.mail.ru with asmtp id 1L6URW-00002J-00; Sat, 29 Nov 2008 21:21:22 +0300 Received: by rain (nbSMTP-1.00) for uid 1000 dushistov@mail.ru; Sat, 29 Nov 2008 21:25:20 +0300 (MSK) Date: Sat, 29 Nov 2008 18:22:00 -0000 From: Evgeniy Dushistov To: Roberto Lavarini Cc: ecos-devel@ecos.sourceware.org Subject: Re: Re[2]: [PATCH] [RFC] at91sam9263ek support Message-ID: <20081129182519.GA894@rain> References: <20732544.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.16 (2007-06-09) X-Spam: Not detected X-Mras: OK 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: 2008-11/txt/msg00076.txt.bz2 On Fri, Nov 28, 2008 at 04:06:38PM +0100, Roberto Lavarini wrote: > Well, the compilation of redboot with your Patch ends successfully if I set > RAM as default value of CYG_HAL_STARTUP in "hal_arm_at91_sam9.cdl" file. If > the default value remains ROM the following error will appears in > compilation time: > > /home/roberto/ecos-cvs/ecos/packages/hal/arm/arch/current/src/redboot_linux_exec.c:75:32: > error: pkgconf/mlt_arm_at91sam9263ek_rom.h: No such file or directory > > So I load at91bootstrap to the board and then I try to load redboot > (compiled with RAM default value) in dataflash via sam-ba, but I have some > difficult to understand the address to set in sam-ba where the redboot image > will be loaded. I try to use 0x00100000 or 0x4000 (the address that I used > with U-boot) but they don't work correctly, and on debug port I only see > "RomBoot>" shell. Do you have some suggestion to give to me? > Address in dataflash depends on how you build at91bootstrap, there is configuration file, I don't remember exactly, like board/at91sam9263ek/dataflash/at91sam9263ek.h where you point address and size in dataflash, and address in sdram where put what it load in dataflash. sdram address should be 0x23f00000 Also check that your config's setting is right: - communication channel be DBGU and should be only one - main oscillator frequency should be 16 and something Mhz don't remember details, look at board's documentation, divider and multiplier should be the same as at91boostrap set - redboot should not expect that vectors (pointers to services, like print to console and so on) are initialized, option name is like "work with redboot" -- /Evgeniy