From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-bk0-x231.google.com ([2a00:1450:4008:c01::231]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UbvMR-0000gr-PN for barebox@lists.infradead.org; Mon, 13 May 2013 16:12:28 +0000 Received: by mail-bk0-f49.google.com with SMTP id na10so374608bkb.8 for ; Mon, 13 May 2013 09:12:04 -0700 (PDT) Message-ID: <519110D0.5040801@gmail.com> Date: Mon, 13 May 2013 18:12:00 +0200 From: Sebastian Hesselbarth MIME-Version: 1.0 References: <1368364146-6024-1-git-send-email-sebastian.hesselbarth@gmail.com> <1368364146-6024-4-git-send-email-sebastian.hesselbarth@gmail.com> <20130513075852.GG32299@pengutronix.de> <5190AFA1.1080503@gmail.com> <20130513105722.GP32299@pengutronix.de> <5190E56F.9080903@gmail.com> <20130513162313.4f5849a9@skate> In-Reply-To: <20130513162313.4f5849a9@skate> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 3/5] arm: initial support for Marvell Dove SoCs To: Thomas Petazzoni Cc: barebox@lists.infradead.org, Ezequiel Garcia On 05/13/13 16:23, Thomas Petazzoni wrote: > On Mon, 13 May 2013 15:06:55 +0200, Sebastian Hesselbarth wrote: >>> Please note that normally barebox images are expected to be runnable >>> second stage (bootm barebox.bin). Though not really mandatory this still >>> is a nice feature for development. This becomes difficult to support if >>> the initial code expects the registers at 0xd0000000, hence I suggested >>> remapping it in the kwb image so that all second stage code can already >>> work on the remapped registers. >> >> Yeah, this is bugging Thomas and me for some time. The tricky part in >> this is, that the register for setting the internal register base is in >> the internal registers itself. You don't know the base address, you >> cannot remap it - you can't even read it. Thomas is working on >> something, but he will have to comment on that. > > One solution for Barebox is to have a DATA line in our kwbimage.cfg > that does: > > DATA 0xd0020080 0xf1000000 > > and so when Barebox boots, the remapping to 0xf1 is already done, and > we don't have to worry about it. This way, a Barebox can chainload a > second Barebox. Thomas, have you tried the above? I did and Dove immediately stops responding to Xmodem transfer. I have the strong feeling, that BootROM relies on stuff located at 0xd0000000. So remapping _that_ early will maybe not work either. Sebastian _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox