[pvrusb2] debugcmd permission denied

Mike Isely isely at isely.net
Fri Aug 24 21:17:27 CDT 2007


On Fri, 24 Aug 2007, Svein Lindal wrote:

> Hi,
> 
> I just got a wintv pvr usb2 from Amazon.com the model nr:
> 
> 24022 LF rev E1A3 NTSC/NTSC-J
> 
> is not on the list of previously registered devices, and running the
> fwextract.pl script did not yield any result. So I am trying to the
> firmware extraction procedures that are described here:
> http://www.isely.net/pvrusb2/firmware.html#FX2

Hmm, I released an updated fwextract.pl a short while ago; it is more 
recent than what is in the standalone driver tarball.  Have you tried 
that?  It is here:

http://www.isely.net/downloads/fwextract.pl

(The link is referenced in several places through the documentation.)


> 
> the usb sniffer procedure seems to have worked, so now I am trying to
> capture the FX2 firmware. However, when I am running the debugcmd I
> get the following error:
> 
> $ sudo echo "cpufw done" >/sys/class/pvrusb2/sn-8674305/debugcmd
> bash: /sys/class/pvrusb2/sn-8674305/debugcmd: Permission denied

You need to be running as root in order for that to work.  I see you did 
sudo there however it didn't do what you think.  The 'sudo echo "cpufw 
done" part was run as root but the output redirection - which is the 
critical part - probably was picked up by your normal shell and that's 
not root.  Try surrounding the entire thing (i.e. everything after 
"sudo") in quotes.


> 
> I am no expert, so I'm not sure what I am doing wrong. I think I am
> running the standalone version of the driver. At least I have
> downloaded the software and done a make. How can I be sure which
> version is currently running?

To see what version you are running, look at your dmesg output shortly 
after the driver is loaded.  Look for a message of a form similar to 
this:

Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner : test (from www.isely.net)

That's a test build from my dev area (thus the word "test").  You'll see 
something else there depending on the driver type.


> 
> I am running Ubuntu Feisty, i saw a previous post where people had
> managed to make it work out of the box. At the moment I actually get a
> tv-picture, but the image is pretty screwed up.
> 

You are getting an image?  Then the firmware has to have been loaded.  
If you hadn't extracted the firmware yet then how is that possible?  
Did you get the firmware in there some other way and not realize it?

  -Mike


-- 
                        |         Mike Isely          |     PGP fingerprint
     Spammers Die!!     |                             | 03 54 43 4D 75 E5 CC 92
                        |   isely @ pobox (dot) com   | 71 16 01 E2 B5 F5 C1 E8
                        |                             |


More information about the pvrusb2 mailing list