Debian on NAND

Started by ric.rug, October 12, 2012, 04:25:22 PM

Previous topic - Next topic

hanuch

Hi,

I've been trying the scripts mentioned above, but i have problems with the dragon tool. I've run it both in Ubuntu (linux binary and through Wine) and Windows, but it keeps throwing the same problem: "BuildImage level_2 Failed 444". The problem apparently is in AWPluginvector.dll.

Does anybody have an idea of what's going wrong?

Tranks!

techn

#16
Quote from: hanuch on April 05, 2013, 09:06:38 PM
Hi,

I've been trying the scripts mentioned above, but i have problems with the dragon tool. I've run it both in Ubuntu (linux binary and through Wine) and Windows, but it keeps throwing the same problem: "BuildImage level_2 Failed 444". The problem apparently is in AWPluginvector.dll.

Does anybody have an idea of what's going wrong?

Tranks!
Oh. I forgot to mention that 64bit linux is required.

Updated instructions here: http://linux-sunxi.org/BSP#LiveSuit_image

ST

#17
Olimex, please, comment on whether you plan to add Debian on NAND in some near future?
Thank you.

PS: number of views of this thread is now: 1277 . Looks like a pretty hot feature ;)

JohnS

I've read every post, one by one as gradually added, which adds up to quite a few of the reads.

I don't expect Olimex to provide it.  They make hardware, basically.

ST

I'm not that pessimistic, since at least two Olimex guys - Dimitar Gamishev and Henrik Nordstrom - work on it. The question is - how serious Olimex is about this feature...

JohnS

I'm not pessimistic but trying to be realistic.  Most of the software on their site was provided (donated) by users, as is normal if what you really do is make hardware.

olimex

@ST Dimitar Gamishev and Henrik Nordstrom are not Olimex employees
as John said if we could do this we would already do it :)
I guess you didn't read what I wrote above - thre is solution for generation of Linux on NAND it just do not use GPL compliant but properitary closed source Allwinner bootloader if we release such image we will be GPL violator also, until hno releases community uboot which supports NAND flash you can make the image by yourself as you see people gave you tips above what to do, but you will violate GPL too if you decide to publish or deliver board with it to your customer

oldpenguin

#22
Hello all
I am trying to follow the guide from http://linux-sunxi.org/BSP on a debian machine

I installed linaro gnueabihf toolchain and set the PATH.
I've done
git clone git://github.com/linux-sunxi/sunxi-bsp.git
(actually replaced git: by http: because my stupid corporate proxy doesn't allow git access...)
./configure a13_olinuxino
make

Everything went fine
Then I had to install separately the allwinner tools using instructions from http://http://linux-sunxi.org/LiveSuit
As expected, I had to extract the suite manually.
Back to the sunxi-bsp I did
cd ..
wget https://releases.linaro.org/13.02/ubuntu/quantal-images/nano/linaro-quantal-nano-20130224-286.tar.gz
cd sunxi-bsp
./scripts/mk_ext4_rootfs.sh ../linaro-quantal-nano-20130224-286.tar.gz rootfs.ext4

Then
./scripts/mk_livesuit_img.sh -R rootfs.ext4
This time I had to fiddle around with this script because the base installation is not the same and folder structure has changed.
Rigth now I'm stuck with an error. fsbuild fails with the following error:
../cubie/allwinner-pack-tools/pack/pctools/linux/fsbuild200/fsbuild /home/asc/projects/olinuxino/a13/sunxi-bsp/build/a13_olinuxino_livesuit/bootfs.ini /home/asc/projects/olinuxino/a13/sunxi-bsp/build/a13_olinuxino_livesuit/split_xxxx.fex
fsbuild error. The size if filesystem must more than 80k  now is 32
fsbuild failed 338
CPlugin Free lib
CPlugin Free lib


Any idea of what this means ?


techn

Quote from: oldpenguin on April 09, 2013, 06:27:39 PM
Rigth now I'm stuck with an error. fsbuild fails with the following error:
../cubie/allwinner-pack-tools/pack/pctools/linux/fsbuild200/fsbuild /home/asc/projects/olinuxino/a13/sunxi-bsp/build/a13_olinuxino_livesuit/bootfs.ini /home/asc/projects/olinuxino/a13/sunxi-bsp/build/a13_olinuxino_livesuit/split_xxxx.fex
fsbuild error. The size if filesystem must more than 80k  now is 32
fsbuild failed 338
CPlugin Free lib
CPlugin Free lib


Any idea of what this means ?
Hi, Thanks for testing.
Something went wrong during you fiddled scripts. You should use stuff under ./sunxi-bsp/allwinner-tools/

Everything should work fine if you follow latest guide:
./configure # to list all currently supported boards
./configure <selected board>
make linux # generate kernel and modules
wget <rootfs.tar.gz>
make livesuit ROOTFS=<rootfs.tar.gz>


oldpenguin

#24
Hello techn
Thank you very much for your reply.
For some reason, my first clone had missed the allwinner-tools submodule altogether.
Now instead of a full clone (that takes an eternity) I did:
git checkout -f (overwrites my changes)
git pull

make clean
./configure a13_olinuxino
make
make livesuit ROOTFS=rootfs.ext4

But this last command fails getting a13 default files

Changed LIVESUIT_DIR to SOURCE_DIR in the following lines of mk_livesuit_img.sh
make_sys_configs ${SOURCE_DIR}/default/sys_config_linux.fex
make_boot0_boot1
make_bootfs ${SOURCE_DIR}/default/env_linux.cfg
ln -sv "$ROOTFS" ${BUILD_DIR}/rootfs.fex
modify_image_cfg ${SOURCE_DIR}/default/image_linux.cfg

Now the command completes correctly.
The generated file is in output folder
Now I just have to test it  :)



techn

Quote from: oldpenguin on April 10, 2013, 12:24:45 PM
Changed LIVESUIT_DIR to SOURCE_DIR in the following lines of mk_livesuit_img.sh
I think you have old version of allwinner-tools. https://github.com/linux-sunxi/allwinner-tools/tree/master/livesuit/default

oldpenguin

Strange !
I did
git checkout -f
git pull

And got the script with LIVESUIT_DIR instead of SOURCE_DIR
I'm a git newbie. Maybe I am doing something wrong.

techn

#27
Quote from: oldpenguin on April 10, 2013, 09:03:49 PM
Strange !
I did
git checkout -f
git pull

And got the script with LIVESUIT_DIR instead of SOURCE_DIR
I'm a git newbie. Maybe I am doing something wrong.
You could try 'git submodule update' at root of sunxi-bsp. Or at allwinner-tools 'git fetch' and 'git checkout master'


oldpenguin

My LiveSuit refuses to load any image:

It keeps saying image is invalid with any image (my image or android image from olimex)

The command line shows the following error when I select an image file:

...@hwdev2:~/projects/olinuxino/a13/Livesuit/LiveSuit_For_Linux64/LiveSuit$ ./LiveSuit.sh
You are running on Debian

Load /home/asc/projects/olinuxino/a13/Livesuit/LiveSuit_For_Linux64/LiveSuit/bin/tools.scj failed
LoadTools, LoadToolsPlug failed 203

...@hwdev2:~/projects/olinuxino/a13/Livesuit/LiveSuit_For_Linux64/LiveSuit$

Any idea of what problem this can be ?