From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Andreas_Bie=DFmann?= Date: Tue, 06 Nov 2012 10:12:20 +0100 Subject: [U-Boot] UBIFS fails on SheevaPlug In-Reply-To: References: <201210282354.02300.marex@denx.de> <508E26D3.5030606@googlemail.com> <508E409B.20501@gmail.com> <508E4829.90004@gmail.com> <508ED095.4080502@gmail.com> <508F0AED.9030108@googlemail.com> <5091518B.8050007@gmail.com> <509156C2.1070801@gmail.com> <509157F0.8000808@gmail.com> <50916644.80906@googlemail.com> Message-ID: <5098D474.6070906@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > 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