Table of Contents
Setting up the system on Rasperry Pi
The Raspberry Pi is a very nice computer and a perfect match for VSCP & Friends. The VSCP daemon should work on all Raspberry Pi's except the RPi1 with 256 MB memory where the SSL lib fails probably due to out of memory.
If the startup script does not work or if you experience other startup problems you may need to update the firmware of your Raspberry Pi with rpi-update
VSCP & Friends has been tested and works very well on Raspberry Pi.
The setup is the same as on other Unix systems so the instructions to setup VSCP & Friends on a Unix system can be used.
As an alternative David Steeman have written easy to follow step by step instruction here.
IMPORTANT If you plan to use a Raspberry Pi in a control situation you will probably want to make the root filer system read only. This is described here. If you don't do this you most certainly will find your board not starting after a power loss. Well you may be lucky for some time but eventually it will happen. So make the root partion read only!
Expect the build of VSCP to take half an hour on a Pi version 2 and an hour and a half on Pi version 1.
Compile wxWidgets 3.0 on Raspberry Pi
wxWidgets 3.0 is now available as a package also in Raspian.
Instead of 2.8.12 you may want the latest version (3.0.2 as of this writing) instead. If so follow these steps
sudo apt-get install build-essential
Install gtk library
sudo apt-get install libgtk2.0-dev
cd /path/to/wxWidgets-3.0.x mkdir gtk-build gtk-build ../configure make make install
Read only SD on Raspberry Pi
For the full story read this
When working with this and you need to add a driver or something you can always mount the filesystem rw again with
mount -o remount,rw /
mount /var/log and /tmp in ram (here 30MB per each) by adding
# Tempfiles in RAM RAMTMP=yes
Change /etc/fstab to
proc /proc proc defaults 0 0 tmpfs /tmp tmpfs nodev,nosuid,size=30M,mode=1777 0 0 tmpfs /var/log tmpfs nodev,nosuid,size=30M,mode=1777 0 0 #/dev/mmcblk0p1 /boot vfat defaults 0 2 /dev/mmcblk0p2 / ext2 defaults,ro,noatime,errors=remount-ro 0 1 #/dev/mmcblk0p3 /home ext4 defaults,noatime 0 1 # a swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap[on|off] for that
It is good to have a rw home partition, or desktop session will fail to start. With this configuration you won't be able to upgrade packages, as apt and dpkg need /var/lib and /var/cache writable. Consider using a rw /var or per-subdirectory configuration.
edit /etc/init.d/hwclock.sh in line 60 (the first of start case) change “-f” to “-L”
edit /etc/environment and add
sudo rm /etc/mtab sudo ln -s /proc/self/mounts /etc/mtab
- Make sure VSCP log files go to /var/log or that they are turned off.
- Set varible autosave to zero.
- Remember that any logger driver has to log to a r/w location.