Basic compling with Ubuntu and Vivado

Just about everything about Red Pitaya
Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Basic compling with Ubuntu and Vivado

Post by Nils Roos » Mon May 23, 2016 5:01 pm

Right, sorry, I forgot about that.

At that time, librp.so was not open source and had to be added separately. The librp.so of 0.95 will most likely not work, because it is compiled for a different architecture. I'll have to search a bit regarding where to get the binary from.

Amraam
Posts: 18
Joined: Fri May 20, 2016 3:55 pm

Re: Basic compling with Ubuntu and Vivado

Post by Amraam » Mon May 23, 2016 5:07 pm

Nils Roos wrote:Right, sorry, I forgot about that.

At that time, librp.so was not open source and had to be added separately. The librp.so of 0.95 will most likely not work, because it is compiled for a different architecture. I'll have to search a bit regarding where to get the binary from.
Don't worry,

if someone has the librp.so compatible with ecosystem 0.92, please upload it :)

I must create a folder "lib" and put file in it, right?

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Basic compling with Ubuntu and Vivado

Post by Nils Roos » Mon May 23, 2016 5:11 pm

Try the one here.
Folder /lib/ or /usr/lib/ should do fine, if not, try prefixing the call with "LD_LIBRARY_PATH=... ".

pavel
Posts: 789
Joined: Sat May 23, 2015 5:22 pm

Re: Basic compling with Ubuntu and Vivado

Post by pavel » Mon May 23, 2016 5:13 pm

Amraam wrote:compatible with ecosystem 0.92, please upload it :)
You can find it in this tar file. It's in opt/lib/librp.so.

Amraam
Posts: 18
Joined: Fri May 20, 2016 3:55 pm

Re: Basic compling with Ubuntu and Vivado

Post by Amraam » Tue May 24, 2016 6:22 pm

Nils Roos wrote:Try the one here.
Folder /lib/ or /usr/lib/ should do fine, if not, try prefixing the call with "LD_LIBRARY_PATH=... ".
pavel wrote: You can find it in this tar file. It's in opt/lib/librp.so.
Thank you guys,

I'm now able to start the server and command the LEDs, I'm so happy :D

tsitsimp
Posts: 14
Joined: Mon Oct 17, 2016 1:36 pm

Re: Basic compling with Ubuntu and Vivado

Post by tsitsimp » Thu Nov 10, 2016 4:55 pm

Hello,

I have followed the exact steps that Nils describes in #5363, using the same OS (0.95) image and 0.92 zip files that Amraan used. I carefully treated the sd card throughout the process.

If I write the image file and plug the sd card to the red pitaya, the system boots and the Red LED is blinking. However, as soon as I delete the small partition and add the 0.92 ecosystem in, then the red led does not bling upon boot (green and blue LEDs are on, yellow LED is dim). If I try to ssh then I get a ''connection refused''.

Anyone knows why is this happening? Note that the hardware is OK, I ve got 0.94 in another sd card and it runs just fine.

Cheers

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Basic compling with Ubuntu and Vivado

Post by Nils Roos » Thu Nov 10, 2016 5:25 pm

Hi,
add the 0.92 ecosystem in, then the red led does not bling upon boot
that's ok, the 0.92 version didn't have the sd-card access (yellow) and cpu-heartbeat (red) indicators.
If I try to ssh then I get a ''connection refused''.
If you can, connect the RP's usb console to your computer (instructions in the faq section, ->Software->How access your Red Pitaya over USB serial console port) and look at the network configuration that the RP uses. With the 0.92 ecosystem, the configuration is stored in the fat32 partition under /etc/network .

tsitsimp
Posts: 14
Joined: Mon Oct 17, 2016 1:36 pm

Re: Basic compling with Ubuntu and Vivado

Post by tsitsimp » Thu Nov 10, 2016 5:59 pm

Thanks for your reply,

Originally it was dhcp but for our network I need to have a static IP address. Hence, on the 124MB partition I have changed /etc/network/config as follows

Code: Select all

# Red Pitaya network configuration

NETWORK=static

# Static network configuration parameters (active if NETWORK=static)
IP=148.79.231.130
NETMASK=255.255.255.0
GATEWAY=148.79.1.1

and, on the same folder I have modified the files interfaces and intefaces.ap to this

Code: Select all

######################################
# eth0: Wired Ethernet - 1000Base-T  #
######################################
#
# Uncomment only one: dynamic or static configuration.
#

# Dynamic (DHCP) IP address
#auto eth0
#iface eth0 inet dhcp
#    udhcpc_opts -t7 -T3

# Static IP address
# Don't forget to set the static DNS IP in sd:/etc/init.d/rcS too.
auto eth0
iface eth0 inet static
    address 148.79.231.130
    netmask 255.255.255.0
    gateway 148.79.1.1
Also, on the 3.5GB volume, I have modified etc/dhcp/dhclient.conf so that the fixed address matches the one I have put above, and on etc/network/intefaces.d/eth0 I have put

Code: Select all

iface eth0 inet static
    address 148.79.231.130
    netmask 255.255.0.0
    gateway 148.79.1.1
This works perfectly fine for the 0.94 OS.

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Basic compling with Ubuntu and Vivado

Post by Nils Roos » Thu Nov 10, 2016 6:18 pm

I don't exactly know if it matters, but the netmask that you put into /etc/network/config , /etc/network/interfaces , /etc/network/interfaces.ap is not correct. These files are not used in 0.94 .

tsitsimp
Posts: 14
Joined: Mon Oct 17, 2016 1:36 pm

Re: Basic compling with Ubuntu and Vivado

Post by tsitsimp » Thu Nov 10, 2016 6:41 pm

Ok, I ll tweak the 0.94 version and confirm that. Nevertheless, on the other sd card, I still can't get a connection using the steps you describe and Amraam implements above. I ll keep looking for a solution but if you ve got any suggestions please do so.

Cheers

Post Reply
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 33 guests