Bon j'ai refais quelques exécutions sans le sleep 1 et en raffinant un peu les
logs de manière à bien faire apparaire le problème.

J'ai modifié le fichier /etc/hotplug/usb/eagle-usb comme suit :

Au lieu de simplement lancer "eaglectrl -d" pour charger le DSP j'ai mis ceci

        # load DSP & options
echo "!!! before load DSP code !!!"     >>$logfile
#sleep 1
        eaglestat >>$logfile
        eaglectrl -d >>$logfile 2>&1
        eaglestat >>$logfile
echo "!!! after load DSP code ($?) !!!" >>$logfile

Dans le fichier de log j'ai ceci (il y a des lignes qui correspondent à d'autres
logs mais on ne peut pas se tromper, j'ai tout gardé pour vous laissez juger) :

-su3.00# cat /tmp/toto.txt
17
user=root
DEVICE=/proc/bus/usb/001/002
DEVPATH=/devices/pci0000:00/0000:00:02.0/usb1/1-2/1-2:1.0
SEND_DSP=
SEND_DSP=1
SEND_DSP=1
try to load DSP code...
!!! before load DSP code !!!
eagle-usb status display
-------------------------------------------------------------
Driver version 2
USB Bus : 001    USB Device : 002        Dbg mask: 0x0
Ethernet Interface : none
MAC: 00:00:00:00:00:00
Tx Rate  0000000000  Rx Rate  0000000000  Crc      0000000000
FEC      0000000000  Margin   0000000000  Atten    0000000000 dB
VID-CPE  0000000000  VID-CO   0000000000  HEC      0000000000
VPI      0000000000  VCI      0000000000  Delin          GOOD
Cells Rx 0000000000  Cells Tx 0000000000
Pkts Rx  0000000000  Pkts Tx  0000000000
OAM      0000000000  Bad VPI  0000000000  Bad CRC  0000000000
Oversiz. 0000000000

Modem waiting for driver response.
Please send DSP (eaglectrl -d)

Can't find any PRE or POST firmware devices.
Is your device plugged in ?
eagle-usb status display
-------------------------------------------------------------
Driver version 2
USB Bus : 001    USB Device : 002        Dbg mask: 0x0
Ethernet Interface : none
MAC: 00:00:00:00:00:00
Tx Rate  0000000000  Rx Rate  0000000000  Crc      0000000000
FEC      0000000000  Margin   0000000000  Atten    0000000000 dB
VID-CPE  0000000000  VID-CO   0000000000  HEC      0000000000
VPI      0000000000  VCI      0000000000  Delin          GOOD
Cells Rx 0000000000  Cells Tx 0000000000
Pkts Rx  0000000000  Pkts Tx  0000000000
OAM      0000000000  Bad VPI  0000000000  Bad CRC  0000000000
Oversiz. 0000000000

Modem waiting for driver response.
Please send DSP (eaglectrl -d)

!!! after load DSP code (0) !!!
18
user=root
DEVICE=/proc/bus/usb/001/002
DEVPATH=/devices/pci0000:00/0000:00:02.0/usb1/1-2/1-2:1.2
SEND_DSP=
SEND_DSP=0
SEND_DSP=0


Le module est chargé (par un autre process et je devine qu'il est chargé avant
(en même temps ?) à cause de la sortie de eaglestat), eaglestat renvoie "Send
DSP" et `eaglectrl -d` échoue sauf si on le ralenti avec un "sleep 1".

Étonnant non ?

mcoolive.

Reply via email to