Discussion

WIKI & GitHub not working

32 10150
winuser  
Ok thanks.

So you did not use gcc 4.8 on your server (for 14.04) ?

Your 12.04 machine is running 32 or 64 bit?

However your environment may not be entirely clean?

I am doing this for a new beginner user who should be able to run everything on his own by following strictly the instructions on the wiki.

He has set up a new machine (32 bit OS) and this is the present situation for him.

Would be glad if you can help to see if there is anything wrong with his system - big picture basis.

This would also apply to all your new users in the future.

Thanks.

winuser  
Reply 13# silentcreek

Hi,

Do you think a 32 bit system would make a difference?

Any other factors to consider for a new beginner?

Also please read your PM.

Thanks.

Um....I do not use 32bits OS. Maybe it is a problem.

winuser  
The remaining part of the 12.04 clean install story:-

sudo apt-get install pkg-config
then run make in sunxi-tools

message:-
[
mark@mark-Lu-12:~/toolchain/sunxi-tools$ make
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/ `pkg-config --cflags libusb-1.0`  -o fel fel.c  `pkg-config --libs libusb-1.0`
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/  -o pio pio.c
pio.c: In function ‘do_command’:
pio.c:316:57: warning: unused parameter ‘argc’ [-Wunused-parameter]
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/ -c -o nand-part-main.o nand-part-main.c
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/ -c -o nand-part-a10.o nand-part.c -D A10
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/ -c -o nand-part-a20.o nand-part.c -D A20
gcc  -o nand-part nand-part-main.o nand-part-a10.o nand-part-a20.o
]

the Bananapi.fex file is found in the sunxi-boards dir under /sunxi-boards/sys_config/a20
tweak the Bananapi.fex file then save it to sunxi-tools dir

for those interested in the parameters of the .fex file and how to tweak your system - read http://linux-sunxi.org/Fex_Guide

then in sunxi-tools dir run

fex2bin Bananapi.fex script.bin     (to get the script.bin file)
message:-
[
mark@mark-Lu-12:~/toolchain/sunxi-tools$ fex2bin Bananapi.fex script.bin
fex2bin: command not found
]

the fex2bin executable file is in the sunxi-tools dir but the error message seem to show that it is not working
(???)
???
???


for those who want to know more about the Bananapi A20 SoC - read
http://linux-sunxi.org/Main_Page

for those who want to try to boot from usb without using the SD card - start and explore here:- http://linux-sunxi.org/FEL

winuser  
The remaining part of the 14.04.1 LTS clean install story:-

the story continues with the installation of:-

sudo apt-get install gcc-4.8-arm-linux-gnueabihf-base
sudo apt-get install g++-4.8-arm-linux-gnueabihf

The build using the BSP remains with the same error message


Try the step by step for building script.bin

git clone https://github.com/LeMaker/sunxi-tools.git
git clone https://github.com/LeMaker/sunxi-boards.git

Go into sunxi-tools and run the command:

make

the following error message:-
[
mark@mark-Lubuntu:~/toolchain/sunxi-tools$ make
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/ `pkg-config --cflags libusb-1.0`  -o fel fel.c  `pkg-config --libs libusb-1.0`
/bin/sh: 1: pkg-config: not found
/bin/sh: 1: pkg-config: not found
fel.c:22:20: fatal error: libusb.h: No such file or directory
#include <libusb.h>
                    ^
compilation terminated.
make: *** [fel] Error 1
mark@mark-Lubuntu:~/toolchain/sunxi-tools$
]

try
sudo apt-get install pkg-config

then run make again

got the following message:-
[
mark@mark-Lubuntu:~/toolchain/sunxi-tools$ make
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/ `pkg-config --cflags libusb-1.0`  -o fel fel.c  `pkg-config --libs libusb-1.0`
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/  -o pio pio.c
pio.c: In function ‘do_command’:
pio.c:316:57: warning: unused parameter ‘argc’ [-Wunused-parameter]
static int do_command(char *buf, const char **args, int argc)
                                                         ^
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/ -c -o nand-part-main.o nand-part-main.c
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/ -c -o nand-part-a10.o nand-part.c -D A10
gcc -g -O0 -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/ -c -o nand-part-a20.o nand-part.c -D A20
gcc  -o nand-part nand-part-main.o nand-part-a10.o nand-part-a20.o
mark@mark-Lubuntu:~/toolchain/sunxi-tools$
]

Like in 12.04 (above post), the Bananapi.fex is found in the sunxi-boards dir
edit the .fex file and then save into sunxi-tools dir

then in sunxi-tools dir run

fex2bin Bananapi.fex script.bin     (to get the script.bin file)

got the same error message as in 12.04 run
[
mark@mark-Lubuntu:~/toolchain/sunxi-tools$ fex2bin Bananapi.fex script.bin
fex2bin: command not found
mark@mark-Lubuntu:~/toolchain/sunxi-tools$
]

???
???
???


