View previous topic :: View next topic |
Author |
Message |
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Mon Apr 11, 2005 6:33 pm Post subject: |
|
|
ale user i hasło wpisujesz w pap-secrets
i stąd komunikat
nie pamiętam ale pod Debianem, chyba działało mi też z chap-secrets
no to co szybki test? _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
rzezioo Apprentice
Joined: 02 Nov 2004 Posts: 260 Location: Szczecin, Poland
|
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Mon Apr 11, 2005 6:47 pm Post subject: |
|
|
a ja mam user i hasło TYLKO w pap-secrets
i sieć działa _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Mon Apr 11, 2005 7:14 pm Post subject: Re: :) |
|
|
theodenpl wrote: | Głupia sprawa zapomnialem o
teraz tylko mam PAP autentication Failed ale chyba w zlym formacie wpisalem login i haslo.
|
A masz Ty zainstalowany hotplug?
Quote: |
Hhehehehehe
Dziala !!!!! Dziekuje. |
Nie ma za co _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
rzezioo Apprentice
Joined: 02 Nov 2004 Posts: 260 Location: Szczecin, Poland
|
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Mon Apr 11, 2005 7:42 pm Post subject: |
|
|
rzezioo wrote: | tylko w pap-secrets?? dziwne |
tylko
chap-secrets nawet u mnie nie istnieje _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
fallow Bodhisattva
Joined: 08 Jan 2004 Posts: 2208 Location: Poland
|
Posted: Tue Apr 12, 2005 8:11 am Post subject: |
|
|
btw. jesli to jeszcze nie zostalo powiedziane - nie trzeba uzywac modem_run czy tez /etc/init.d/speedtouch. firmware moze ladowac hotplug_firwmare_loader wraz z loaderem kernela.
cheers. _________________ "Time is a companion that goes with us on a journey. It reminds us to cherish each moment, because it will never come again. What we leave behind is not as important as how we have lived" J-L. Picard |
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Tue Apr 12, 2005 8:20 am Post subject: |
|
|
fallow wrote: | btw. jesli to jeszcze nie zostalo powiedziane - nie trzeba uzywac modem_run czy tez /etc/init.d/speedtouch. firmware moze ladowac hotplug_firwmare_loader wraz z loaderem kernela.
cheers. |
Zdaje się, że nie zostało powiedziane. W każdym razie ja nie widziałem.
Jak to zrobić?
Ja przy starcie dostaję komunikat, że "no stage 1 firmware found".
Dopiero potem jest "* Starting Speedtouch...." i "* Loading firmware...", który się udaje.
Ten "no stage 1 firmware found" to może komunikat z hotplug_firwmare_loader? _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
rzezioo Apprentice
Joined: 02 Nov 2004 Posts: 260 Location: Szczecin, Poland
|
Posted: Tue Apr 12, 2005 6:54 pm Post subject: |
|
|
hmmm... fallow a sprawdzales to?? jak nie to podaj sposob sprawdze u siebie:) speedtouch jest nieco kaprysny wiec nigdy z nim nie wiadomo czy rzeczywiscie sie da _________________ USE="refrigerator" emerge beer
http://fun.from.hell.pl/2003-05-27/russian_linux.jpg |
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Thu Apr 14, 2005 7:20 pm Post subject: |
|
|
fallow... nie bądź wiśnia... powiedz
Znalazłem coś takiego w kernel 2.6.9 -> 2.6.10 Summary ChangeLog:
Code: | <dwmw2@shinybook.infradead.org>
USB: Generic USB ATM/DSL core and completed SpeedTouch driver
This can now load the firmware and initialise the modem for itself,
with no need for any userspace help (except for putting the firmware
in /lib/firmware in the first place).
The core packet I/O code is split out into a separate file where it can
be used by drivers for some of the other similar modems.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com> |
Próbowałem tj. utworzyłem /lib/firmware i włożyłem tam firmware ale jak mam powiedzieć hotplug-owi, że on tam jest gotowy do użycia?
Właściwie to nie wiem co się stało, ale teraz mam taki błąd z modem_run:
Code: | * Failed to create mutex
* Can't load the microcode !!
* Please detach and attach again your modem to the USB port to unload the microcode.
* Then run '/etc/init.d/speedtouch start
* Speedtouch firmward load failed |
Fallow, jak mi powiesz jak zrobić bez modem_run... będę dźwięczny... aż do rezonansu
Powyższe komunikaty (oprócz tego z "mutex", który jest z modem_run) daje ten kawałek z /etc/init.d/speedtouch:
Code: | modem_run -v $VERBOSE $MODEM_RUN_EXTRAOPTS -f $MICROCODE
if [ $? -ne 0 ]; then # modem_run CAN'T run
eerror "Can't load the microcode !!"
eerror "Please detach and attach again your modem to the USB port to unload the microcode."
eerror "Then run '/etc/init.d/speedtouch start'"
eend 1 "Speedtouch firmward load failed"
return 1
fi |
W /etc/conf.d/speedtouch mam to:
Code: | MICROCODE="/usr/share/speedtouch/KQD6P2.eni"
VERBOSE="0"
PEER="neostrada"
MODEM_RUN_EXTRAOPTS="-k -a /usr/share/speedtouch/KQD6P1.eni"
|
Pliki firmware oczywiście są w /usr/share/speedtouch.
Ten błąd jest właściwy dla modem_run - tyle sprawdziłem.
W modem_run.c jest taki kawałek kodu:
Code: | semid = mutex_init(MUTEX_ID, S_INIT);
if (semid < 0) {
perror("Failed to create mutex\n");
return -1;
}
|
mutex_init w mutex.c wygląda tak:
Code: | int mutex_init(key_t key, int val)
{
return semaphore_init(key, 1, val);
}
|
i prowadzi nas do semaphore_init też w mutex.c:
Code: | int semaphore_init(key_t key, int val1, int val2) {
int semid;
union semun un;
for (;;)
{
semid = semget(key, 2, IPC_CREAT | IPC_EXCL | 0666);
if (semid < 0)
{
if (errno != EEXIST)
return semid;
/* the semaphore set already exists */
semid = semget(key, 2, 0666);
if (semid < 0)
{
if (errno != ENOENT)
return semid;
/* the semaphore set has been destroyed before we get
* access. So we try again to create it */
}
else
{
/* semaphore creation OK. value is already initialized */
return semid;
}
}
else
{
/* we need to initialize the value */
unsigned short array [2];
array[0] = val1;
array[1] = val2;
un.array = array;
if (semctl(semid, 0, SETALL, un) < 0)
return -1;
return semid;
}
}
} |
To wszystko prowadzi nas do funkcji systemowej semget. Coś o niej tutaj.
Wniosek jest taki (analizując te fragmenty kodu), że wg mojego modem_run, speedtouch jest już zajęty. Ale nie jest!
Wyłączyłem nawet speedtouch, coldplug i hotplug ze startu, żeby nic nie ładowały i uruchamiałem "z ręki" Code: | /etc/init.d/speedtouch start | Z tym samym skutkiem. Robiłem też tylko z hotplugiem w starcie, ale hotplug też wywołuje Code: | /etc/init.d/speedtouch start | Tak wygląda /etc/hotplug/usb/speedtch:
Code: | #!/bin/sh
echo "${REMOVER}" | grep '0$'
if [ $? -eq 0 ]; then
case "$ACTION" in
add)
cat > "${REMOVER}" <<-EOF
#!/bin/sh
/etc/init.d/speedtouch stop
/sbin/lsmod | grep -q "^speedtch"
if [ \$? -eq 0 ]; then
#wait for pppd to exit
sleep 20
/sbin/rmmod speedtch
fi
EOF
/bin/chmod +x "${REMOVER}"
/etc/init.d/speedtouch start
;;
esac
fi
exit 0 |
_________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
fallow Bodhisattva
Joined: 08 Jan 2004 Posts: 2208 Location: Poland
|
Posted: Fri Apr 15, 2005 2:26 pm Post subject: |
|
|
1) zaznaczyc osbluge ladowania firmware dla urzadzen (hotplug) w kernelu.
2) emerge hotplug && rc-update add hotplug default
3) te same pliki ktorych sie uzywa via skrypt speedtouch umiescic w /lib/firmware. jesli masz bootcode i firmware to nazwac je trzeba speedtch-1.bin i speedtch-2.bin odpowiednia dla bootcode oraz firmware.
4) mozna wywalic speedtoucha z rc bo i po co teraz.
5) mozna sobie zrobic tak by potem po prostu odpalalo sie "ppd call adsl" lub by hotplug to odpalal , jak to tam chce.
od tej pory mozna nawet odlaczyc i podlaczyc modem , po jego wykryciu firmware zostanie automatycznie wgrany.
sam z tego korzystam.
cheers. _________________ "Time is a companion that goes with us on a journey. It reminds us to cherish each moment, because it will never come again. What we leave behind is not as important as how we have lived" J-L. Picard |
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Fri Apr 15, 2005 2:39 pm Post subject: |
|
|
Tak próbowałem oprócz zmiany nazwy firmware-u
Spróbuje dzis.
Live Long and Prosper my Friend !!! _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Fri Apr 15, 2005 8:28 pm Post subject: |
|
|
Działa. Dziękuję fallow!
Ciekawi mnie tylko dlaczego rzuca błędami dopóki nie wystartuję pppd tj.
po załadowaniu modułu:
Code: | Apr 15 22:15:39 [kernel] usb 4-1: modprobe timed out on ep0in
Apr 15 22:15:39 [kernel] usbcore: registered new driver speedtch
Apr 15 22:15:39 [kernel] usb 4-1: found stage 1 firmware speedtch-1.bin
Apr 15 22:15:39 [kernel] usb 4-1: found stage 2 firmware speedtch-2.bin
Apr 15 22:15:46 [kernel] usb 4-1: events/0 timed out on ep0in
Apr 15 22:15:46 [kernel] SpeedTouch: Error -110 fetching device status
Apr 15 22:15:51 [kernel] usb 4-1: events/0 timed out on ep0in
Apr 15 22:15:51 [kernel] SpeedTouch: Error -110 fetching device status
Apr 15 22:15:56 [kernel] usb 4-1: events/0 timed out on ep0in
Apr 15 22:15:56 [kernel] SpeedTouch: Error -110 fetching device status
Apr 15 22:16:01 [kernel] usb 4-1: events/0 timed out on ep0in
Apr 15 22:16:01 [kernel] SpeedTouch: Error -110 fetching device status
Apr 15 22:16:06 [kernel] usb 4-1: events/0 timed out on ep0in
Apr 15 22:16:06 [kernel] SpeedTouch: Error -110 fetching device status |
i tak aż do wystartowania połączenia a potem (ciąg dalszy log-u z góry):
Code: | Apr 15 22:16:10 [kernel] DSL line goes up
Apr 15 22:16:11 [kernel] usb 4-1: events/0 timed out on ep0in
Apr 15 22:16:11 [kernel] SpeedTouch: Error -110 fetching device status
Apr 15 22:16:13 [kernel] usb 4-1: events/0 timed out on ep0in
Apr 15 22:16:13 [kernel] SpeedTouch: Error -110 fetching device status
Apr 15 22:16:18 [pppd] Plugin pppoatm.so loaded.
Apr 15 22:16:18 [pppd] PPPoATM plugin_init
Apr 15 22:16:18 [pppd] PPPoATM setdevname_pppoatm - SUCCESS:0.35
Apr 15 22:16:18 [pppd] pppd 2.4.3 started by root, uid 0
Apr 15 22:16:18 [pppd] Using interface ppp0
Apr 15 22:16:18 [pppd] Connect: ppp0 <--> 0.35
Apr 15 22:16:30 [pppd] PAP authentication succeeded
Apr 15 22:16:30 [pppd] local IP address 83.24.212.31
Apr 15 22:16:30 [pppd] remote IP address 213.25.2.23
Apr 15 22:16:30 [pppd] primary DNS address 194.204.152.34
Apr 15 22:16:30 [pppd] secondary DNS address 217.98.63.164 |
_________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
fallow Bodhisattva
Joined: 08 Jan 2004 Posts: 2208 Location: Poland
|
Posted: Fri Apr 15, 2005 10:28 pm Post subject: |
|
|
no problem
co do tych komunikatow . moze masz wlaczone w kernelu CONFIG_USB_DEBUG ?
Code: |
Location:
-> Device Drivers
-> USB support
-> Support for Host-side USB (USB [=y]) |
cheers. _________________ "Time is a companion that goes with us on a journey. It reminds us to cherish each moment, because it will never come again. What we leave behind is not as important as how we have lived" J-L. Picard |
|
Back to top |
|
|
rzezioo Apprentice
Joined: 02 Nov 2004 Posts: 260 Location: Szczecin, Poland
|
Posted: Sat Apr 16, 2005 7:04 pm Post subject: |
|
|
ja mam startowane ze skryptu i wywala mi podobne bledy. i mam usb debug wylaczone w jajku. jeszcze takie komunikaty:
Code: | Apr 15 22:16:01 [kernel] SpeedTouch: Error -110 fetching device status
| mam bardzo czesto w trakcie uzywania kompa. tyle ze nawet nie powoduje to zerwania polaczenia. widac speedtouch jest niedowartosciowany i chce na siebie zwrocic uwage errorami _________________ USE="refrigerator" emerge beer
http://fun.from.hell.pl/2003-05-27/russian_linux.jpg |
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Sat Apr 16, 2005 9:39 pm Post subject: |
|
|
sorki, że dopiero teraz odpowiadam, ale miałem niespodziewane problmey z "innym" systemem.
Nie mam debug-u w jądrze, Komunikaty pojawiają się po tym jak hotplug zobaczy modem i załaduje sppedtch i firmware - chociaż ostatnio nie
Natomist, fallow, mam pytanie jak sobie poradziłeś z inicjowaniem automatycznie połączenia na starcie.
Napisałem sobie skrypcik ładujący i działa jak zloto, tylko na starcie jest bezskuteczny z tego powodu, że zdąży się wykonać zanim modem się zsynchronizuje. I przez to nie inicjuje połączenia. Uruchomiany po synchronizacji z ręki .... jak pisałem... działa jak złoto. _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Mon Apr 18, 2005 8:30 pm Post subject: |
|
|
fallow, poradziłem sobie sam z synchronizacją i startem. Nie przetestowałem jeszcze ale już wszytsko mam.
Miałbym natomiast sugestię do love-sources. Wiem, że to nie miejsce więc nic nie piszę. _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
tomaz n00b
Joined: 23 Apr 2005 Posts: 5 Location: Poland
|
Posted: Fri Apr 29, 2005 11:33 pm Post subject: |
|
|
Ja tylko dodam ze ladowanie firmware'u za pomoca modem_run w moim przypadku
w ogole nie dzialalo. Ten sam firmeware rozbity na dwa pliki hotplug laduje na modem
bez problemu. Mowa tu o kernelu gentoo-2.6.11-rc6 na amd64.
Moze modem_run nie obsluguje 64bitowych architektur? _________________ ToMaZz
Powered by:
AMD64 2800+
MSI K8N NEO3 nForce-4 |
|
Back to top |
|
|
rzezioo Apprentice
Joined: 02 Nov 2004 Posts: 260 Location: Szczecin, Poland
|
Posted: Sat Apr 30, 2005 10:01 am Post subject: |
|
|
mysle ze raczej nie sciagnales modem_run ze strony podanej przez kolege na poczatku. a trzeba sciagnac i podmienic bo musi byc wersja 1.2 nie nizsza i nie wyzsza. _________________ USE="refrigerator" emerge beer
http://fun.from.hell.pl/2003-05-27/russian_linux.jpg |
|
Back to top |
|
|
Miszczu Apprentice
Joined: 12 Apr 2005 Posts: 177
|
Posted: Mon May 16, 2005 3:19 pm Post subject: |
|
|
Code: | # lsmod
Module Size Used by
uhci_hcd 27952 0
speedtch 9896 0
firmware_class 7520 1 speedtch
usb_atm 13264 1 speedtch
pppoatm 4928 0
atm 34964 2 usb_atm,pppoatm
ppp_deflate 4640 0
zlib_deflate 22520 1 ppp_deflate
ppp_generic 21236 2 pppoatm,ppp_deflate
slhc 6336 1 ppp_generic
zlib_inflate 16736 1 ppp_deflate |
Code: | # /etc/init.d/speedtouch start
* Starting Speedtouch ADSL Modem... ...
* Loading firmware...
* Failed to find the microcode. |
Pytanie, co to za microcde ? co moglem przegapic ? |
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Mon May 16, 2005 6:36 pm Post subject: |
|
|
Odeślę Cię skromnie do mojego HOWTO _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
Miszczu Apprentice
Joined: 12 Apr 2005 Posts: 177
|
Posted: Tue May 17, 2005 2:53 pm Post subject: |
|
|
Niestety, niczego nie dowiedzialem sie z tego hwoto, teoretycznie wszystko jest ok, modem jest wykrywany no ale nie dziala ...
Ps, swieca sie 2 zielone lampki |
|
Back to top |
|
|
peka l33t
Joined: 16 Mar 2005 Posts: 773 Location: Płońsk, Poland
|
Posted: Tue May 17, 2005 4:36 pm Post subject: |
|
|
a robiłeś wszystko tak jak w HOWTO? _________________ p3k4
Seize the time, Meribor. Live now; make now always the most precious time. Now will never come again...
Jean-Luc Picard, Star Trek TNG - The Inner Light |
|
Back to top |
|
|
rampage7 Guru
Joined: 21 Mar 2004 Posts: 308 Location: Poland / Jastrzebie Zdroj
|
Posted: Tue May 17, 2005 11:09 pm Post subject: |
|
|
peka wrote: | Odeślę Cię skromnie do mojego HOWTO |
ten sposób z ładowaniem firmware przez kernel jest genialny i zadziałał u mnie pięknie. Ale i tak cieszę się, że stałem sie posiadaczem routerka i nie muszę z tego daremnego modemu korzystać _________________ To nie moje s± s³owa, to legenda ludowa..... |
|
Back to top |
|
|
Miszczu Apprentice
Joined: 12 Apr 2005 Posts: 177
|
Posted: Fri Jun 03, 2005 6:49 pm Post subject: |
|
|
no wiec tak
Code: | pppd call adsl
Plugin /usr/lib/pppd/2.4.3/pppoatm.so loaded.
PPPoATM plugin_init
PPPoATM setdevname_pppoatm - SUCCESS:0.35
pppd: In file /etc/ppp/peers/adsl: unrecognized option 'pty' |
/etc/ppp/peers/adsl
Code: | lock
noipdefault
defaultroute
noauth
holdoff 4
maxfail 25
persist
asyncmap 0
usepeerdns
lcp-echo-interval 2
lcp-echo-failure 7
name *******@neostrada.pl
plugin /usr/lib/pppd/2.4.3/pppoatm.so
0.35
updetach
pty "/usr/sbin/fctStartAdsl -i" |
Bardzo prosze o pomoc, do jutra musze ruszyc neo z modemu, mam tez sagema, ale rowniez nie potrafie sobie z nim poradzic |
|
Back to top |
|
|
|