Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

ndiswrapper - pitanje?

[es] :: Linux :: ndiswrapper - pitanje?

Strane: 1 2

[ Pregleda: 4026 | Odgovora: 20 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Astral Projection

Član broj: 36254
Poruke: 714



+4 Profil

icon ndiswrapper - pitanje?27.09.2006. u 19:33 - pre 213 meseci
Znaci cuo sam da ndiswrapper osim sto omogucava drajvere za wlan, omogucava i emulaciju 'ostalih' drajvera. Istina?
Ako je ovo istina, ja sam pokusao da instaliram drajvere za nokiu 6230 i da joj pristupim (ovo vec pokusavam duze vremena) ali nista. Znaci ovo mi daje kao listu drajvera:
shiva:/etc/ndiswrapper# ndiswrapper -l
Installed ndis drivers:
nmwcd driver present, hardware present


Koliko ja vidim on je normalno ucitao drajver i prepoznao telefon. Onda sam uradio modprobe ndiswrapper i sve je proslo bez problema. E sad me interesuje je li mi se pojavio neki novi block device ili bilo sta sto mogu da mountujem ili bar nekako pristupim fonu?
:(){ :|:& };:
Peace, Love, Unity, Respect!
 
Odgovor na temu

niceness
Novi Sad

Član broj: 93992
Poruke: 993



+22 Profil

icon Re: ndiswrapper - pitanje?27.09.2006. u 19:55 - pre 213 meseci
Cekaj malo... za sta ti trebaju? Da pristupis fajlovima na telefonu?
Ako je to u pitanju onda ti ne treba taj driver.

I sta koristis za konekciju za kompom (bluetooth, usb)?
 
Odgovor na temu

Astral Projection

Član broj: 36254
Poruke: 714



+4 Profil

icon Re: ndiswrapper - pitanje?27.09.2006. u 20:35 - pre 213 meseci
koristim USB DKU-2 kabl i da, treba mi da pristupim fajlovima u telefonu :)
:(){ :|:& };:
Peace, Love, Unity, Respect!
 
Odgovor na temu

niceness
Novi Sad

Član broj: 93992
Poruke: 993



+22 Profil

icon Re: ndiswrapper - pitanje?27.09.2006. u 22:07 - pre 213 meseci
Pa onda bi trebalo biti lako. Ako se secam taj kabel je bez ikakvog konvertora, telefon u sebi ima usb-serial (ovo i nije bitno sada).
Imam 6630 i CA-53 kabl, sto je u sustini isto kao i tvoja situacija. (nema veze sto je moj S60, i jedan i drugi postiju obex protokol)
Ja sam ovako uradio zato sto mi je trebalo osnovno prebacivanje podataka preko kabla.

Prikljuci telefon na komp.
Da li je telefon nadjen:
Code:

# lsusb
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 002: ID 0421:0410 Nokia Mobile Phones 6630 Imaging Smartphone
Bus 001 Device 001: ID 0000:0000  


