Talk:WIS Go7007 Linux driver

From nikosapi.org

Jump to: navigation, search

Any idea on if the Ubuntu source should work in Debian etch or not? I'm getting some errors from it when I try to use it, but I would think that it should work... Mito 18:00, 8 June 2007 (EDT)

I don't see why it wouldn't work under Debian etch (it's all the same source, there are just different ways to install it), what problems are you having? --Nikosapi 01:13, 10 June 2007 (EDT)

Contents

[edit] thanks, and a quick question

Thanks so much for doing this. It is a huge help. I am close to success, I think.

Everything went smoothly until I got to:

# composite input: -input 0; svideo input: -input 1 (sleep 22; killall gorecord) & gorecord -input 1 test-video.avi

I get "syntax error near unexpected token `('". But, that's not such a big deal. I was having bigger problems, but after a bit of digging around, I realized I should have explicitly followed the troubleshooting instructions for Feisty about moving that file in 'rules'. (I did "ln" instead of "mv", which didn't work.) So now I get expected output from dmesg, but I still get that syntax error. Ideas?

I feel like I am getting close, though: the regular "gorecord" seemed to work (I didn't have a live video source hooked up, but it did make a playable AVI, and MythTV now recognizes the device in the configuration screen. Last step seems to be to get an actual TV signal to show up. I am having trouble with this, though:

2007-07-18 11:55:08.585 EITHelper: localtime offset -4:00:00 
2007-07-18 11:55:08.587 TVRec(1) Error: Problem finding starting channel, setting to default of '3'.
2007-07-18 11:55:08.587 ChannelBase(1) Error: InitializeInputs(): 
                        Could not get inputs for the capturecard.
                        Perhaps you have forgotten to bind video
                        sources to your card's inputs?
ERROR: no valid capture cards are defined in the database.

Much more troubleshooting led to the revelation that this was a bogus error and it was a permissions problem (what else is new!). Got that straightened out, and now I am all set -- EXCEPT when I try to watch TV, I get a crazy staticky green screen, like when you used to get dust in your Intellivision cartridges.

Since there are no cartridges to remove and blow on, do you have any idea how to get the tv signal to adjust properly?

Update: According to this great thread, you just have to go into the Settings for the MythTV front-end and change it 640 x 480.

So now I am left with one problem: I get one channel, which seems to be scrambled, and I can't change it.

Anyway, thanks again. Thousandrobots 12:35, 18 July 2007 (EDT)

[edit] Troubles with Mythbuntu 8.04

I've tried all the steps in this guide but can't get my plextor to show up on Mythbuntu-8.04. The device shows up in lsusb. The module gets loaded but no /dev/video is created. I also noticed that the kernel shipped with the distro doesn't have CONFIG_SND enabled. Anyone get this working in Hardy Heron?


YES take a look-see here... [1]


New: Jun 19 2008 It is not necessary to recompile the kernel! CONFIG_SND is not enabled in the kernel, but alsa driver is provided via linux-ubuntu-modules (or LUM)

There's a simple workaround to compile the go7007 driver: install the packages:

linux_headers-lum-...-generic 
linux_headers-...-generic

rename

/usr/src/linux-headers-2.6.24-19-generic/include/sound

to

/usr/src/linux-headers-2.6.24-19-generic/include/sound-blacklisted

(it is not the correct headers, they should never be used)

in the wis-go7007 source, add at the beginning of kernel/Makefile:

EXTRA_CFLAGS += -I /usr/src/linux-headers-lum-2.6.24-19-generic -I /usr/src/linux-headers-lum-2.6.24-19-generic/sound -include config.h

Compile and install normally.

[edit] Troubles with Fedora 9

Thanks so much for this great work! Here's my sys config:

Linux version 2.6.25.3-18.fc9.x86_64 (mockbuild@) (gcc version 4.3.0 20080428 (Red Hat 4.3.0-8) (GCC) ) #1 SMP Tue May 13 04:54:47 EDT 2008
go7007-usb: probing new GO7007 USB board
i2c-adapter i2c-2: SMBus Quick command not supported, can't probe for chips
i2c-adapter i2c-2: SMBus Quick command not supported, can't probe for chips
go7007: registering new Plextor PX-TV402U-NA
wis-saa7115: initializing SAA7115 at address 32 on WIS GO7007SB EZ-USB
wis-uda1342: initializing UDA1342 at address 26 on WIS GO7007SB EZ-USB
wis-sony-tuner: initializing tuner at address 96 on WIS GO7007SB EZ-USB
wis-sony-tuner: type set to 202 (Sony NTSC (BTF-PB463Z))
usbcore: registered new interface driver go7007

However, take a look at this:

[mdlemay2@localhost wis-go7007-linux-0.9.8-2]$ gorecord
/dev/video0 is a GO7007 device at USB address 2-4:1.0
Attempting to determine audio device...
Unable to find associated ALSA device node

Do you know where I should start debugging this?

UPDATE: I fixed this by switching back to kernel 2.6.24. The newer kernel had been complaining in dmesg about something in the ALSA subsystem. I might go back and get the exact error message in a little while...

[edit] Problems on Playstation 3

--Johnniec 16:48, 10 July 2008 (EDT)


Hi,

Firstly, this site is the ONLY real source of information for this subject. Congratulations for an EXCELLENT job!!!

My problem is that I am unable to record video from the ConvertX.

My Setup:
Ubuntu 7.10 (gutsy) 
Kernel Linux 2.6.22-15-cell
Hardware : Playstation 3

uname -a
Linux johns-ps3 2.6.22-14-cell #1 SMP Sun Oct 14 23:42:29 GMT 2007 ppc64 GNU/Linux
I have followed all instructions for setting up drivers with no problems.

In the steps before compiling the driver, the instructions state:

# Install required development packages (this is a big download)
sudo apt-get install linux-headers-generic fxload libncurses5-dev

I wasn't able to use linux-headers-generic but instead had to use linux-headers-2.6.22-14-cell instead.

There were no other problems!


When I plugged in the Plextor ConvertX it was correctly detected:

[ 1238.065347] Linux video capture interface: v2.00

[ 1238.099319] go7007-usb: probing new GO7007 USB board

[ 1238.360205] go7007: registering new Plextor PX-TV402U-EU

[ 1238.396878] wis-saa7115: initializing SAA7115 at address 32 on WIS GO7007SB EZ-USB

[ 1238.478795] wis-uda1342: initializing UDA1342 at address 26 on WIS GO7007SB EZ-USB

[ 1238.509982] wis-sony-tuner: initializing tuner at address 96 on WIS GO7007SB EZ-USB

[ 1238.511268] wis-sony-tuner: setting MPX to mode 1

[ 1238.518499] wis-sony-tuner: type set to 200 (Sony PAL+SECAM (BTF-PG472Z))

[ 1238.519731] usbcore: registered new interface driver go7007
When I try to do the recording test I get a problem:

$ gorecord -input 0 -duration 20 test-video.avi
/dev/video0 is a GO7007 device at USB address 3-2.4:1.0
Attempting to determine audio device...using audio device /dev/dsp1
VIDIOC_QUERYCAP: Invalid argument

Then, then I call dmesg I get an extra line:

[ 1287.268108] ioctl32(gorecord:5688): Unknown cmd fd(3) cmd(40685600){t:'V';sz:104} arg(ffcdb464) on /dev/video0

(All this is from a fresh install of Ubuntu 7.10 from the install CD)

Have you seen this before? Can you help?

Could this have something to do with the linux headers I used?

Please can you help..? I am SOOOO close to getting this working!!! :-)

