Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UXUFR-0003S8-Ke for mharc-grub-devel@gnu.org; Wed, 01 May 2013 06:26:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXUFN-0003Qj-Rk for grub-devel@gnu.org; Wed, 01 May 2013 06:26:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UXUFL-0004xE-4p for grub-devel@gnu.org; Wed, 01 May 2013 06:26:49 -0400 Received: from mail-ee0-f50.google.com ([74.125.83.50]:46133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UXUFK-0004x1-Uc for grub-devel@gnu.org; Wed, 01 May 2013 06:26:47 -0400 Received: by mail-ee0-f50.google.com with SMTP id b15so626858eek.37 for ; Wed, 01 May 2013 03:26:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:x-gm-message-state; bh=iTWaZgmiSVppUDeJ2E2MNNGI0bER5YktlLg89VsE3qY=; b=cMyajLkGNx8+Rnr3Eb3O3XP74E1s5sKn+BVXGoDrP9/EXNsqnS9bFgIy2mGlcuoo1l cJfk4ADARffuzTgsWrbmE7DxkMOg/iO5A6/dUqgEaKlCaZjAKJcjiEBFqWKBm8KEkijH e87nUg4f93nY2WeeHikP5DB6UpGulB/FWIY62AzuvJL0dyGm0tZYHtJykpk0uxkUGQn7 bUHFlPmYcqTjs33G3XB9WZIffY9QP7RM16Qxi94le51coRB9H8xEHS2jUBPyGtuEUBqq RPbKgooMP+ckdIvpOkeCiK/+lnWcLd5Fx3IVkdoXhXI3wCuKRHsZr3B5MuBf/HZct2XT S49Q== X-Received: by 10.14.3.137 with SMTP id 9mr6657895eeh.0.1367404005156; Wed, 01 May 2013 03:26:45 -0700 (PDT) Received: from rocoto.smurfnet.nu ([2001:4b98:dc0:41:216:3eff:fea7:75f3]) by mx.google.com with ESMTPSA id n7sm2986237eeo.0.2013.05.01.03.26.43 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 01 May 2013 03:26:44 -0700 (PDT) Date: Wed, 1 May 2013 10:25:54 +0000 From: Leif Lindholm To: Vladimir '??-coder/phcoder' Serbinenko Subject: Re: Raspberry pi support Message-ID: <20130501102554.GA28516@rocoto.smurfnet.nu> References: <5161AAE3.6050403@gmail.com> <20130408114445.GS23069@rocoto.smurfnet.nu> <5162BF4F.3090307@gmail.com> <20130408144048.GT23069@rocoto.smurfnet.nu> <51632154.2050004@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51632154.2050004@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Gm-Message-State: ALoCoQkDY13Op0lEIdPfDSxGvqkZI8J18Sziwk+i+1Wxv8xyKbJkwvVh7PXPzSLURkI6s9wWbFRe X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.83.50 Cc: The development of GRUB 2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 May 2013 10:26:52 -0000 Apologies for long silence, I've been off prototyping runtime services for UEFI on ARMv7 (in order to make EFI grub-install actually _do_ anything), and am really bad at multi-tasking. I am now focusing 100% on this for the rest of the week. On Mon, Apr 08, 2013 at 09:58:12PM +0200, Vladimir '??-coder/phcoder' Serbinenko wrote: > > Then I need to add a configure test for this, causing a failure if the > > > option is missing. A toolchain that does not support this option cannot > > be used to build a reliable bare-metal image for ARM. > > > > FSF GCC 4.7 onwards (and some distribution-patched 4.6) support this flag. > > > > Why? According to > http://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=eb04cafba3a6f1eddbdb5ec031d8a7074930d5b9 > older version simply have "implicit" -mno-unaligned-access and we > support only GCC. Ok, then it needs to be conditionalised on a configure test. > >>> And for reasons stated above, -march= should be set to whatever your > >>> target architecture is. Extracted by configure, I suppose? > >> > >> Hence --target-cpu=armv[67] proposal.g > > > > I think it is a bit overkill, since CFLAGS can cover it. > > > > The difference is that for all other targets you can compile for the > lowest supported CPU and use it for all devices with this target but if > I understand correctly on armv7 you need to insert some opcodes which > would cause a crash on armv6. Is only cache flushing displays such kind > of backward incompatibility? Only the cache flushing code requires barrier operations. Restricting the .S files to "ARM" instruction set, the barriers can be conditionalised. I will be sending out some patches that to this toda > Another question: > I see that efi/startup.S transitions to thumb but not uboot/startup.S. > Was uboot compiled as arm in your port as well or do I miss sth? Since I was calling it as a "kernel" image (to get machine type and ATAGS/DTB passed on), and the kernel is defined to be called in ARM state, this was the requirement. This requirement remains regardless of what instruction set uboot is compiled to. If uboot-ELF image support was implemented, you change the protocol, but there would be no strong benefit in changing the entry point code.. / Leif