[U-Boot] kirkwood (openrd): saveenv will not work with environment in NAND

Simon Kagstrom simon.kagstrom at netinsight.net
Wed Sep 30 09:57:10 CEST 2009


On Wed, 30 Sep 2009 09:40:07 +0200
Dieter Kiermaier <dk-arm-linux at gmx.de> wrote:

> > Sounds like you might have problems with USE_PRIVATE_LIBGCC. See this
> > mail for how to test this:
> > 
> >   http://lists.denx.de/pipermail/u-boot/2009-August/059313.html
> 
> export USE_PRIVATE_LIBGCC=yes
> seems to solve my problem - even if I don't exactly understand what I'm doing :(

You use a libgcc from uboot/lib_arm, built when you build uboot,
instead of the one you built with gcc. Basically you will build this
with the same ABI options as you build the rest of uboot, so it will
avoid the linker errors you got before.

> @Prafulla:
> Hi Prafulla,
> is there anywhere a document how to build open source u-boot for sheevaplug which explains all these details?
> (haven't found some documentation about this)

(Wearing my Prafulla hat): I guess this should be described on the
plugwiki:

  http://www.openplug.org/plugwiki/index.php/Das_U-boot_plug_support#Open_U-boot_support_for_SheevaPlug

but we really just need to solve the EABI problem.


Wolfgang/Stefan/Tom/Prafulla: Would a patch like the one below be
acceptable until we find out a proper fix? I realise that this also
affects other arm926ejs-boards, but is there some way to isolate this
to kirkwood?

// Simon


From 29ff02ca77406e820203ad27369e0684aa1a098c Mon Sep 17 00:00:00 2001
From: Simon Kagstrom <simon.kagstrom at netinsight.net>
Date: Fri, 4 Sep 2009 11:15:20 +0200
Subject: [PATCH] Make arm926ejs use -mabi=apcs-gnu and private libgcc

Using -mabi=apcs-gnu allows Marvell Kirkwood-based boards to boot with
the EABI changes introduced in commit
f772acf8a584067033eff1e231fcd1fb3a00d3d9. Since this changes the ABI,
USE_PRIVATE_LIBGCC is also defined.

Signed-off-by: Simon Kagstrom <simon.kagstrom at netinsight.net>
---
 cpu/arm926ejs/config.mk |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cpu/arm926ejs/config.mk b/cpu/arm926ejs/config.mk
index f8ef90f..1c9d547 100644
--- a/cpu/arm926ejs/config.mk
+++ b/cpu/arm926ejs/config.mk
@@ -20,10 +20,11 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 # MA 02111-1307 USA
 #
+USE_PRIVATE_LIBGCC = yes
 
 PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
-PLATFORM_CPPFLAGS += -march=armv5te
+PLATFORM_CPPFLAGS += -march=armv5te -mabi=apcs-gnu
 # =========================================================================
 #
 # Supply options according to compiler version
-- 
1.6.0.4



More information about the U-Boot mailing list