Seite 1 von 5 12345 LetzteLetzte
Ergebnis 1 bis 20 von 99

Thema: USB-Fernanschluss für Linux-CLients: USB/IP Projekt ?

  1. #1
    IPPF-Fünfhundert-Club Avatar von Whoopie
    Registriert seit
    19.10.2004
    Beiträge
    592

    USB-Fernanschluss für Linux-CLients: USB/IP Projekt ?

    Hi,

    bin gestern auf folgendes Projekt gestossen: USB/IP Projekt (http://usbip.sourceforge.net/)

    Zitat: "USB/IP Project aims to develop a general USB device sharing system over IP network. To share USB devices between computers with their full functionality, USB/IP encapsulates "USB I/O messages" into IP packets and transmits them between computers."


    Das wäre doch eine tolle Atternative für AVM's USB-Fernanschluss, damit auch Linux-Clients die angeschlossenen USB-Geräte lokal nutzen können.

    Folgende Anforderungen hat USB/IP:

    1. sysfsutils >= 2.0.0 - sysfsutils library
    2. libwrap0-dev - tcp wrapper library
    3. usbip Kernel-Module (habe nur 2.6.19 Module gesehen)
    4. gcc >= 4.0
    5. libglib2.0-dev >= 2.6.0
    6. libtool, automake-1.9, autoconf >= 2.5.0, pkg-config


    Meine Frage nun: ist es überhaupt möglich, bei diesen Anforderungen USB/IP für die Fritzbox zu kompilieren?

    Beste Grüße,
    Whoopie
    Router: AVM FRITZ!Box Fon WLAN 7390 mit FRITZ!OS 84.05.55-25188 und freetz-devel
    VoIP: Telekom, sipgate
    Anbindung: Telekom Call&Surf Comfort IP (DSL 16000 Annex J), Downstream: 12,6 MBit/s, Upstream: 2,3 MBit/s

  2. #2
    IPPF-Fan Avatar von Ohrenschmalz
    Registriert seit
    19.04.2006
    Beiträge
    393
    DAS tät mich auch brennend interessieren!

    Begeistert
    Chris
    Anschluss: 1&1 DSL 6000 komplett
    Hardware:Fritz!Box Phone WLAN 7240 73.05.50, Bluetooth, 1 GB USB-Stick, Initio HS06THB 1.8" 60 GB USB-HDD, Ricoh 1210N USB
    DSL-Modem an LAN1: Sphairon AR860 mit Firmware RouterTech_3.6.0D_20080723_2.60_AR7RD
    Telefone: FON1 Siemens Gigaset A140 über DECT, FON 2 Dialon F10, Fax Intern über Fritz!Box
    Anrufbeantworter: intern über Fritz!Box
    Fritz!Box Software: jAnrufmonitor 5.0.36
    Kaffeemaschine: Philips Senseo

  3. #3
    IPPF-Einsteiger
    Registriert seit
    18.06.2006
    Beiträge
    2
    hoch schieb ^^
    geht den sowas uf der fritzbox?

  4. #4
    Semi-Moderator Avatar von kriegaex
    Registriert seit
    07.11.2006
    Ort
    Großraum Nürnberg
    Beiträge
    2.927
    Keine Ahnung, ist nicht gerade mein Hauptinteresse. Aber toolchain-mäßig sieht das gut aus, glib 1.2 und 2 haben wir inzwischen auch in der Entwicklerversion (ersteres für MC-4.6.1, letzteres für einen Benutzer, der damit IRSSI privat gebaut hat). Was 1-3 betrifft, weiß ich nicht, ich habe aber auch nicht geforscht. Die 7270 hat übrigens Kernel 2.6.19.2, die Fritz!Media auch, evtl. ziehen die anderen Boxen irgendwann nach. Aber auf ein Open-Source-Paket zur 7270-Firmware warten wir bislang vergeblich, wir mißbrauchen das von der Fritz!Media, damit geht einiges.
    Alexander Kriegisch

    Antworten dauern momentan, ich bin kaum aktiv wegen beruflicher Inanspruchnahme.

    Fritz!Box Fon WLAN 7270 v1, Firmware 54.04.88, freetz-1.2-stable , Kernel 2.6.19.2 (Original AVM), Busybox 1.18.5, USB-Root
    Im Schrank: Fritz!Box Fon WLAN 7170, Speedport W701V, Fritz!Box Fon WLAN 7113
    1&1 DSL 16.000 inkl. VoIP

    Spenden für Freetz
    Wer guten Support will, braucht eine aussagekräftige Signatur! So geht's...
    Bitte keine privaten Support-Anfragen, frühestens nach 36 h ohne Antwort eine Hinweis-Nachricht.


  5. #5
    IPPF-Einsteiger
    Registriert seit
    18.06.2006
    Beiträge
    2
    habe die 7270 gestern bekommen.
    diese hat bereits eine "USB-Fernanschluss" funktion integriert Firmware-Version 54.04.44.

    Dieser läst sich aber nur unter 32-bit Windowx XP und Vista 32-bit nutzen.
    Ich formatieren meinen Notebook instaliere eine 32-Bit Vista, mal sehen was dieses usb-share kann.
    bei dedarf kann ich erfahrungen posten.

    mfg
    masa

  6. #6
    Semi-Moderator Avatar von kriegaex
    Registriert seit
    07.11.2006
    Ort
    Großraum Nürnberg
    Beiträge
    2.927
    Die Funktion gibt es für die 7170 auch, das ist nichts Neues. Aber das Thema ist hier ja gerade Linux, nicht Windows. Also bitte hier nichts weiter dazu schreiben, was keine Relevanz für Linux hat.
    Alexander Kriegisch

    Antworten dauern momentan, ich bin kaum aktiv wegen beruflicher Inanspruchnahme.

    Fritz!Box Fon WLAN 7270 v1, Firmware 54.04.88, freetz-1.2-stable , Kernel 2.6.19.2 (Original AVM), Busybox 1.18.5, USB-Root
    Im Schrank: Fritz!Box Fon WLAN 7170, Speedport W701V, Fritz!Box Fon WLAN 7113
    1&1 DSL 16.000 inkl. VoIP

    Spenden für Freetz
    Wer guten Support will, braucht eine aussagekräftige Signatur! So geht's...
    Bitte keine privaten Support-Anfragen, frühestens nach 36 h ohne Antwort eine Hinweis-Nachricht.


  7. #7
    Gesperrt Avatar von heini66
    Registriert seit
    12.03.2005
    Ort
    irgendwo im wald im kreuz von hh und lg
    Beiträge
    2.163
    da mich das thema interessiert, hab ich mich mir mal die svn version von usbip gezogen und mich versucht.
    Code:
    ~/ds-pre16/source/usbip/linux/trunk/src$ ./configure --build=i386-linux-gnu --target=mipsel-linux --host=mipsel-linux CC="mipsel-linux-gcc" CFLAGS="-Os -pipe -march=4kc -Wa,--trap" 
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for mipsel-linux-strip... mipsel-linux-strip
    checking build system type... i386-pc-linux-gnu
    checking host system type... mipsel-unknown-linux-gnu
    checking for style of include used by make... GNU
    checking for mipsel-linux-gcc... mipsel-linux-gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... yes
    checking for suffix of executables... 
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether mipsel-linux-gcc accepts -g... yes
    checking for mipsel-linux-gcc option to accept ISO C89... none needed
    checking dependency style of mipsel-linux-gcc... gcc3
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ld used by mipsel-linux-gcc... /home/xtc/ds-pre16/toolchain/build/gcc-4.2.1-uClibc-0.9.28/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld
    checking if the linker (/home/xtc/ds-pre16/toolchain/build/gcc-4.2.1-uClibc-0.9.28/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld) is GNU ld... yes
    checking for /home/xtc/ds-pre16/toolchain/build/gcc-4.2.1-uClibc-0.9.28/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /home/xtc/ds-pre16/toolchain/target/bin/mipsel-linux-nm -B
    checking whether ln -s works... yes
    checking how to recognize dependent libraries... pass_all
    checking how to run the C preprocessor... mipsel-linux-gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for mipsel-linux-g++... mipsel-linux-g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether mipsel-linux-g++ accepts -g... yes
    checking dependency style of mipsel-linux-g++... gcc3
    checking how to run the C++ preprocessor... mipsel-linux-g++ -E
    checking for mipsel-linux-g77... no
    checking for mipsel-linux-xlf... no
    checking for mipsel-linux-f77... no
    checking for mipsel-linux-frt... no
    checking for mipsel-linux-pgf77... no
    checking for mipsel-linux-cf77... no
    checking for mipsel-linux-fort77... no
    checking for mipsel-linux-fl32... no
    checking for mipsel-linux-af77... no
    checking for mipsel-linux-xlf90... no
    checking for mipsel-linux-f90... no
    checking for mipsel-linux-pgf90... no
    checking for mipsel-linux-pghpf... no
    checking for mipsel-linux-epcf90... no
    checking for mipsel-linux-gfortran... no
    checking for mipsel-linux-g95... no
    checking for mipsel-linux-xlf95... no
    checking for mipsel-linux-f95... no
    checking for mipsel-linux-fort... no
    checking for mipsel-linux-ifort... no
    checking for mipsel-linux-ifc... no
    checking for mipsel-linux-efc... no
    checking for mipsel-linux-pgf95... no
    checking for mipsel-linux-lf95... no
    checking for mipsel-linux-ftn... no
    checking for g77... no
    checking for xlf... no
    checking for f77... no
    checking for frt... no
    checking for pgf77... no
    checking for cf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for xlf90... no
    checking for f90... no
    checking for pgf90... no
    checking for pghpf... no
    checking for epcf90... no
    checking for gfortran... no
    checking for g95... no
    checking for xlf95... no
    checking for f95... no
    checking for fort... no
    checking for ifort... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for ftn... no
    checking whether we are using the GNU Fortran 77 compiler... no
    checking whether  accepts -g... no
    checking the maximum length of command line arguments... 98304
    checking command to parse /home/xtc/ds-pre16/toolchain/target/bin/mipsel-linux-nm -B output from mipsel-linux-gcc object... ok
    checking for objdir... .libs
    checking for mipsel-linux-ar... mipsel-linux-ar
    checking for mipsel-linux-ranlib... mipsel-linux-ranlib
    checking for mipsel-linux-strip... (cached) mipsel-linux-strip
    checking if mipsel-linux-gcc supports -fno-rtti -fno-exceptions... no
    checking for mipsel-linux-gcc option to produce PIC... -fPIC
    checking if mipsel-linux-gcc PIC flag -fPIC works... yes
    checking if mipsel-linux-gcc static flag -static works... yes
    checking if mipsel-linux-gcc supports -c -o file.o... yes
    checking whether the mipsel-linux-gcc linker (/home/xtc/ds-pre16/toolchain/build/gcc-4.2.1-uClibc-0.9.28/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by mipsel-linux-g++... /home/xtc/ds-pre16/toolchain/build/gcc-4.2.1-uClibc-0.9.28/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld
    checking if the linker (/home/xtc/ds-pre16/toolchain/build/gcc-4.2.1-uClibc-0.9.28/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld) is GNU ld... yes
    checking whether the mipsel-linux-g++ linker (/home/xtc/ds-pre16/toolchain/build/gcc-4.2.1-uClibc-0.9.28/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld) supports shared libraries... yes
    checking for mipsel-linux-g++ option to produce PIC... -fPIC
    checking if mipsel-linux-g++ PIC flag -fPIC works... yes
    checking if mipsel-linux-g++ static flag -static works... yes
    checking if mipsel-linux-g++ supports -c -o file.o... yes
    checking whether the mipsel-linux-g++ linker (/home/xtc/ds-pre16/toolchain/build/gcc-4.2.1-uClibc-0.9.28/mipsel-linux-uclibc/mipsel-linux-uclibc/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    appending configuration tag "F77" to libtool
    checking for mipsel-linux-gcc... (cached) mipsel-linux-gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether mipsel-linux-gcc accepts -g... (cached) yes
    checking for mipsel-linux-gcc option to accept ISO C89... (cached) none needed
    checking dependency style of mipsel-linux-gcc... (cached) gcc3
    checking for a BSD-compatible install... /usr/bin/install -c
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking for ANSI C header files... (cached) yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking netdb.h usability... yes
    checking netdb.h presence... yes
    checking for netdb.h... yes
    checking for stdint.h... (cached) yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for strings.h... (cached) yes
    checking sys/socket.h usability... yes
    checking sys/socket.h presence... yes
    checking for sys/socket.h... yes
    checking syslog.h usability... yes
    checking syslog.h presence... yes
    checking for syslog.h... yes
    checking for unistd.h... (cached) yes
    checking for an ANSI C-conforming const... yes
    checking for size_t... yes
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible malloc... no
    checking for stdlib.h... (cached) yes
    checking for GNU libc compatible realloc... no
    checking for bzero... yes
    checking for memset... yes
    checking for strchr... yes
    checking for strerror... yes
    checking for strstr... yes
    checking for strtoul... yes
    checking sysfs/libsysfs.h usability... no
    checking sysfs/libsysfs.h presence... no
    checking for sysfs/libsysfs.h... no
    configure: error: Missing /usr/include/sysfs/libsysfs.h
    xtc@schlepp-tux:~/ds-pre16/source/usbip/linux/trunk/src$
    aber das mit der libsysfs bekomm ich nicht gelöst.
    jemand anderes ne idee?

  8. #8
    IPPF-Fünfhundert-Club Avatar von knox
    Registriert seit
    20.05.2006
    Beiträge
    577
    Zitat Zitat von heini66 Beitrag anzeigen
    aber das mit der libsysfs bekomm ich nicht gelöst.
    Wo liegt das Problem? Kann man die Libs nicht bauen oder wie? Sysfs
    Freiheit statt Angst - Stoppt den Überwachungswahn! - 11.10. Berlin Alexanderplatz, ab 14:00 Uhr

  9. #9
    Gesperrt Avatar von heini66
    Registriert seit
    12.03.2005
    Ort
    irgendwo im wald im kreuz von hh und lg
    Beiträge
    2.163
    sysfsutils bekomm ich ja auch noch hin.
    aber usbip beim compilen darauf zu verweisen um den configure fehler wegzubekommen, daran brech ich mir mit meinem halbwissen derzeit die finger.

  10. #10
    IPPF-Urgestein
    Registriert seit
    22.04.2007
    Beiträge
    10.995
    Für /usr/include/sysfs/libsysfs.h könntest Du das sysfsutlis Paket für Dein Host-System installieren, vorzugsweise in der gleichen Version.

    Ansonsten kannst Du versuchen, die Datei in toolchain/build/gcc-4.2.1-uClibc-0.9.29/mipsel-linux-uclibc/usr/include/sysfs/libsysfs.h zu installieren.

    Oder schau Dir mal die anderen Library Makefiles an, wo die ihre Header und Libraries installieren.

  11. #11
    Gesperrt Avatar von heini66
    Registriert seit
    12.03.2005
    Ort
    irgendwo im wald im kreuz von hh und lg
    Beiträge
    2.163
    hab die *.h an die von dir angewiesene stelle kopiert. meckert wieder.

    da mit den Makefile's der anderen lib's werd ich mir heute abend mal zu gemüte führen.
    Geändert von wichard (26.01.2008 um 11:21 Uhr) Grund: Fullquote des Beitrags darüber entsorgt

  12. #12
    IPPF-Fünfhundert-Club Avatar von Whoopie
    Registriert seit
    19.10.2004
    Beiträge
    592
    Hi,

    EDIT: Paket ist ein paar Posts weiter.

    anbei mal mein Paket. Hab das Quelltext-Paket auch drin. Hab's mit der Versionsnummer 0.1.6 versehen, ist aber die aktuelle SVN-Version.

    Die Binaries werden erfolgreich kompiliert, aber die Kernel-Module halt nicht.

    Hier die Fehler:
    Code:
      MODPOST
    *** Warning: "kzalloc" [/home/bofh/ds-mod-trunk/source/usbip-0.1.6/drivers/2.6.21/usbip_common_mod.ko] undefined!
    *** Warning: "usb_driver_set_configuration" [/home/bofh/ds-mod-trunk/source/usbip-0.1.6/drivers/2.6.21/usbip.ko] undefined!
    *** Warning: "usb_endpoint_xfer_int" [/home/bofh/ds-mod-trunk/source/usbip-0.1.6/drivers/2.6.21/usbip.ko] undefined!
    *** Warning: "usb_endpoint_xfer_isoc" [/home/bofh/ds-mod-trunk/source/usbip-0.1.6/drivers/2.6.21/usbip.ko] undefined!
    *** Warning: "usb_endpoint_xfer_control" [/home/bofh/ds-mod-trunk/source/usbip-0.1.6/drivers/2.6.21/usbip.ko] undefined!
    *** Warning: "usb_endpoint_xfer_bulk" [/home/bofh/ds-mod-trunk/source/usbip-0.1.6/drivers/2.6.21/usbip.ko] undefined!
    *** Warning: "kzalloc" [/home/bofh/ds-mod-trunk/source/usbip-0.1.6/drivers/2.6.21/usbip.ko] undefined!
    Beste Grüße,
    Whoopie
    Geändert von Whoopie (25.01.2008 um 09:52 Uhr)
    Router: AVM FRITZ!Box Fon WLAN 7390 mit FRITZ!OS 84.05.55-25188 und freetz-devel
    VoIP: Telekom, sipgate
    Anbindung: Telekom Call&Surf Comfort IP (DSL 16000 Annex J), Downstream: 12,6 MBit/s, Upstream: 2,3 MBit/s

  13. #13
    Gesperrt Avatar von heini66
    Registriert seit
    12.03.2005
    Ort
    irgendwo im wald im kreuz von hh und lg
    Beiträge
    2.163
    @whoopie:
    *thumbsup*
    Code:
      CC [M]  /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/stub_dev.o
    /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/stub_dev.c:55: warning: missing initializer
    /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/stub_dev.c:55: warning: (near initialization for `stub_table[1].match_flags')
      CC [M]  /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/stub_main.o
      CC [M]  /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/stub_rx.o
    /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/stub_rx.c: In function `get_pipe':
    /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/stub_rx.c:314: warning: implicit declaration of function `usb_endpoint_xfer_control'
      CC [M]  /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/stub_tx.o
      CC [M]  /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/usbip_common.o
      CC [M]  /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/usbip_event.o
      LD [M]  /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/usbip_common_mod.o
      LD [M]  /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/usbip.o
      Building modules, stage 2.
      MODPOST 2 modules
    WARNING: "usb_endpoint_xfer_control" [/home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/usbip.ko] undefined!
      CC      /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/usbip.mod.o
      LD [M]  /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/usbip.ko
      CC      /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/usbip_common_mod.mod.o
      LD [M]  /home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21/usbip_common_mod.ko
    make[2]: Verlasse Verzeichnis '/home/xtc/ds-pre16/source/ref-8mb_26-7270/kernel/kernel_8mb_26_build/kernel/linux-2.6.19.2'
    make[1]: Verlasse Verzeichnis '/home/xtc/ds-pre16/source/usbip-0.1.6/drivers/2.6.21'
    mkdir -p kernel/modules-8mb_26-7270/lib/modules/2.6.19.2-ur8/kernel/drivers/usb/usbip/
    cp source/usbip-0.1.6/drivers/2.6.21/usbip.ko kernel/modules-8mb_26-7270/lib/modules/2.6.19.2-ur8/kernel/drivers/usb/usbip/usbip.ko
    mkdir -p kernel/modules-8mb_26-7270/lib/modules/2.6.19.2-ur8/kernel/drivers/usb/usbip/
    cp source/usbip-0.1.6/drivers/2.6.21/usbip_common_mod.ko kernel/modules-8mb_26-7270/lib/modules/2.6.19.2-ur8/kernel/drivers/usb/usbip/usbip_common_mod.ko
    STEP 1: UNPACK
    
    ***** snipp *****
      usbip-0.1.6
    invoking custom script
    done.
    
    STEP 3: PACK
      Checking for left over Subversion directories
    squashfs blocksize
      root filesystem: 65536
    packing var.tar
    creating filesystem image
    merging kernel image
      kernel image size: 7348736 (max: 7798784)
    packing 7270_04.50-ds26-pre16-1685M.de_20080124-183543.image
    done.
    
    ***** snip *****


    das sieht doch schon mal recht vielversprechend aus.
    weiteres folgt...

    (edit)
    Code:
    insmod usbip_common_mod.ko   
    /var/tmp # insmod usbip.ko            
    usbip: Unknown symbol usb_endpoint_xfer_control
    insmod: cannot insert 'usbip.ko': Success
    /var/tmp # lsmod
    Module                  Size  Used by    Tainted: P  
    usbip_common_mod       16471  0 
    wlan_scan_ap           10891  1 
    wlan_acl                4478  1 
    wlan_wep                6619  2 
    wlan_tkip              13982  0 
    wlan_ccmp               9311  0 
    wlan_xauth              1182  0 
    ath_pci               152523  0 
    ath_rate_atheros       29461  1 ath_pci
    wlan                  238136  9 wlan_scan_ap,wlan_acl,wlan_wep,wlan_tkip,wlan_ccmp,wlan_xauth,ath_pci,ath_rate_atheros
    ath_hal               203844  3 ath_pci,ath_rate_atheros
    ath_dfs                24350  1 ath_pci
    avm_ath_extensions     26267  3 ath_pci,wlan,ath_hal
    kdsldmod              637167  0 
    musb_hdrc              35065  0 
    usbcore               126028  2 musb_hdrc
    dect_io                20844  2 
    avm_dect              551024  1 dect_io
    capi_codec             93525  0 
    isdn_fbox_fon5        756569  0 
    pcmlink               221802  3 avm_dect,capi_codec,isdn_fbox_fon5
    dsl_ur8               159829  0 
    jffs2                 115485  1 
    Piglet_noemif          18862  0

    da passt noch was nicht...
    Geändert von heini66 (24.01.2008 um 19:05 Uhr)

  14. #14
    IPPF-Fünfhundert-Club Avatar von Whoopie
    Registriert seit
    19.10.2004
    Beiträge
    592
    Hi,

    bin ein paar Schritte weiter.

    "kzalloc" hab ich durch eine Kombination aus "kmalloc" und "memset" ersetzt. Ausserdem hab ich ein paar Funktioniert zurückportiert, die noch nicht in 2.6.13 waren.

    ABER:

    Code:
    *** Warning: "usb_set_configuration" [/home/bofh/ds-mod-trunk/source/usbip-0.1.6/drivers/2.6.21/usbip.ko] undefined!
    Und diese Funktion gibt es in 2.6.13, und zwar in "source/ref-8mb_26-04.49/kernel/kernel_8mb_26_build/kernel/linux-2.6.13.1/drivers/usb/core/message.c". Aber sie wird halt nicht mittels EXPORT_SYMBOL_GPL exportiert.
    Und da hängen so viele weitere Funktionen dran, dass es unmöglich ist, die alle zurückzuporten.

    @RalfFriedl: Kann man zusätzliche Funktionen dem AVM-Kernel hinzufügen, ohne dass es Probleme mit den anderen Treibern gibt?

    @heini66: Könntest Du das angehängte Paket nochmal testen? Da ist auch ein Fix für Dein Problem dabei. Danke!

    Beste Grüße,
    Whoopie
    Geändert von Whoopie (26.01.2008 um 17:34 Uhr)
    Router: AVM FRITZ!Box Fon WLAN 7390 mit FRITZ!OS 84.05.55-25188 und freetz-devel
    VoIP: Telekom, sipgate
    Anbindung: Telekom Call&Surf Comfort IP (DSL 16000 Annex J), Downstream: 12,6 MBit/s, Upstream: 2,3 MBit/s

  15. #15
    IPPF-Fünfhundert-Club Avatar von knox
    Registriert seit
    20.05.2006
    Beiträge
    577
    Zitat Zitat von RalfFriedl Beitrag anzeigen
    Für /usr/include/sysfs/libsysfs.h könntest Du das sysfsutlis Paket für Dein Host-System installieren, vorzugsweise in der gleichen Version.
    Also das ist mit Sicherheit der falsche Weg. Schließlich will man ja für eine bestimmte Zielplattform Crosscompilen und dann müssen die Libs ebenfalls für die Zielplattform zur Verfügung stehen!

    Heini66 hat(te) also das Problem, dem configure-Script von usbip zu erklären, wo die libsysfs zu finden sei.
    Freiheit statt Angst - Stoppt den Überwachungswahn! - 11.10. Berlin Alexanderplatz, ab 14:00 Uhr

  16. #16
    Gesperrt Avatar von heini66
    Registriert seit
    12.03.2005
    Ort
    irgendwo im wald im kreuz von hh und lg
    Beiträge
    2.163
    @whoopie:
    bingo!
    Code:
    /var/tmp # insmod usbip_common_mod.ko 
    /var/tmp # insmod usbip.ko
    /var/tmp # lsmod
    Module                  Size  Used by    Tainted: P  
    usbip                  17833  0 
    usbip_common_mod       16471  1 usbip
    wlan_scan_ap           10891  1 
    wlan_acl                4478  1 
    wlan_wep                6619  2 
    wlan_tkip              13982  0 
    wlan_ccmp               9311  0 
    wlan_xauth              1182  0 
    ath_pci               152523  0 
    ath_rate_atheros       29461  1 ath_pci
    wlan                  238136  9 wlan_scan_ap,wlan_acl,wlan_wep,wlan_tkip,wlan_ccmp,wlan_xauth,ath_pci,ath_rate_atheros
    ath_hal               203844  3 ath_pci,ath_rate_atheros
    ath_dfs                24350  1 ath_pci
    avm_ath_extensions     26267  3 ath_pci,wlan,ath_hal
    kdsldmod              637167  0 
    musb_hdrc              35065  0 
    usbcore               126028  3 usbip,musb_hdrc
    dect_io                20844  2 
    avm_dect              551024  1 dect_io
    capi_codec             93525  0 
    isdn_fbox_fon5        756569  0 
    pcmlink               221802  3 avm_dect,capi_codec,isdn_fbox_fon5
    dsl_ur8               159829  0 
    jffs2                 115485  1 
    Piglet_noemif          18862  0
    nu mal sehen, wie man das zeugs bedient...

    (edit)
    Code:
    usbipd 
    usbip err: stub_server.c: 433 (do_standalone_mode) open usb.ids
    Bind usbip.ko to a usb device to be exportable!
    listen at [0.0.0.0]:3240
    usbipd start (usbip 0.1.6 ($Id: stub_server.c 42 2007-09-07 12:07:51Z hirofuchi $))
    bind_driver --list
    List USB devices
    /var/tmp #
    make/libs/Config.in
    braucht noch nen eintrag für die libsysfs.
    was unter root/lib oder root/usr/lib liegt, geht nicht ins image!

    nen device zum exportieren findet er leider nicht...
    Geändert von heini66 (25.01.2008 um 15:59 Uhr)

  17. #17
    Semi-Moderator Avatar von olistudent
    Registriert seit
    19.10.2004
    Ort
    Kaiserslautern
    Beiträge
    14.295
    @Whoopie
    Hast du nicht die falschen Kernelmodule auskommentiert? Wir wollen doch die Servermodule und das sind diese vhcid?

    MfG Oliver
    Router: Fritz!Box Fon WLAN 7570, 7390, 7320, 7270, 3170
    Anbindung: T-Online DSL 16.000 RAM

    Visit ##fritzbox on Freenode for help
    Spenden für Freetz

  18. #18
    Gesperrt Avatar von heini66
    Registriert seit
    12.03.2005
    Ort
    irgendwo im wald im kreuz von hh und lg
    Beiträge
    2.163
    auszug des aktuellen howto:
    Usage
    40 server:# (Attach your USB device physically.)
    41
    42 server:# insmod usbip_common_mod.ko
    43 server:# insmod usbip.ko
    44 - It was formerly named as stub.ko.
    45
    46 server:# usbipd -D
    47 - Start usbip daemon.
    48
    49 server:# bind_driver --list
    50 - List driver assignments for usb devices.
    51
    52 server:# bind_driver --usbip 1-2
    53 - Bind usbip.ko to the device of busid 1-2.
    54 - A usb device 1-2 is now exportable to other hosts!
    55 - Use 'bind_driver --other 1-2' when you want to shutdown exporting
    56 and use the device locally.
    57
    58
    59 client:# insmod usbip_common_mod.ko
    60 client:# insmod vhci-hcd.ko
    61 - It was formerly named as vhci.ko.
    62
    63 client:# usbip --list server
    64 - List exportable usb devices on the server.
    65
    66 client:# usbip --attach server 1-2
    67 - Connect the remote USB device.
    68
    69 client:# usbip --port
    70 - Show virtual port status.
    71
    72 client:# usbip --detach 0
    73 - Detach the usb device.


    das vh_dingens ist für den client, wenn ich das richtig schnall.
    Geändert von heini66 (25.01.2008 um 20:18 Uhr)

  19. #19
    Semi-Moderator Avatar von olistudent
    Registriert seit
    19.10.2004
    Ort
    Kaiserslautern
    Beiträge
    14.295
    Auszug aus dem mir vorliegenden README:
    Q. "client" and "server" are confusing...
    A. A server host has physical USB devices which are exported to a client host. In the server host, load vhci-hcd.ko and use usbipd.
    The client host imports a USB device virtually; the client host may not have a real USB device. In the client host, load usbip.ko and use usbip.
    MfG Oliver
    Router: Fritz!Box Fon WLAN 7570, 7390, 7320, 7270, 3170
    Anbindung: T-Online DSL 16.000 RAM

    Visit ##fritzbox on Freenode for help
    Spenden für Freetz

  20. #20
    Gesperrt Avatar von heini66
    Registriert seit
    12.03.2005
    Ort
    irgendwo im wald im kreuz von hh und lg
    Beiträge
    2.163

    denn sie wissen nicht, was sie tun...

Seite 1 von 5 12345 LetzteLetzte

Ähnliche Themen

  1. USB Fernanschluss für Linux
    Von chipper12 im Forum AVM-Software
    Antworten: 1
    Letzter Beitrag: 16.10.2009, 10:09
  2. Antworten: 19
    Letzter Beitrag: 13.08.2009, 17:37
  3. USB-Fernanschluss auch unter Linux?
    Von manowar im Forum AVM-Software
    Antworten: 1
    Letzter Beitrag: 03.04.2008, 12:15
  4. USB-Fernanschluss unter Linux?
    Von MReimer im Forum FRITZ!Box Fon: Modifikationen
    Antworten: 13
    Letzter Beitrag: 25.01.2008, 13:03
  5. Welches Linux für folgendes Projekt...
    Von Jens74 im Forum Linux allgemein
    Antworten: 5
    Letzter Beitrag: 29.01.2006, 20:06

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •