Fórum Ubuntu CZ/SK
Ostatní => Archiv => Téma založeno: jolae 22 Července 2006, 15:32:38
-
Zdravim, v linuxu jsem zacatecnik.
Vsechen HW mi na Asus NB funguje bez problemu,dokonce i CPU steping, takze Ubuntu je super, ale nevim jak rozchodit tuhle kartu. Na webu t-mobile jsou ovladace ale je to na me nejake obtizne:-/.
tohle je v readme
IPWireless PCMCIA modem Linux Driver - Installation instructions
by Stephen Blackheath , and
Ben Martel
REQUIREMENTS
* Linux kernel 2.4.x or 2.6.x, and the corresponding kernel headers.
* pcmcia-cs (PCMCIA card services package)
* pppd (PPP daemon)
BUILDING
1. Set the KERNELDIR environment variable to point to the directory that
contains the 'include' directory for kernel headers corresponding to your
currently running kernel, e.g.
export KERNELDIR=/usr/src/linux
2. Ensure that the version of gcc you are using matches the one with which
your kernel was built.
gcc --version
cat /proc/version
If they don't match, then point the CC environment variable at the
correct version of gcc, e.g.
export CC=gcc-2.95
3. Use 'make' to build it
make
INSTALLING THE DRIVER
1. Install the kernel module and related files:
su
make install
CHECKING THAT THE DRIVER IS INSTALLED CORRECTLY
1. Watch the system messages while you plug the card in
tail -f /var/log/messages
2. You should see something like this:
Feb 11 15:45:54 kotuku kernel: ipwireless_cs: 1.0.4 by Stephen Blackheath and Ben Martel
Feb 11 15:45:54 kotuku kernel: ipwireless_cs: PCMCIA event - card insertion
Feb 11 15:45:54 kotuku kernel: ipwireless_cs: I/O ports 0x0100-0x010f irq 9
Feb 11 15:45:54 kotuku kernel: ipwireless_cs: waiting for card to start up...
Feb 11 15:45:59 kotuku kernel: ipwireless_cs: card is ready.
3. Some devices called ttyIPWp* should have been created in the /dev
directory when the card was plugged in. Check that they are there:
ls -l /dev/ttyIPWp*
This should have happened automatically - see /etc/pcmcia/serial.opts
CONFIGURING PPPD
When the modem is plugged in, it will appear on /dev/ttyIPWp0 to
/dev/ttyIPWp31. These devices work like serial ports, and the device itself
behaves like a Hayes-compatible modem.
If your system uses devfs, then the device names will be /dev/ttyIPWp/0 to
/dev/ttyIPWp/31.
Configure pppd to connect using a chat script with these commands:
AT+CGDCONT=1,"PPP","",",",0,0
ATD*99#
You may also need to use configure it to authenticate to the service provider
using chap authentication.
STARTING THE NETWORK AUTOMATICALLY WHEN YOU PLUG THE CARD IN
If you want it to start pppd automatically when you plug the card in, you can
do this by editing /etc/pcmcia/serial.opts. If you have pppd configured so
that 'pon' establishes a connection, then you can just add 'pon' to the
start_fn() in the "# IPWireless PCMCIA modem start" section, and create
a new stop_fn(), adding 'poff' to it, e.g.
# IPWireless PCMCIA modem start
DEVROOT=${DEVICE%[0-9]}
DEVROOT=${DEVROOT%[0-9]}
case "$ADDRESS" in
*,*,0)
if test "$DEVROOT" = "ttyIPWp" -o "$DEVROOT" = "tts/ttyIPWp" ; then
start_fn () {
/usr/local/share/ipwireless_cs/create-ttyIPWp.sh
pon
}
stop_fn() {
poff
}
fi
;;
esac
# IPWireless PCMCIA modem end
Dekuji za jakykoliv help
-
takže stáhni si ty ovladače potom si nainstaluj zdrojové soubory ke tvému jádru to uděláš tak že zadáš příkaz sudo apt-get install linux-headers (mozna kernel-headers). potom rozbal ty ovladace napriklad pokud je mas rozbaleny ve sve domovske slozce tak zadej v terminalu cd /home/tvuj_ucet/slozka_kdejsoutyrozbalenyovladace/ potom zadej prikaz make potom sudo make install a ted by mel byt nainstalovanej ovladac a v /dev by mel byt soubor neco jako /dev/ttyIPWp* zapamatuj si presne jeho nazev. Pokud tam to zarizeni je tak uz staci jen nastavit pripojeni a to muzes udelat zapomoc pppconfig a nebo pres vrchni menu Prostredi-->nastaveni(nebo sprava ted nevim)--> site ci neco podobneho a tam to aklikas jako zpusob pripojeni vyberes pres ppp a nastavist tam sve jmeno heslo jako tel. cislo zvol *99# dns a ip nech automaticky inicializacni retezec č.2 zadej AT+CGDCONT=1,"PPP"
-
Tak kernel stahnutej, ale skoncim touhle hlaskou, po nastaveni "export KERNELDIR=/usr/src/linux-headers-2.6.15-26" napisu make a dostanu tuto hlasku:
Don't know how to build for this kernel version: .
make: *** [default] Error 1
Kdyz zkousim zjistit verzi GCC dle navodu :
laptop:~/ipwireless_Linux/pccard$ gcc -version
bash: gcc: command not found
-
Mas nainstalovany balicek build-essential?
-
Uz ano:) zkusil jsem to potom a dostal jsem jeden error, jsem trochu zmaten z toho jestli mam aplikovat to urceni pro KERNELDIR na linux-headers a nebo na kernel-headers?
-
Imho na ty linux-headers, kernel-* je pozustatek z debianu, ubuntu pouziva linux-*.
-
kdyztak zkus pouzit muj ovladac z http://kozzi.php5.cz/new.html
je to ten uplne spodni staciho rozbalit vliz do adresare kterej vznikl rozbalenim je tam soubor install ten z prikazove radky spustit jako root takze v ubuntu pomoci
sudo ./install no a melo by to vypsat par radku kdyztak je sem hod. pokud vse probehne dobre tak zadas modprobe ipwireless_usb a mel by se nacist modul zkotroluj prikazem dmesg
-
zkusim ale obavam se ze to je uplne jina znacka a hlavne to me je pres pcmcia ale zkusim,diky
-
pockat tak to jsem nevedel ze to je pres pcmcia tak to ani nezkousej
-
kdyz nastavim cestu a udelam make dostavam tuhle hlasku:
aptop:~/ipwireless_Linux/pccard$ export KERNELDIR=/usr/src/ker nel-headers-2.4.27-2-386
laptop:~/ipwireless_Linux/pccard$ make
cc -D__KERNEL__ -DMODULE -I/usr/src/kernel-headers-2.4.27-2-386/include -O -Wall -c -o ipwireless_cs_main.o ipwireless_cs_main.c
In file included from /usr/src/kernel-headers-2.4.27-2-386/include/linux/kernel. h:15,
from /usr/src/kernel-headers-2.4.27-2-386/include/linux/interru pt.h:6,
from ipwireless_cs_hardware.h:17,
from ipwireless_cs_main.c:24:
/usr/src/kernel-headers-2.4.27-2-386/include/asm/byteorder.h:14: warning: type q ualifiers ignored on function return type
/usr/src/kernel-headers-2.4.27-2-386/include/asm/byteorder.h:30: warning: type q ualifiers ignored on function return type
In file included from /usr/src/kernel-headers-2.4.27-2-386/include/linux/byteord er/little_endian.h:11,
from /usr/src/kernel-headers-2.4.27-2-386/include/asm/byteorder .h:65,
from /usr/src/kernel-headers-2.4.27-2-386/include/linux/kernel. h:15,
from /usr/src/kernel-headers-2.4.27-2-386/include/linux/interru pt.h:6,
from ipwireless_cs_hardware.h:17,
from ipwireless_cs_main.c:24:
/usr/src/kernel-headers-2.4.27-2-386/include/linux/byteorder/swab.h:160: warning : type qualifiers ignored on function return type
/usr/src/kernel-headers-2.4.27-2-386/include/linux/byteorder/swab.h:173: warning : type qualifiers ignored on function return type
/usr/src/kernel-headers-2.4.27-2-386/include/linux/byteorder/swab.h:186: warning : type qualifiers ignored on function return type
/usr/src/kernel-headers-2.4.27-2-386/include/linux/byteorder/swab.h:200: warning : type qualifiers ignored on function return type
In file included from /usr/src/kernel-headers-2.4.27-2-386/include/linux/prefetc h.h:13,
from /usr/src/kernel-headers-2.4.27-2-386/include/linux/list.h: 6,
from /usr/src/kernel-headers-2.4.27-2-386/include/linux/wait.h: 14,
from /usr/src/kernel-headers-2.4.27-2-386/include/linux/fs.h:12 ,
from /usr/src/kernel-headers-2.4.27-2-386/include/linux/capabil ity.h:17,
from /usr/src/kernel-headers-2.4.27-2-386/include/linux/binfmts .h:5,
from /usr/src/kernel-headers-2.4.27-2-386/include/linux/sched.h :9,
from ipwireless_cs_main.h:17,
from ipwireless_cs_main.c:26:
/usr/src/kernel-headers-2.4.27-2-386/include/asm/processor.h:75: error: array ty pe has incomplete element type
make: *** [ipwireless_cs_main.o] Error 1
laptop:~/ipwireless_Linux/pccard$
-
Kdyz nic jinyho tak nastavujes spatne to KERNELDIR, protoze urcite nepouzivas jadro verze 2.4.*, ale nejaky 2.6.17
-
Pravda to me nenapadlo a stalo se to protoze apt-get install mi dal na vyber jen z takhle starych verzi. Tak jak na to dal, kdyz ten kernel nejde stahnout pres apt-get?
Diky za pomoc, uz citim ze se blizim ke zdarnemu konci, jen tohle me deli od toho abych opustil windows nadobro:).
-
tak nakonec sem stahnul ty prave (byl sem slepej) tady je co mi to dela ted:
xxx@xxx-laptop:~/ipwireless_Linux/pccard$ export KERNELDIR=/usr/src/linux-headers-2.6.15-26-386/
xxx@xxx-laptop:~/ipwireless_Linux/pccard$ sudo make
make -C /usr/src/linux-headers-2.6.15-26-386/ SUBDIRS=/home/xxx/ipwireless_Linux/pccard modules CC=cc
make[1]: Entering directory `/usr/src/linux-headers-2.6.15-26-386'
CC [M] /home/xxx/ipwireless_Linux/pccard/ipwireless_cs_hardware.o
CC [M] /home/xxx/ipwireless_Linux/pccard/ipwireless_cs_main.o
/home/xxx/ipwireless_Linux/pccard/ipwireless_cs_main.c: In function ‘init_ipwireless_cs’:
/home/xxx/ipwireless_Linux/pccard/ipwireless_cs_main.c:610: error: ‘servinfo_t’ undeclared (first use in this function)
/home/xxx/ipwireless_Linux/pccard/ipwireless_cs_main.c:610: error: (Each undeclared identifier is reported only once
/home/xxx/ipwireless_Linux/pccard/ipwireless_cs_main.c:610: error: for each function it appears in.)
/home/xxx/ipwireless_Linux/pccard/ipwireless_cs_main.c:610: error: syntax error before ‘serv’
/home/xxx/ipwireless_Linux/pccard/ipwireless_cs_main.c:616: warning: implicit declaration of function ‘pcmcia_get_card_services_info’
/home/xxx/ipwireless_Linux/pccard/ipwireless_cs_main.c:616: error: ‘serv’ undeclared (first use in this function)
make[2]: *** [/home/xxx/ipwireless_Linux/pccard/ipwireless_cs_main.o] Error 1
make[1]: *** [_module_/home/xxx/ipwireless_Linux/pccard] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.15-26-386'
make: *** [all] Error 2
-
no problém je vtom že s novým jádrem se to nedá skompiulovat poslední jádro se kterým to šlo bylo 2.6.12 takže bud pockas až to někdo opraví pro nový jádra a nbo si tam dáš starý jádro jen mám strach že by se ti to mohlo stím starým jádrem docela rozbít. no ja jsem zkusil ty ovladace upravit ale nevim jestli pojedou tak je zkus jsou na http://kozzi.php5.cz/pccard.tar.bz2 staci je rozbalit vlezt do nich a zadat sudo make a potom sudo make install mozna budes muset zadat export KERNELDIR=......
-
tak bohuzel to nejde ani i kdyz jsem tam zmenil cestu na me jadro takze kartu prodam a pozdeji koupim neco pres USB, doufam ze treba CDMA funguje.
-
no ono ipwireless ma i usb verzi a ta funguje vpohode ma ovladace primo v jadre. No a co se cdma tyce tak to ma skveloj podporu teda alspon ANYDATA usb modem
-
Volal jsem na T-Mobile a vymena pry neni mozna (i kdyz je pcmcia karta nekolikanasobne drazsi), ach jo. Nevis ma USB verze provoz i na baterku? Diky za odpoved
-
no tak to fakt nevim ale myslim ze by mela mit ja pouzivam cdma anydata a ten to ma takze neporadim zkus se zeptat na tmobile
-
tak uz sem poridil USB modem ale stejne nefachci "kousne" se to pri vytaceni, postup jsem udelal dle tohoto navodu (krom portu aby byl pro USB) http://personal.jirik.net/data/tm4g/ipwireless-pcmcia-linux-howto.html
ale skoncim kdyz dam: sudo pppd call internet4g
ve vypisu v messages mam toto:
Aug 12 11:28:14 localhost pppd[5194]: pppd 2.4.4b1 started by user, uid 1001
Aug 12 11:28:15 localhost chat[5195]: timeout set to 10 seconds
Aug 12 11:28:15 localhost chat[5195]: abort on (BUSY)
Aug 12 11:28:15 localhost chat[5195]: abort on (NO CARRIER)
Aug 12 11:28:15 localhost chat[5195]: expect (#)
Aug 12 11:28:25 localhost chat[5195]: alarm
Aug 12 11:28:25 localhost chat[5195]: Failed
Aug 12 11:28:26 localhost pppd[5194]: Exit.
vi nekdo co s tim prosim?
jinak detekce modemu dle me probehne bez problemu:
Aug 12 11:30:28 localhost kernel: [17180648.440000] usb 1-2: new full speed USB device using uhci_hcd and address 4
Aug 12 11:30:28 localhost kernel: [17180648.584000] usb 1-2: configuration #1 chosen from 2 choices
Aug 12 11:30:28 localhost kernel: [17180648.588000] ipwtty 1-2:1.0: IPWireless converter converter detected
Aug 12 11:30:28 localhost kernel: [17180648.588000] usb 1-2: IPWireless converter converter now attached to ttyUSB0
-
no problem je vtom ze si pri nastavovovani pp pripojeni pres pppconfig pri zadavani telefoniho cisla(*99#) nejak spatne napsal ten #. tak to oprav. a hod sem vypis souboru etc/chatscripts/internet4g
-
Aug 12 16:09:38 localhost kernel: [17189703.468000] usb 1-2: new full speed USB device using uhci_hcd and address 8
Aug 12 16:09:38 localhost kernel: [17189703.612000] usb 1-2: configuration #1 chosen from 2 choices
Aug 12 16:09:38 localhost kernel: [17189703.616000] ipwtty 1-2:1.0: IPWireless converter converter detected
Aug 12 16:09:38 localhost kernel: [17189703.616000] usb 1-2: IPWireless converter converter now attached to ttyUSB0
Aug 12 16:09:58 localhost pppd[11382]: pppd 2.4.4b1 started by johan, uid 1001
Aug 12 16:09:59 localhost chat[11383]: timeout set to 10 seconds
Aug 12 16:09:59 localhost chat[11383]: abort on (BUSY)
Aug 12 16:09:59 localhost chat[11383]: abort on (NO CARRIER)
Aug 12 16:09:59 localhost chat[11383]: abort on (ERROR)
Aug 12 16:09:59 localhost chat[11383]: send (AT^M)
Aug 12 16:10:09 localhost chat[11383]: alarm
Aug 12 16:10:09 localhost chat[11383]: -- write timed out
je zajimave ze Autodetekce v gnome-ppp nic nenajde zadny modem a jeste mi v logu furt skace tohle (ale to se vyskytuje celou dobu i pred tim nez byl modem).
Aug 12 16:07:45 localhost gconfd (root-11280): Zjištěna adresa "xml:readwrite:/root/.gconf" je přepisovatelný zdroj nastavení na pozici 1
Aug 12 16:07:45 localhost gconfd (root-11280): Zjištěna adresa "xml:readonly:/etc/gconf/gconf.xml.defaults" je zdroj nastavení pouze pro čtení na pozici 2
Aug 12 16:07:45 localhost gconfd (root-11280): Zjištěna adresa "xml:readonly:/var/lib/gconf/debian.defaults" je zdroj nastavení pouze pro čtení na pozici 3
Aug 12 16:07:45 localhost gconfd (root-11280): Zjištěna adresa "xml:readonly:/var/lib/gconf/defaults" je zdroj nastavení pouze pro čtení na pozici 4
Aug 12 16:08:45 localhost gconfd (root-11280): Server GConf se nepoužívá, končím.
a tady je ten vypis z chatscripts:
TIMEOUT 10
ABORT BUSY
ABORT "NO CARRIER"
ABORT ERROR
"" 'AT'
OK ATZ
OK AT&FE0Q0V1&C1&D2S0=0
OK ATS7=60&K3N1
OK AT+CGDCONT=1,"PPP","internet.t-mobile.cz","gprs,gprs",0,0
OK ATDT*99#
CONNECT \d\c
-
no melo by tam byt spis toto:
# ispauth CHAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT ERROR
# modeminit
'' "AT"
OK AT+CGDCONT=1,"PPP","internet.t-mobile.cz","0,0",0,0
# ispnumber
OK-AT-OK "ATDT*99#"
# ispconnect
CONNECT \d\c
# prelogin
# ispname
# isppassword
# postlogin
# end of pppconfig stuff
-
prepsano ulozeno ale pise to furt to same...nemas kozzi11 icq? moje je 95624507
-
uz sem si te pridal do seznamu
-
tak i po konzultaci s kozzi11 to nejde, asi bude na vine routovani. Ale jak to opravit?:-/