cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
irand.simon
Visitor
Visitor
9,670 Views
Registered: ‎02-28-2015

Can not compile u-boot for zybo

Jump to solution

Hi,

 

Under Linux mint 17.1 I have install Vivado & SDK for linux 2014.1.

I follow the tutorial from Digilent to configure u-boot for zybo.

 

I have try with git both repository, only master-next accept "sudo make CROSS_COMPILE=arm-xilinx-linux-gnueabi- zynq_zybo_config"

 

but on the next step of the tutorial : "sudo make CROSS_COMPILE=arm-xilinx-linux-gnueabi-" I got :

make: arm-xilinx-linux-gnueabi-gcc: Command not found
/bin/sh: arm-xilinx-linux-gnueabi-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
/bin/sh: arm-xilinx-linux-gnueabi-gcc: command not found
/bin/sh: arm-xilinx-linux-gnueabi-ld: command not found
Generating include/spl-autoconf.mk
/bin/sh: line 2: arm-xilinx-linux-gnueabi-gcc: command not found
Generating include/tpl-autoconf.mk
/bin/sh: line 2: arm-xilinx-linux-gnueabi-gcc: command not found
arm-xilinx-linux-gnueabi-gcc -DDO_DEPS_ONLY \
-g -Os -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -fno-strict-aliasing -mno-unaligned-access -mfpu=neon -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x4000000 -I/home/simon/FPGA/zybo/u-boot-Digilent-Dev/include -I/home/simon/FPGA/zybo/u-boot-Digilent-Dev/arch/arm/include -fno-builtin -ffreestanding -nostdinc -isystem -pipe -DCONFIG_ARM -D__ARM__ -march=armv5 -Wall -Wstrict-prototypes \
-o lib/asm-offsets.s lib/asm-offsets.c -c -S
make: arm-xilinx-linux-gnueabi-gcc: Command not found
make: *** [lib/asm-offsets.s] Error 127

 

 

arm-xilinx-linux-gnueabi-gcc is on my PATH and I do not know why it is not found.

 

 

 

Thank you for help me.

Simon.

0 Kudos
1 Solution

Accepted Solutions
demke234
Visitor
Visitor
15,218 Views
Registered: ‎02-10-2015

The problem is most likely that you have done some things as root (through sudo) already in your kernel tree. You need to change back ownership of the files to your normal user account. Something like this in your linux kernel source tree should do it:

 

sudo chown -R yourusername .

 

(There is a dot at the end). Now you can run your usual make command without sudo.

 

View solution in original post

0 Kudos
7 Replies
norman_wong
Scholar
Scholar
9,659 Views
Registered: ‎05-28-2012

Try the command without "sudo". You should not need to be root to compile u-boot. Your path and the path for root as different.

0 Kudos
irand.simon
Visitor
Visitor
9,655 Views
Registered: ‎02-28-2015

simon@simon-ThinkPad-T60 ~/FPGA/zybo/u-boot-Digilent-Dev $ make CROSS_COMPILE=arm-xilinx-linux-gnueabi-
make: arm-xilinx-linux-gnueabi-gcc: Command not found
/bin/sh: arm-xilinx-linux-gnueabi-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
/bin/sh: include/generated/timestamp_autogenerated.h.tmp: Permission denied
make: *** [include/generated/timestamp_autogenerated.h] Error 1

 

 

sorry it is the same

0 Kudos
norman_wong
Scholar
Scholar
9,641 Views
Registered: ‎05-28-2012

I can't think of anything else obvious. Try the "which" command to double check your path.
which arm-xilinx-linux-gnueabi-gcc

 

0 Kudos
irand.simon
Visitor
Visitor
9,632 Views
Registered: ‎02-28-2015

simon@simon-ThinkPad-T60 /opt/Xilinx/SDK/2014.1 $ which arm-xilinx-linux-gnueabi-gcc
/opt/Xilinx/SDK/2014.1/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi-gcc

 

yes it is cool

 

 

Do I need a symbollic link between "/opt/Xilinx/SDK/2014.1/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi-gcc" and "arm-xilinx-linux-gnueabi-gcc" for the folder where u-boot stands?

 

 

Thank you very much for helping me guys

0 Kudos
irand.simon
Visitor
Visitor
9,623 Views
Registered: ‎02-28-2015

Now ;

 

simon@simon-ThinkPad-T60 ~/FPGA/zybo/u-boot-Digilent-Dev $ make CROSS_COMPILE=arm-xilinx-linux-gnueabi- zynq_zybo_config
Configuring for zynq_zybo board...
simon@simon-ThinkPad-T60 ~/FPGA/zybo/u-boot-Digilent-Dev $ make CROSS_COMPILE=arm-xilinx-linux-gnueabi-
Generating include/autoconf.mk
Generating include/autoconf.mk.dep
/bin/sh: include/generated/timestamp_autogenerated.h.tmp: Permission denied
make: *** [include/generated/timestamp_autogenerated.h] Error 1
simon@simon-ThinkPad-T60 ~/FPGA/zybo/u-boot-Digilent-Dev $

 

 

So it is close to work, I used sudo to avoid this permission denied but I am stuck

0 Kudos
demke234
Visitor
Visitor
15,219 Views
Registered: ‎02-10-2015

The problem is most likely that you have done some things as root (through sudo) already in your kernel tree. You need to change back ownership of the files to your normal user account. Something like this in your linux kernel source tree should do it:

 

sudo chown -R yourusername .

 

(There is a dot at the end). Now you can run your usual make command without sudo.

 

View solution in original post

0 Kudos
demke234
Visitor
Visitor
9,617 Views
Registered: ‎02-10-2015

Sorry, I obviously meant that you should do that in your u-boot source tree.

0 Kudos