Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wont compile u-boot #2

Open
vzhirov opened this issue Jan 11, 2017 · 4 comments
Open

Wont compile u-boot #2

vzhirov opened this issue Jan 11, 2017 · 4 comments

Comments

@vzhirov
Copy link

vzhirov commented Jan 11, 2017

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
Copy link

Exaga commented Jan 14, 2017

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$

orangepi-xunlong added a commit that referenced this issue Apr 25, 2017
@MarkZ2012
Copy link

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
Copy link

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

@MarkZ2012
Copy link

MarkZ2012 commented Jun 30, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants