Applications, development tools, FPGA, C, WEB
-
Chris_Leyson
- Posts: 3
- Joined: Fri Dec 12, 2014 8:56 pm
Post
by Chris_Leyson » Sat Jan 03, 2015 2:57 pm
Hi everybody
I've encountered a small problem when running make FPGA_TOOL=vivado image, I get a permission denied error when patching devicetree.dts, fpga and sw_package build without any problems.
Code: Select all
source /opt/Xilinx/Vivado/2013.3/settings32.sh
export CROSS_COMPILE=arm-xilinx-eabi-
make FPGA_TOOL=vivado image
make -C image/ FPGA_TOOL=vivado -k all
make[1]: Entering directory `/home/chris/RedPitaya/FPGA/release1/fpga/image'
cp ../vivado/red_pitaya.runs/impl_1/red_pitaya_top.bit out/fpga.bit
cp ../vivado/red_pitaya.sdk/SDK/SDK_Export/fsbl/Debug/fsbl.elf out/fsbl.elf
bootgen -image out/boot.bif -w -o i out/boot.bin
cp ../vivado/red_pitaya.sdk/SDK/SDK_Export/device-tree_bsp_0/ps7_cortexa9_0/libsrc/device-tree_v0_00_x/xilinx.dts out/devicetree.dts
patch -N out/devicetree.dts src/device_tree_vivado.patch
patching file out/devicetree.dts
src/dtc -I dts -O dtb -o out/devicetree.dtb out/devicetree.dts
make[1]: execvp: src/dtc: Permission denied
make[1]: *** [devicetree] Error 127
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/home/chris/RedPitaya/FPGA/release1/fpga/image'
make: *** [image] Error 2
I'm running Ubuntu 14.04 alongside Win7 and I'm fairly new to Linux so I may have missed something.
Any help would be appreciated.
Regards
Chris
-
melko
- Posts: 19
- Joined: Fri Aug 08, 2014 7:13 pm
Post
by melko » Sat Jan 03, 2015 6:10 pm
Patching is not your issue here, the dtc call is,
have you installed the 32bit ubuntu version? The dtc executable in the FPGA/release1/fpga/image/src directory is 64bit, that may be the problem.
If you are running a 32bit OS you need to build yourself dtc (don't have time right now to explain the steps, tell me if you need further help).
-
Chris_Leyson
- Posts: 3
- Joined: Fri Dec 12, 2014 8:56 pm
Post
by Chris_Leyson » Mon Jan 05, 2015 9:24 pm
Thanks melko
Reinstalled Ubuntu (32-bit version) together with all off the required packages.
Installed device-tree-compiler and copied dtc from /usr/bin to fpga/image/src
Seems to have fixed it.
Code: Select all
sudo apt-get install device-tree-compiler
sudo rm /home/chris/RedPitaya/FPGA/release1/fpga/image/src/dtc
sudo cp /usr/bin/dtc /home/chris/RedPitaya/FPGA/release1/fpga/image/src
cd /RedPitaya/FPGA/release1/fpga/image/src
sudo chown chris:chris dtc
sudo chmod 700 dtc
Also installed on a 64-bit machine and everthing builds without any problems apart from the speed, very slow.
I noticed that on my 32-bit laptop the file permissions in image/src are different, they're -rw-------.
Perhaps a fresh clone is in order.
Chris
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 32 guests