Page 2 of 4

Re: Basic compling with Ubuntu and Vivado

PostPosted: Wed May 11, 2016 4:33 pm
by Nils Roos
I did not read your first post carefully enough ...

I have install the latest Ubuntu system


The build instructions are specifically for Ubuntu 14.04. There are several issues when you use later versions, mostly due to the v5 gcc. See this topic on how to solve them.

Re: Basic compling with Ubuntu and Vivado

PostPosted: Thu May 12, 2016 4:04 pm
by thomasliuchang
Hi Nils,

Thanks for your answer. I tried the topic you told me. It goes further, but there are still some errors as follows.

Code: Select allmake -C fpga
make[1]: Entering directory '/home/lic/RedPitaya/fpga'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/lic/RedPitaya/fpga'
mkdir -p tmp
make -C tmp/u-boot-xlnx-xilinx-v2015.4 arch=ARM zynq_red_pitaya_defconfig
make[1]: Entering directory '/home/lic/RedPitaya/tmp/u-boot-xlnx-xilinx-v2015.4'
***
*** Can't find default configuration "arch/../configs/zynq_red_pitaya_defconfig"!
***
scripts/kconfig/Makefile:111: recipe for target 'zynq_red_pitaya_defconfig' failed
make[2]: *** [zynq_red_pitaya_defconfig] Error 1
Makefile:475: recipe for target 'zynq_red_pitaya_defconfig' failed
make[1]: *** [zynq_red_pitaya_defconfig] Error 2
make[1]: Leaving directory '/home/lic/RedPitaya/tmp/u-boot-xlnx-xilinx-v2015.4'
Makefile:191: recipe for target 'tmp/u-boot.elf' failed
make: *** [tmp/u-boot.elf] Error 2


To be honest, I am really puzzled and wondering whether I should reinstall the Ubuntu system to 14.04. I am afraid that there will be more errors to fix if I continue to use the Ubuntu 16.04. If I reinstall the system to 14.04 and do as viewtopic.php?p=4609#p4609, will everything be fine?

Kind regards,
Chang

Re: Basic compling with Ubuntu and Vivado

PostPosted: Fri May 13, 2016 7:56 am
by thomasliuchang
Hi Nils,

I have reinstall the Ubuntu 14.04. Finally, it works fine. Thank you so much! :)

Kind regards,
Chang

Re: Basic compling with Ubuntu and Vivado

PostPosted: Sat May 21, 2016 8:04 am
by Amraam
thomasliuchang wrote:Hi Nils,

Thanks for your help. I have installed the ecosystem0.92 and the continuous data acquisition is working.


Hi,

somebody can explain me how to pass from 0.95 (redpitaya.com/quick-start) to ecosystem 0.92?
I've succesfully installed the .img file with Win32 Disk Imager, but ecosystem 0.92 has no .img file.
Must I brutally format the SD and copy the .zip contents? I'm Windows user.

Best Regards,
Amraam

Re: Basic compling with Ubuntu and Vivado

PostPosted: Sat May 21, 2016 8:58 pm
by thomasliuchang
Hi Amraam,

You needn't to format the SD card to install the 0.92 ecosystem. Thanks to Nils, you could refer to
You mustn't downgrade to the original 0.92... ecosystem, you should download the ecosystem that is linked from the thread New feature: high speed continuous recording (which is actually closer to the 0.93 version). You can make the /opt/redpitaya directory - where the ecosystem should be unpacked into - writable by calling "rw" from the command line.


Best wishes,
Chang

Re: Basic compling with Ubuntu and Vivado

PostPosted: Sat May 21, 2016 9:25 pm
by Nils Roos
The 32 / 64 bit issues should be resolved when you install the multilib packages of the compilers.
ncurses and CMake have problems with gcc versions >= 5.
See this post how to avoid them.
(It boils down to installing gcc 4.9 and adding some patches to make sure it is used throughout)

Re: Basic compling with Ubuntu and Vivado

PostPosted: Sun May 22, 2016 3:18 pm
by Amraam
Nils Roos wrote:You mustn't downgrade to the original 0.92... ecosystem, you should download the ecosystem that is linked from the thread New feature: high speed continuous recording (which is actually closer to the 0.93 version). You can make the /opt/redpitaya directory - where the ecosystem should be unpacked into - writable by calling "rw" from the command line.


I'm a bit confused, please confirm if following steps from a microsd card with OS 0.95 to OS ecosystem-0.92 are correct:
1) format the microsd card with OS 0.95 (standard Format of Windows)
2) create the directory on it: /opt/redpitaya
3) unzip the content of ecosystem-0.92-81-98e007d.zip
4) put the microsd card into RP and power on the device
5 ) RP is able to continuously acquire data.

Just another info: Now Windows detects the microsd with small capability (MB), after the format, the sistem is able to detect the full capability or this operation must be performed with other tools?

Re: Basic compling with Ubuntu and Vivado

PostPosted: Sun May 22, 2016 4:05 pm
by Nils Roos
Not quite correct, this is the list of things to do:

  1. write the 0.95 image to the sd-card with Win32DiskImager
  2. after this step, windows will only detect one drive (partition) of ~128MB size on the card with this contents:
    v0.95.png

  3. delete everything in this drive, but do not format it
  4. unzip the 0.92 ecosystem into this drive's root directory - do not create the /opt/redpitaya folder
    v0.92.png

  5. safely remove the sd-card from Windows and plug it into your Red Pitaya

Re: Basic compling with Ubuntu and Vivado

PostPosted: Sun May 22, 2016 4:12 pm
by Amraam
Nils Roos wrote:Not quite correct, this is the list of things to do:


Thank you Nils, you are a fantastic man.
This post will be my guide tomorrow.

Re: Basic compling with Ubuntu and Vivado

PostPosted: Mon May 23, 2016 12:41 pm
by Amraam
Hi,

I've successfully loaded the ecosystem 0.92.81.
I'm able to login with PuTTY but an error occurs when I want to start SCPI server both from matlab by means of plink and with PuTTY.
On PuTTY both scpi-server & and /bin/scpi-server & commands fail.
Where can I found librp.so? Can I use file contained in lib folder of release 0.95?

Image