Forum o satelitski, kabelski, zemeljski in IP TV
Danes je Če Maj 19, 2022 21:14

Vsi časi so UTC+02:00 Evropa/Ljubljana

Napiši novo temo  Odgovori na temo  [ 3 prispevkov ] 
Avtor Sporočilo
OdgovorObjavljeno: Pe Jan 26, 2007 21:54 
quick guide on how-to build Mythtv on Ubuntu Edgy (6.10) for either a Nexus (FF) or a softcard (non FF).

# First - install Ubuntu Edgy pretty simple install, just like 5 steps.
# you can find an iso at your closest mirror listed at:
# ... entrelease

#Open a new terminal
#Uncomment all the Universe/Multiverse lines from /etc/apt/sources.list
#Add the word multiverse to the line "deb edgy universe multiverse" (this is for lame packages)

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libc-dev kernel-package libqt3-mt-dev libncurses-dev libttf-dev libqt4-core libqt4-dev mysql-common mysql-server phpmyadmin xmltv xmltv-gui build-essential fakeroot qt3-dev-tools libqt3-mt-dev liblircclient-dev libasound2-dev libdts-dev libdvdnav-dev libxv-dev libxvmc-dev libxxf86vm-dev libqt3-mt-mysql libxxf86vm-dev libqt3-mt-mysql subversion libdvdread3-dev libsamplerate0 subversion libsamplerate0 liba52-0.7.4-dev liba52-0.7.4-dev libcdio-dev kdelibs4-dev flac flac123 libflac-dev libcdaudio-dev libxml-simple-perl libxml-rss-perl exif libexif-dev liblame-dev liblame0 lame

#Kernel recompiled no longer required since config.h and and others are now included with sasc-ng as of R58?? or somewhere around there.
#update kernel to have nice sources instead of headers and sources that aren't quite 100%
#cd /usr/src
#sudo wget ... .1.tar.bz2
#sudo tar jxvf linux-
#sudo ln -s linux- linux
#sudo cd linux
#sudo cp ../linux-headers-`uname -r`/.config . #(copy the previous kernel config to current dir (notice the '.'). You could use a different config if you like or start from scratch.
#sudo make oldconfig #(I usually accept the defaults for the new options. This takes all the options from the previous stock build
#sudo make-kpkg --append-to-version `date +"-%H%M-%d%m%Y"` kernel_image #builds a new kernel with todays time/date appended to the version number. You can omit this or use a different string
#sudo dpkg -i /usr/src/kernel_image.......deb #install whatever the name was of this kernel file you just created
#sudo reboot

cd /usr/src

# ***NEXUS ONLY***
# We need to copy Patched firmward for a nexus card to the firmware directory and unload/reload the dvb module after the copy.
sudo wget ... hed.fw.bz2
sudo bunzip2 dvb-ttpci-01-f22623-patched.fw.bz2
sudo mkdir /lib/firmware/`uname -r`
sudo cp dvb-ttpci-01-f22623-patched.fw /lib/firmware/`uname -r`
sudo ln -s /lib/firmware/`uname -r`/dvb-ttpci-01.fw /lib/firmware/`uname -r`/dvb-ttpci-01-f22623-patched.fw
sudo modprobe -r dvb_ttpci
sudo sleep 10 #or just wait 10 seconds
sudo modprobe dvb_ttpci

# Twinhan cards ?????
sudo modprobe dvb-bt8xx
sudo modprobe bttv
sudo modprobe dst

dmesg #at this point the dvb card should have loaded and you can see it at the bottom of a dmesg

ls -al /dev/dvb #and you can see adapter0 in the dev dvb folder.
# if not, check or around there depending on your card to ensure that the correct modules are loaded.

cd /usr/src

#Get Mythtv SVN or Mythtv 20-fixes. Pick one set of the three checkouts
sudo svn co
sudo svn co
sudo svn co
sudo svn co ... xes/mythtv
sudo svn co ... ythplugins
sudo svn co ... myththemes

#get patches
sudo svn co

#get sasc-ng
sudo svn co sasc-ng

#fix a missing include file for compile - No longer needed with R55 of sasc-ng??
#sudo mkdir /usr/local/include/asm/
#sudo cp /usr/src/linux/include/asm/unaligned.h /usr/local/include/asm/

cd /usr/src/sasc-ng
# sudo vi Makefile #edit the makefile, add the line INCLUDES += -I/usr/src/linux/include # no longer required along with kernel recompile.
sudo make #sasc-ng
sudo make module #dvbloopback module
sudo insmod dvbloopback.ko
cd sc_files
#Setup your sc_files folder to look like this:
# -rw-r--r-- 1 root src 1381 2006-12-31 09:24 ca.cache
# drwxr-sr-x 2 root src 4096 2006-12-31 15:43 nagra
# -rw-r--r-- 1 root src 1642 2006-12-27 11:36 SoftCam.Key
# ./nagra:
# -rw-r--r-- 1 root src 18432 2006-12-27 11:36 EEP01_102.bin
# -rw-r--r-- 1 root src 18432 2006-12-27 11:36 EEP08_102.bin
# -rw-r--r-- 1 root src 98304 2006-12-27 11:36 ROM102.bin
# to do so:
sudo touch ca.cache #creates blank one
sudo wget
sudo wget ...
sudo unzip
sudo tar jxvf au-bins2.tar.bz2
sudo mv au-bins2 nagra
#start sasc-ng
cd ..
#sasc-ng -r 0 -v 1 Previous syntax (pre R64??? format)
sasc-ng -j 0:1

