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

Status
Please reply by conversation.
K here we go, hopefully I didnt miss anything

# 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

# remove microSD from your linux computer and insert into RPi2 and boot it up, configure as you see fit
# once that is done, open mate terminal under system tools

# 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)

# udate 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
cd linux-rpi-4.0.y
make menuconfig

# just exit out and save if it asks
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
git clone git://linuxtv.org/media_build.git
cd media_build
./build

# Download v4l-updatelee from https://bitbucket.org/updatelee/v4l-updatelee/downloads and unzip the download
# Now create the patch

cd linux
tar xf linux-media.tar.bz2
cd ../../
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
./build
sudo make install
sudo cp -R linux/include/uapi/linux/dvb/* /usr/include/linux/dvb/
cd ..
sudo cp -R updatelee-v4l-updatelee-402bf4f7412b/src/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
sudo cp qwt_transform.h /usr/include/qwt/qwt_transform.h

# Download updateDVB from https://bitbucket.org/updatelee/updatedvb/downloads

# open qtcreator
qtcreator -noload Welcome

# open updateDVB.pro
# click green triange (run) on the lower left
 
Looking forward to successfully following your how to! Will report how it goes. Unfortunately, it will be next week before I can work on this project again. Thank you for this great guide and everything you do for the hobby!
 
  • Like
Reactions: fred555
Look forward to getting started on this. Thanks a lot Lee!!!
 
I try and give back where I can. I've been given so much help and hardware over the years I still have a huge debit to pay back :)

If you guys get stuck just let me know and I'll update the HOWTO as we go so it'll help others too.

UDL
 
Arrgh!! I downloaded everything needed to a usb stick and left it at work yesterday.
Really wanted to get this going this weekend. I wont be starting on this until next week i guess.
 
Setting up Ubuntu Mate without Linux Box wCard Reader

OK, my work phone is 4G and downloaded all the packages in about 10 minutes.
None of my Linux boxes have a card reader to accomplish setting up Ubuntu as shown above.
All my Windows laptops have built in SD.
Here is how I did it:

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

I set the password for the root user
apt-get install openssh-server
then added this to /etc/ssh/sshd_config:
#PermitRootLogin without-password
PermitRootLogin yes

rebooted, then ssh into the Pi from the Easy Chair in other room, as I have to stand to use Pi where the TV is.
Used these instructions to resize partition in place on Pi:

Code:
Manually resizing the SD card on Raspberry Pi

You can also resize the partitions of the SD card that your Pi is running on.

First you need to change the partition table with fdisk. You need to remove the existing partition entries and then create a single new partition than takes the whole free space of the disk. This will only change the partition table, not the partitions data on disk. The start of the new partition needs to be aligned with the old partition!

Start fdisk:

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
 
Last edited:
  • Like
Reactions: KE4EST
Also DHCP did not work, I had to setup a static IP:

nano /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.25
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 192.168.0.1
 
Just got Ubuntu Mate image downloaded, a lot going on today so don't know how much I will get done.
 
KE4EST,
I'm starting to get the shakes and PTSD in anticipation of compiling a kernel again.
Tell me things will be OK.
:coco
 
  • Like
Reactions: spongella
This stuff is way over my head, but I was wondering, is there any way that one can program the receiver to lower the receiver's signal threshold level? This might help when receiving a weak FTA signal. At least you might be able to receive a pixilated signal, and work from there to improve it.

All interesting stuff you fellows/ladies are working on. Wish you the best of luck in your endeavors.
 
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
 
make -j4
Then after about an hour:
Makefile:933: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
 
Trying it again, I hope it all fits on my 8GB SD card, its gonna be close!
 
Success!

This time I used the Raspberry Pi 2 default build configuration
make bcm2709_defconfig
then
make -j4
 
In this section I'm not sure what the current directory should be exactly:

Code:
# Download v4l-updatelee from https://bitbucket.org/updatelee/v4l-updatelee/downloads and unzip the download
# Now create the patch

cd linux
tar xf linux-media.tar.bz2
cd ../../
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
./build
sudo make install
sudo cp -R linux/include/uapi/linux/dvb/* /usr/include/linux/dvb/
cd ..
sudo cp -R updatelee-v4l-updatelee-402bf4f7412b/src/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
sudo cp qwt_transform.h /usr/include/qwt/qwt_transform.h

# Download updateDVB from https://bitbucket.org/updatelee/updatedvb/downloads

# open qtcreator
qtcreator -noload Welcome

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

Can you provide fully qualified directory paths for each step? Something is not working out for me in this section.

EDIT: We have it figured out and will post the corrections when we are finished.
 
Last edited:
Well I ran into the same thing as Fred. Comping again now should be about done.
 
Status
Please reply by conversation.

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

Who Read This Thread (Total Members: 2)