This is an ebuild for the fcusb2.ko. Its a driver for the AVM Fritz Card USB v2.x. Its developed for use with SuSE 9.1 (kernel 2.6.4). There are 2 problems while using it with kernel 2.6.7-rc2: - The function usb_interface_claimed() returns always true (1). In case the driver never loads - The driver uses 2 interfaces in its code: pdc->if1 = dev->config[0].interface[0]; pdc->if2 = dev->config[1].interface[0]; But the second one is NULL on my device (Version 2.0). It produces a kernel Oops. I make a patch for these problems. Now the driver loads with (hopefully) no error. I suggest net-dialup/fcusb2 is the right place. Bernd Westermann
Created attachment 32646 [details] fcusb2-0.5.1.ebuild
Created attachment 32647 [details] fcusb2/ChangeLog
Created attachment 32648 [details] fcusb2/Manifest
Created attachment 32649 [details] fcusb2/files/digest-fcusb2-0.5.1
Created attachment 32650 [details] fcusb2/files/fcusb2
Created attachment 32651 [details] fcusb2/files/fcusb2-0.5.1-2.6.7.patch
Created attachment 35390 [details] fcusb2-0.5.1-r1.ebuild add "inherit eutils" at begin of ebuild
Created attachment 35391 [details] ChangeLog
Created attachment 35405 [details] files/digest-fcusb2-0.5.1-r1
hmmm, thanks for your efforts but i get an error when emerging the the patch: (i already changed the "fritz.org" into "fritz" but still a no go ) bash-2.05b# more /var/tmp/portage/fcusb2-0.5.1-r1/temp/fcusb2-0.5.1-2.6.7.patch-6980.out ***** fcusb2-0.5.1-2.6.7.patch ***** ==================================== PATCH COMMAND: patch -p0 -g0 < /usr/portage/net-dialup/fcusb2/files/fcusb2-0.5.1-2.6.7.patch ==================================== patching file fritz/src/main.c Hunk #1 FAILED at 203. Hunk #2 FAILED at 216. Hunk #3 FAILED at 247. 3 out of 3 hunks FAILED -- saving rejects to file fritz/src/main.c.rej ==================================== PATCH COMMAND: patch -p1 -g0 < /usr/portage/net-dialup/fcusb2/files/fcusb2-0.5.1-2.6.7.patch ==================================== can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ru fritz/src/main.c fritz/src/main.c |--- fritz/src/main.c 2004-05-14 17:13:00.000000000 +0200 |+++ fritz/src/main.c 2004-06-04 16:01:37.286904464 +0200 -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored ==================================== PATCH COMMAND: patch -p2 -g0 < /usr/portage/net-dialup/fcusb2/files/fcusb2-0.5.1-2.6.7.patch ==================================== can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ru fritz/src/main.c fritz/src/main.c |--- fritz/src/main.c 2004-05-14 17:13:00.000000000 +0200 |+++ fritz/src/main.c 2004-06-04 16:01:37.286904464 +0200 -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored ==================================== PATCH COMMAND: patch -p3 -g0 < /usr/portage/net-dialup/fcusb2/files/fcusb2-0.5.1-2.6.7.patch ==================================== missing header for unified diff at line 4 of patch can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ru fritz/src/main.c fritz/src/main.c |--- fritz/src/main.c 2004-05-14 17:13:00.000000000 +0200 |+++ fritz/src/main.c 2004-06-04 16:01:37.286904464 +0200 -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored ==================================== PATCH COMMAND: patch -p4 -g0 < /usr/portage/net-dialup/fcusb2/files/fcusb2-0.5.1-2.6.7.patch ==================================== missing header for unified diff at line 4 of patch can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -ru fritz/src/main.c fritz/src/main.c |--- fritz/src/main.c 2004-05-14 17:13:00.000000000 +0200 |+++ fritz/src/main.c 2004-06-04 16:01:37.286904464 +0200 -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored
AVM add my patch to the tar file. But do not change the versions number. So if your fcusb2-suse9.1-3.11-04.tar.gz is 1012040 bytes, you need my patch. If it is 1011965 bytes, you do not need my patch. "Thanks" to AVM ;-(. I will build a new ebuild tomorrow.
Created attachment 36248 [details] fcusb2/fcusb2-0.5.1-r2.ebuild AVM add my patch to the source. Or better they remove the broken source part. But they forgot to increase the version number. Does anyone know how to check file size of the downloaded file. So I can decide to add the patch or not. The old source is bigger then the new one.
Created attachment 36249 [details] fcusb2/ChangeLog
Created attachment 36250 [details] fcusb2/files/digest-fcusb2-0.5.1-r2
Created attachment 40997 [details] fcusb2-0.5.1.ebuild Can you please test if this ebuild works for you?
Simon, maybe you could test this? Anyone wants to test this?
a friend of mine is using the usb card and will pass it back to me next week, i'll test it then
no one was able to test this yet?
due to a sad family affair i was unable to test it but i will this weekend
yes! worksforme on linux-2.6.8-gentoo-r10... clean compile but i had some problems loading the firmware for my V2.1 Card but now it somehow works : /etc/capi.conf (V2.1): fcusb2 fus3base.frm DSS1 - - - - /etc/capi.conf (V2.0): fcusb2 fus2base.frm DSS1 - - - - might be worth a notice to update the /etc/capi.conf after the ebuild-install to avoid some troubles for the other users thx!
I added firmware files and hotplug script to net-dialup/fritzcapi-2.6.26.7-r3. This ebuild already contains fcusb2 kernel modules.
hmpf! ;-) I already added the firmware files to isdn-firmware and the hotplug-stuff to capi4k-utils. You know, I'm working on it. I'm not sure, if 'fritzcapi' is the right place for it, since it overlaps with the other ebuilds. Perhaps we should discuss this and maybe change it. But we should do this via email...