SD card image with Debian 8.0, Red Pitaya web server and SDK

Just about everything about Red Pitaya
Post Reply
pavel
Posts: 801
Joined: Sat May 23, 2015 5:22 pm

SD card image with Debian 8.0, Red Pitaya web server and SDK

Post by pavel » Sun May 24, 2015 1:15 am

Hi,

The Debian project has recently released a new stable version of its GNU/Linux distribution, Debian 8 Jessie.

One of the nice things about the Debian GNU/Linux distribution is that it supports many different CPU architectures including ARM EABI (armel) and ARM with hardware FPU (armhf).

The Red Pitaya web server and the Red Pitaya SDK are by default built for the ARM EABI (armel) architecture.

I've put together a bootable SD card image for the Red Pitaya board containing the following:
  • Linux 3.18.0-xilinx
  • Debian 8.0 (armel)
  • Development tools (GCC 4.9.2, make)
  • Wi-Fi drivers for MediaTek/Ralink and Realtek chipsets
  • Wi-Fi access point
  • Red Pitaya SDK (rp.h, librp.so)
  • Red Pitaya command-line tools (acquire, calib, generate, monitor)
  • Red Pitaya web server
  • Red Pitaya contributed apps
With this SD card image, it's possible to develop and compile C programs directly on the Red Pitaya board.

For example, here are the commands to compile all the SDK examples:

Code: Select all

cp -a /opt/examples .
cd examples
make
Many other libraries, scripting languages and tools can be installed from the Debian repository.

For example, here are the commands to install the XFCE desktop environment and to export it via VNC.

Code: Select all

apt-get install xfonts-base tightvncserver xfce4-panel xfce4-session xfwm4 xfdesktop4 xfce4-terminal thunar gnome-icon-theme
vncserver -geometry 1200x700
This SD card image can be downloaded from the following link:

https://googledrive.com/host/0B-t5klOOy ... 151031.zip

To write this image to an SD card, the dd command-line utility can be used on GNU/Linux and Mac OS X or Win32 Disk Imager can be used on MS Windows.

The default password for the root account is changeme.

More instructions on how to write an SD card image to an SD card can be found on the following Raspberry Pi wiki page:

http://elinux.org/RPi_Easy_SD_Card_Setup

To use the full size of a SD card, the SD card partitions should be resized with the following commands:

Code: Select all

# delete second partition
echo -e "d\n2\nw" | fdisk /dev/mmcblk0
# recreate partition
parted -s /dev/mmcblk0 mkpart primary ext4 16MB 100%
# resize partition
resize2fs /dev/mmcblk0p2
Cheers,

Pavel
Last edited by pavel on Sun Nov 01, 2015 12:13 am, edited 7 times in total.

Arnold
Posts: 54
Joined: Wed Mar 11, 2015 3:07 pm

Re: SD card image with Debian 8.0, Red Pitaya web server and

Post by Arnold » Sun May 24, 2015 1:18 am

great work!

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

Re: SD card image with Debian 8.0, Red Pitaya web server and

Post by pavel » Mon May 25, 2015 3:57 pm

I've written some instructions on how to build a bootable SD card image with Debian 8.0, Red Pitaya web server and SDK. They can be found at the following link:

http://pavel-demin.github.io/red-pitaya ... ecosystem/

I've also slightly modified my first post and updated the link to the pre-built SD card image.

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

Re: SD card image with Debian 8.0, Red Pitaya web server and

Post by pavel » Wed May 27, 2015 11:32 pm

I've updated the SD card image.

Here is a list of changes in the new version: It can be downloaded from the following link:

https://googledrive.com/host/0B-t5klOOy ... 151031.zip
Last edited by pavel on Sun Nov 01, 2015 12:13 am, edited 3 times in total.

Arnold
Posts: 54
Joined: Wed Mar 11, 2015 3:07 pm

Re: SD card image with Debian 8.0, Red Pitaya web server and

Post by Arnold » Wed May 27, 2015 11:49 pm

great!

are those timing problems fixed in your red_pitaya (https://github.com/pavel-demin/red-pita ... red_pitaya) project?

Thanks

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

Re: SD card image with Debian 8.0, Red Pitaya web server and

Post by pavel » Wed May 27, 2015 11:55 pm

the fixes are in my red_pitaya_0_92 project

https://github.com/pavel-demin/red-pita ... itaya_0_92

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

Re: SD card image with Debian 8.0, Red Pitaya web server and

Post by pavel » Mon Oct 12, 2015 12:08 pm

I've updated my Debian based SD card image.

Here is a list of changes in the new version:
  • updated Vivado to 2015.3
  • updated Linux to 4.0.0-xilinx
  • updated Debian to 8.2
  • enabled FUSE drivers
  • added support for NTFS
  • enabled SPIDEV driver
  • added SPIDEV to devicetree
  • improved DHCP client configuration as discussed in
    viewtopic.php?t=568&p=2672#p2672
It can be downloaded from the following link:

https://googledrive.com/host/0B-t5klOOy ... 151031.zip
Last edited by pavel on Sun Nov 01, 2015 12:15 am, edited 1 time in total.

hamster
Posts: 2
Joined: Mon Oct 05, 2015 10:46 pm

Re: SD card image with Debian 8.0, Red Pitaya web server and

Post by hamster » Tue Oct 13, 2015 12:42 am

Is this newer than the 0.94 from the quickstart page?

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

Re: SD card image with Debian 8.0, Red Pitaya web server and

Post by pavel » Tue Oct 13, 2015 2:06 pm

hamster wrote:Is this newer than the 0.94 from the quickstart page?
It's built with newer Vivado and it's based on newer Linux kernel with some additional kernel features enabled (FUSE, SPIDEV).
However, it's based on older (0.92) Red Pitaya ecosystem.

The new Red Pitaya SD card image is based on this SD card image but looking at the number of problems with 0.94 I'd say that Red Pitaya developers missed something when porting my configuration and scripts to the new Red Pitaya SD card image.

fbalakirev
Posts: 106
Joined: Thu Sep 03, 2015 6:56 pm

Re: SD card image with Debian 8.0, Red Pitaya web server and

Post by fbalakirev » Tue Oct 13, 2015 5:52 pm

pavel wrote:I've updated my Debian based SD card image.
...
Hi Pavel,

What is minimal amount of RAM does Debian need, in either your configuration or RP .94? I'm asking because I have your older .92 configuration, based on BusyBox I believe, that I shrunk to 128MB with your help to free up the RAM for sample buffering. I see that base is moving toward Debian on both fronts now and I wonder what strategy I should take with that.

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 9 guests