Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 74073
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Dialup Developers <net-dialup@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Kilburn Abrahams <kilburna@iservnetworks.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
slmodem-fix-usb_endpoint_halted-symbol.patch slmodem-fix-usb_endpoint_halted-symbol.patch patch Stefan Schweizer 2004-12-11 01:15 0000 830 bytes Details | Diff
slusb slusb text/plain Stefan Schweizer 2004-12-12 01:20 0000 432 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 74073 depends on: Show dependency tree
Bug 74073 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-12-11 01:09 0000
I am using 2.6.9r9.  After I USE="usb" emerge slmodem, I edit
/etc/conf.d/slmodem , recompile kernel with USB modem, then I get WARNING:
/lib/modules/2.6.9-gentoo-r9/extra/slusb.ko needs unknown symbol
usb_endpoint_halted

I load slusb in auto load modules and I get this usb_endpoint_halted error and
the module wont load, causing slmodem not to start.

frog slmodem-2.9.10-r1 # fgrep -r usb_endpoint_halted .
./work/slmodem-2.9.10/drivers/st7554.c:     if (usb_endpoint_halted(s->usbdev,
usb_pipeendpoint(pipe), usb_pipeout(pipe))) {   \
./work/slmodem-2.9.10/drivers/old_st7554.c:     if
(usb_endpoint_halted(s->usbdev, usb_pipeendpoint(pipe), usb_pipeout(pipe))) {  
\
Binary file ./work/slmodem-2.9.10/drivers/slusb.o matches
Binary file ./work/slmodem-2.9.10/drivers/st7554.o matches
Binary file ./work/slmodem-2.9.10/drivers/slusb.ko matches
Binary file ./image/lib/modules/2.6.9-gentoo-r9/extra/slusb.ko matches
frog slmodem-2.9.10-r1 # nm ./work/slmodem-2.9.10/drivers/slusb.ko |fgrep 
usb_endpoint_halted
         U usb_endpoint_halted
frog slmodem-2.9.10-r1 # nm ./work/slmodem-2.9.10/drivers/st7554.o |fgrep 
usb_endpoint_halted
         U usb_endpoint_halted
frog slmodem-2.9.10-r1 # fgrep -r usb_endpoint_halted 
/usr/src/linux-2.6.9-gentoo-r9/
frog slmodem-2.9.10-r1 # fgrep -r usb_endpoint_halted  /usr/src/
.keep                    linux-2.4.26-gentoo-r11  linux-2.6.8-gentoo-r3   
linux-2.6.9              linux-2.6.9-gentoo-r6
config-2004.0-2.6.1      linux-2.4.26-gentoo-r9   linux-2.6.8-gentoo-r7   
linux-2.6.9-gentoo-r1    linux-2.6.9-gentoo-r9
linux                    linux-2.6.8-gentoo-r10   linux-2.6.8.1           
linux-2.6.9-gentoo-r4

fgrep -r usb_endpoint_halted  /usr/src/
/usr/src/linux-2.4.26-gentoo-r9/include/linux/usb.h:#define
usb_endpoint_halted(dev, ep, out) ((dev)->halted[out] & (1 << (ep)))
/usr/src/linux-2.6.8-gentoo-r7/include/linux/usb.h:#define
usb_endpoint_halted(dev, ep, out) ((dev)->halted[out] & (1 << (ep)))
/usr/src/linux-2.6.8-gentoo-r3/include/linux/usb.h:#define
usb_endpoint_halted(dev, ep, out) ((dev)->halted[out] & (1 << (ep)))
/usr/src/linux-2.6.8.1/include/linux/usb.h:#define usb_endpoint_halted(dev, ep,
out) ((dev)->halted[out] & (1 << (ep)))
/usr/src/linux-2.6.8-gentoo-r10/include/linux/usb.h:#define
usb_endpoint_halted(dev, ep, out) ((dev)->halted[out] & (1 << (ep)))
/usr/src/linux-2.4.26-gentoo-r11/include/linux/usb.h:#define
usb_endpoint_halted(dev, ep, out) ((dev)->halted[out] & (1 << (ep)))

PS: usb_endpoint_halted no longer exists in 2.6.9 kernels.

------- Comment #1 From Stefan Schweizer 2004-12-11 01:15:33 0000 -------
Created an attachment (id=45723) [details]
slmodem-fix-usb_endpoint_halted-symbol.patch

Can you please test this patch:

emerge -va slmodem
ctrl+z after source unpacked

cd /var/tmp/slmodem-2.6.10-r1/portage/work/slmodem-2.6.10
patch -p1 < /home/usr/slmodem-fix-usb_endpoint_halted-symbol.patch
fg




Then let it compile and tell me if the error is still there, please.
If you have some more interest in this driver, you could also help us to
make/test a hotplug script, which is missing currently because I have only a
pci modem :)

------- Comment #2 From Kilburn Abrahams 2004-12-11 14:50:36 0000 -------
patched st7554.c file with patch, compiled and it still get the kernel warning.

------- Comment #3 From Stefan Schweizer 2004-12-11 15:12:22 0000 -------
Strange, I am pretty sure that this patch fixes it for me. 
Do you have the same kernel in /usr/src/linux that you are running? 
Did you patch early enough? 
Can someone else please check this? 
Can you please provide your emerge info?

------- Comment #4 From Kilburn Abrahams 2004-12-11 19:17:43 0000 -------
Sorry, or my previous post. The patch works fine on kernel 2.6.9r9 and slmodem
2.9.10.

------- Comment #5 From Stefan Schweizer 2004-12-12 00:39:02 0000 -------
Can you please provide the lsusb output, when your modem is plugged in?

------- Comment #6 From Stefan Schweizer 2004-12-12 01:16:05 0000 -------
---hotplug script start---
RC_NOCOLOR="yes"
source /sbin/functions.sh
source /etc/conf.d/slmodem
if [ -z "${USBMOD}" ]
then MODULE="slusb"
else MODULE=${USBMOD}
fi

source "${svclib}/sh/rc-services.sh"
start && source "${svclib}/sh/rc-services.sh"
---end---
save this in /etc/hotplug/usb/slusb


---/etc/hotplug/usb/slusb.usermap
slusb 0x0003 0x(first ID) 0x(second ID) 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
---end---


This should start the init script with the right parameters without the need to configure anything. Please note that you should not have started slmodem when you plug in your modem.

------- Comment #7 From Stefan Schweizer 2004-12-12 01:20:56 0000 -------
Created an attachment (id=45808) [details]
slusb

I better attach a working one here :). Please place in /etc/hotplug/usb and
make executable. You still need the usermap with your detected values.

------- Comment #8 From Alin Năstac 2004-12-14 10:22:30 0000 -------
merged in 2.9.10-r2

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug