Hobbyist Open Source Satellite Receiver - Raspberry Pi 2???

Status
Please reply by conversation.
Yep it worked, am in the next couple of stages now, but will not get finished tonight. about to fall asleep at the keyboard. :)
 
I got all the way to the last two or three steps until sleep set in. There is some ambiguity as to what directory you are supposed to be in and when.
One of us will post some updated notes with clarifications.
 
Honestly with stv090x devices the hardware lock is over optimistic, It'll say lock but the ber is so bad its not even watchable. I cant imagine why you'd want to set it any lower.

UDL

See, as I said, way over my head, and it shows, hee hee. :bday

Last programming classes I took were in the early '80's. Back then we had Basic, Pascal, Fortran, SAS. Those must be Smithsonian ready.
 
Well I think I have all the instructions complete just not sure how to use updatelee software.
Lee maybe you can post up some instructions, if you don't care.
 
While waiting though I have a RTC module working with mine and setting the system clock. :)
Just got to write up some instructions.
 
Im currently in the field right now, the army has been keeping me busy this year.

Basically reboot or plug in your DVB device, fire up updateDVB. Go to file - settings and configure your lnb. Save and close that dialogue. Then do a direction l spectrum scan, click on a tp you want to tune. A tuning dialog will open up, it'll parse the tp. From there you can do what you wish with it, play, steam etc

UDL
 
Thanks! Will try that here in a bit.
 
# open qtcreator
qtcreator -noload Welcome

# open updateDVB.pro
# click green triange (run) on the lower left

It says go to Kit options and configure a compiler,No luck with GCC.
 
Last edited:
[GALLERY=media, 129]Kits by fred555 posted Jun 1, 2015 at 10:08 PM[/GALLERY]

I think I have found the magic settings?
 
  • Like
Reactions: Titanium
Yes, I think you have. :)
 
Its doing something!

scan.jpg
 
  • Like
Reactions: KE4EST and Titanium
That is a 1.2 meter dedicated to 103 right now for NBC shows.
 
Updated instructions for installing Ubuntu for ARM and installing updateDVB on your pi2


After Fred555 and I went through and got Updatelee's software working we made some changes along the way. Mostly it is just clarifying some of the steps to make it easier for someone who has no or very little experience with Linux. Updatelee you are more than welcome to comment on anything you see you don't like and I will change it.

Note anything with a # sign in front of it, is just comments or instructions to read, not what you actually type into your command line.

Code:
#Getting the image onto SD
#Method 1, Needs a linux box with card reader

# download http://master.dl.sourceforge.net/pr...te-15.04-desktop-armhf-raspberry-pi-2.img.bz2

# install ddrescue
sudo apt-get install ddrescue

# extract downloaded file
bunzip2 ubuntu-mate-15.04-desktop-armhf-raspberry-pi-2.img.bz2

# write to microSD, mine mounts on /dev/sdb, yours may be different
sudo ddrescue -d -D --force ubuntu-mate-15.04-desktop-armhf-raspberry-pi-2.img /dev/sdb

# now resize the RPi2 image on the microSD using gparted
sudo apt-get install gparted
sudo gparted


#Method 2, Uses a windows machine to write image and RPi2 to expand image:

Use 7zip to extract the ubuntu mate image on a Windows machine.
Use Win32diskimager to write the disk to SD as usual.
Insert the SD card into the Pi and boot the Ubuntu image and go through the setup routine.

Manually resizing the SD card on Raspberry Pi

fdisk /dev/mmcblk0

Then delete partitions with d and create a new with n. You can view the existing table with p.

    p to see the current start of the main partition
    d, 2 to delete the main partition
    n p 2 to create a new primary partition, next you need to enter the start of the old main partition and then the size (enter for complete SD card). The main

partition on the Debian image from 2012-04-19 starts at 157696, but the start of your partition might be different. Check the p output!
    w write the new partition table

Now you need to reboot:

shutdown -r now

After the reboot you need to resize the filesystem on the partition. The resize2fs command will resize your filesystem to the new size from the changed partition

table.

resize2fs /dev/mmcblk0p2

This will take a few minutes, depending on the size and speed of your SD card.

When it is done, you can check the new size with:

df -h

# edit your /boot/config.txt if you want (optional) I add
arm_freq=1000
sdram_freq=500
core_freq=500
over_voltage=2
initial_turbo=30

# Also add any mpeg licences to your config.txt if you've bought them, like mpeg2 (recommended)

# update your repository
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo reboot

