All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] UBIFS fails on SheevaPlug
Date: Tue, 06 Nov 2012 10:12:20 +0100	[thread overview]
Message-ID: <5098D474.6070906@gmail.com> (raw)
In-Reply-To: <CAF9kqNHfsjnovO5Yo7EVfGcesiFX0FTw_UeRby9yUen=cGkUbw@mail.gmail.com>

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@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

  reply	other threads:[~2012-11-06  9:12 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-28 14:48 [U-Boot] UBIFS fails on SheevaPlug Dimax
2012-10-28 22:54 ` Marek Vasut
2012-10-29  5:25   ` Dimax
2012-10-29  6:38     ` Dimax
2012-10-29  6:48       ` Andreas Bießmann
2012-10-29  6:55         ` Dimax
2012-10-29  8:38           ` Andreas Bießmann
2012-10-29  8:50             ` Dimax
2012-10-29  9:11               ` Andreas Bießmann
2012-10-29  9:27                 ` Dimax
2012-10-29  9:43                   ` Andreas Bießmann
2012-10-29 10:19                     ` Marek Vasut
2012-10-29 10:34                       ` Andreas Bießmann
2012-10-29 16:02                   ` Vikram Narayanan
2012-10-29 12:15                 ` Prafulla Wadaskar
2012-10-29 17:25                   ` Dimax
2012-10-29 18:53                     ` Vikram Narayanan
2012-10-29 19:05                       ` Dimax
2012-10-29 23:55                         ` Andreas Bießmann
2012-10-29 23:02                       ` Andreas Bießmann
2012-10-31 16:27                         ` Vikram Narayanan
2012-10-31 16:50                           ` Andreas Bießmann
2012-10-31 16:55                             ` Vikram Narayanan
2012-10-31 17:23                               ` Dimax
2012-10-31 17:56                                 ` Andreas Bießmann
2012-10-31 20:45                                   ` [U-Boot] How to enable debug information in u-boot Paulo Louro
2012-11-06  7:51                                   ` [U-Boot] UBIFS fails on SheevaPlug Dimax
2012-11-06  9:12                                     ` Andreas Bießmann [this message]
2012-11-12  5:33                                       ` Dimax
2012-11-12  8:33                                         ` Andreas Bießmann
2012-11-12 16:55                                           ` Dimax
2012-11-12 17:15                                             ` Vikram Narayanan
2012-10-29  6:01 ` Prafulla Wadaskar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5098D474.6070906@gmail.com \
    --to=andreas.devel@googlemail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.