Page 1 of 12

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

Posted: Sun May 24, 2015 1:15 am
by pavel
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

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

Posted: Sun May 24, 2015 1:18 am
by Arnold
great work!

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

Posted: Mon May 25, 2015 3:57 pm
by pavel
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.

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

Posted: Wed May 27, 2015 11:32 pm
by pavel
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

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

Posted: Wed May 27, 2015 11:49 pm
by Arnold
great!

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

Thanks

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

Posted: Wed May 27, 2015 11:55 pm
by pavel
the fixes are in my red_pitaya_0_92 project

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

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

Posted: Mon Oct 12, 2015 12:08 pm
by pavel
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

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

Posted: Tue Oct 13, 2015 12:42 am
by hamster
Is this newer than the 0.94 from the quickstart page?

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

Posted: Tue Oct 13, 2015 2:06 pm
by pavel
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.

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

Posted: Tue Oct 13, 2015 5:52 pm
by fbalakirev
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.