PDA

View Full Version : Need Help Installing MythTV



jroskos
28th October 2006, 04:26 AM
I've gotten everything installed and compiled, now when I try to start "mythtv-setup" I get the following error:



2006-10-27 22:20:44.939 Unable to connect to database!
2006-10-27 22:20:44.939 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)

QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2006-10-27 22:20:44.998 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2006-10-27 22:20:45.054 Failed to init MythContext, exiting.


I've been just having one problem after another with this, but Iam still going at it.

I've already created a user "mythtv" and assigned it to the "test" DB that comes with MySQL cause couldn't figure out how to create my own.

I am not able to login through the MySQL Administrator, so I'am not really sure whats goin on???

Anyway....any help would be greatly appreciated.

holden-nut
28th October 2006, 04:33 AM
Im having the same problem so you not the only one, im pretty sure its something to do with missing the q3 packages but im not sure which ones exactly

SuperNu
28th October 2006, 05:12 AM
Did you setup the initial database using mysql -u root < /usr/share/doc/mythtv-0.20/database/mc.sql? The directons on how to setup the initial MySQL database are here (http://www.mythtv.org/docs/mythtv-HOWTO-6.html).

--SN

holden-nut
28th October 2006, 07:30 AM
Did you setup the initial database using mysql -u root < /usr/share/doc/mythtv-0.20/database/mc.sql? The directons on how to setup the initial MySQL database are here (http://www.mythtv.org/docs/mythtv-HOWTO-6.html).

--SN

Dont know if the OP done that but i did

wdgiles
28th October 2006, 04:09 PM
You could also try following this guide (http://wilsonet.com/mythtv/fcmyth.php) . I'm building my fourth one today using that link.

holden-nut
29th October 2006, 01:05 AM
You could also try following this guide (http://wilsonet.com/mythtv/fcmyth.php) . I'm building my fourth one today using that link.

Just did using that guide i just done the mysql part again to make sure nothing is wrong and the service is started and got

[root@localhost ~]# mythtvsetup
2006-10-29 10:04:06.999 Using runtime prefix = /usr
2006-10-29 10:04:07.064 DPMS is active.
2006-10-29 10:04:07.119 New DB connection, total: 1
2006-10-29 10:04:07.129 Unable to connect to database!
2006-10-29 10:04:07.129 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)

QSqlQuery::exec: database not open
QSqlQuery::exec: database not open
2006-10-29 10:04:07.184 DB Error (KickDatabase):
Query was:
SELECT NULL;
No error type from QSqlError? Strange...
2006-10-29 10:04:07.240 Unable to connect to database!
2006-10-29 10:04:07.241 Driver error was [1/1045]:
QMYSQL3: Unable to connect
Database error was:
Access denied for user 'mythtv'@'localhost' (using password: YES)

jroskos
29th October 2006, 02:06 AM
all right, Ive gotten mythtv to work...but everytime i try ti install the ivtv rpms needs for my card, it doesn't want to install them cause it doesn't have the key added to what ever list/db it goes off of....

I was able to find the key on atrpms site, but don't know how to add it??

Thanks...

holden-nut
29th October 2006, 02:24 AM
all right, Ive gotten mythtv to work...but everytime i try ti install the ivtv rpms needs for my card, it doesn't want to install them cause it doesn't have the key added to what ever list/db it goes off of....

I was able to find the key on atrpms site, but don't know how to add it??

Thanks...

What did you do to get it going?

jroskos
29th October 2006, 04:13 AM
i just entered the
mysql -u root < /usr/share/doc/mythtv-0.20/database/mc.sql command, after that MythTV started right up...

just having problems getting ivtv drivers installed now...

SuperNu
29th October 2006, 07:58 AM
ivtv is pretty easy. Just tar xzvf ivtv-<version>.tar.gz, cd ivtv-<version>, make, make install and you should be set. It would be easier to help you out if we knew what kernel version and ivtv version you are trying to set up. Are you using ATrpms repo to install rpms? They have rpms for both ivtv and mythtv.

Also, be sure to download the ivtv firmware files (http://dl.ivtvdriver.org/ivtv/firmware/) and unpack those into /lib/firmware.

--SN

jroskos
29th October 2006, 03:10 PM
My Kernel Version is 2.6.18-1.2798.fc6

And I have been trying to download the rpms from ATrpms, but I either get a bad checksum error or that I don't have there public key installed.

I've also installed the atrpms-67-2.at.noarch.rpm file to add the ATrpms repo to my list, which it did, but apparently it did not add the key.

These are the rpms I have been trying to install:
ivtv-0.8.0-121.fc6.at.i386.rpm
ivtv-firmware-1.8a-10.at.noarch.rpm
ivtv-firmware-audio-0.0.1-6.at.noarch.rpm
ivtv-firmware-dec-2.02.023-9.at.noarch.rpm
ivtv-firmware-enc-2.04.024-9.at.noarch.rpm
ivtv-kmdl-2.6.18-1.2798.fc6-0.8.0-121.fc6.at.i686.rpm
perl-Video-Frequencies-0.03-4.fc6.at.noarch.rpm
perl-Video-ivtv-0.13-8.fc6.at.i386.rpm

Well i'm going to go and try and find a tar file with all this in to install and I'll give that a shot..

Thanks

jroskos
29th October 2006, 03:19 PM
when I download the tar file and try to do the make, make install i get the following errors:



[root@rosko-linux ivtv-0.8.0]# make
make -C driver all
make[1]: Entering directory `/usr/share/doc/ivtv-0.8.0/driver'
created ivtv-svnversion.h
make -C /lib/modules/2.6.18-1.2798.fc6/build M=/usr/share/doc/ivtv-0.8.0/driver modules
make[2]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
CC [M] /usr/share/doc/ivtv-0.8.0/driver/ivtv-osd.o
In file included from /usr/share/doc/ivtv-0.8.0/driver/ivtv-osd.c:176:
/usr/share/doc/ivtv-0.8.0/driver/ivtv-driver.h:45:26: error: linux/config.h: No such file or directory
make[3]: *** [/usr/share/doc/ivtv-0.8.0/driver/ivtv-osd.o] Error 1
make[2]: *** [_module_/usr/share/doc/ivtv-0.8.0/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/share/doc/ivtv-0.8.0/driver'
make: *** [all] Error 2
[root@rosko-linux ivtv-0.8.0]# make install
make -C driver install
make[1]: Entering directory `/usr/share/doc/ivtv-0.8.0/driver'
make -C /lib/modules/2.6.18-1.2798.fc6/build M=/usr/share/doc/ivtv-0.8.0/driver modules
make[2]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
CC [M] /usr/share/doc/ivtv-0.8.0/driver/ivtv-osd.o
In file included from /usr/share/doc/ivtv-0.8.0/driver/ivtv-osd.c:176:
/usr/share/doc/ivtv-0.8.0/driver/ivtv-driver.h:45:26: error: linux/config.h: No such file or directory
make[3]: *** [/usr/share/doc/ivtv-0.8.0/driver/ivtv-osd.o] Error 1
make[2]: *** [_module_/usr/share/doc/ivtv-0.8.0/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/share/doc/ivtv-0.8.0/driver'
make: *** [install] Error 2


I'm beginning to wonder about Fedora...my room spent one night on his Ubuntu and everything works chezzy...when i've been working on this for a few days....anyway I'm still willing to keep trying after all the work done so far...

any help is greatly appreciated,
Thanks....

SuperNu
29th October 2006, 08:49 PM
I had this same issue when I compiled ivtv. What you need to do to fix this is as root from the command line, cd /usr/src/kernels/2.6.18-1.2798.fc6-i686/include/linux, ln -s autoconf.h config.h. Then recompile ivtv. The docs on the ivtv site might be out of date on how to configure ivtv, so if you need more help, let me know. This will also fix issues trying to compile the Nvidia binary driver.

--SN

jroskos
30th October 2006, 12:58 AM
All right....got ivtv compiled and put the firmware files in /lib/firmware

now when it try to test the card with any of the following commands:


# /usr/bin/ivtvctl -u 0x3000
# /usr/bin/ivtvctl -p 4
# /usr/bin/ivtvctl -f width=720,height=480

(I'm using the correct path to where my ivtvctl file is located /usr/share/doc/ivtv-0.8.0/utils/)

and with any of the commands i get the following errors:



[root@rosko-linux ivtv-0.8.0]# /usr/share/doc/ivtv-0.8.0/utils/ivtvctl -f width=720,height=480
/usr/share/doc/ivtv-0.8.0/utils/ivtvctl: invalid option -- f
Unknown argument `width=720,height=480'
Usage:
-d, --device <dev> use device <dev> instead of /dev/video0
-h, --help display this help message
-K, --passthrough <mode>
set passthrough mode: 1 = on, 0 = off [IVTV_IOC_PASSTHROUGH]
-W, --get-vbi-passthrough
query the current VBI passthrough mode [IVTV_IOC_G_VBI_PASSTHROUGH]
-w, --set-vbi-passthrough=<mode>
set the current VBI passthrough mode to <mode> [IVTV_IOC_S_VBI_PASSTHROUGH]
<mode> is a comma separated list of:
none: no passthrough
cc: closed caption
wss: widescreen signal
vps: vps
--get-yuv-mode display the current yuv mode
--set-yuv-mode [param],[param]
set the current yuv mode
param:
mode =<#> yuv_mode 0=interlaced,1=progressive,2=auto
threshold =<#> if src_hight <= threshold treat as progressive
--reset-ir reset the infrared receiver [VIDIOC_INT_RESET]
--version shows the version number of this utility.
It should match the driver version.

Expert options:
-D, --set-debug <level>
set the module ivtv_debug variable
-E, --end-gop capture last GOP [IVTV_IOC_S_GOP_END]
-e, --get-debug query the module ivtv_debug variable
-I, --list-gpio
show GPIO input/direction/output bits
-i, --set-gpio [dir=<dir>,]val=<val>
set GPIO direction bits to <dir> and set output to <val>
-k, --sync test vsync's capabilities [IVTV_IOC_FRAMESYNC]
-R, --list-registers chip=<chip>
dump registers [VIDIOC_INT_G_REGISTER]
<chip> is one of: saa711x, saa7127, saa717x, cx2584x, cx2341x
-r, --set-register chip=<chip>,reg=<reg>,val=<val>
set register [VIDIOC_INT_S_REGISTER]
<chip> is one of: saa711x, saa7127, saa717x, cx2584x, cx2341x
-v, --audio-route=input=<in>,output=<out>
set the audio input/output routing [VIDIOC_INT_S_AUDIO_ROUTING]


now i know it found and installed the card from the following commands:


[root@rosko-linux ivtv-0.8.0]# /sbin/lspci -v
...
05:08.0 Multimedia video controller: Internext Compression Inc iTVC15 MPEG-2 Encoder (rev 01)
Subsystem: Hauppauge computer works Inc. WinTV PVR-350
Flags: bus master, medium devsel, latency 64, IRQ 58
Memory at c8000000 (32-bit, prefetchable) [size=64M]
Capabilities: [44] Power Management version 2
...



[root@rosko-linux ivtv-0.8.0]# /bin/dmesg | grep Initialized
ieee1394: Initialized config rom entry `ip1394'
ivtv0: Initialized Hauppauge WinTV PVR-350, card #0

I am also not able to do the following command:


[root@rosko-linux ivtv-0.8.0]# /dev/video?
bash: /dev/video0: Permission denied

...don't know if that has to do with anything, but here it all is...


Thanks Again...

SuperNu
1st November 2006, 04:28 AM
With ivtv 0.8, most of the configuration commands you are trying to use are handled by v4l2-ctl instead of ivtvctl. The only part ivtvctl handles are parts of ivtv which are not yet part of v4l2 (video 4 linux 2). I still don't have a 100% grasp on how to use v4l2-ctl.

--SN