########################################################################################## PIDVR-7: Configure FreeSat Hardware ########################################################################################## Issue Type: Task ----------------------------------------------------------------------------------------- Issue Information ==================== Priority: Major Status: Closed Resolution: Done (2014-11-06 21:25:39) Project: PiDVR (PIDVR) Reported By: btasker Assigned To: btasker Labels: Drivers, DVBSKYS2, Hardware, M88DS3103, Time Estimate: 0 minutes Time Logged: 0 minutes ----------------------------------------------------------------------------------------- Issue Description ================== Connect and configure the Freesat Hardware Hardware Details - *Manufacturer:* _DVBSky_ - *Model:* _S2_ - *Chipset:* _M88DS3103_ System shows as connected -- BEGIN SNIPPET -- root@testpi:~# lsusb | grep Conexant Bus 001 Device 004: ID 0572:6831 Conexant Systems (Rockwell), Inc. -- END SNIPPET -- Though none of the LEDs on the unit itself are on - the driver also loads a firmware image, so will probably find the power LED doesn't do anything until that point ----------------------------------------------------------------------------------------- Issue Relations ================ - blocks PIDVR-6: Install and Configure TVHeadEnd - Kernel Headers for Raspberry Pi (http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/) - S960 Manufacturers Product Page (http://www.dvbsky.net/Products_S960.html) ----------------------------------------------------------------------------------------- Activity ========== ----------------------------------------------------------------------------------------- 2014-11-06 12:09:42 btasker ----------------------------------------------------------------------------------------- Kernel version is 3.12.28 -- BEGIN SNIPPET -- pi@testpi ~ $ uname -a Linux testpi 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l GNU/Linux -- END SNIPPET -- So will need to build the V4L package ----------------------------------------------------------------------------------------- 2014-11-06 12:31:32 ----------------------------------------------------------------------------------------- btasker added 'DVBSKYS2 Drivers Hardware' to labels ----------------------------------------------------------------------------------------- 2014-11-06 14:09:02 btasker ----------------------------------------------------------------------------------------- Decided as DVBSky actually have Linux support and provide drivers, better to use theirs *Get Kernel headers etc* -- BEGIN SNIPPET -- root@testpi:/home/pi# apt-get update root@testpi:/home/pi# apt-get install gcc-4.7 cpp-4.7 dkms root@testpi:/home/pi# wget http://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/linux-headers-3.12.28%2b_3.12.28%2b-2_armhf.deb root@testpi:/home/pi# dpkg -i linux-headers-3.12.28+_3.12.28+-2_armhf.deb -- END SNIPPET -- *Install Driver* -- BEGIN SNIPPET -- root@testpi:/home/pi# cd /usr/src root@testpi:/usr/src# wget http://www.dvbsky.net/download/linux/media_build-bst-13-140619.tar.gz root@testpi:/usr/src# tar xvzf media_build-bst-13-140619.tar.gz root@testpi:/usr/src# cd media_build-bst-13 root@testpi:/usr/src/media_build-bst-13# wget http://www.dvbsky.net/download/linux/sit2-RPi.zip root@testpi:/usr/src/media_build-bst-13# unzip sit2-RPi.zip root@testpi:/usr/src/media_build-bst-13# tar xvzf sit2.o.RPi.tar.gz root@testpi:/usr/src/media_build-bst-13# tar xvzf sit2.o.RPi.dvbc.tar.gz root@testpi:/usr/src/media_build-bst-13# ./v4l/build_x86.sh # Seems to copy a file we need for make, without it make fails root@testpi:/usr/src/media_build-bst-13# cp sit2.o.RPi v4l/ root@testpi:/usr/src/media_build-bst-13# cp sit2.o.RPi v4l/sit2.o root@testpi:/usr/src/media_build-bst-13# cp sit2.o.RPi.dvbc v4l/ root@testpi:/usr/src/media_build-bst-13# make -- END SNIPPET -- The _make_ takes quite a while to run, so I've left it to it for the time being. ----------------------------------------------------------------------------------------- 2014-11-06 15:24:22 btasker ----------------------------------------------------------------------------------------- Just seen the following warnings flash by -- BEGIN SNIPPET -- WARNING: could not find /usr/src/media_build-bst-13/v4l/.sit2.o.cmd for /usr/src/media_build-bst-13/v4l/sit2.o WARNING: "dma_buf_export" [/usr/src/media_build-bst-13/v4l/videobuf2-dma-contig.ko] undefined! -- END SNIPPET -- The first relates to our module, which isn't great. Will let the compile finish and see if it actually causes any issues though. ----------------------------------------------------------------------------------------- 2014-11-06 16:16:59 btasker ----------------------------------------------------------------------------------------- The _make_ has finally completed -- BEGIN SNIPPET -- root@testpi:/usr/src/media_build-bst-13# make install root@testpi:/usr/src/media_build-bst-13# cd /lib/firmware/ root@testpi:/lib/firmware# wget http://www.dvbsky.net/download/linux/dvbsky-firmware.tar.gz root@testpi:/lib/firmware# tar xvzf dvbsky-firmware.tar.gz root@testpi:/lib/firmware# mv dvbsky-firmware/* ./ root@testpi:/lib/firmware# reboot -- END SNIPPET -- Once the box comes back up, there should (hopefully) now be a /dev/dvb -- BEGIN SNIPPET -- root@testpi:/home/pi# ls /dev/sdb ls: cannot access /dev/sdb: No such file or directory -- END SNIPPET -- Nuts..... ----------------------------------------------------------------------------------------- 2014-11-06 16:25:38 btasker ----------------------------------------------------------------------------------------- It would seem that the V4L modules have compiled incorrectly -- BEGIN SNIPPET -- root@testpi:/home/pi# insmod /lib/modules/3.12.28+/kernel/drivers/media/dvb-frontends/sit2fe.ko Error: could not insert module /lib/modules/3.12.28+/kernel/drivers/media/dvb-frontends/sit2fe.ko: Invalid module format -- END SNIPPET -- Wondered if it was the use of the x86 specific script earlier, but turns out it doesn't do a huge amount. ----------------------------------------------------------------------------------------- 2014-11-06 16:34:54 btasker ----------------------------------------------------------------------------------------- OK, working on the assumption I've ballsed something up. Starting again, using slightly different sources this time -- BEGIN SNIPPET -- root@testpi:/usr/src/media_build-bst-13# make clean root@testpi:/usr/src/media_build-bst-13# cd .. root@testpi:/usr/src# rm -rf media_build-bst-13 root@testpi:/usr/src# tar xvzf media_build-bst-140128.tar.gz root@testpi:/usr/src# cd media_build-bst root@testpi:/usr/src/media_build-bst# wget http://www.dvbsky.net/download/linux/sit2-RPi.zip root@testpi:/usr/src/media_build-bst# unzip sit2-RPi.zip root@testpi:/usr/src/media_build-bst# tar xvzf sit2.o.RPi.tar.gz root@testpi:/usr/src/media_build-bst# cp sit2.o.RPi v4l/sit2.o root@testpi:/usr/src/media_build-bst# make && make install -- END SNIPPET -- Now I need to find something else to do while that runs :) ----------------------------------------------------------------------------------------- 2014-11-06 17:20:47 btasker ----------------------------------------------------------------------------------------- Whilst waiting for the new compile, figured would take a quick look at the issues from the previous one -- BEGIN SNIPPET -- root@testpi:/home/pi# modinfo /lib/modules/3.12.28+/kernel/drivers/media/dvb-frontends/sit2fe.ko filename: /lib/modules/3.12.28+/kernel/drivers/media/dvb-frontends/sit2fe.ko version: 1.00 license: GPL author: Max Nibble