Difference between revisions of "Upgrading from 0.18.1 to 0.19 on Fedora 4 from ATrpms"

From MythTV Official Wiki
Jump to: navigation, search
m
(Fixed the problem - updated guide)
Line 1: Line 1:
 +
'''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 [http://wilsonet.com/mythtv/fcmyth.php here]. It should work on other Fedora setups with a PVR 150/250/350 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==
 
 
'''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.''' [[User:Stormwave0|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 did with 0.18 and the older kernel. Hopefully this will be fixed soon.
 
[[User:MeneM|MeneM]] 21:38, 22 February 2006 (UTC)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
'''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 [http://wilsonet.com/mythtv/fcmyth.php 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.  
 
Before upgrading anything you'll want to backup your mythtv database, just in case something goes wrong.  
Line 51: Line 18:
 
This will save a backup of the database to your current directory.  
 
This will save a backup of the database to your current directory.  
  
===Stop the backend===
+
==Stop the backend==
 +
 
 
Stop the backend and any frontends. You'll also want to stop lircd.
 
Stop the backend and any frontends. You'll also want to stop lircd.
 +
 
<pre>
 
<pre>
 
# /sbin/service mythbackend stop
 
# /sbin/service mythbackend stop
 
# /sbin/service lircd stop
 
# /sbin/service lircd stop
 
</pre>
 
</pre>
 +
 
It's also probably a good idea to disable the backend from starting during reboots while upgrading.
 
It's also probably a good idea to disable the backend from starting during reboots while upgrading.
 +
 
<pre>
 
<pre>
 
# /sbin/chkconfig mythbackend off
 
# /sbin/chkconfig mythbackend off
Line 63: Line 34:
 
</pre>
 
</pre>
  
===Install smart===
+
==Install smart==
  
 
Yum has a bug [http://www.gossamer-threads.com/lists/mythtv/users/176406] 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 has a bug [http://www.gossamer-threads.com/lists/mythtv/users/176406] 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.
Line 103: Line 74:
 
</pre>
 
</pre>
  
===Reload drivers===
+
==Reload drivers==
  
At this point you should unload your installed drivers using depmod in preparation to reload them:
+
Before we reload the drivers we'll have to make a change to our modprobe.conf. The latest versions of the kernel includes an ivtv module with it, making an alias line unnecessary. So remove or comment out this line from your /etc/modprobe.conf:
  
 
<pre>
 
<pre>
# /sbin/rmmod ivtv
+
alias msp3400 msp3400-ivtv
# /sbin/rmmod lirc
 
 
</pre>
 
</pre>
  
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:
+
'''Note: Removing this line is very important or you will not have sound after the upgrade.'''
  
<pre>
+
At this point, we're ready to reload our drivers. The easiest way to do this (especially if you're running on the PVR-350's S-Video out) is to reboot. The new drivers will be loaded when the system is finished restarting.
# cd /lib/modules/$KVER/kernel/drivers/media/video
 
# mv msp3400.ko msp3400.ko.orig
 
</pre>
 
  
Now reload the drivers:
+
However, if you want you can unload and reload the drivers in the command prompt:
  
 
<pre>
 
<pre>
 +
# /sbin/rmmod ivtv
 +
# /sbin/rmmod lirc
 
# /sbin/depmod -a
 
# /sbin/depmod -a
 
# /sbin/modprobe ivtv
 
# /sbin/modprobe ivtv
Line 127: Line 96:
 
</pre>
 
</pre>
  
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==
  
===Upgrading MythTV===
+
At this point we're set to finish upgrading mythtv. You can restart the backend service and set it to automatically start on boot. Same for lircd:
 
 
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:
 
  
 
<pre>
 
<pre>
Line 151: Line 118:
 
$ mythfilldatabase
 
$ mythfilldatabase
 
</pre>
 
</pre>
Also check your httpd.conf has been updated to AllowOverRide see the [[MythWeb_readme]] for more details
 
  
===Final Touches===
+
Also check your httpd.conf has been updated to AllowOverRide see the [[MythWeb_readme]] for more details.
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.
+
 
 +
==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 master volume and other volumes are set properly (updating the driver likely reset them).  
  
 
[[category:Upgrading]]
 
[[category:Upgrading]]

Revision as of 04:25, 25 February 2006

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 with a PVR 150/250/350 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

Before we reload the drivers we'll have to make a change to our modprobe.conf. The latest versions of the kernel includes an ivtv module with it, making an alias line unnecessary. So remove or comment out this line from your /etc/modprobe.conf:

alias msp3400 msp3400-ivtv

Note: Removing this line is very important or you will not have sound after the upgrade.

At this point, we're ready to reload our drivers. The easiest way to do this (especially if you're running on the PVR-350's S-Video out) is to reboot. The new drivers will be loaded when the system is finished restarting.

However, if you want you can unload and reload the drivers in the command prompt:

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

Upgrading MythTV

At this point we're set to finish upgrading 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 master volume and other volumes are set properly (updating the driver likely reset them).