[U-Boot] UBIFS fails on SheevaPlug

Andreas Bießmann andreas.devel at googlemail.com
Tue Nov 6 10:12:20 CET 2012


Dear Dimax,

On 06.11.2012 08:51, Dimax wrote:
> Well so far no luck,
> Actually I'm not sure how to start. But I will try to go on "with a
> little help from my friends".
> 
> I)
> The first question that raised is a compiler. I see two options:
> 1. Use the cross compiler - this is what more likely most of the people
> are doing.
> 2. I wonder if I can use native compiler? I actually have a number of
> running SheevaPlugs with gcc installed on them.
> Do you think it will work?

Both should work, if you need an cross compiler have a look at ELDK [1]

> II)
> After extracting files I have following tree:
> 
> u-boot_2012.04.01-2_armel.deb

Wrong file! Please use the source from denx.de, either git from
git://git.denx.de/u-boot.git or a released version from
ftp://ftp.denx.de/pub/u-boot

<snip debian package content>

> According to README all I have to do is to run
> make NAME_config
> The sheevaplug is listed in boards.cfg so there should be no problem to
> make sheevaplug_config.

Thats true for native build (never tested, may not work)

You will need some compiler flags:
 CROSS_COMPILE (prefix for 'gcc' when cross compiling)
 PATH (should contain your toolchain)

I would build it that way:

---8<---
abiessmann at azuregos % PATH=$ARMv5_PATH:$PATH
CROSS_COMPILE=arm-v5te-linux-gnueabi- make O=/tmp/build_sheevaplug
sheevaplug_config
Configuring for sheevaplug board...
abiessmann at azuregos % PATH=$ARMv5_PATH:$PATH
CROSS_COMPILE=arm-v5te-linux-gnueabi- make O=/tmp/build_sheevaplug all

...
abiessmann at azuregos % ls -l /tmp/build_sheevaplug/u-boot*
-rwxr-xr-x 1 abiessmann abiessmann 1893165 Nov  6 10:09
/tmp/build_sheevaplug/u-boot*
-rw-r--r-- 1 abiessmann abiessmann  378492 Nov  6 10:09
/tmp/build_sheevaplug/u-boot.bin
-rw-r--r-- 1 abiessmann abiessmann    1043 Nov  6 10:09
/tmp/build_sheevaplug/u-boot.lds
-rw-r--r-- 1 abiessmann abiessmann  127109 Nov  6 10:09
/tmp/build_sheevaplug/u-boot.map
-rw-r--r-- 1 abiessmann abiessmann 1088268 Nov  6 10:09
/tmp/build_sheevaplug/u-boot.srec
abiessmann at azuregos % PATH=$ARMv5_PATH:$PATH
CROSS_COMPILE=arm-v5te-linux-gnueabi- make O=/tmp/build_sheevaplug
/tmp/build_sheevaplug/u-boot.kwb
...
Preparing kirkwood boot image to boot from nand
Nand ECC mode = default
Nand page size = 0x800
Image Type:   Kirkwood Boot from NAND Flash Image
Data Size:    378492 Bytes = 369.62 kB = 0.36 MB
Load Address: 00600000
Entry Point:  00600000
--->8---

> In this case I do not get what are the other two directory and file:
> u-boot_2012.04.01-2_armel.deb
> debian/
> 
> To my understanding debian/ is some port but I do not see any makefile
> where. So not sure hot to use it?

Well, that is a pre-compiled debian package for armel. The debian
directory contains some information for the debian package system.

Best regards

Andreas Bießmann

[1] http://www.denx.de/wiki/DULG/ELDK


More information about the U-Boot mailing list