Telstar https://www.telstar.si/ |
|
Quick guide on how-to build Mythtv on Ubuntu Edgy (6.10) https://www.telstar.si/viewtopic.php?f=75&t=6546 |
Stran 1 od 1 |
Avtor: | babylon9 [ Pe Jan 26, 2007 21:54 ] |
Naslov prispevka: | Quick guide on how-to build Mythtv on Ubuntu Edgy (6.10) |
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: # http://www.ubuntu.com/products/GetUbunt ... entrelease #Open a new terminal #Uncomment all the Universe/Multiverse lines from /etc/apt/sources.list #Add the word multiverse to the line "deb http://us.archive.ubuntu.com/ubuntu/ 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 http://www.kernel.org/pub/linux/kernel/ ... .1.tar.bz2 #sudo tar jxvf linux-2.6.19.1.tar.bz2 #sudo ln -s linux-2.6.19.1 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 http://207.44.152.197/dvb-ttpci-01-f226 ... 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 http://www.linuxtv.org/wiki/index.php/PCI_devices_DVB-S 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 http://svn.mythtv.org/svn/trunk/mythtv sudo svn co http://svn.mythtv.org/svn/trunk/mythplugins sudo svn co http://svn.mythtv.org/svn/trunk/myththemes #OR sudo svn co http://svn.mythtv.org/svn/branches/rele ... xes/mythtv sudo svn co http://svn.mythtv.org/svn/branches/rele ... ythplugins sudo svn co http://svn.mythtv.org/svn/branches/rele ... myththemes #get patches sudo svn co http://opensvn.csie.org/myth_dvb_ng #get sasc-ng sudo svn co http://OpenSVN.csie.org/sascng 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 http://www.geocities.com/vlivecd/vdr-live/SoftCam.Key sudo wget http://www.geocities.com/vlivecd/vdr-li ... s2.tar.zip sudo unzip au-bins2.tar.zip 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) #OR 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/copyts.sh # *** 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/ld.so.conf # fixes where to look for library files. sudo ldconfig #updates the LD cache. mythtv-setup #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 -> http://www.lyngsat.com/packages/dish119.html #D**hnet 110 -> http://www.lyngsat.com/packages/dish110.html #B*v 91 -> http://www.lyngsat.com/nimiq1.html #B*v 82 -> http://www.lyngsat.com/nimiq2.html #Add 3 zeros to the end of each freq (ie 12224 R should be 12224000, Right Circular, 20000000) #setup a storage directory mythbackend #Open a new terminal mythfrontend #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 |
Avtor: | Sadjevc [ Pe Jan 26, 2007 23:38 ] |
Naslov prispevka: | |
Se temu reče linux for human beings? |
Avtor: | Gizmo [ So Jan 27, 2007 5:40 ] |
Naslov prispevka: | |
Linux mazohisem. Vsako...svoje veselje. |
Stran 1 od 1 | Vsi časi so UTC+02:00 Evropa/Ljubljana |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |