Upgrading from 0.18.1 to 0.19 on Fedora 4 from ATrpms

From MythTV Official Wiki
Revision as of 21:27, 22 February 2006 by 80.126.196.75

Jump to: navigation, search





ATTENTION: I'M CURRENTLY HAVING NO SOUND IN MY RECORDINGS. I BELIEVE IT IS DUE TO THE KERNEL UPGRADE. I SUGGEST NOT FOLLOWING THIS GUIDE UNTIL I FIGURE OUT A SOLUTION TO THE PROBLEM. Stormwave0 05:52, 22 February 2006 (UTC)

Upgrading is still possible, one can simply use a previous kernel by adjusting grub.conf and loading you previous kernel. That way you will still have sound, as you do now. Hopefully this will be fixed soon. Mark@mateo.xs4all.nl













WARNING: This guide assumes that you're running Fedora Core 4 along with a PVR-350 using S-Video out. It also assumes that you followed Jarod Wilson's MythTV Setup guide found here. It should work on other Fedora setups but I offer no guarantees. Finally, I must admit that I'm not the most advanced Linux user out there. This guide was made from memory so it may not be completely correct.


Create a backup of your database

Before upgrading anything you'll want to backup your mythtv database, just in case something goes wrong.

$ mysqldump -u <sql username here> -p<password here> mythconverg -c > mythtv_backup18.sql

Note there is no space between the -p option and your password. For example, if your mysql username was mythtv and your password media the command would be:

mysqldump -u mythtv -pmedia mythconverg -c > mythtv_backup18.sql

This will save a backup of the database to your current directory.

Stop the backend

Stop the backend and any frontends. You'll also want to stop lircd.

# /sbin/service mythbackend stop
# /sbin/service lircd stop

It's also probably a good idea to disable the backend from starting during reboots while upgrading.

# /sbin/chkconfig mythbackend off
# /sbin/chkconfig lircd off

Install smart

Yum has a bug [1] that won't let you install/upgrade all the dependencies for ivtv so we'll have to install smart. We'll also download the appropriate files to setup the ATrpms and fedora repos on it.

# yum install smart smart-gui
# yum install atrpms-package-config

On when questioned on putting in the ATrpm and fedora repo channels into smart, say yes to all the stable and release ones. I believe the testing ones are disabled by default if you say yes to them but I think it's best not to add them anyway.

Next we want to update smart's cache and upgrade everything.

# smart update
# smart upgrade 

I'm not exactly sure, but I don't think smart upgrades the kernel modules for everything so you'll have to reboot and install those as well. So at this point, reboot.

Note: If you're using a PVR-350's S-Video out at this point, your system may not reboot and load the ivtv driver. So you'll likely have to open an SSH connection (enabled by default in Fedora) or VNC connection (if you have that setup) to run these commands.

After the system has rebooted, we're going to update the kernel modules. If you used Jarod Wilson's Fedora guide [2] to initially setup MythTV you should have a $KVER variable that'll return your currently running kernel version. If you don't have one setup, run the following commands to do so:

# echo "export KVER=\`uname -r\`" >> /etc/profile.d/kver.sh

Now we can upgrade our kernel modules using yum:

# yum install {ivtv,lirc}-kmdl-$KVER

If you're using alsa and/or an nvidia card, you'll want to upgrade those modules as well:

# yum install {alsa,ivtv,lirc,nvidia-graphics7676}-kmdl-$KVER

Reload drivers

At this point you should unload your installed drivers using depmod in preparation to reload them:

# /sbin/rmmod ivtv
# /sbin/rmmod lirc

In the kernel upgrade with the PVR-350, the sound module driver put in with Jarod's guide were likely lost. So put that back with:

# cd /lib/modules/$KVER/kernel/drivers/media/video
# mv msp3400.ko msp3400.ko.orig

Now reload the drivers:

# /sbin/depmod -a
# /sbin/modprobe ivtv
# /sbin/modprobe lirc

350 S-Video out users, if your screen is still black at this point I'd suggest rebooting. The ivtv driver should (no guarantees here) work after the reboot and restart of X.

Upgrading MythTV

At this point we're set to upgrade mythtv. You can restart the backend service and set it to automatically start on boot. Same for lircd:

# /sbin/chkconfig mythbackend on
# /sbin/chkconfig lircd on
# /sbin/service mythbackend start
# /sbin/service lircd start

Now run mythtv to update your database to the latest version:

$ mythtv-setup

Go through all the settings and make sure they're set properly. In particular, make sure your recording directory is setup properly. 0.19 gets rid of having separate directories for live TV and recorded programs. Finally, run mythfilldatabase to make sure your listings are all updated.

$ mythfilldatabase

Also check your httpd.conf has been updated to AllowOverRide see the MythWeb_readme for more details

Final Touches

At this point MythTV should be pretty much upgraded. Start up the frontend and check all your settings. Go into a recorded program and see if the OSD needs any adjustments. Also check your auto-expire settings on recordings with the LiveTV storage change. Finally, if you don't have sound, check the frontend settings and use a program like alsamixer to be sure your line in port isn't muted.