Many Thanks, John

--Johnniec 16:48, 10 July 2008 (EDT)

You need some patches to support the PS3's architecture, you can find them here.

--Nikosapi 13:12, 13 July 2008 (EDT)

Thanks for the input. I was able to patch the driver using ps3-go7007.patch BUT could not find anythign to patch using the ps3-compat-ioctl32.patch The ps3-compat-ioctl32.patch patches a file linux-20061208.orig/drivers/media/video/compat_ioctl32.c unfortunately I dont have that anywhere on my system.

Am I missing some steps?

John --Johnniec 16:21, 14 July 2008 (EDT)


Finally worked out that I have to download the Kernel source and then patch the /usr/src/linux-source-2.6.22/drivers/media/video/compat_ioctl32.c file. I downloaded the kernel source by calling: sudo apt-get install linux-source

I found excellent instructions on how to do all this at: http://www.howtoforge.com/roll_a_kernel_debian_ubuntu_way

I'm building the kernel now... so fingers crossed. --Johnniec 20:57, 17 July 2008 (EDT)

No luck... The kernel build goes well but fails to boot at all (this seems to be an issue with the PS3 's architecture). I'm looking for other alternatives. --Johnniec 19:49, 18 July 2008 (EDT)

Just an update... I'm having a nightmare finding a way to recompile ANY kernel for the PS3 (need to do this to install the patch for the compat_ioctl32.c file). So far, I've tried Ubuntu 7.10, 7.04, Fedora 5 and now trying Fedora 8. I never thought it would be so hard... Usually what happens is the build goes well and on reboot the PS3 gets stuck. (this has happened for all kernels I've tried so far). I'm sure the issue is config related (I've tried a bunch of these too including the existing one from \boot). I'll keep trying until I give up or get some help from someone. Without the rebuild with the patch the Plextor ConvertX I'm trying to install wont work. (Have I mentioned I've been at this for weeks?) I'll keep trying. IF I do find a way I'll be sure to post a full guide. Never give up...! --Johnniec 19:59, 21 July 2008 (EDT)

After many attempts I finally managed to install, patch, build and boot from Fedora 8. I followed these instructions exactly: http://www.bohmer.net/ps3_stuff/install-fedora-8-on-PS3.html (everything you need is there)

So the kernel was patched with the patch for the compat_ioctl32.c file.

Next I had to download, patch and build the WIS Go 7007 driver. I did this and everything seemed to go well.

When I tried the gorecord' example on this page, the kernel oops'ed... Not good...

Not sure where I will go from here...

--Johnniec 17:41, 30 July 2008 (EDT)

Finally managed to rebuild the Kernel with no problems. (I am in the process of writing a how-to). Basically the steps were:

  - Install Ubuntu 7.10
  - Upgrade the kernel to 2.6.25.4 using the steps described here:
     http://psubuntu.com/forums/viewtopic.php?f=4&t=161&st=0&sk=t&sd=a&start=30
     (The steps in this update use the Kernel in CELL-Linux-CL_20080609-ADDON.iso, fortunately for
      me the source is also in there)
  - Patch the kernel source, specifically the 
    /drivers/media/video/compat_ioctl32.c file
  - Rebuild the 2.6.25.4 kernel with the patches.
    This was done using steps similar to those described by Benjamin Schleinzer in :
    https://bugs.launchpad.net/ubuntu/+bug/204578/comments/4
  - Reboot the machine... not problems, we now have a patched Kernel.
  - Now follow the steps to install the Go7007 driver on Ubuntu:
    http://nikosapi.org/wiki/index.php/WIS_Go7007_Linux_driver#Ubuntu_Dapper.2FEdgy.2FFeisty.2FGutsy.2FHardy
  - Note: We are supposed to patch the kernel/go7007-v4l2.c using the ps3-go7007.patch
  
  - The first problem happens during the build of the Go7007 driver:
    The patch to the kernel/go7007-v4l2.c file adds some code that calls lock_kernel() and unlock_kernel().
    Commenting these calls out seems to allow a build but I'm not sure what effect that would have later.
  - Next we re-build the driver with no problems:
  - Next, I plugged in my Plextor ConvertX reciever.
  - Executed dmesg and got the following new message:
    usb 3-2.1: new high speed USB device using ps3-ehci-driver and address 6
    usb 3-2.1: configuration #1 chosen from 1 choice
    The suggested solution is to run:
    - sudo ./go7007_firmware_load
      This returned:
      ERROR: Device not found on usb bus.

Looks like there might be a problem with the driver?

Note: When I run 'lsusb; nothing is returned...

--82.210.146.204 18:50, 6 August 2008 (EDT)

Personal tools