Driver problemer
Hej
Jeg har et problem med min wireless usb adapter i ubuntu-10.04.1-desktop-i386. Ubuntu reagere ikke på jeg sætter den i usb'en. Samtidig har jeg været inde i hardware drivers, men den finder ikke noget og da jeg ikke kan installere driveren, kan jeg ikke komme på internettet :(
Jeg har hentet linux driverne til den, men ved ikke hvordan jeg skal installere dem?
Bær over med mig, er fuldstændig ny i Linux verdenen :D
På forhånd tak..
*Har hentet driverne her:
http://www.jensenscandinavia.com/download.asp?ProductID=AL25150
*Min wireless nøgle er en Jensen Air:Link 25150
Jeg har et problem med min wireless usb adapter i ubuntu-10.04.1-desktop-i386. Ubuntu reagere ikke på jeg sætter den i usb'en. Samtidig har jeg været inde i hardware drivers, men den finder ikke noget og da jeg ikke kan installere driveren, kan jeg ikke komme på internettet :(
Jeg har hentet linux driverne til den, men ved ikke hvordan jeg skal installere dem?
Bær over med mig, er fuldstændig ny i Linux verdenen :D
På forhånd tak..
*Har hentet driverne her:
http://www.jensenscandinavia.com/download.asp?ProductID=AL25150
*Min wireless nøgle er en Jensen Air:Link 25150
Kommentarer13
driver sjov
1: du har valgt en eller anden obskur pussenusse leverandør , som trods alt har lagt driver op
2: de forventer at du ved hvordan man bygger en driver, det jeg kan se i filen er kildekoden til en driver.
Drivere i Linux er et kerne modul , det er en ekstra feature man kan slå til dynamish ved at få Linux kernen til at indlæse en special fil.
Typisk vil du have 150 producenter af fx wifi usb dongler, men i virkeligheden vil de fleste indeholder en chip fra en ud af få chip-producenter fx intel , realtek , disse driver bliver typisk gjort GPL opensource og med tiden en del af selve kernen hvorved at linux pr standard understøtter næsten alt i dag.
Hvad jeg lige kan læse af koden er chippen en ralink , hvilket sikkert er et firma som ikke har ville frigive deres kode under en åben licens og de har så været for dovne til at gøre det nemt for dig.
Så det vi umiddelbart skal er at bygge kerne modulet og prøve at læse det ind på din maskine.
Er du klar ?
driver sjov
Tænkte nok det var et problem med den leverandør.
Jeg har jo slet ingen erfaring med Linux, men hvis du er klar på at hjælpe ville det være kanon.
Jeg sidder bare ikke ved den maskine nu, hvor jeg har lagt Ubuntu ind og det kræver det jo ikke?
compile,
Jeg er selv ret rusten i næsten alle relavante skills der skal til , er du rar at hente filen ,, overføre den på din maskine med ubuntu .
installere "gcc" og "make" fra System - administration - Synaptic - Pakkehåndtering
trække zip filen over på dit skrivebord, pakke den ud , indei ligger der en bz2 fil, den pakker du også ud til en mappe , eventuel omdøb mappen til "ralink"
så åbner du en terminal og skriver cd /home/*/Skrivebord/ralink
trykker ENTER
skriver make
trykker ENTER, og ser hvor langt du kommer.
Jeg har ikke lige tid til at lave et script til dig, andre må gerne byde ind her.
====================================*
det sidste stykke output fra min gcc cc kompilering
/home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSNetDevAttach’:
/home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../os/linux/rt_linux.c:1653: warning: initialization discards qualifiers from pointer target type
/home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../os/linux/rt_linux.c:1653: warning: ISO C90 forbids mixed declarations and code
CC [M] /home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../os/linux/rt_main_dev.o
/home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../os/linux/rt_main_dev.c: In function ‘RtmpOSIRQRequest’:
/home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../os/linux/rt_main_dev.c:951: warning: unused variable ‘net_dev’
CC [M] /home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../common/ba_action.o
CC [M] /home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../common/cmm_mac_usb.o
/home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../common/cmm_mac_usb.c: In function ‘NICInitRecv’:
/home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../common/cmm_mac_usb.c:83: error: implicit declaration of function ‘usb_buffer_alloc’
/home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../common/cmm_mac_usb.c:83: warning: assignment makes pointer from integer without a cast
/home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../common/cmm_mac_usb.c:112: error: implicit declaration of function ‘usb_buffer_free’
make[2]: *** [/home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux/../../common/cmm_mac_usb.o] Fejl 1
make[1]: *** [_module_/home/test/Skrivebord/RT3070_LinuxSTA_V2.3.0.1_20100208/os/linux] Fejl 2
make[1]: Forlader katalog '/usr/src/linux-2.6.36'
make: *** [LINUX] Fejl 2
compile,
Også tak til dig for svaret... ved ikke om mine Linux skills når dertil, men vil afprøve det :D
compile
henrik@henrik-laptop:~/Skrivebord/ralink$ make
make -C tools
make[1]: Går til katalog '/home/henrik/Skrivebord/ralink/tools'
gcc -g bin2h.c -o bin2h
make[1]: Forlader katalog '/home/henrik/Skrivebord/ralink/tools'
/home/henrik/Skrivebord/ralink/tools/bin2h
cp -f os/linux/Makefile.6 /home/henrik/Skrivebord/ralink/os/linux/Makefile
make -C /lib/modules/2.6.32-25-generic/build SUBDIRS=/home/henrik/Skrivebord/ralink/os/linux modules
make[1]: Går til katalog '/usr/src/linux-headers-2.6.32-25-generic'
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/crypt_md5.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/crypt_sha2.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/crypt_hmac.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/crypt_aes.o
/home/henrik/Skrivebord/ralink/os/linux/../../common/crypt_aes.c: In function ‘AES_GTK_KEY_WRAP’:
/home/henrik/Skrivebord/ralink/os/linux/../../common/crypt_aes.c:2265: warning: the frame size of 1100 bytes is larger than 1024 bytes
/home/henrik/Skrivebord/ralink/os/linux/../../common/crypt_aes.c: In function ‘WscDecryptData’:
/home/henrik/Skrivebord/ralink/os/linux/../../common/crypt_aes.c:1592: warning: the frame size of 1364 bytes is larger than 1024 bytes
/home/henrik/Skrivebord/ralink/os/linux/../../common/crypt_aes.c: In function ‘WscEncryptData’:
/home/henrik/Skrivebord/ralink/os/linux/../../common/crypt_aes.c:1522: warning: the frame size of 1364 bytes is larger than 1024 bytes
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/crypt_arc4.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/mlme.o
/home/henrik/Skrivebord/ralink/os/linux/../../common/mlme.c: In function ‘BssTableSortByRssi’:
/home/henrik/Skrivebord/ralink/os/linux/../../common/mlme.c:4683: warning: the frame size of 1720 bytes is larger than 1024 bytes
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_wep.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/action.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_data.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/rtmp_init.o
/home/henrik/Skrivebord/ralink/os/linux/../../common/rtmp_init.c: In function ‘NICInitAsicFromEEPROM’:
/home/henrik/Skrivebord/ralink/os/linux/../../common/rtmp_init.c:2488: warning: unused variable ‘RFValue’
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_tkip.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_aes.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_sync.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/eeprom.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_sanity.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_info.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_cfg.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_wpa.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/dfs.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/spectrum.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/rtmp_timer.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/rt_channel.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_profile.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_asic.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_cmd.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../sta/assoc.o
/home/henrik/Skrivebord/ralink/os/linux/../../sta/assoc.c: In function ‘MlmeAssocReqAction’:
/home/henrik/Skrivebord/ralink/os/linux/../../sta/assoc.c:377: warning: unused variable ‘pInfo’
/home/henrik/Skrivebord/ralink/os/linux/../../sta/assoc.c:374: warning: unused variable ‘infoPos’
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../sta/auth.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../sta/auth_rsp.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../sta/sync.o
/home/henrik/Skrivebord/ralink/os/linux/../../sta/sync.c: In function ‘PeerBeacon’:
/home/henrik/Skrivebord/ralink/os/linux/../../sta/sync.c:1736: warning: the frame size of 1316 bytes is larger than 1024 bytes
/home/henrik/Skrivebord/ralink/os/linux/../../sta/sync.c: In function ‘PeerBeaconAtJoinAction’:
/home/henrik/Skrivebord/ralink/os/linux/../../sta/sync.c:1079: warning: the frame size of 1264 bytes is larger than 1024 bytes
/home/henrik/Skrivebord/ralink/os/linux/../../sta/sync.c: In function ‘PeerBeaconAtScanAction’:
/home/henrik/Skrivebord/ralink/os/linux/../../sta/sync.c:773: warning: the frame size of 1268 bytes is larger than 1024 bytes
/home/henrik/Skrivebord/ralink/os/linux/../../sta/sync.c: In function ‘MlmeStartReqAction’:
/home/henrik/Skrivebord/ralink/os/linux/../../sta/sync.c:589: warning: the frame size of 1064 bytes is larger than 1024 bytes
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../sta/sanity.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../sta/rtmp_data.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../sta/connect.o
/home/henrik/Skrivebord/ralink/os/linux/../../sta/connect.c: In function ‘CntlOidScanProc’:
/home/henrik/Skrivebord/ralink/os/linux/../../sta/connect.c:351: warning: the frame size of 1748 bytes is larger than 1024 bytes
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../sta/wpa.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../sta/sta_cfg.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/rtmp_init_inf.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_profile.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.o
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.c: In function ‘rt_ioctl_siwencode’:
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.c:1481: warning: suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.c: In function ‘RTMPIoctlRF’:
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.c:6219: warning: the frame size of 2328 bytes is larger than 1024 bytes
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.c: In function ‘RTMPIoctlE2PROM’:
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.c:6035: warning: the frame size of 1348 bytes is larger than 1024 bytes
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.c: In function ‘RTMPIoctlMAC’:
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.c:5837: warning: the frame size of 1344 bytes is larger than 1024 bytes
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.c: In function ‘rt_ioctl_iwaplist’:
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.c:606: warning: the frame size of 1288 bytes is larger than 1024 bytes
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.c: In function ‘rt_ioctl_siwmlme’:
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/sta_ioctl.c:1979: warning: the frame size of 1588 bytes is larger than 1024 bytes
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_linux.o
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSTaskAttach’:
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_linux.c:1283: warning: passing argument 1 of ‘kthread_create’ from incompatible pointer type
include/linux/kthread.h:7: note: expected ‘int (*)(void *)’ but argument is of type ‘RTMP_OS_TASK_CALLBACK’
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSNetDevDetach’:
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_linux.c:1614: warning: initialization discards qualifiers from pointer target type
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSNetDevAttach’:
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_linux.c:1653: warning: initialization discards qualifiers from pointer target type
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_linux.c:1653: warning: ISO C90 forbids mixed declarations and code
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_main_dev.o
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_main_dev.c: In function ‘RtmpOSIRQRequest’:
/home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_main_dev.c:951: warning: unused variable ‘net_dev’
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/ba_action.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_mac_usb.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/rtusb_io.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/rtusb_bulk.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/rtusb_data.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/cmm_data_usb.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/ee_prom.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/ee_efuse.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/rtmp_mcu.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../chips/rt30xx.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/rt_rf.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../chips/rt3070.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../common/rtusb_dev_id.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_usb.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../os/linux/rt_usb_util.o
CC [M] /home/henrik/Skrivebord/ralink/os/linux/../../os/linux/usb_main_dev.o
LD [M] /home/henrik/Skrivebord/ralink/os/linux/rt3070sta.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /home/henrik/Skrivebord/ralink/os/linux/rt3070sta.o
see include/linux/module.h for more information
CC /home/henrik/Skrivebord/ralink/os/linux/rt3070sta.mod.o
LD [M] /home/henrik/Skrivebord/ralink/os/linux/rt3070sta.ko
make[1]: Forlader katalog '/usr/src/linux-headers-2.6.32-25-generic'
cp -f /home/henrik/Skrivebord/ralink/os/linux/rt3070sta.ko /tftpboot
cp: kan ikke oprette almindelig fil '/tftpboot': Permission denied
make: *** [LINUX] Fejl 1
Har du nogen idé om hvad jeg så skal gøre?
på forhånd tak :D
haha
lidt længere
tftpboot lyder som noget man bruger til at boote en router , kan ikke se hvad tftp har at gøre med en lille wifi dongle.
/home/henrik/Skrivebord/ralink/os/linux/rt3070sta.ko bør umiddelbart kopieres ned et sted under /lib/modules/2.6.32-25-generic/kernel/drivers
men er ikke helt sikker på hvor.
Ideen er at du nu skal læse modulet ind i kerne med kommandoen modprobe
prøv
fra terminalen:
sudo modprobe /home/henrik/Skrivebord/ralink/os/linux/rt3070sta.ko
læs gerne man siderne for modprobe og debmod
i terminalen
man modprobe
jeg skal se om jeg kan kigge nærmere på det senere
lidt længere
lidt længere
henrik@henrik-laptop:~/Skrivebord/ralink/os/linux$ sudo modprobe rt3070.ko
FATAL: Module rt3070.ko not found.
Hvorfor kan den ikke finde filen?
prøv den fulde sti
/lib/modules/2.6.32-25-generic/kernel/drivers
og så modprobe rt3070 , mener ikke du skal sætte .ko på ,, men jeg kan ikke huske om jeg har testet det
ellers prøv
modprobe /home/henrik/Skrivebord/ralink/os/linux/rt3070sta.ko
i man siden for modprobe burde der stå om dette er en god ide, jeg har haft lidt travlt på det sidste men pt skal vi have modprobe til at smage på modulet.
Prøv at gennemse denne
http://art.ubuntuforums.org/showthread.php?t=14324...
Der er bud på en løsning, som kom til at virke.
RE: Problemer driver
Har fundet dette på nettet, men har ikke haft tid til at afprøve det.
Så her har du chancen for at få det til at køre umiddelbart.
This particular tip (post #23 by anthonyalbertyn) worked for me - it is the simplest one as well:
BLACKLISTING rt2x00 MODULES worked for me. I am using an Edimax USB adapter (Model number EW-7711UAn, FCC ID: NDD9577110812) with Ubuntu 9.10.
Summary of steps that I took (as per your instructions):
1. Unplug your USB WiFi adapter and restart your computer.
2. In terminal: sudo gedit /etc/modprobe.d/blacklist.conf
add these lines to the end of the file:
blacklist rt2x00usb
blacklist rt2x00lib
blacklist rt2800usb
Save the file
3. Insert your USB wifi device.
I am over the moon. It was hard work (especially considering that the solution was so simple in the end) but I must say I learned a lot.
Thanks everyone!
Håber det virker.
blacklist
Hvis man bare vil have noget der er kedeligt og virker hele tiden ville man sikkert købe mac , drikke café latte og have tykke sorte brillestil og bo på vestrebro og google sig selv på en smart cafe mens man venter på drømme jobbet som IT oplevelses designer.
[Ikke hermed sagt at denne løsningsmodel giver dig en høj successrate]