after installing pkg-config, we go back to the BSP build and run make again
with the following error message:-
[
mark@mark-Lubuntu:~/toolchain/bananapi-bsp$ make
make -C u-boot-bananapi all O=/home/mark/toolchain/bananapi-bsp/build/Bananapi-u-boot CROSS_COMPILE=arm-linux-gnueabihf- -j4
make[1]: Entering directory `/home/mark/toolchain/bananapi-bsp/u-boot-bananapi'
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  GEN     /home/mark/toolchain/bananapi-bsp/build/Bananapi-u-boot/Makefile
  UPD     include/generated/timestamp_autogenerated.h
  HOSTCC  scripts/basic/fixdep
  Using /home/mark/toolchain/bananapi-bsp/u-boot-bananapi as source for u-boot
  CHK     include/generated/version_autogenerated.h
  CC      lib/asm-offsets.s
  CC      arch/arm/lib/asm-offsets.s
In file included from /home/mark/toolchain/bananapi-bsp/u-boot-bananapi/include/configs/sun7i.h:28:0,
                 from include/config.h:16,
                 from /home/mark/toolchain/bananapi-bsp/u-boot-bananapi/include/common.h:18,
                 from /home/mark/toolchain/bananapi-bsp/u-boot-bananapi/arch/arm/lib/asm-offsets.c:15:
/home/mark/toolchain/bananapi-bsp/u-boot-bananapi/include/configs/sunxi-common.h:26:56: fatal error: asm/arch/cpu.h: No such file or directory
#include <asm/arch/cpu.h> /* get chip and board defs */
                                                        ^
compilation terminated.
In file included from /home/mark/toolchain/bananapi-bsp/u-boot-bananapi/include/configs/sun7i.h:28:0,
                 from include/config.h:16,
                 from /home/mark/toolchain/bananapi-bsp/u-boot-bananapi/include/common.h:18,
                 from /home/mark/toolchain/bananapi-bsp/u-boot-bananapi/lib/asm-offsets.c:15:
/home/mark/toolchain/bananapi-bsp/u-boot-bananapi/include/configs/sunxi-common.h:26:56: fatal error: asm/arch/cpu.h: No such file or directory
#include <asm/arch/cpu.h> /* get chip and board defs */
                                                        ^
compilation terminated.
make[3]: *** [arch/arm/lib/asm-offsets.s] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [lib/asm-offsets.s] Error 1
make[2]: *** [prepare0] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mark/toolchain/bananapi-bsp/u-boot-bananapi'
make: *** [u-boot] Error 2
mark@mark-Lubuntu:~/toolchain/bananapi-bsp$
]
???
???
???


so for a new beginner (with a new linux installation) - the bananapi Wiki and/or GitHub does not allow the completion of both building the BSP and also the step by step building script.bin
So a new user would not be able to get their own script.bin file.


I really hope that LeMaker would look into these matters for new Bananapi buyers.

I think it is really in their interest to take care of new potential customers, now and into the future.

Now especially with the new Banana Pro - i think support is of utmost importance for long term  development of the product - especially for new users and also for something as basic as a working Wiki for them.

You are still stopped at build script.bin.
If you follow this instruction http://linux-sunxi.org/Sunxi-tools , still get build error, maybe you need ask sunxi.org the reason. Most people can build successfully.

This is the only package we need install before build script.bin:
apt-get install libusb-1.0-0-dev

winuser  

RE: WIKI &amp; GitHub not working


Thank you for your comments.

The error message is about the same (building script.bin) for both new installs of 12.04 and 14.04. However, bear in mind that pkg-config was additionally installed, apart from the other required packages as in the Wiki.

Another, the bin2fex executable is not working.

In the error message, it was said "command not found" - however upon inspection, it is there in the sunxi-tools dir.
So what is the problem?
The compilation did not end (at that point) successfully?

What about the error messages in the BSP run - please comment?


The error just occur in the build sunxi-tools process. You can try to install the sunxi-tools from sunxi github. Because the sunxi-tools is provided by linux-sunxi community, you'd better ask them.

winuser  

Hi,

My nephew (12 years old) had read something from Sunxi.

There it is specifically stated that 2 packages are pre-requisitely needed in the build script.bin run:-
1) libusb-1.0-0-dev            AND
2) pkg-config

We think we may have helped you in this problem.

However we are on vacation now and need to get back (to use the computer) before we can confirm.

We will let you know after that.

This thread has had >500 views - this goes to show that it is basically an important topic.

Hope we could be of help when we return.

winuser  
tony_zhang replied at 2014-10-15 01:56
The error just occur in the build sunxi-tools process. You can try to install the sunxi-tools from s ...


We probably could help in the sunxi-tools problem (build script.bin run).

But what about the compilation problem in the BSP run? The error occurred in the u-boot-bananapi dir?

The error message is rather complex - we hope you could get someone to really look into this problem?

Thanks.

You have to log in before you can reply Login | Sign Up

Points Rules