From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8949 invoked by alias); 2 Dec 2008 09:39:43 -0000 Received: (qmail 8938 invoked by uid 22791); 2 Dec 2008 09:39:43 -0000 X-Spam-Level: * X-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_00,DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Dec 2008 09:38:55 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1L7RiW-0008JQ-Rv for ecos-devel@ecos.sourceware.org; Tue, 02 Dec 2008 01:38:52 -0800 Message-ID: <20788865.post@talk.nabble.com> Date: Tue, 02 Dec 2008 09:39:00 -0000 From: "roberto.lavarini" To: ecos-devel@ecos.sourceware.org Subject: Re: Re[2]: [PATCH] [RFC] at91sam9263ek support In-Reply-To: <20081129182519.GA894@rain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: roberto.lavarini@gmail.com References: <20081106182328.GA13554@rain> <20081110092057.GG31000@lunn.ch> <20081111185034.GA13316@rain> <20702652.post@talk.nabble.com> <20081127190919.GA13015@rain> <20732544.post@talk.nabble.com> <20081129182519.GA894@rain> 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-12/txt/msg00000.txt.bz2 Dear Evgeniy, I looked the file "at91sam9263ek.h", and the dataflash address to set in SAM-BA seem to be 0x8000. In fact, if I use the same at91bootloader with uboot with this address, uboot starts correctly. If I use patched redboot for at91sam9263ek, redboot doesn't start and I only see "RomBoot>" shell. I used exactly your patch, apply on ecos-cvs, and the only thing I do, is to set RAM as default value of CYG_HAL_STARTUP in packages/hal/arm/at91/at91sam9/current/cdl/hal_arm_at91sam9.cdl. I downloaded redboot on my board with SAM-BA using DataFlash section with 0x8000 destination address. I don't understand why redboot doesn't start on my board. Roberto Evgeniy Dushistov wrote: > > 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 > > > -- View this message in context: http://www.nabble.com/at91sam9263ek-tp20367309p20788865.html Sent from the Sourceware - ecos-devel mailing list archive at Nabble.com.