Instaliraj openobex i obexftp (koristi package-manager od distribucije ili ih downloaduj sa http://openobex.triq.net/downloads i kompajliraj).

Da li telefon hoce da prica sa nama?:
Code:

$ obex_test -u
Using USB transport, querying available interfaces
Interface 0: Nokia Nokia 6630 SYNCML-SYNC
Interface 1: Nokia Nokia 6630 PC Suite Services
Use 'obex_test -u interface_number' to run interactive OBEX test client

Napomena: openobex 1.3 nije hteo da radi sa mojim telefonom, verzija 1.2 radi Ok.

Ako je sve u redu imas najosnovniju funcionalnost i mozes da koristis obexftp za prebacivanje,brisanje itd. (vise informacija na njihovom sajtu)
Posto mi nije trebao gui, a nije mi se svidjao obexftp instalirao sam obexfs (potrebno je imati fuse). Sada mogu da koristim standarde programe
za rad sa fajlovima.
Code:

$ mkdir nokia
$ obexfs -u 1 nokia
$ ls nokia
./  ../  C:/  E:/
$ ls -1 nokia/E\:/
./
../
Documents/
Images/
MyMusic/
Nokia/
Others/
Sounds/
Videos/
aaa/
muvee clips/
tmp/
trm/
$ rm -rf nokia/E\:/aaa/
$ ls nokia/E\:/
./  ../  Documents/  Images/  MyMusic/  Nokia/  Others/  Sounds/  Videos/  muvee clips/  tmp/  trm/


Sve ovo je veoma jednostavno i uglavnom radi iz prve.
Siguran sam da ces naci dosta gui-a za obexftp (najverovatnije kde i gnome imaju svoje aplikacije). Takodje mozes da probas gammu sa njegovim frontednom wammu.
 
Odgovor na temu

Astral Projection

Član broj: 36254
Poruke: 714



+4 Profil

icon Re: ndiswrapper - pitanje?27.09.2006. u 22:46 - pre 213 meseci
uspio sam da prebacam fajlove preko obextool i obexftp... Pokusao sam da instaliram obexfs i dobijem:

Code:
astral@shiva:~/downloads/obexfs-0.10$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/astral/downloads/obexfs-0.10/missing: Unknown `--run' option
Try `/home/astral/downloads/obexfs-0.10/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OPENOBEX... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating fuse/Makefile
config.status: creating config.h
config.status: executing depfiles commands
astral@shiva:~/downloads/obexfs-0.10$ make
make  all-recursive
make[1]: Entering directory `/home/astral/downloads/obexfs-0.10'
Making all in fuse
make[2]: Entering directory `/home/astral/downloads/obexfs-0.10/fuse'
if gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -W -Wmissing-declarations -Wmissing-prototypes -O2 -D_FILE_OFFSET_BITS=64 -MT obexfs.o -MD -MP -MF ".deps/obexfs.Tpo" \
  -c -o obexfs.o `test -f 'obexfs.c' || echo './'`obexfs.c; \
then mv -f ".deps/obexfs.Tpo" ".deps/obexfs.Po"; \
else rm -f ".deps/obexfs.Tpo"; exit 1; \
fi
obexfs.c:28:18: fuse.h: No such file or directory
obexfs.c:197: error: syntax error before "fuse_dirh_t"
obexfs.c: In function `ofs_getdir':
obexfs.c:208: error: `path' undeclared (first use in this function)
obexfs.c:208: error: (Each undeclared identifier is reported only once
obexfs.c:208: error: for each function it appears in.)
obexfs.c:215: warning: implicit declaration of function `filler'
obexfs.c:215: error: `h' undeclared (first use in this function)
obexfs.c: At top level:
obexfs.c:312: warning: `struct fuse_file_info' declared inside parameter list
obexfs.c:312: warning: its scope is only this definition or declaration, which is probably not what you want
obexfs.c: In function `ofs_open':
obexfs.c:319: error: dereferencing pointer to incomplete type
obexfs.c: At top level:
obexfs.c:324: warning: `struct fuse_file_info' declared inside parameter list
obexfs.c: In function `ofs_read':
obexfs.c:333: error: dereferencing pointer to incomplete type
obexfs.c: At top level:
obexfs.c:356: warning: `struct fuse_file_info' declared inside parameter list
obexfs.c: In function `ofs_write':
obexfs.c:361: error: dereferencing pointer to incomplete type
obexfs.c: At top level:
obexfs.c:387: warning: `struct fuse_file_info' declared inside parameter list
obexfs.c: In function `ofs_release':
obexfs.c:392: error: dereferencing pointer to incomplete type
obexfs.c: At top level:
obexfs.c:465: error: variable `ofs_oper' has initializer but incomplete type
obexfs.c:466: error: unknown field `getattr' specified in initializer
obexfs.c:466: warning: excess elements in struct initializer
obexfs.c:466: warning: (near initialization for `ofs_oper')
obexfs.c:467: error: unknown field `readlink' specified in initializer
obexfs.c:467: warning: excess elements in struct initializer
obexfs.c:467: warning: (near initialization for `ofs_oper')
obexfs.c:468: error: unknown field `opendir' specified in initializer
obexfs.c:468: warning: excess elements in struct initializer
obexfs.c:468: warning: (near initialization for `ofs_oper')
obexfs.c:469: error: unknown field `readdir' specified in initializer
obexfs.c:469: warning: excess elements in struct initializer
obexfs.c:469: warning: (near initialization for `ofs_oper')
obexfs.c:470: error: unknown field `releasedir' specified in initializer
obexfs.c:470: warning: excess elements in struct initializer
obexfs.c:470: warning: (near initialization for `ofs_oper')
obexfs.c:471: error: unknown field `getdir' specified in initializer
obexfs.c:471: warning: excess elements in struct initializer
obexfs.c:471: warning: (near initialization for `ofs_oper')
obexfs.c:472: error: unknown field `mknod' specified in initializer
obexfs.c:472: warning: excess elements in struct initializer
obexfs.c:472: warning: (near initialization for `ofs_oper')
obexfs.c:473: error: unknown field `mkdir' specified in initializer
obexfs.c:473: warning: excess elements in struct initializer
obexfs.c:473: warning: (near initialization for `ofs_oper')
obexfs.c:474: error: unknown field `symlink' specified in initializer
obexfs.c:474: warning: excess elements in struct initializer
obexfs.c:474: warning: (near initialization for `ofs_oper')
obexfs.c:475: error: unknown field `unlink' specified in initializer
obexfs.c:475: warning: excess elements in struct initializer
obexfs.c:475: warning: (near initialization for `ofs_oper')
obexfs.c:476: error: unknown field `rmdir' specified in initializer
obexfs.c:476: warning: excess elements in struct initializer
obexfs.c:476: warning: (near initialization for `ofs_oper')
obexfs.c:477: error: unknown field `rename' specified in initializer
obexfs.c:477: warning: excess elements in struct initializer
obexfs.c:477: warning: (near initialization for `ofs_oper')
obexfs.c:478: error: unknown field `link' specified in initializer
obexfs.c:478: warning: excess elements in struct initializer
obexfs.c:478: warning: (near initialization for `ofs_oper')
obexfs.c:479: error: unknown field `chmod' specified in initializer
obexfs.c:479: warning: excess elements in struct initializer
obexfs.c:479: warning: (near initialization for `ofs_oper')
obexfs.c:480: error: unknown field `chown' specified in initializer
obexfs.c:480: warning: excess elements in struct initializer
obexfs.c:480: warning: (near initialization for `ofs_oper')
obexfs.c:481: error: unknown field `truncate' specified in initializer
obexfs.c:481: warning: excess elements in struct initializer
obexfs.c:481: warning: (near initialization for `ofs_oper')
obexfs.c:482: error: unknown field `utime' specified in initializer
obexfs.c:482: warning: excess elements in struct initializer
obexfs.c:482: warning: (near initialization for `ofs_oper')
obexfs.c:483: error: unknown field `open' specified in initializer
obexfs.c:483: warning: excess elements in struct initializer
obexfs.c:483: warning: (near initialization for `ofs_oper')
obexfs.c:484: error: unknown field `read' specified in initializer
obexfs.c:484: warning: excess elements in struct initializer
obexfs.c:484: warning: (near initialization for `ofs_oper')
obexfs.c:485: error: unknown field `write' specified in initializer
obexfs.c:485: warning: excess elements in struct initializer
obexfs.c:485: warning: (near initialization for `ofs_oper')
obexfs.c:489: error: unknown field `release' specified in initializer
obexfs.c:489: warning: excess elements in struct initializer
obexfs.c:489: warning: (near initialization for `ofs_oper')
obexfs.c:490: error: unknown field `flush' specified in initializer
obexfs.c:490: warning: excess elements in struct initializer
obexfs.c:490: warning: (near initialization for `ofs_oper')
obexfs.c:491: error: unknown field `fsync' specified in initializer
obexfs.c:491: warning: excess elements in struct initializer
obexfs.c:491: warning: (near initialization for `ofs_oper')
obexfs.c:492: error: unknown field `init' specified in initializer
obexfs.c:492: warning: excess elements in struct initializer
obexfs.c:492: warning: (near initialization for `ofs_oper')
obexfs.c:493: error: unknown field `destroy' specified in initializer
obexfs.c:494: warning: excess elements in struct initializer
obexfs.c:494: warning: (near initialization for `ofs_oper')
obexfs.c: In function `main':
obexfs.c:620: warning: implicit declaration of function `fuse_main'
obexfs.c: At top level:
obexfs.c:465: error: storage size of `ofs_oper' isn't known
make[2]: *** [obexfs.o] Error 1
make[2]: Leaving directory `/home/astral/downloads/obexfs-0.10/fuse'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/astral/downloads/obexfs-0.10'
make: *** [all] Error 2

sta mi je problem odje? :)

kad pokusam $ obex_test -u dobijem samo ovo:

Code:
astral@shiva:~/downloads/obexfs-0.10$ obex_test -u
Using IrDA transport
OBEX Interactive test client/server.
>

i samo stoji ovako... moram da kucaj 'quit' da izadjem. Ja mislim da mi je verzija openobexa 1.3.

:(){ :|:& };:
Peace, Love, Unity, Respect!
 
Odgovor na temu

Astral Projection

Član broj: 36254
Poruke: 714



+4 Profil

icon Re: ndiswrapper - pitanje?27.09.2006. u 23:13 - pre 213 meseci
ok, falio mi je fuse, instalirao sam obexfs i dobijam sad ovo:

astral@shiva:/media$ sudo obexfs -u 1 nokia
obexfs: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory

:(){ :|:& };:
Peace, Love, Unity, Respect!
 
Odgovor na temu

niceness
Novi Sad

Član broj: 93992
Poruke: 993



+22 Profil

icon Re: ndiswrapper - pitanje?27.09.2006. u 23:23 - pre 213 meseci
Kao prvo nema potrebe da pokreces obexfs kao root (sudo), zato se i zove Filesystem in USErspace ;)

Kod mene ove biblioteke izgledaju ovako:
Code:
ls -l /usr/lib/libfuse*
-rw-r--r-- 1 root root 87786 Sep 25 21:22 /usr/lib/libfuse.a
-rw-r--r-- 1 root root   791 Sep 25 21:22 /usr/lib/libfuse.la
lrwxrwxrwx 1 root root    16 Sep 25 21:22 /usr/lib/libfuse.so -> libfuse.so.2.6.0*
lrwxrwxrwx 1 root root    16 Sep 25 21:22 /usr/lib/libfuse.so.2 -> libfuse.so.2.6.0*
-rwxr-xr-x 1 root root 68968 Sep 25 21:22 /usr/lib/libfuse.so.2.6.0*


Verzija fuse-a je 2.6.0pre2.

Da dodam jos:
Ako obexfs ne moze da nadje dir u kom je libfuse namesti LD_LIBRARY_PATH na odgovarajucu putanju i probaj da ga pokrenes onda.

[Ovu poruku je menjao niceness dana 28.09.2006. u 00:37 GMT+1]
 
Odgovor na temu

Astral Projection

Član broj: 36254
Poruke: 714



+4 Profil

icon Re: ndiswrapper - pitanje?27.09.2006. u 23:34 - pre 213 meseci
ok, opusteno mogu da mountujem fon ali kao root. dok kao obican user pokusam, dobijem:

astral@shiva:/media$ obexfs -u 1 nokia
If USB doesn't work setup permissions in udev or run as superuser.

mogu li kako ovo rijesiti da ne moram svaki put kao root da mountujem?
:(){ :|:& };:
Peace, Love, Unity, Respect!
 
Odgovor na temu

niceness
Novi Sad

Član broj: 93992
Poruke: 993



+22 Profil

icon Re: ndiswrapper - pitanje?27.09.2006. u 23:45 - pre 213 meseci
Pa i meni to ispise svaki put, ali to je samo napomena.
Jesi li siguran da ne mozes da mountujes i prisupas telefonu kao user?

Kao nece onda moras da namestis jedno udev pravilo.
Idi ovde i procitaj 3. korak.
Ako hoces detaljnije uputsvo i objasnjenje: Writing udev rules
 
Odgovor na temu

Astral Projection

Član broj: 36254
Poruke: 714



+4 Profil

icon Re: ndiswrapper - pitanje?28.09.2006. u 00:02 - pre 213 meseci
evo odradio sam sve kao na tom prvom sajtu. dodao u hotplug i udev/permissions.rules i opet nista. dobijem ovu poruku ali nije nista mountovano :|
:(){ :|:& };:
Peace, Love, Unity, Respect!
 
Odgovor na temu

niceness
Novi Sad

Član broj: 93992
Poruke: 993



+22 Profil

icon Re: ndiswrapper - pitanje?28.09.2006. u 00:17 - pre 213 meseci
Znaci u /etc/udev/rules.d/020_permissions.rules (ne mora da se zove ovako) treba da ide sledece:
Code:

BUS=="usb", SYSFS{idVendor}=="0421", SYSFS{idProduct}=="041d", GROUP="users"


naravno sa tvojim VID i PID koje mozes da nadjes sa lsusb.

Mozda nece skoditi da dodas i ovo u taj fajl:
Code:

KERNEL=="fuse", NAME="%k", MODE="0666"


Kada zavrsis restartuj sa udevstart.

Ako bude problema, pogledaj poglavlje 'Testing and debugging' na drugom linku.
 
Odgovor na temu

Astral Projection

Član broj: 36254
Poruke: 714



+4 Profil

icon Re: ndiswrapper - pitanje?28.09.2006. u 11:25 - pre 213 meseci
Code:
BUS=="usb", SYSFS{idVendor}=="0421", SYSFS{idProduct}=="040f", GROUP="astral"
KERNEL=="fuse", NAME="%k", MODE="0666"


to mi stoji u /etc/udev/rules.d/020_permissions.rules (ovu drugu liniju sam sad dodao), i opet dobijam isto:

astral@shiva:/media$ obexfs -u 1 nokia
If USB doesn't work setup permissions in udev or run as superuser.
astral@shiva:/media$ ls -l nokia
total 0

:(){ :|:& };:
Peace, Love, Unity, Respect!
 
Odgovor na temu

fade
Šalingrad

Član broj: 43688
Poruke: 2906
*.vdial.verat.net.



+69 Profil

icon Re: ndiswrapper - pitanje?28.09.2006. u 11:57 - pre 213 meseci
mozda glupo pitanje , ali jesi li probao Kandy koji je namenjen za to ?
Ko zna zna, ko ne zna 6.
 
Odgovor na temu

Astral Projection

Član broj: 36254
Poruke: 714



+4 Profil

icon Re: ndiswrapper - pitanje?28.09.2006. u 12:03 - pre 213 meseci
probao sam kandy, koliko sam vidio on nije za transfer fajlova. Ma ovaj obexfs je super samo jos da provalim kako da mogu da pristupam telefonu kao obican user i to je to :)
:(){ :|:& };:
Peace, Love, Unity, Respect!
 
Odgovor na temu

niceness
Novi Sad

Član broj: 93992
Poruke: 993



+22 Profil

icon Re: ndiswrapper - pitanje?28.09.2006. u 13:37 - pre 213 meseci
Ok... probao sam ovo udev pravilo, iako mi sve radi bez njega.

Bez udev pravila
prvo vidimo koju adresu ima nas mob:
Code:

# lsusb
Bus 003 Device 005: ID 0ea0:2168 Ours Technology, Inc. Transcend JetFlash 2.0 / Astone USB Drive
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 004: ID 0421:0410 Nokia Mobile Phones 6630 Imaging Smartphone
Bus 001 Device 001: ID 0000:0000

'Bus 001 Device 004'. Sta kaze udevtest?:
Code:

$ udevtest /class/usb_device/usbdev1.4
main: looking at device '/class/usb_device/usbdev1.4' from subsystem 'usb_device'
run_program: '/bin/sh -c 'K=usbdev1.4; K=${K#usbdev}; printf bus/usb/%03i/%03i ${K%%.*} ${K#*.}''
run_program: '/bin/sh' (stdout) 'bus/usb/001/004'
run_program: '/bin/sh' returned with status 0
udev_rules_get_name: rule applied, 'usbdev1.4' becomes 'bus/usb/001/004'
create_node: creating device node '/dev/bus/usb/001/004', major = '189', minor = '3', mode = '0644', uid = '0', gid = '0'
main: run: '/sbin/udev_run_devd usb_device'
main: run: 'socket:/org/kernel/udev/monitor'
main: run: 'socket:/org/freedesktop/hal/udev_event'

Kao sto se vidi napravljen je node /dev/bus/usb/001/004 ciji su vlasnik:grupa root:root
Da proverimo:
Code:

$ ls -l /dev/bus/usb/001/004
crw-r--r-- 1 root root 189, 3 Sep 28 13:17 /dev/bus/usb/001/004


Kada dodam ono pravilo i pokrenem udevstart, udevtest kaze:
Code:

$ udevtest /class/usb_device/usbdev1.4
main: looking at device '/class/usb_device/usbdev1.4' from subsystem 'usb_device'
run_program: '/bin/sh -c 'K=usbdev1.4; K=${K#usbdev}; printf bus/usb/%03i/%03i ${K%%.*} ${K#*.}''
run_program: '/bin/sh' (stdout) 'bus/usb/001/004'
run_program: '/bin/sh' returned with status 0
udev_rules_get_name: rule applied, 'usbdev1.4' becomes 'bus/usb/001/004'
create_node: creating device node '/dev/bus/usb/001/004', major = '189', minor = '3', mode = '0644', uid = '0', gid = '100'
main: run: '/sbin/udev_run_devd usb_device'
main: run: 'socket:/org/kernel/udev/monitor'
main: run: 'socket:/org/freedesktop/hal/udev_event'
$
$ ls -l /dev/bus/usb/001/004
crw-r--r-- 1 root users 189, 3 Sep 28 13:17 /dev/bus/usb/001/004

Znaci radi...

Treba primetiti da grupa i others imaju iste dozvole (read) tako da nije ni bitno kojoj grupi pripada /dev/bus/usb/001/004.

Drugo pravilo takodje radi, bez njega ne mogu da koristim fuse:
Code:

$ ls -l /dev/fuse
crw-rw-rw- 1 root root 10, 229 Sep 28 13:53 /dev/fuse

Ako ga onemogucim:
Code:

$ ls -l /dev/fuse
crw-rw---- 1 root root 10, 229 Sep 28 13:53 /dev/fuse

i obexfs :
Code:

$ obexfs -u 1 nokia
If USB doesn't work setup permissions in udev or run as superuser.
fusermount: failed to open /dev/fuse: Permission denied
 
Odgovor na temu

Astral Projection

Član broj: 36254
Poruke: 714



+4 Profil

icon Re: ndiswrapper - pitanje?28.09.2006. u 16:30 - pre 213 meseci
Code:
astral@shiva:~$ lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 003: ID 0421:040f Nokia Mobile Phones 6230 GSM Phone
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 046d:c216 Logitech, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000


kad pokusam udevtest:
Code:
astral@shiva:~$ udevtest /class/usb_device/usbdev4.3
version 056
looking at '/class/usb_device/usbdev4.3'
sysfs_open_class_device_path failed


u startu neki problem :P

Btw, meni uopste nema folder /dev/usb/. Što se tiče fuse-a:
Code:
astral@shiva:~$ ls -l /dev/fuse
crw-rw-rw-  1 root root 10, 229 2006-09-28 14:29 /dev/fuse


linux mi tel prepoznaje kao /dev/ttyACM0. Ima li to veze? Mozda ne treba da trazim udevtest u 'usb_device'?
:(){ :|:& };:
Peace, Love, Unity, Respect!
 
Odgovor na temu

niceness
Novi Sad

Član broj: 93992
Poruke: 993



+22 Profil

icon Re: ndiswrapper - pitanje?28.09.2006. u 17:11 - pre 213 meseci
Ne da mi se sada puno pisati pa cu cititrati sa gentoo wiki.
Citat:

The first thing you need to do is find a directory somewhere in /sys that corresponds to your hardware, and includes a file named "dev", as udevinfo can only work on directories of this type. These directories are all found under either /sys/block or /sys/class - there is no point looking anywhere else! However, udevinfo will follow links through this directory and read info found from other sections of sysfs.


Tako sam ja nasao info za svoj tel.
Code:

$ lsusb
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 006: ID 0421:0410 Nokia Mobile Phones 6630 Imaging Smartphone ## 1.6 dakle
Bus 001 Device 001: ID 0000:0000

Prvo sam pogledao u /sys/block
Code:

$ /sys/block/
./   fd0/  hdc/    loop1/  loop3/  loop5/  loop7/  ram1/   ram11/  ram13/  ram15/  ram3/  ram5/  ram7/  ram9/
../  hda/  loop0/  loop2/  loop4/  loop6/  ram0/   ram10/  ram12/  ram14/  ram2/   ram4/  ram6/  ram8/  sda/

ali tu naravno nema ono sto mi treba.

Sledece na redu: /sys/class
Code:

$ ls /sys/class/
./   firmware/  hwmon/        input/  misc/  pci_bus/      scsi_disk/     scsi_host/  tty/  usb_device/ vc/
../  graphics/  i2c-adapter/  mem/    net/   scsi_device/  scsi_generic/  sound/      usb/  usb_host/
$
$ ls /sys/class/usb_device/
./  ../  usbdev1.1/  usbdev1.6/  usbdev2.1/  usbdev3.1/

Onda sam pokrenuo udevinfo:
Code:

$ udevinfo -a -p /sys/class/usb_device/usbdev1.6/

udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

  looking at device '/class/usb_device/usbdev1.6':
    KERNEL=="usbdev1.6"
    SUBSYSTEM=="usb_device"
    SYSFS{dev}=="189:5"

  looking at device '/devices/pci0000:00/0000:00:02.0/usb1/1-2':
    ID=="1-2"
    BUS=="usb"
    DRIVER=="usb"
    SYSFS{configuration}=="Bulk transfer method configuration"
    SYSFS{product}=="Nokia 6630"
    SYSFS{manufacturer}=="Nokia"
    SYSFS{maxchild}=="0"
    SYSFS{version}==" 2.00"
    SYSFS{devnum}=="6"
    SYSFS{speed}=="12"
    SYSFS{bMaxPacketSize0}=="64"
    SYSFS{bNumConfigurations}=="1"
    SYSFS{bDeviceProtocol}=="00"
    SYSFS{bDeviceSubClass}=="00"
    SYSFS{bDeviceClass}=="02"
    SYSFS{bcdDevice}=="0000"
    SYSFS{idProduct}=="0410"
    SYSFS{idVendor}=="0421"
    SYSFS{bMaxPower}=="100mA"
    SYSFS{bmAttributes}=="80"
    SYSFS{bConfigurationValue}=="1"
    SYSFS{bNumInterfaces}=="13"

  looking at device '/devices/pci0000:00/0000:00:02.0/usb1':
    ID=="usb1"
    BUS=="usb"
...
..
.
# ostalo nije bitno ...


Mozda ce kod tebe biti drugacije (razlicita verzija udev-a?), nisam bas neki strucnjak :(
 
Odgovor na temu

Astral Projection

Član broj: 36254
Poruke: 714



+4 Profil

icon Re: ndiswrapper - pitanje?28.09.2006. u 19:25 - pre 213 meseci
sto se tice USB-a jedino mi ovo ima:
Code:
astral@shiva:~$ udevinfo -a -p /sys/class/usb_host/usb
usb1  usb2  usb3  usb4  usb5


probao sam usb4/device (posto to jedino ima) i nista... Nasao sam tel kao tty:

Code:
astral@shiva:~$ udevinfo -a -p /sys/class/tty/ttyACM0/

udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

device '/sys/class/tty/ttyACM0' has major:minor 166:0
  looking at class device '/sys/class/tty/ttyACM0':
    SUBSYSTEM="tty"
    SYSFS{dev}="166:0"

follow the class device's "device"
  looking at the device chain at '/sys/devices/pci0000:00/0000:00:1d.3/usb4/4-1/4-1:1.1':
    BUS="usb"
    ID="4-1:1.1"
    DRIVER="cdc_acm"
    SYSFS{bAlternateSetting}=" 0"
    SYSFS{bInterfaceClass}="02"
    SYSFS{bInterfaceNumber}="01"
    SYSFS{bInterfaceProtocol}="01"
    SYSFS{bInterfaceSubClass}="02"
    SYSFS{bNumEndpoints}="01"
    SYSFS{detach_state}="0"
    SYSFS{iInterface}="00"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:1d.3/usb4/4-1':
    BUS="usb"
    ID="4-1"
    DRIVER="usb"
    SYSFS{bConfigurationValue}="1"
    SYSFS{bDeviceClass}="02"
    SYSFS{bDeviceProtocol}="00"
    SYSFS{bDeviceSubClass}="00"
    SYSFS{bMaxPower}="  8mA"
    SYSFS{bNumConfigurations}="1"
    SYSFS{bNumInterfaces}="11"
    SYSFS{bcdDevice}="0315"
    SYSFS{bmAttributes}="e0"
    SYSFS{detach_state}="0"
    SYSFS{devnum}="2"
    SYSFS{idProduct}="040f"
    SYSFS{idVendor}="0421"
    SYSFS{manufacturer}="Nokia Corporation"
    SYSFS{maxchild}="0"
    SYSFS{product}="Nokia 6230"
    SYSFS{speed}="12"
    SYSFS{version}=" 1.10"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:1d.3/usb4':
    BUS="usb"
    ID="usb4"
    DRIVER="usb"
    SYSFS{bConfigurationValue}="1"
    SYSFS{bDeviceClass}="09"
    SYSFS{bDeviceProtocol}="00"
    SYSFS{bDeviceSubClass}="00"
    SYSFS{bMaxPower}="  0mA"
    SYSFS{bNumConfigurations}="1"
    SYSFS{bNumInterfaces}=" 1"
    SYSFS{bcdDevice}="0206"
    SYSFS{bmAttributes}="c0"
    SYSFS{detach_state}="0"
    SYSFS{devnum}="1"
    SYSFS{idProduct}="0000"
    SYSFS{idVendor}="0000"
    SYSFS{manufacturer}="Linux 2.6.8-2-386 uhci_hcd"
    SYSFS{maxchild}="2"
    SYSFS{product}="Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4"
    SYSFS{serial}="0000:00:1d.3"
    SYSFS{speed}="12"
    SYSFS{version}=" 1.10"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:1d.3':
    BUS="pci"
    ID="0000:00:1d.3"
    DRIVER="uhci_hcd"
    SYSFS{class}="0x0c0300"
    SYSFS{detach_state}="0"
    SYSFS{device}="0x24de"
    SYSFS{irq}="169"
    SYSFS{subsystem_device}="0x24d2"
    SYSFS{subsystem_vendor}="0x1458"
    SYSFS{vendor}="0x8086"

  looking at the device chain at '/sys/devices/pci0000:00':
    BUS=""
    ID="pci0000:00"
    DRIVER="unknown"
    SYSFS{detach_state}="0"


onda probam udevtest:
Code:
astral@shiva:~$ udevtest /sys/class/tty/ttyACM0/
version 056
looking at '/class/tty/ttyACM0/'
opened class_dev->name='ttyACM0'
creating device node '/dev/ttyACM0', major = '166', minor = '0', mode = '0660',uid = '0', gid = '1000'


i evo jos ovo, ako koga interesuje:
Code:
astral@shiva:~$ ls -l /dev/ttyACM0
crw-rw-rw-  1 root dialout 166, 0 2006-09-28 20:05 /dev/ttyACM0



:(){ :|:& };:
Peace, Love, Unity, Respect!
 
Odgovor na temu

niceness
Novi Sad

Član broj: 93992
Poruke: 993



+22 Profil

icon Re: ndiswrapper - pitanje?28.09.2006. u 20:48 - pre 213 meseci
/dev/ttyACM0 je nastao zbog cdc_acm modula, ali to nije bitno sada (mislim da je potreban ako hoces da koristis telefon kao modem)
Meni je cudno kako si ti pristupio telefonu ako on nije nigde prepoznat?!?
Da li jos uvek mozes da ga mountujes kao root sa obexfs?

E, da ... ako moze daj output od /proc/bus/usb/devices (iako nece puno pomoci)

Mozda bi mogao probati nabaviti noviji kernel i udev?
 
Odgovor na temu

Astral Projection

Član broj: 36254
Poruke: 714



+4 Profil

icon Re: ndiswrapper - pitanje?28.09.2006. u 21:25 - pre 213 meseci
Code:
astral@shiva:~$ cat /proc/bus/usb/devices

T:  Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 8
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-2-386 ehci_hcd
S:  Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller
S:  SerialNumber=0000:00:1d.7
C:* #Ifs= 1 Cfg#= 1 Atr=e0 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=   2 Ivl=256ms

T:  Bus=04 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.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-2-386 uhci_hcd
S:  Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4
S:  SerialNumber=0000:00:1d.3
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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=   2 Ivl=255ms

T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  7 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0421 ProdID=040f Rev= 3.15
S:  Manufacturer=Nokia Corporation
S:  Product=Nokia 6230
C:* #Ifs=11 Cfg#= 1 Atr=e0 MxPwr=  8mA
I:  If#= 0 Alt= 0 #EPs= 0 Cls=02(comm.) Sub=08 Prot=01 Driver=(none)
I:  If#= 1 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=1ms
I:  If#= 2 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 3 Alt= 0 #EPs= 0 Cls=02(comm.) Sub=0b Prot=00 Driver=(none)
I:  If#= 4 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
I:  If#= 4 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 5 Alt= 0 #EPs= 0 Cls=02(comm.) Sub=0b Prot=00 Driver=(none)
I:  If#= 6 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
I:  If#= 6 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E:  Ad=84(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 7 Alt= 0 #EPs= 0 Cls=02(comm.) Sub=0b Prot=00 Driver=(none)
I:  If#= 8 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
I:  If#= 8 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E:  Ad=85(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 9 Alt= 0 #EPs= 0 Cls=02(comm.) Sub=fe Prot=00 Driver=(none)
I:  If#=10 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
I:  If#=10 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E:  Ad=86(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=06(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

T:  Bus=03 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.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-2-386 uhci_hcd
S:  Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3
S:  SerialNumber=0000:00:1d.2
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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=   2 Ivl=255ms

T:  Bus=02 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.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-2-386 uhci_hcd
S:  Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #2
S:  SerialNumber=0000:00:1d.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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=   2 Ivl=255ms

T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  3 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=046d ProdID=c216 Rev= 3.00
S:  Manufacturer=Logitech
S:  Product=Logitech Dual Action
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 30mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
E:  Ad=01(O) Atr=03(Int.) MxPS=   8 Ivl=10ms

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.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-2-386 uhci_hcd
S:  Product=Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #1
S:  SerialNumber=0000:00:1d.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 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=   2 Ivl=255ms


Sve mi normalno radi kad sam root, i telefonu sam opusteno pristupio pomocu onoga switcha -u (usb).
:(){ :|:& };:
Peace, Love, Unity, Respect!
 
Odgovor na temu

[es] :: Linux :: ndiswrapper - pitanje?

Strane: 1 2

[ Pregleda: 4026 | Odgovora: 20 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.