#Open a new terminal
cd /usr/src/mythtv
#apply patches to mythtv SVN or mythtv 20-fixes. Note nexus patches are for Nexus FF boards only.
sudo patch -p0 -F99 < ../myth_dvb_ng/TRUNK/1_SDT/myth_sdt_r?????.diff
sudo patch -p0 -F99 < ../myth_dvb_ng/TRUNK/2_EIT/myth_eit-bev-dn3_r?????.diff
sudo patch -p0 -F99 < ../myth_dvb_ng/TRUNK/3_NEXUS/myth_nexus_pmt_r?????.diff # ***NEXUS ONLY***
sudo patch -p0 -F99 < ../myth_dvb_ng/TRUNK/3_NEXUS/myth_nexus_tune_pes_r?????.diff # ***NEXUS ONLY***
sudo patch -p0 -F99 < ../myth_dvb_ng/TRUNK/4_SISCAN/myth_siscan_r?????.diff
sudo patch -p0 -F99 < ../myth_dvb_ng/TRUNK/5_RADIO/myth_radiots_r?????.diff # *** Radio Transport Stream Pid 200 (Required for audio channels only)
sudo patch -p0 -F99 < ../myth_dvb_ng/TRUNK/5_RADIO/myth_killerradio_r?????.diff # *** Radio song display (not required)
sudo patch -p0 -F99 < ../myth_dvb_ng/20-FIXES/1_SDT/myth_sdt_r?????.diff
sudo patch -p0 -F99 < ../myth_dvb_ng/20-FIXES/2_EIT/myth_eit-bev-dn3_r?????.diff
sudo patch -p0 -F99 < ../myth_dvb_ng/20-FIXES/3_NEXUS/myth_nexus_pmt_r?????.diff # ***NEXUS ONLY***
sudo patch -p0 -F99 < ../myth_dvb_ng/20-FIXES/3_NEXUS/myth_nexus_tune_pes_r?????.diff # ***NEXUS ONLY***
sudo patch -p0 -F99 < ../myth_dvb_ng/20-FIXES/4_SISCAN/myth_siscan_r?????.diff
sudo patch -p0 -F99 < ../myth_dvb_ng/20-FIXES/5_RADIO/myth_radiots_r?????.diff # *** Radio Transport Stream Pid 200 (Required for audio channels only)
sudo patch -p0 -F99 < ../myth_dvb_ng/20-FIXES/5_RADIO/myth_killerradio_r?????.diff # *** Radio song display (not required)

#configure mythtv with whatever options you like, you need at least --enable-dvb... XVMC is recommended.
sudo ./configure --enable-dvb --enable-xvmc
sudo make #Wait a while for compile... hopefully error free Smile
sudo make install #Copys files to /usr/local/bin

sh ../myth_dvb_ng/20-FIXES/5_RADIO/ # *** Radio Transport stream copy to your backend themes folder, 20-FIXES and TRUNK use the same file. (Required for audio channels only)

sudo mysql </database>> /etc/ # fixes where to look for library files.
sudo ldconfig #updates the LD cache.

#setup your card, ensure you use card 1 (or whatever virtual adapter number, not card 0. For NA providers, use Circular Dish setup
#setup your Video Sources
#setup your Input connections
#Scan channels etc. For initial transponders, use one frequency that locks from the list:
#D**hnet 119 ->
#D**hnet 110 ->
#B*v 91 ->
#B*v 82 ->
#Add 3 zeros to the end of each freq (ie 12224 R should be 12224000, Right Circular, 20000000)
#setup a storage directory


#Open a new terminal

#Watch tv a few times (like 12 - note newer sasc-ng seems to not kick out of myth when rolling keys, so once maybe twice will do)
#to roll the first key (or seed ca.cache). You should see things happening in the sasc-ng terminal window

Na vrh
 Naslov prispevka:
OdgovorObjavljeno: Pe Jan 26, 2007 23:38 
Site Admin
Uporabniški avatar

Pridružen: Pe Jan 16, 2004 9:54
Prispevkov: 5678
Se temu reče linux for human beings?

Na vrh
 Naslov prispevka:
OdgovorObjavljeno: So Jan 27, 2007 5:40 
Linux mazohisem. Vsako...svoje veselje.

Na vrh
Prikaži prispevke prejšnjih:  Razvrsti po  
Napiši novo temo  Odgovori na temo  [ 3 prispevkov ] 

Vsi časi so UTC+02:00 Evropa/Ljubljana

Kdo je na strani

Po forumu brska: 0 registriranih uporabnikov in 2 gostov

Ne morete pisati prispevkov v temi
Ne morete odgovarjati na teme v forumu
Ne morete urejati prispevkov v temi
Ne morete brisati vaših prispevkov forumu
Ne morete dodati priponk prispevkom

Pojdi na:  
Teče na phpBB® Forum Software © phpBB Limited