orangepi-h3-linus / orangepi_h3_linus

OrangePi Source Code
30 stars 110 forks source link

Wont compile u-boot #2

Open vzhirov opened 7 years ago

vzhirov commented 7 years ago

I executed : sudo ./build_mainline_uboot.sh plus2e I have got :

... CC cmd/bootz.o {standard input}: Assembler messages: {standard input}:344: Error: push/pop do not support {reglist}^ -- `pop {r0,r1,r2,r3,r4,r9,ip,pc}^' AS arch/arm/lib/ashrdi3.o scripts/Makefile.build:280: recipe for target 'arch/arm/cpu/armv7/sunxi/psci.o' failed make[2]: [arch/arm/cpu/armv7/sunxi/psci.o] Error 1 scripts/Makefile.build:425: recipe for target 'arch/arm/cpu/armv7/sunxi' failed make[1]: [arch/arm/cpu/armv7/sunxi] Error 2 Makefile:1221: recipe for target 'arch/arm/cpu/armv7' failed make: [arch/arm/cpu/armv7] Error 2 make: Waiting for unfinished jobs.... CC arch/arm/lib/div0.o ... cp: cannot stat '../../u-boot-2016.7/u-boot-sunxi-with-spl.bin': No such file or directory ****Compile uboot OK*** chmod: cannot access 'u-boot-sunxi-with-spl.bin': No such file or directory Image Name:
Created: Wed Jan 11 14:58:17 2017 Image Type: ARM Linux Script (uncompressed) Data Size: 505 Bytes = 0.49 kB = 0.00 MB Load Address: 00000000 Entry Point: 00000000 Contents: Image 0: 497 Bytes = 0.49 kB = 0.00 MB cp: cannot stat 'u-boot-sunxi-with-spl.bin': No such file or directory

My environment: uname -a Linux vladimir-mint 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:05 UTC 2016 i686 i686 i686 GNU/Linux arm-linux-gnueabi-gcc --version arm-linux-gnueabi-gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

Exaga commented 7 years ago

I get the same with sudo ./build_mainline_uboot.sh plus

orangepi@OrangePI:~/orangepi_h3_linux/OrangePi-Kernel$ sudo ./build_mainline_uboot.sh plus check uboot source ...

orangepi_plus_defconfig enter u-boot source director clear u-boot ./build_mainline_uboot.sh: line 26: make: command not found compile u-boot ./build_mainline_uboot.sh: line 27: make: command not found Sat Jan 14 14:34:42 UTC 2017 build u-boot,please wait ... ./build_mainline_uboot.sh: line 30: make: command not found Sat Jan 14 14:34:42 UTC 2017

/home/orangepi/orangepi_h3_linux/OrangePi-Kernel/build/uboot

cp: cannot stat ‘../../u-boot-2016.7/u-boot-sunxi-with-spl.bin’: No such file or directory ****Compile uboot OK*** chmod: cannot access ‘u-boot-sunxi-with-spl.bin’: No such file or directory Image Name: Created: Sat Jan 14 14:34:42 2017 Image Type: ARM Linux Script (uncompressed) Data Size: 503 Bytes = 0.49 kB = 0.00 MB Load Address: 00000000 Entry Point: 00000000 Contents: Image 0: 495 Bytes = 0.48 kB = 0.00 MB cp: cannot stat ‘u-boot-sunxi-with-spl.bin’: No such file or directory /home/orangepi/orangepi_h3_linux orangepi@OrangePI:~/orangepi_h3_linux/OrangePi-Kernel$

MarkZ2012 commented 5 years ago

I meet the same error while I try to build the uboot, My linux os is ubuntu 18.04, I resolve it by the list command.

sudo apt-get install build-essential sudo apt install make sudo apt-get install lib32ncurses5 lib32z1 sudo apt-get install lib32stdc++6

MarkZ2012 commented 5 years ago

install the library when you build the kernel by "./build_mainline_kernel.sh opi" sudo apt-get install libncurses5-dev libncursesw5-dev

MarkZ2012 commented 5 years ago

./create_iamge you need sudo apt-get install debootstrap qemu qemu-user-static