mythTV on gentoo

Getting mythtv to work is the final step in a long range of sub-applications that need to work first. Amongst these are:

Mysql
One is mysql. Emerge mysql does the trick, but then
/etc/init.d/mysql start
told me that I still needed to run a script. The ebuild doesn’t do this for you. After this the mysql server started, and running the client (also called mysql) with the simple test command ‘show databases’ showed everything was fine.

Ivtv
For the pvr350 (or pvr250 card) you’ll need ivtv (http://ivtv.sourceforge.net). So first
emerge ivtv
Getting the pvr350 card to work needed some tweaking as well. The “default” kernel doesn’t add tuner.o in the modules directory. Reason is that the BT848 is not included as a module. Reason for this is that the i2c bit-banging interfaces are OFF. These deep-dependancies can be a pain in the ass.

to fix this:
genkernel –menuconfig all
Then when the menuconfig screen appears, i went to character devices->i2c support
turned the bit-banging interface.
Then to the multimedia video section and turned the BT848

To load the whole ivtv section during boot, i did
echo ivtv >>/etc/modules.autoload.d/kernel-2.4

Also some settings in the modules.conf are needed, but in gentoo you normally generate this file and put stuff in /etc/modules.d
After emerging ivtv, the file ivtv is already in /etc/modules.d, but it needs some tweaking.

Using modprobe tveeprom, found out that my tuner is type 5, so:
#alias char-major-61 lirc_i2c
#add above ivtv lirc_dev lirc_i2c
alias char-major-81 videodev
alias char-major-81-0 ivtv
### modprobe tveeprom geeft: tuner=philips FM1216 idx=21 type=5
options ivtv debug=1 ivtv_pal=1 tuner=5
options tuner pal=1 type=5
options saa7127 enable_output=1 output_select=0 pal=1
options msp3400 once=1 simple=1
add below ivtv msp3400 saa7115 saa7127 tuner
# add above ivtv lirc_dev lirc_i2c
# add above ivtv ivtv-fb
post-install ivtv /usr/local/bin/test_ioctl -d /dev/video0 -u 0xff

lirc is not functioning now, so that has to be done later on.