LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Kernel compile fails with make-kpkg, not with make (https://www.linuxquestions.org/questions/debian-26/kernel-compile-fails-with-make-kpkg-not-with-make-336622/)

cspos 06-23-2005 08:55 PM

Kernel compile fails with make-kpkg, not with make (Now a PVR-250 install question)
 
I'm trying to install a new Hauppauge PVR-250. I'm using the guide at the IvTv Wiki. Part of that requires me to compile a new kernel. After configuring the kernel (the 2.6.11 kernel-source from unstable), if I just type make to do a manual install it copmletes the compile. But if I run make-kpkg, it fails with a crap load of DRM errors:

Code:

. . . .
drivers/char/drm/gamma_drv.c:56:22: drm_proc.h: No such file or directory
drivers/char/drm/gamma_drv.c:57:20: drm_vm.h: No such file or directory
drivers/char/drm/gamma_drv.c:58:22: drm_stub.h: No such file or directory
drivers/char/drm/gamma_drv.c:59:25: drm_scatter.h: No such file or directory
drivers/char/drm/gamma_lists.h:161: warning: `DRM' defined but not used
drivers/char/drm/gamma_lock.h:36: warning: `DRM' defined but not used
drivers/char/drm/gamma_lock.h:69: warning: `DRM' defined but not used
make[4]: *** [drivers/char/drm/gamma_drv.o] Error 1
make[3]: *** [drivers/char/drm] Error 2
make[2]: *** [drivers/char] Error 2
make[1]: *** [drivers] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.11'
make: *** [stamp-build] Error 2

I have no idea what's going on there, so any help would be appreciated.

On a side note, if anyone has a better guide to installing the PVR-250, or on how to get the remote of the Audigy2 ZS Platinum working, I'd appreciate a link. My searches haven't come up with much of anything yet.

linux-rulz 06-24-2005 12:20 AM

USB or PCI device?

cspos 06-24-2005 09:17 AM

PCI.

zuralin 06-24-2005 10:05 AM

Try removing your source directory and extracting the source tarball again. The files you list do exist on my box.

linux-rulz 06-24-2005 10:10 AM

Ummmm....why are you recompiling your kernel for a tv-tuner, your card should be supported by your distro provided kernel. Don't bother doing that yet.

Post the output of :

lspci

lsmod | grep bttv

cspos 06-24-2005 10:28 AM

The guide at the IvTv Wiki told me to recompile it.

lspci:
Code:

corey@julie:~$ lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host Bridge
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge
0000:00:0a.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)
0000:00:0a.1 Input device controller: Creative Labs SB Audigy MIDI/Game port (rev 04)
0000:00:0a.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (rev 04)
0000:00:0b.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
0000:00:0d.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
0000:00:0f.0 RAID bus controller: Promise Technology, Inc. PDC20276 (MBFastTrak133 Lite) (rev 01)
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:14.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)

lsmod | grep bttv finds nothing.

By the way it's a PVR-250 so I should be using the ivtv driver. I don't think I need the bttv. Correct me if I'm wrong.

Eulogy 06-24-2005 10:41 AM

MythTV Guide

I used that guide to install my PVR-250.

cspos 06-24-2005 10:46 AM

Eulogy: the link is broken.

zuralin: I missed your post before. I'm actually in the process of recompiling now. This computer's getting old though. It's taking a while. I'll come back later with the results.

EDIT: Oh, yeah. The HCL entry mentions that his lspci shows an iTVC15. Mine shows an iTVC16. Could that be a problem?

Eulogy 06-24-2005 10:55 AM

link works for me. wierd.

cspos 06-24-2005 10:59 AM

Back up. Server must have been down. I got a timeout...

EDIT: Yeah, it's going on and off on me.

cspos 06-24-2005 12:55 PM

The guide says to download this file: http://205.209.168.201/~ckennedy/ivt....2.0-rc3a.tgz. That link is broken. So I used the ivtv-0.2.0-rc3k package from IvTv's site. That's the only thing i did differently, and it didn't work. All the steps completed without errors, but at the end, I couldn't find the ivtv module:
Code:

julie:/home/corey/ivtv-0.2.0-rc3k# modprobe ivtv
FATAL: Module ivtv not found.

I'm thinking this has something to do with the fact that this is the newer version of the PVR-250. The guide says:
Quote:

Newer releases of the PVR250 card are not being recognized by the stable ivtv driver, but a patch has been developed and has been applied to the ckennedy versions.
.
That's the file that isn't online now.

zuralin 06-24-2005 01:24 PM

Post the output of:
# ls /usr/src
# uname -r

edit: BTW, I wrote the "guide" you originally posted.. Most likely you need to use
KERNELDIR="/kernel/localtion/" make
otherwise it places the modules in the wrong location.

cspos 06-24-2005 01:27 PM

Code:

julie:/home/corey/ivtv-0.3.6r/utils# ls /usr/src
alsa-driver-1.0.8
alsa-driver-1.0.8.tar.bz2
kernel-headers-2.6.11-1
kernel-headers-2.6.11-1-k7
kernel-headers-2.6.8-2
kernel-headers-2.6.8-2-386
kernel-kbuild-2.6-3
modules
nvidia-kernel-2.6.11-1-k7_1.0.7174-3+2.6.11-6_i386.deb
nvidia-kernel-2.6.8-2-386_1.0.7174-3+2.6.8-16_i386.deb
nvidia-kernel-source.tar.gz
julie:/home/corey/ivtv-0.3.6r/utils# uname -r
2.6.11-1-k7


zuralin 06-24-2005 01:30 PM

When building the ivtv module try using:
KERNELDIR="/usr/src/kernel-headers-2.6.11-1-k7" make

cspos 06-24-2005 01:43 PM

That didn't work either.

zuralin 06-25-2005 06:26 AM

And then run depmod -ae
Or give the error (if any)

cspos 06-25-2005 10:20 AM

depmod -ae runs through without any output, so I'm assuming it finishes without an error.

cspos 06-25-2005 12:08 PM

I tried something new. I added these source to my sources.list:
Code:

#Stable drivers for PVR250/350
deb http://www.hellion.org.uk/debian sid ivtv
deb-src http://www.hellion.org.uk/debian sid ivtv

Then I installed the ivtv-source pckage. I put a copy of the driver/firmware file in /usr/local/lib/firmware, and then in another test I put it in /lib/modules, like this guide said. Then I ran module-assistant auto-install ivtv. It seemed to install correctly, but I still get the same error when running modprobe ivtv. MythTV and Tvtime still don't see /dev/video0 as being there.

zuralin 06-25-2005 03:20 PM

The same error as being that it doesn't exist? Also I assume /dev/video0 doesn't exist if modprobe ivtv fails.

Let's find out where ivtv is being installed
# updatedb
# locate ivtv.ko

cspos 06-25-2005 04:05 PM

Code:

julie:/lib/modules# locate ivtv.ko
/lib/modules/2.6.11/extra/ivtv.ko

Yet modprove ivtv still fails...

zuralin 06-25-2005 09:38 PM

Show output of:
# ls /lib/modules

If /lib/modules/2.6.11-1-k7 exists try this:
# mv /lib/modules/2.6.11/extra/ /lib/modules/2.6.11-1-k7/
# depmod -ae
# modprobe ivtv

cspos 06-26-2005 01:07 PM

Code:

julie:/lib/modules# ls
2.6.11      2.6.8-2-386      ivtv-fw-enc.bin
2.6.11-1-k7  ivtv-fw-dec.bin  pvr48wdm_1.8.22037.exe

Moving the extra folder to 2.6.11-1-k7 worked. Now I can successfully load the ivtv module. That's only step one. After running:
Code:

# mknod /dev/video0 c 81 0
# mknod /dev/video16 c 81 16
# mknod /dev/video32 c 81 32
# mknod /dev/video224 c 81 224

I record some video by running:
Code:

dd if=/dev/video0 of=test.mpg bs=64k
But when I play it, I see only black for however long I recorded for. I can't test it in Tvtime, since that can't play live tv off the ivtv driver, and I haven't yet been able to install the mythtv backend. I'll come back later after trying to install the backend. If anyone has a particular guide they'd like to point me to, I'd appreciate it. Until then, I'll be on Google.

zuralin 06-27-2005 07:03 AM

Try installing udev. Also did you delete the non-ivtv msp3400.ko?
# locate msp3400.ko

Delete the msp3400.ko in /lib/modules/`uname -r`/ that isn't in the extra directory.

edit: also check out http://ivtv.writeme.ch/tiki-view_faq.php?faqId=1

cspos 06-27-2005 11:06 AM

I already have udev, but I'm not sure what I'd do with it. I already deleted the other msp3400.ko.

Here's something interesting:
Code:

julie:~# ivtvctl -m
ioctl: VIDIOC_QUERYCAP
        Driver name  : ivtv
        Card type    : Vanilla iTVC15 card
        Bus info      : 0
        Driver version: 512
        Capabilities  : 0x01070011
julie:~# lspci
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host Bridge
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge
0000:00:09.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
0000:00:0c.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
0000:00:0d.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)
0000:00:0d.1 Input device controller: Creative Labs SB Audigy MIDI/Game port (rev 04)
0000:00:0d.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (rev 04)
0000:00:0f.0 RAID bus controller: Promise Technology, Inc. PDC20276 (MBFastTrak133 Lite) (rev 01)
0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:14.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 46)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1)

lspci shows an iTVC16, but ivtvctl -m shows that I'm using the iTVC15 driver...

zuralin 06-27-2005 11:19 AM

Mine does the same thing (note: I have two pvr250's)..

mythtv:/home/mythtv# ivtvctl -m | grep iTVC
Card type : Vanilla iTVC15 card

mythtv:/home/mythtv# lspci | grep iTVC
0000:00:09.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
0000:00:0a.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)

cspos 06-27-2005 11:40 AM

That's reassuring.

That FAQ you sent me says that if the mpeg I pull from the card shows just a black screen I should set it to pull from a different input. After running ivtvctl -n to see my options, I set it to record from input 4, which is the tuner.

Now it's time to get mythtv working.

cspos 06-27-2005 02:26 PM

I can't seem to start the backend server:

Code:

julie:/# mythbackend
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
2005-06-27 15:19:18.257 New DB connection, total: 1
No setting found for this machine's BackendServerIP.
Please run setup on this machine and modify the first page
of the general settings.
julie:/# /etc/init.d/mythtv-backend start
Starting MythTV server: mythbackendSession management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed

So without the backend up, mythfilldatabase soon fails:

Code:

julie:/# mythfilldatabase
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
2005-06-27 15:20:27.454 New DB connection, total: 1
2005-06-27 15:20:27.516 New DB connection, total: 2
Refreshing Tomorrow's data
2005-06-27 15:20:27.587 New DB DataDirect connection
Retrieving datadirect data...
Grabbing data for Mon Jun 27 2005 offset 1
From : Tue Jun 28 04:00:00 2005 To : Wed Jun 29 04:00:00 2005 (UTC)
--15:20:27--  http://datadirect.webservices.zap2it...gs/xtvdService
          => `-'
Resolving datadirect.webservices.zap2it.com... 206.18.98.160
Connecting to datadirect.webservices.zap2it.com|206.18.98.160|:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Connecting to datadirect.webservices.zap2it.com|206.18.98.160|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/xml]

    [        <=>                                                                      ] 193,977      57.54K/s

15:20:32 (57.46 KB/s) - `-' saved [193977]

Your subscription expires on 09/27/2005 06:32:09 PM
Grab complete.  Actual data from Tue Jun 28 04:00:00 2005 to Wed Jun 29 04:00:00 2005 (UTC)
Clearing data for source...
Clearing from Tue Jun 28 00:00:00 2005 to Wed Jun 29 00:00:00 2005 (localtime)
2005-06-27 15:20:43.506 New DB connection, total: 3
2005-06-27 15:20:43.561 New DB connection, total: 4
Data for source cleared...
Main temp tables populated.  Updating myth channels...
Updating icons for sourceid: 1
Channels updated..  Updating programs...
Data is already present for Mon Jun 27 2005, skipping
Data is already present for Wed Jun 29 2005, skipping
Data is already present for Thu Jun 30 2005, skipping
Data is already present for Fri Jul 1 2005, skipping
Data is already present for Sat Jul 2 2005, skipping
Data is already present for Sun Jul 3 2005, skipping
Data is already present for Mon Jul 4 2005, skipping
Data is already present for Tue Jul 5 2005, skipping
Data is already present for Wed Jul 6 2005, skipping
Data is already present for Thu Jul 7 2005, skipping
Data is already present for Fri Jul 8 2005, skipping
Data is already present for Sat Jul 9 2005, skipping
Data is already present for Sun Jul 10 2005, skipping
Adjusting program database end times...
0 replacements made.
Marking repeats...found 1407
Unmarking repeats from grabber that fall within our new episode window...found 7
2005-06-27 15:20:48.400 Connecting to backend server: 127.0.0.1:6543 (try 1 of 5)
Connection timed out.
You probably should modify the Master Server settings
in the setup program and set the proper IP address.
error resceduling id -1 in ScheduledRecording::signalChange


zuralin 06-27-2005 03:39 PM

I had this same problem. You need to make sure you load mc.sql into mysql. See my guide (the guide you originally posted was written by me) for some tips. HOPEFULLY it will help. Remember, if you change the root password in mysql to run
# dpkg-reconfigure mythtv-backend
If my guide doesn't help your going to have to do more googling. Let me know what you do so I can edit my guide.

cspos 06-27-2005 09:57 PM

So far, it's not working. After successfully running mythtv-setup, I try to run mythfilldatabase. That fails:
Code:

julie:~# mythfilldatabase
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
2005-06-27 22:01:43.826 New DB connection, total: 1
2005-06-27 22:01:43.851 New DB connection, total: 2
Grabbing XMLTV data using 2005-06-27 22:01:43.878 New DB connection, total: 3
Adjusting program database end times...
0 replacements made.
Marking repeats...found 0
Unmarking repeats from grabber that fall within our new episode window...found 02005-06-27 22:01:43.939 Connecting to backend server: localhost:6543 (try 1 of 1)

So I try to start the backend first:
Code:

julie:~# /etc/init.d/mythtv-backend start
Starting MythTV server: mythbackendSession management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
.

Your guide doesn't say to run the backend frist, but some other ones do, and that's what the mythfilldatabase error leads me to believe.

So basically I just can't start the backend. But myth-setup runs fine. I've successfully installed the mc.sql sql file, and matched the mythv user's password to the one I set in mythtv-setup. I don't see what I'm missing.

cspos 06-28-2005 12:30 AM

It's working now. I've changed so many things, I couldn't tell you exactly what it was that made this work. But I'll be installing this card again soon on a clean system, so I'll let you know then so you can add to the guide.
All that I have to do now is install the remote. That's a job for tomorrow.

Thanks for all the help.

zuralin 06-28-2005 06:11 AM

Quote:

Originally posted by cspos
It's working now. I've changed so many things, I couldn't tell you exactly what it was that made this work. But I'll be installing this card again soon on a clean system, so I'll let you know then so you can add to the guide.
All that I have to do now is install the remote. That's a job for tomorrow.

Thanks for all the help.

Yeah, I think the init scripts in 18.* are broken (at least in .18 they were) because it should be ran as soon as it is installed. Glad to see you finally got everything working.

tmantist 06-28-2005 07:21 AM

potential solution
 
the linux kernel has naitve support for plenty of video and tv cards[2.6 kernels have the best support], check to see if driver is there as a module with 'ls -R /lib/modules/$(uname -r)/ | grep iv # or tv' , cd to the dir that the module is in and use insmod as root when you found the module. read insmod manual page for clarification.

else get a 2.6 kernel and compile in support for your tv-card,

note: that although the driver you downloaded may be for your card, the driver itself may have been designed to work on a 2.4 or 2.6 kernel only, I doubt a 2.2.

the one that you build into a kernel or as a module will always work

if those suggestions don't work, come back here

cspos 06-29-2005 07:43 PM

Quote:

Originally posted by cspos
Code:

julie:~# /etc/init.d/mythtv-backend start
Starting MythTV server: mythbackendSession management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
.


Oh. The mythtv-backend daemon actually did start when I ran that. The output was just a warning. So it looks like the guide was fine after all...

On a side note, the integrated encoder chip is great. I can continue to run programs that take a lot of processing power while encoding stuff. But decoding a stored file or even watching buffered live TV takes a lot more power. If I even browse the Internet while watching a video it stutters a bit. That's not cool. Will the encoder chip on the 250 rev 1 or on the 350 substantially improve performance?

zuralin 06-29-2005 08:25 PM

Quote:

Will the encoder chip on the 250 rev1 or on the 350 substantially improve performance?
I assume you mean the decoder, rather the encoder. The 250rev1 and 350 should take about as much cpu as it does to encode when decoding because they both have hardware decoding capabilities.

cspos 06-29-2005 08:55 PM

Oops, yeah I meant to say decoder. Well then it sounds like the upgrade would be worth it. But I don't need the tuner and other perks of the 350. Is there anywhere where I can buy a rev1 250?

zuralin 06-30-2005 10:06 AM

No idea, I've always wanted one as well.

cspos 06-30-2005 11:13 PM

On second thought, what I'm seing on the HCL isn't very good. Does the unstable branch of the ivtv driver really support the 350 like the site says?

I just read that the MPEG decoder only works on whatever is plugged into the TV-out jack on the 350. That defeats the purpose of using a CRT or LCD monitor...

cyslim 11-09-2005 09:11 AM

I'm having similar problems as the original poster, here's is my lspci output:

0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8753 [P4X266 AGP] (rev 01)
0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP]
0000:00:09.0 Network controller: Intersil Corporation Prism 2.5 Wavelan chipset (rev 01)
0000:00:0a.0 PCI bridge: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode) (rev 11)
0000:00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8233 PCI to ISA Bridge
0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
0000:00:11.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1b)
0000:00:11.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1b)
0000:00:11.4 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 1b)
0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 30)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV20 [GeForce3] (rev a3)
0000:02:08.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)
0000:02:09.0 Multimedia video controller: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder (rev 01)

Contents of /usr/src:
hcwCCnv2.ax
hcwECP.ax
HcwMakoA.ROM
HCWPP2.inf
hcwPP2.sys
hcwPrxA2.ax
hcwutl32.dll
hcwxds.dll
ivtv0.4-modules-2.6.14-1-686_0.4.0-1+2.6.14-2_i386.deb
ivtv0.4-source.tar.bz2
ivtv-firmware-
linux
linux-headers-2.6.14-1
linux-headers-2.6.14-1-686
modules
nvidia-kernel-2.6.14-1-686_1.0.7174-4+2.6.14-2_i386.deb
nvidia-kernel-source.tar.gz
pvr_2.0.24.23035.zip
ReleaseNotes.txt

And uname -r:
2.6.14-1-686

I'm trying to use a Hauppage PVR500 in a Debian system, almost everything else seems to work, but I think the module keeps getting misplaced. I've read several articles about this happening, but the various 'fixes' either don't work for me, or are not explicit enough for me to follow along (I haven't built a Linux system in a decade). Any help would be appreciated.


All times are GMT -5. The time now is 03:17 PM.