Log in Register FAQ Memberlist Search pcHDTV Forum Index
pcHDTV Forum

pcHDTV Forum Index -> General pcHDTV topics -> Fedora?
Post new topic  This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic 
Fedora?
PostPosted: Fri Jan 16, 2004 4:16 pm Reply with quote
mk500
 
Joined: 11 Jan 2004
Posts: 51
Location: San Francisco, CA




Has anyone had any luck getting the card operational on Fedora? With RH9 losing support on April 30, I was thinking of migrating.

http://www.redhat.com/apps/support/errata/

Or is another distro recommended?
View user's profile Send private message AIM Address
Re: Fedora?
PostPosted: Sat Jan 17, 2004 9:57 am Reply with quote
Guest
 




mk500 wrote:
Has anyone had any luck getting the card operational on Fedora? With RH9 losing support on April 30, I was thinking of migrating.

http://www.redhat.com/apps/support/errata/

Or is another distro recommended?


There is a patch file on the download page for the 2.4.22 kernel: Linux-2.4.22-kernel-patch-1.0.tar.gz.

I have not tried it personally, but I am told it works fine with the kernl which comes with Fedora.

John
PostPosted: Sun Jan 25, 2004 12:20 am Reply with quote
mk500
 
Joined: 11 Jan 2004
Posts: 51
Location: San Francisco, CA




Well, I've spent the last few days working on getting the kernel recompiled after the patches are applied to Fedora Core 1. I've learned a great deal about kernel compiling Unfortunately I don't have a working patched kernel yet, but I thought I would post some instructions anyway....to save others the time I've spent just learning the commands necessary to compile a kernel on Fedora.

When installing Fedora Core 1, make sure you install the developer tools and source.
After downloading the Linux-2.4.22-kernel-patch-1.0.tar.gz file from here, apply the patches as the instructions say (step 1 of the included readme).

To recompile the kernel (as root):

Code:

1) Go to your source directory (e.g. /usr/src/linux-2.4)
2) make oldconfig
3) make oldconfig
         second time is to fix a bug where you get error during compile
4) manually edit .config file: CONFIG_EXT3_FS=m needs to be manually changed to y
5) make dep
6) make clean
7) make bzImage <-- this takes a while
8) make modules <-- this seems to be taking even longer than bzImage
9) make modules_install
10) make install <-- this will move kernel into /boot and add it to your boot menu (e.g. Grub)
11) reboot, and select your new kernel
12) If your new kernel won't boot, hard-reset your PC and then choose the old kernel at boot


I'll post again when I get it working.....I feel that I'm close, but we'll see.
View user's profile Send private message AIM Address
PostPosted: Sun Jan 25, 2004 11:53 pm Reply with quote
mk500
 
Joined: 11 Jan 2004
Posts: 51
Location: San Francisco, CA




No luck getting /dev/dtv to show up after applying the patches to the Fedora kernel. The patches install fine, and the kernel compiles and boots fine, but no devices.
View user's profile Send private message AIM Address
PostPosted: Mon Jan 26, 2004 7:02 am Reply with quote
uvajeD
 
Joined: 08 Jan 2004
Posts: 8
Location: Michigan, USA




mk500 wrote:
No luck getting /dev/dtv to show up after applying the patches to the Fedora kernel. The patches install fine, and the kernel compiles and boots fine, but no devices.


Check to see if /dev/video0 or /dev/video32 has been created. If you see /dev/video32 being created, then use "ln -s" command to link /dev/dtv to /dev/video32.

In my setup, which is probably different to yours (pcHDTV card with a Hauppauge PVR-250 card), /dev/video34 was created instead of /dev/dtv. I made /dev/dtv a link to /dev/video34 and all was finally right in the world.
View user's profile Send private message
PostPosted: Mon Jan 26, 2004 12:08 pm Reply with quote
mk500
 
Joined: 11 Jan 2004
Posts: 51
Location: San Francisco, CA




Based on other similar posts, I had run the following on the Fedora install:
ls /dev | grep video
as well as
ls /dev | grep dtv
and didn't come up with anything from either.

I am currently having slightly better luck with RH9. For the first time, I am actually seeing devices. I have:

Code:

ls /dev | grep video
video
video0
video1
video1394
video2
video3
ls /dev | grep dtv
dtv
dtv0
dtv1
dtv2
dtv3


But when I issue the signal command, it can't find the device:

Code:

