New from the front :
patched-driver, compiled with gcc-3.3.4 (kernbel compiled with 2.95.4,
maybe it's the root of problems ?) simply doesn't work :
from /var/log/syslog :
Dec 20 13:10:47 linux kernel: usb.c: new USB bus registered, assigned
bus number 1
Dec 20 13:10:47 linux kernel: hub.c: USB hub found
Dec 20 13:10:47 linux kernel: hub.c: 2 ports detected
Dec 20 13:10:47 linux kernel: usb-uhci.c: v1.275:USB Universal Host
Controller Interface driver
Dec 20 13:10:47 linux kernel: hub.c: new USB device 00:1f.2-1, assigned
address 2
Dec 20 13:10:47 linux kernel: usb.c: USB device 2 (vend/prod
0x1110/0x9022) is not claimed by any active driver.
Dec 20 13:10:50 linux usb.agent[28346]: usbcore: already loaded
Dec 20 13:10:50 linux usb.agent[28346]: usbcore: already loaded
Dec 20 13:10:51 linux kernel: [eagle-usb] driver V2.0.0 loaded
Dec 20 13:10:51 linux kernel: usb.c: registered new driver eagle-usb
Dec 20 13:10:51 linux usb.agent[28360]: eagle-usb: loaded successfully
linux:/lib/modules/2.4.28/kernel/drivers/usb/host# lsusb
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 1110:9022 Analog Devices Canada, Ltd (Allied Telesyn)
linux:/lib/modules/2.4.28/kernel/drivers/usb/host# eaglestat
Pre-firmware device
linux:/lib/modules/2.4.28/kernel/drivers/usb/host# cat /proc/bus/usb/devices
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 0.00
S: Product=USB UHCI Root Hub
S: SerialNumber=de00
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1
P: Vendor=1110 ProdID=9022 Rev=50.00
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 0 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
I: If#= 0 Alt= 1 #EPs=13 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=10ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=84(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=86(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=88(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms
E: Ad=08(O) Atr=01(Isoc) MxPS= 16 Ivl=1ms
E: Ad=89(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms
E: Ad=09(O) Atr=01(Isoc) MxPS= 16 Ivl=1ms
E: Ad=8a(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms
E: Ad=0a(O) Atr=01(Isoc) MxPS= 16 Ivl=1ms
I: If#= 0 Alt= 2 #EPs=13 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=10ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=84(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=86(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=88(I) Atr=01(Isoc) MxPS= 256 Ivl=1ms
E: Ad=08(O) Atr=01(Isoc) MxPS= 256 Ivl=1ms
E: Ad=89(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms
E: Ad=09(O) Atr=01(Isoc) MxPS= 16 Ivl=1ms
E: Ad=8a(I) Atr=01(Isoc) MxPS= 16 Ivl=1ms
E: Ad=0a(O) Atr=01(Isoc) MxPS= 16 Ivl=1ms
as you may see, it loads eagle-usb, and then nothing append, modem stays
in "pre-firmware" state
what's strange is that when plugged, usb detect VID/PID=0x1110/0x9022
... even with the non-patched driver, but, eaglestat gives a 0x9021 PID ...
Alexandre LISSY wrote:
using gcc-3.3.4, it compile correctly, just a warning :
cc -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.28/build/include
'-DEAGLEUSBVERSION="2.0.0"' -Wall -Wstrict-prototypes
-fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -DUSE_CMVS -O2 -c -o eu_main.o eu_main.c
eu_main.c: In function `eu_probe':
eu_main.c:385: warning: label `byebye' defined but not used
Alexandre LISSY wrote:
i've corrected for comma, but don't know what to put and where, when
you say "move the declaration of driverinfo before any instruction..."
[EMAIL PROTECTED] wrote:
Oups I didn"t try with old compiler :
move the declaration of driverinfo before any instruction...
Also there is a typo for 2.4 kernel : i forgot a comma.
static eu_instance_t * eu_init_postfirm ( struct usb_device *usb int
driver_info
)
^^^
I am not at home, but if you don't succed in correcting the errors, I
could try
to do another patch.
Selon Alexandre LISSY <[EMAIL PROTECTED]>:
Bug is back !
just done a /etc/init.d/hotplug restart, and then the bug came back !
so, i've tried to apply the patch, but it doesn't compile :
linux:~/eagle-usb-2.0.0# make
make -C driver && \
make -C pppoa && \
make -C utils/scripts && \
make -C utils/eagleconnect && \
make -C doc
make[1]: Entering directory `/root/eagle-usb-2.0.0/driver'
if test ! -f .depend ; then make dep ; exit 0 ; fi
make[2]: Entering directory `/root/eagle-usb-2.0.0/driver'
cc -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.28/build/include
'-DEAGLEUSBVERSION="2.0.0"' -Wall -Wstrict-prototypes
-fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -DUSE_CMVS -O2 -M *.c > .depend
make[2]: Leaving directory `/root/eagle-usb-2.0.0/driver'
cc -DLINUX -D__KERNEL__ -DMODULE -I/lib/modules/2.4.28/build/include
'-DEAGLEUSBVERSION="2.0.0"' -Wall -Wstrict-prototypes
-fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -DUSE_CMVS -O2 -c -o eu_main.o eu_main.c
eu_main.c: In function `eu_probe':
eu_main.c:365: parse error before `int'
eu_main.c:370: `driver_info' undeclared (first use in this function)
eu_main.c:370: (Each undeclared identifier is reported only once
eu_main.c:370: for each function it appears in.)
eu_main.c:399: warning: label `byebye' defined but not used
eu_main.c: At top level:
eu_main.c:472: parse error before `int'
eu_main.c: In function `eu_init_postfirm':
eu_main.c:474: number of arguments doesn't match prototype
eu_main.c:137: prototype declaration
eu_main.c:501: `usb' undeclared (first use in this function)
eu_main.c:502: `driver_info' undeclared (first use in this function)
make[1]: *** [eu_main.o] Error 1
make[1]: Leaving directory `/root/eagle-usb-2.0.0/driver'
make: *** [build] Error 2
and, i've got another question to ask you : when i get disconnected, it
seems hard to get reconnected, and i've noticed that when i connect for
the first time, there's those lines in the logs, from pppoe :
Dec 20 12:05:24 linux pppoe[25016]: PADS: Service-Name: ''
Dec 20 12:05:24 linux pppoe[25016]: PPP session is 5937
but, if i get disconnected, they don't appear, and i get :
Dec 20 11:49:16 linux pppd[18255]: LCP: timeout sending Config-Requests
is there a way to solve it ?
I don't know : I never use pppoe...
Matthieu
_______________________________________________
Eagleusb-dev mailing list
[email protected]
https://mail.gna.org/listinfo/eagleusb-dev
_______________________________________________
Eagleusb-dev mailing list
[email protected]
https://mail.gna.org/listinfo/eagleusb-dev
_______________________________________________
Eagleusb-dev mailing list
[email protected]
https://mail.gna.org/listinfo/eagleusb-dev