TR3 Installation
TuxRadio version 3 installation
Section titled “TuxRadio version 3 installation”By default our Tuxradio is shipped with out-of-the-box Cubieez-Image pre-installed. Default IP Address and Passwords you find at link above. You may connect the TuxRadio directly to a HDMI Monitor and Keyboard for first time configuration.
Use any other NAND image for Cubieboard 2 or similar. Follow the steps below to enable access to special internal features of a TuxRadio3.
Installing fex-file
Section titled “Installing fex-file”mount /dev/nanda /boot wget http://files.busware.de/tuxradio3/tuxradio3.fex fex2bin tuxradio3.fex /boot/script.bin reboot
set Ethernet MAC address
Section titled “set Ethernet MAC address”mount /dev/nanda /boot vi /boot/uEnv.txt
and add: nand_root=/dev/nandb mac_addr=[mac]
Serial Ports
Section titled “Serial Ports”/dev/ttyS1 - built-in CSM (38400 Baud) /dev/ttyS2 - PIGATOR expansion slot
installing FHEM
Section titled “installing FHEM”apt-get install libdevice-serialport-perl wget http://fhem.de/fhem-5.6.deb dpkg -i fhem-5.6.deb
/etc/init.d/fhem stop
vi /opt/fhem/fhem.cfg
and add: define CSM CUL /dev/ttyS1@38400 0000
/etc/init.d/fhem start
hard resetting CSM / PIGATOR
Section titled “hard resetting CSM / PIGATOR”modprobe gpio-sunxi
1 - CSM Boot Select 2 - CSM Reset
3 - PIGATOR Boot Select 4 - PIGATOR Reset
make gpios “visable”
echo 1 > /sys/class/gpio/export echo 2 > /sys/class/gpio/export echo 3 > /sys/class/gpio/export echo 4 > /sys/class/gpio/export
reset CSM
Section titled “reset CSM”echo 2 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio2_ph3/direction echo 0 > /sys/class/gpio/gpio2_ph3/value echo 1 > /sys/class/gpio/gpio2_ph3/value
reset PIGATOR
Section titled “reset PIGATOR”echo 4 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio4_ph11/direction echo 0 > /sys/class/gpio/gpio4_ph11/value echo 1 > /sys/class/gpio/gpio4_ph11/value
In case you want to bootload the CSM/PIGATOR: set gpio1 / gpio3 to value to “0” before Reset
using RTC
Section titled “using RTC”add to /etc/rc.local:
modprobe i2c-sunxi echo at24 0x50 > /sys/class/i2c-adapter/i2c-0/new_device sleep 1 hwclock -s
remove fake-stuff:
apt-get remove fake-hwclock rm /etc/cron.hourly/fake-hwclock update-rc.d -f fake-hwclock remove rm /etc/init.d/fake-hwclock update-rc.d hwclock.sh enable