./signal /dev/dtv 9
main: argc 3 argv[1] /dev/dtv
No such device - couldnt open file /dev/dtv


My guess as to the reason this isn't working is the problems I had during the make install step of installing RH90-driver-rev-1.2.tar.gz:

Code:

install -d /lib/modules/2.4.20-8/kernel/drivers/media/video /lib/modules/misc
install -c tuner.o /lib/modules/2.4.20-8/kernel/drivers/media/video
install -c tuner.o /lib/modules/misc
install -c bttv.o /lib/modules/2.4.20-8/kernel/drivers/media/video
install -c bttv.o /lib/modules/misc
install -c linux/usr/include/linux/videodev.h /usr/include/linux
install -c linux/usr/src/linux-2.4/include/linux/videodev.h /usr/src/linux-2.4/include/linux
./minstall
rmmod: module bttv is not loaded
rmmod: module tuner is not loaded
./minstall: line 16:  2555 Segmentation fault      /sbin/modprobe bttv


Interestingly, if I do a second make install after this, it seems to think the modules are "busy" instead of "not loaded":

Code:

install -d /lib/modules/2.4.20-8/kernel/drivers/media/video /lib/modules/misc
install -c tuner.o /lib/modules/2.4.20-8/kernel/drivers/media/video
install -c tuner.o /lib/modules/misc
install -c bttv.o /lib/modules/2.4.20-8/kernel/drivers/media/video
install -c bttv.o /lib/modules/misc
install -c linux/usr/include/linux/videodev.h /usr/include/linux
install -c linux/usr/src/linux-2.4/include/linux/videodev.h /usr/src/linux-2.4/include/linux
./minstall
bttv: Device or resource busy
tuner: Device or resource busy
View user's profile Send private message AIM Address
PostPosted: Mon Jan 26, 2004 12:12 pm Reply with quote
Spinoza
 
Joined: 08 Jan 2004
Posts: 27




was the hd-2000 card installed in the machine when you installed redhat?

_________________
-vito
View user's profile Send private message AIM Address
PostPosted: Mon Jan 26, 2004 2:02 pm Reply with quote
mk500
 
Joined: 11 Jan 2004
Posts: 51
Location: San Francisco, CA




Spinoza wrote:
was the hd-2000 card installed in the machine when you installed redhat?


Yes. And the green light has been on, so I know it has power. Also, I used a bootCD full of utilities I had lying around to scan the PCI bus. The card appears to be showing up as two devices as detailed below (typed from screen...hopefully no typos):

Code:

Vendor 109Eh Brooktree Corp
Device 036Eh Bt878 Mediastream Controller
Command 0006h (Memory Access, BusMaster)
Status 0290h (Has Capabilities List, Supports Back-To-Back Trans., Medium Tim
Revision 11h, Header Type 80h, Bus Latency 20h
Self test 00h (Self test not supported)
PCI Class Multimedia, type Video
Subsystem ID 20007063h Unknown
Subsystem Vendor 7063h Unknown
Address 0 is a Memory Address (anywhere in 0-4Gb, Prefetchable) : E3001000h
System IRQ 10, INT# A
New Capabilities List Present:
  Vital Product Data Capability
  Power Management Capability
    Supports power state D1
    Current Power State : D0 (Device operational, no power savings)
   
Vendor 109Eh Brooktree Corp
Device 0878h Bt878 Video Capture (Audio Section)
Command 0006h (Memory Access, BusMaster)
Status 0290h (Has Capabilities List, Supports Back-To-Back Trans., Medium Tim
Revision 11h, Header Type 80h, Bus Latency 20h
Self test 00h (Self test not supported)
PCI Class Multimedia, type Other
Subsystem ID 20007063h Unknown
Subsystem Vendor 7063h Unknown
Address 0 is a Memory Address (anywhere in 0-4Gb, Prefetchable) : E3002000h
System IRQ 10, INT# A
New Capabilities List Present:
  Vital Product Data Capability
  Power Management Capability
    Supports power state D1
    Current Power State : D0 (Device operational, no power savings)
View user's profile Send private message AIM Address
Fedora quick start...
PostPosted: Fri Apr 02, 2004 6:22 pm Reply with quote
Robstarusa
Guest
 




I am currently working on getting this working on Fedora.

This is the rpm you need to get. The patches (seem) to apply without error:

Redhat RPM
========
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/1/i386/kernel-source-2.4.22-1.2174.nptl.i386.rpm

Patch that applies (seemingly correctly)
==========================
http://www.pchdtv.com/downloads/Linuxx-2.4.22-kernel-patch-1.0.tar.gz

some quick instructions to get fedora people started:

1) download the above kernel and run "rpm -i kernel-source-2.4.22-1.2174.nptl.i386.rpm"

* MAKE SURE YOU USE THE LINK ABOVE AND DONT GET the rpm that ends in ".src.rpm". I had this and was stuck for hours because I had the wrong RPM!

2) If you have an nvidia nforce board and you want working (nvidias drivers suck!) ethernet, grab this patch
http://www.hailfinger.org/carldani/linux/patches/forcedeth/forcedeth_2_4_patch_v19.txt.2.4.22