# install some pre-req's
sudo apt-get install git build-essential linux-headers-generic ncurses-dev libproc-processtable-perl fakeroot subversion patchutils
sudo apt-get install libqwt-qt5-dev libgl1-mesa-dev mesa-common-dev qtcreator libqt5serialport5-dev
sudo apt-get install omxplayer chromium-browser

# if you use nomachine you can get the armv7 deb from https://www.nomachine.com/download/linux&id=1

# Download the RPi2 kernel from https://github.com/raspberrypi/linux/tree/rpi-4.0.y and unzip the download
# I did this in /root
wget https://github.com/raspberrypi/linux/archive/rpi-4.0.y.tar.gz 
tar xvzf rpi-4.0.y.tar.gz
cd linux-rpi-4.0.y

# make menuconfig did not work for us, instead we used the default RPi2 build config

make bcm2709_defconfig
make -j4
make -j4 modules
sudo make -j4 modules_install
sudo make -j4 install
sudo make headers_install INSTALL_HDR_PATH=/usr
sudo mv /boot/firmware/kernel7.img /boot/firmware/kernel7.img.old
sudo cp /boot/vmlinuz /boot/firmware/kernel7.img
sudo reboot

# Download V4L's media_build, I did this in /root
git clone git://linuxtv.org/media_build.git
cd media_build
./build

# cd to the directory above media_build   in my case its root
cd ..
# Download v4l-updatelee from https://bitbucket.org/updatelee/v4l-updatelee/downloads and unzip the download

wget https://bitbucket.org/updatelee/v4l-updatelee/get/402bf4f7412b.zip
unzip updatelee-v4l-updatelee-402bf4f7412b.zip


# Now create the patch
cd media_build
cd linux
tar xf linux-media.tar.bz2
cd ../../ <--- this should take you to the directory above media_build in my case its root
diff -ruP media_build/linux/include/uapi/linux/dvb/ updatelee-v4l-updatelee-402bf4f7412b/include/uapi/linux/dvb/ >> UDL_patch.diff
diff -ruP media_build/linux/drivers/media/ updatelee-v4l-updatelee-402bf4f7412b/drivers/media/ >> UDL_patch.diff
cd media_build
mv ../UDL_patch.diff backports/
nano -w backports/backports.txt

# Now change this
[9.255.255]
add api_version.patch
add pr_fmt.patch
add debug.patch
add drx39xxj.patch

# to this
[9.255.255]
add api_version.patch
add pr_fmt.patch
add debug.patch
add drx39xxj.patch
add UDL_patch.diff

# Compile and install dvb modules in media_build Directory
./build
make install
cp -R linux/include/uapi/linux/dvb/* /usr/include/linux/dvb/
cd ..   (to directory above media_build, in my case /root)
cp -R updatelee-v4l-updatelee-402bf4f7412b/firmware/* /lib/firmware/

# There is a bug in one of the qwt headers installed from apt-get, so lets fix that
wget http://svn.code.sf.net/p/qwt/code/branches/qwt-6.1/src/qwt_transform.h
cp qwt_transform.h /usr/include/qwt/qwt_transform.h

# To download the updateDVB source
git clone https://bitbucket.org/updatelee/updatedvb.git

#This will create a directory called updatedvb and will contain the source code.

# open qtcreator
qtcreator -noload Welcome

Then Open a project and browse to the updatedvb directory and
open updateDVB.pro

Go to:
Tools, Options, Build and Run, Compilers

Add Gcc if it is not there, then click apply
Now click on Kits and make it look like this:

http://www.satelliteguys.us/xen/media/kits.129/

Click Apply and OK

# To compile hit the green triangle in the lower left that says 'Build and Run'

Build should run for a little while and updatedvb window will pop up.

Exit out.

Go to one directory above the updatedvb directory.
You should fing a directory named: build-updateDVB-Desktop-Debug

cd into this directory and you will fin the executbl you just compiled called updateDVB.

Now lets get it to your desktop so its handy:

cp updateDVB /home/<your username>/Desktop


Hook up your tuner and double click the updateDVB icon on your desktop.


Go into settings menu and setup lnb, diseqc etc.
 
Last edited:
Note on SD card size for Ubuntu Mate and UpdateDVB

We used an 8GB card for this. We had to delete zip files after unzipping and cleaned up uneeded files along the way
and at the end we were at about 80% capacity. Something to consider before starting. A 16GB SD or larger
may be needed depending on what else you want to load on the Pi.
 
  • Like
Reactions: Titanium and KE4EST
Status
Please reply by conversation.

MicroHD Power Led Blinks in Green

NBC UNIVERSE... Is it in FTA?

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

Who Read This Thread (Total Members: 2)