Re: em28xx/xc3028 - kernel driver vs. Markus Rechberger's driver

2010-07-12 Thread Torsten Krah
Am Sonntag, 4. Juli 2010 schrieben Sie:
 Please try it, should be the root cause.

Did patch my v4l-dvb source tree too and modified it according to my usbid to 
be a PCTV device :-)

After rewriting the eeprom it is a e1ba:2870 device again (70e) but still not 
working with the recent kernel, but thats a know problem.

Thx for help getting the eeprom rewritten :-)  - now the stick may be usable 
some time again.

Torsten


smime.p7s
Description: S/MIME cryptographic signature


Re: em28xx/xc3028 - kernel driver vs. Markus Rechberger's driver

2010-07-02 Thread Torsten Krah
Am Freitag, 2. Juli 2010, um 02:59:57 schrieb Douglas Schilling Landgraf:
 humm, not really :-/ Are you sure em28xx/device get loaded when your
 device is plugged?
 
 A good test:
 
 - unplug your device
 - dmesg -c  (clear the dmesg)
 - plug your device
 - check your dmesg, see if there is any error or message and please
 send to us the output.
 - lsmod could help also.
 - if it's ok, load the i2c modules

The em28xx device gets not loaded because the usb id has changed and e1ba:2871 
is not associated to the em28xx-cards.
the usb id is wrong like i mentioned before - that may be the cause.
I provide you with dmesg later on.

Maybe i need the patch Thorsten did too, to patch the em28xx-cards.c to get 
the new wrong usb id regognized as a em28xx device so that i can reflash the 
eeprom of the device. I might give this a try later this day.

@Thorsten: Did you reflash the device eeprom with your patched em28xx driver 
or without the patch?

 
 What's the message of rewirte_eeprom.pl? The same as Throsten?

No, all ok.My distribution is lacking any i2c_smbus module - can't load this 
one. Maybe Ubuntu does not build or 2.6.32 does not habe this one (looking 
through the source i did not find it yet - maybe i missed that).

 
 @Thorsten, in my case never needed to load modprobed i2c-smbus also.
 That's why rewrite_eeprom failed to you, the script is not looking
 to load this module. Thanks for the feedback.


-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect.
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


Re: em28xx/xc3028 - kernel driver vs. Markus Rechberger's driver

2010-06-30 Thread Torsten Krah
Am Dienstag, 29. Juni 2010 schrieben Sie:
 Could you please verify if you have  the module i2c-dev loaded?

Yes it is.

 
 Example:
 
 #lsmod | grep i2c_dev
 i2c_dev 6976  0
 i2c_core   21104  11
 i2c_dev,lgdt330x,tuner_xc2028,tuner,tvp5150,saa7115,em28xx,v4l2_common,vide
 odev,tveeprom,i2c_i801

#lsmod | grep i2c
i2c_dev 4970  0 
i2c_algo_bit5028  1 radeon


 
 If yes, please give us the output of:
 
 #i2cdetect -l
 i2c-0   smbus   SMBus I801 adapter at ece0  SMBus
 adapter i2c-1   smbus   em28xx
 #0   SMBus adapter ^ here my device/driver

Thats the output:

# i2cdetect -l
i2c-0   i2c I2C adapter


 
 Basically, in your case the tool is not able to recognize your device
 by i2cdetect.This may happen because i2c_dev module was not able to
 load?

Its loaded.

 If the module is not loaded, please load it manually and give a new try.

Did that but still no success.

 
 I did right now a test with i2c-tools 3.0.0 and 3.0.2.
 http://dl.lm-sensors.org/i2c-tools/releases/

I am using version 3.0.2.

 
 Let us know the results.


Did what you told but still no success using the tool - any other hints or 
things i can do?

thx


Torsten


smime.p7s
Description: S/MIME cryptographic signature


Re: em28xx/xc3028 - kernel driver vs. Markus Rechberger's driver

2010-06-29 Thread Torsten Krah
Am Mittwoch, 23. Juni 2010, um 00:15:36 schrieb Mauro Carvalho Chehab:
 You probably damaged the contents of the device's eeprom. If you have the
 logs with the previous eeprom contents somewhere, it is possible to recover
 it. There's an util at v4l-utils that allows re-writing the information at
 the eeprom.

Hi,

can you tell me which util and how it can be done.
I am too affected and damaged the eeprom (don't know how) - but my usb id did 
change too from e1ba:2870 to eb1a:2871. 

Still need to find a old dmesg log for my stick but it should be this:

http://www.mail-archive.com/linux-media@vger.kernel.org/msg14758.html

Is this output enough to rewrite the correct eeprom date back to my borked 
stick or is something else needed?

thx

Torsten

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect.
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


Re: em28xx/xc3028 - kernel driver vs. Markus Rechberger's driver

2010-06-29 Thread Torsten Krah
Am Dienstag, 29. Juni 2010 schrieb Douglas Schilling Landgraf:
 The rewrite_eeprom.pl is available under git.utils tree:
 http://git.linuxtv.org/v4l-utils.git
 
 All instructions are available into the source code. Let me know if
 you have any problem with such tool.

Hi, yes i have problems with the tool :-).

Connected my broken device:

lsusb:
Bus 001 Device 002: ID eb1a:2871 eMPIA Technology, Inc.

dmesg:
[  455.348172] usb 1-1: new high speed USB device using ehci_hcd and address 2
[  455.481791] usb 1-1: configuration #1 chosen from 1 choice
[  455.609668] usbcore: registered new interface driver snd-usb-audio


Running the script which does generate the recover script does work.
But running this one fails with:

Could not detect i2c bus from any device, run again ./rewrite_eeprom.pl. Did 
you forget to connect the device?
Modules supported: em28xx saa7134

Device is connected.

Anything what i can do?

thx

Torsten


smime.p7s
Description: S/MIME cryptographic signature