3) All these patches should be in the /usr/src directory
4) cd /usr/src
5) ln -s /usr/src/linux-2.4.22-1.2174.nptl/ ./a
6) ln -s /usr/src/linux-2.4.22-1.2174.nptl/ ./b
6.5) YOU MUST DO THESE SYMLINKS. I coudln't get the nvidia patch to work without doing these symlinks.
7) patch -p0 < forcedeth_2_4_patch_v19.txt.2.4.22
Cool Now your ethernet is patched with a working driver...remember to select it when you do your "make menuconfig". It won't be selected by default since it's new, but it should show up in there.
9) download http://www.pchdtv.com/downloads/Linuxx-2.4.22-kernel-patch-1.0.tar.gz
to /usr/src
10) tar -xzf Linuxx-2.4.22-kernel-patch-1.0.tar.gz
to /usr/src
11) cp Linux-2.4.22-kernel-patch/* /usr/src
12) have a look through the readme and follow the directions.

After rebooting,

[root@myth src]# lsmod |grep bttv
bttv 126592 0 (autoclean)
i2c-algo-bit 8776 1 (autoclean) [bttv]
soundcore 6500 2 (autoclean) [i810_audio bttv]
videodev 8288 3 (autoclean) [bttv]
i2c-core 18916 0 (autoclean) [tuner bttv i2c-algo-bit]

[root@myth src]# lsmod |grep tuner
tuner 11808 1 (autoclean)
i2c-core 18916 0 (autoclean) [tuner bttv i2c-algo-bit]

However,

[root@myth src]# ls -la /dev |grep dtv
[root@myth src]#

[root@myth src]# ls -la /dev |grep video
drwxr-xr-x 2 root root 4096 Apr 1 20:33 video
crw------- 1 mythtv root 81, 0 Sep 15 2003 video0
crw------- 1 mythtv root 81, 1 Sep 15 2003 video1
drwxr-xr-x 2 root root 4096 Apr 1 20:33 video1394
crw------- 1 mythtv root 81, 2 Sep 15 2003 video2
crw------- 1 mythtv root 81, 3 Sep 15 2003 video3

Does anyone know why I don't have a /dev/dtv or a /dev/video32 device and how I can get theM?

The above instructions took me about 8 hours to figure out. Hopefully they will save someone else some time!
Re: Fedora quick start...
PostPosted: Wed Apr 14, 2004 2:40 pm Reply with quote
cheema
 
Joined: 14 Oct 2003
Posts: 8




Robstarusa wrote:

Does anyone know why I don't have a /dev/dtv or a /dev/video32 device and how I can get theM?


Run the following shell script. It generally gets executed when you run make install on the drivers on the CD. However when you download individual driver patches you have to do this yourself.

-------------------------
#!/bin/sh
device="dtv"
mode="666"
major="81"

# should have already installed our module with insmod

# remove stale nodes
rm -f /dev/${device}
rm -f /dev/${device}[0-3]

/sbin/rmmod bttv
/sbin/rmmod tuner

/sbin/modprobe tuner
/sbin/modprobe bttv

mknod /dev/${device}0 c $major 32
mknod /dev/${device}1 c $major 33
mknod /dev/${device}2 c $major 34
mknod /dev/${device}3 c $major 35
ln /dev/${device}0 /dev/${device}

#give appropriate group/permissions
chmod $mode /dev/${device}0
chmod $mode /dev/${device}1
chmod $mode /dev/${device}2
chmod $mode /dev/${device}3
View user's profile Send private message
Fedora?
  pcHDTV Forum Index -> General pcHDTV topics
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 7 Hours  
Page 1 of 1  

  
  
 Post new topic  This topic is locked: you cannot edit posts or make replies.  


Powered by phpBB © 2001-2003 phpBB Group
Theme created by Vjacheslav Trushkin