1 (edytowany przez tomek 2009-09-03 03:12:30)

Temat: Problem z USB na Asus wl500gp v2

Wybrałem router Asus wl500gp v2 z nadzieją, że uda mi się zainstalować na nim Netię (na łączach neo), oraz podpiąć urządzenia typu pendrive / dysk zewnętrzny.

Zainstalowałem openwrt 8.09.1, z jądrem 2.6, z binarki dostępnej ze strony.
Zainstalowałem odpowiednie pakiety (wg tutoriala dla neostrady http://eko.one.pl/index.php?page=openwrt-pppoa)
Zmieniłem sekcję wan w /etc/config/network
...
i nic.

Okazało się, że router nie widzi modemu. Po podpięciu pendrive'a, doinstalowaniu pakietów z obsługą systemów plików - identyczna sytuacja.
Myślałem, że urządzenia zostaną automatycznie wykryte i zamontowane. Jeśli trzeba je zamontować ręcznie, to jak to zrobić?

Wygląda to tak, jakby router w ogóle nie wykrywał urządzeń usb. W /proc/bus/usb nie ma nic, w /dev nic nie kojarzy się z usb, w /mnt oczywiście też pusto.
Po podłączeniu modemu speedtouch 330 i komendzie "ifup wan" jedyny ślad w logread to:

Sep  2 22:07:55 OpenWrt daemon.info pppd[765]: Plugin pppoatm.so loaded.
Sep  2 22:07:55 OpenWrt daemon.notice pppd[766]: pppd 2.4.3 started by root, uid 0
Sep  2 22:07:55 OpenWrt daemon.err pppd[766]: connect(0.35): No such device
Sep  2 22:07:55 OpenWrt daemon.info pppd[766]: Exit.

Co jest logiczne, skoro nie wykrył urządzenia.

Podobny problem znalazłem na: https://forum.openwrt.org/viewtopic.php?pid=93594
Skompilowałem więc openwrt ze źródeł, z wersji svn://svn.openwrt.org/openwrt/branches/8.09
uprzednio zmieniając plik usb-storage zgodnie z https://dev.openwrt.org/attachment/tick … rage.patch

Sytuacja jest identyczna do poprzedniej. Po podłączeniu czegokolwiek na usb - nic.

Możliwe, że popełniam gdzieś bardzo prosty i głupi błąd, możliwe, że czegoś niedokonfigurowałem.  Nie mam doświadczenia z openwrt, router posiadam od dwóch dni.

Niekoniecznie muszę mieć najnowszą wersję openwrt albo kernel 2.6. Chciałbym tylko, żeby to działało. Docelowo chciałbym: Netia z modemem speedtouch 330 na usb, komputer stacjonarny oraz laptop przez wifi + może jakaś pamięć na usb podłączona do routera.

Proszę Was o pomoc..

2

Odp: Problem z USB na Asus wl500gp v2

Zainstaluj dodatkowo pakiet usbutils.

A potem pokaż wynik polecen lsmod, logread oraz lsusb

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Problem z USB na Asus wl500gp v2

root@OpenWrt:/# lsmod
Module                  Size  Used by    Not tainted
speedtch                9936  0
usblp                   9504  0
usbatm                 14528  1 speedtch
cdc_acm                11536  0
ehci_hcd               29232  0
uhci_hcd               19088  0
ohci_hcd               16208  0
nf_nat_tftp              448  0
nf_conntrack_tftp       2448  1 nf_nat_tftp
nf_nat_irc               928  0
nf_conntrack_irc        2768  1 nf_nat_irc
nf_nat_ftp              1440  0
nf_conntrack_ftp        5120  1 nf_nat_ftp
ipt_MASQUERADE          1216  1
iptable_nat             3696  1
nf_nat                 12512  5 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
xt_state                 832  6
nf_conntrack_ipv4       8384  9 iptable_nat,nf_nat
nf_conntrack           39632  11 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_state,nf_conntrack_ipv4
pppoatm                 3200  0
ipt_REJECT              2080  2
xt_TCPMSS               2336  1
ipt_LOG                 4864  0
xt_multiport            1888  0
xt_mac                   704  0
xt_limit                1248  1
iptable_mangle          1056  0
iptable_filter           928  1
ip_tables               8208  3 iptable_nat,iptable_mangle,iptable_filter
xt_tcpudp               1920  4
x_tables                8976  11 ipt_MASQUERADE,iptable_nat,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp
ppp_async               9728  0
ppp_generic            20096  2 pppoatm,ppp_async
slhc                    5248  1 ppp_generic
crc_ccitt                992  1 ppp_async
vfat                    8640  0
fat                    42064  1 vfat
ext3                   99792  0
jbd                    44832  1 ext3
ext2                   46032  0
br2684                  6096  0
atm                    43760  3 usbatm,pppoatm,br2684
nls_utf8                 864  0
nls_cp437               4384  0
usbcore               109440  8 speedtch,usblp,usbatm,cdc_acm,ehci_hcd,uhci_hcd,ohci_hcd
nls_base                4416  4 vfat,fat,nls_utf8,nls_cp437
switch_robo             4224  0
switch_core             5248  1 switch_robo
diag                    7824  0
root@OpenWrt:/# logread
Sep  2 22:07:00 OpenWrt syslog.info syslogd started: BusyBox v1.11.2
Sep  2 22:07:00 OpenWrt user.notice kernel: klogd started: BusyBox v1.11.2 (2009-09-02 23:42:27 CEST)
Sep  2 22:07:00 OpenWrt user.notice kernel: Linux version 2.6.25.20 (tomek@blugenel) (gcc version 4.1.2) #1 Thu Sep 3 00:21:25 CEST 2009
Sep  2 22:07:00 OpenWrt user.info kernel: CPU revision is: 00029029 (Broadcom BCM3302)
Sep  2 22:07:00 OpenWrt user.info kernel: ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x14, vendor 0x4243)
Sep  2 22:07:00 OpenWrt user.info kernel: ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x09, vendor 0x4243)
Sep  2 22:07:00 OpenWrt user.info kernel: ssb: Core 2 found: MIPS 3302 (cc 0x816, rev 0x08, vendor 0x4243)
Sep  2 22:07:00 OpenWrt user.info kernel: ssb: Core 3 found: USB 2.0 Host (cc 0x819, rev 0x02, vendor 0x4243)
Sep  2 22:07:00 OpenWrt user.info kernel: ssb: Core 4 found: MEMC SDRAM (cc 0x80F, rev 0x04, vendor 0x4243)
Sep  2 22:07:00 OpenWrt user.info kernel: ssb: Core 5 found: IEEE 802.11 (cc 0x812, rev 0x0D, vendor 0x4243)
Sep  2 22:07:00 OpenWrt user.info kernel: ssb: Core 6 found: Roboswitch (cc 0x81C, rev 0x02, vendor 0x4243)
Sep  2 22:07:00 OpenWrt user.info kernel: ssb: Initializing MIPS core...
Sep  2 22:07:00 OpenWrt user.info kernel: ssb: set_irq: core 0x0806, irq 2 => 2
Sep  2 22:07:00 OpenWrt user.info kernel: ssb: set_irq: core 0x0819, irq 4 => 3
Sep  2 22:07:00 OpenWrt user.info kernel: ssb: set_irq: core 0x0812, irq 0 => 4
Sep  2 22:07:00 OpenWrt user.info kernel: ssb: Sonics Silicon Backplane found at address 0x18000000
Sep  2 22:07:00 OpenWrt user.warn kernel: Serial init done.
Sep  2 22:07:00 OpenWrt user.warn kernel: Determined physical RAM map:
Sep  2 22:07:00 OpenWrt user.warn kernel:  memory: 02000000 @ 00000000 (usable)
Sep  2 22:07:00 OpenWrt user.debug kernel: Entering add_active_range(0, 0, 8192) 0 entries of 256 used
Sep  2 22:07:00 OpenWrt user.info kernel: Initrd not found or empty - disabling initrd
Sep  2 22:07:00 OpenWrt user.warn kernel: Zone PFN ranges:
Sep  2 22:07:00 OpenWrt user.warn kernel:   Normal          0 ->     8192
Sep  2 22:07:00 OpenWrt user.warn kernel: Movable zone start PFN for each node
Sep  2 22:07:00 OpenWrt user.warn kernel: early_node_map[1] active PFN ranges
Sep  2 22:07:00 OpenWrt user.warn kernel:     0:        0 ->     8192
Sep  2 22:07:00 OpenWrt user.debug kernel: On node 0 totalpages: 8192
Sep  2 22:07:00 OpenWrt user.debug kernel:   Normal zone: 64 pages used for memmap
Sep  2 22:07:00 OpenWrt user.debug kernel:   Normal zone: 0 pages reserved
Sep  2 22:07:00 OpenWrt user.debug kernel:   Normal zone: 8128 pages, LIFO batch:0
Sep  2 22:07:00 OpenWrt user.debug kernel:   Movable zone: 0 pages used for memmap
Sep  2 22:07:00 OpenWrt user.warn kernel: Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Sep  2 22:07:00 OpenWrt user.notice kernel: Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Sep  2 22:07:00 OpenWrt user.warn kernel: Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
Sep  2 22:07:00 OpenWrt user.warn kernel: Primary data cache 16kB, 2-way, VIPT, cache aliases, linesize 16 bytes
Sep  2 22:07:00 OpenWrt user.info kernel: Synthesized clear page handler (26 instructions).
Sep  2 22:07:00 OpenWrt user.info kernel: Synthesized copy page handler (46 instructions).
Sep  2 22:07:00 OpenWrt user.warn kernel: PID hash table entries: 128 (order: 7, 512 bytes)
Sep  2 22:07:00 OpenWrt user.info kernel: console [ttyS0] enabled
Sep  2 22:07:00 OpenWrt user.info kernel: Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Sep  2 22:07:00 OpenWrt user.info kernel: Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Sep  2 22:07:00 OpenWrt user.info kernel: Memory: 29916k/32768k available (1986k kernel code, 2852k reserved, 303k data, 128k init, 0k highmem)
Sep  2 22:07:00 OpenWrt user.debug kernel: Calibrating delay loop... 239.10 BogoMIPS (lpj=478208)
Sep  2 22:07:00 OpenWrt user.warn kernel: Mount-cache hash table entries: 512
Sep  2 22:07:00 OpenWrt user.info kernel: net_namespace: 444 bytes
Sep  2 22:07:00 OpenWrt user.info kernel: NET: Registered protocol family 16
Sep  2 22:07:00 OpenWrt user.debug kernel: Switched to high resolution mode on CPU 0
Sep  2 22:07:00 OpenWrt user.info kernel: NET: Registered protocol family 2
Sep  2 22:07:00 OpenWrt user.info kernel: IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
Sep  2 22:07:00 OpenWrt user.info kernel: TCP established hash table entries: 1024 (order: 1, 8192 bytes)
Sep  2 22:07:00 OpenWrt user.info kernel: TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
Sep  2 22:07:00 OpenWrt user.info kernel: TCP: Hash tables configured (established 1024 bind 1024)
Sep  2 22:07:00 OpenWrt user.info kernel: TCP reno registered
Sep  2 22:07:00 OpenWrt user.notice kernel: detected lzma initramfs
Sep  2 22:07:00 OpenWrt user.notice kernel: initramfs: LZMA lc=1,lp=2,pb=2,origSize=512
Sep  2 22:07:00 OpenWrt user.info kernel: squashfs: version 3.0 (2006/03/15) Phillip Lougher
Sep  2 22:07:00 OpenWrt user.warn kernel: Registering mini_fo version $Id$
Sep  2 22:07:00 OpenWrt user.info kernel: JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
Sep  2 22:07:00 OpenWrt user.info kernel: io scheduler noop registered
Sep  2 22:07:00 OpenWrt user.info kernel: io scheduler deadline registered (default)
Sep  2 22:07:00 OpenWrt user.info kernel: Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing enabled
Sep  2 22:07:00 OpenWrt user.info kernel: serial8250: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
Sep  2 22:07:00 OpenWrt user.info kernel: serial8250: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
Sep  2 22:07:00 OpenWrt user.info kernel: serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 3) is a 16550A
Sep  2 22:07:00 OpenWrt user.info kernel: serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 3) is a 16550A
Sep  2 22:07:00 OpenWrt user.info kernel: b44.c:v2.0
Sep  2 22:07:00 OpenWrt user.info kernel: eth0: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:26:18:22:2c:d0
Sep  2 22:07:00 OpenWrt user.warn kernel: flash init: 0x1c000000 0x02000000
Sep  2 22:07:00 OpenWrt user.info kernel: Physically mapped flash: Found 1 x16 devices at 0x0 in 16-bit bank
Sep  2 22:07:00 OpenWrt user.debug kernel: Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
Sep  2 22:07:00 OpenWrt user.debug kernel: Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Sep  2 22:07:00 OpenWrt user.debug kernel: Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
Sep  2 22:07:00 OpenWrt user.warn kernel:  Amd/Fujitsu Extended Query Table at 0x0040
Sep  2 22:07:00 OpenWrt user.notice kernel: number of CFI chips: 1
Sep  2 22:07:00 OpenWrt user.notice kernel: cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Sep  2 22:07:00 OpenWrt user.notice kernel: Flash device: 0x800000 at 0x1fc00000
Sep  2 22:07:00 OpenWrt user.notice kernel: bootloader size: 131072
Sep  2 22:07:00 OpenWrt user.notice kernel: Creating 4 MTD partitions on "Physically mapped flash":
Sep  2 22:07:00 OpenWrt user.notice kernel: 0x00000000-0x00020000 : "cfe"
Sep  2 22:07:00 OpenWrt user.notice kernel: 0x00020000-0x007f0000 : "linux"
Sep  2 22:07:00 OpenWrt user.notice kernel: 0x000d6c0
Sep  2 22:07:00 OpenWrt user.info kernel: 0-0x007f0000 : "rootfs"
Sep  2 22:07:00 OpenWrt user.warn kernel: mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
Sep  2 22:07:00 OpenWrt user.notice kernel: mtd: partition "rootfs" set to be root filesystem
Sep  2 22:07:00 OpenWrt user.info kernel: mtd: partition "rootfs_data" created automatically, ofs=240000, len=5B0000
Sep  2 22:07:00 OpenWrt user.notice kernel: 0x00240000-0x007f0000 : "rootfs_data"
Sep  2 22:07:00 OpenWrt user.notice kernel: 0x007f0000-0x00800000 : "nvram"
Sep  2 22:07:00 OpenWrt user.info kernel: TCP vegas registered
Sep  2 22:07:00 OpenWrt user.info kernel: NET: Registered protocol family 1
Sep  2 22:07:00 OpenWrt user.info kernel: NET: Registered protocol family 17
Sep  2 22:07:00 OpenWrt user.info kernel: 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
Sep  2 22:07:00 OpenWrt user.info kernel: All bugs added by David S. Miller <davem@redhat.com>
Sep  2 22:07:00 OpenWrt user.warn kernel: VFS: Mounted root (squashfs filesystem) readonly.
Sep  2 22:07:00 OpenWrt user.info kernel: Freeing unused kernel memory: 128k freed
Sep  2 22:07:00 OpenWrt user.warn kernel: Please be patient, while OpenWrt loads ...
Sep  2 22:07:00 OpenWrt user.warn kernel: Algorithmics/MIPS FPU Emulator v1.5
Sep  2 22:07:00 OpenWrt user.warn kernel: diag: Detected 'ASUS WL-500g Premium V2'
Sep  2 22:07:00 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
Sep  2 22:07:00 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
Sep  2 22:07:00 OpenWrt user.info kernel: roboswitch: Probing device eth0: found!
Sep  2 22:07:00 OpenWrt user.info kernel: b44: eth0: powering down PHY
Sep  2 22:07:00 OpenWrt user.info kernel: mini_fo: using base directory: /
Sep  2 22:07:00 OpenWrt user.info kernel: mini_fo: using storage directory: /jffs
Sep  2 22:07:02 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
Sep  2 22:07:02 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
Sep  2 22:07:03 OpenWrt user.info kernel: usbcore: registered new interface driver usbfs
Sep  2 22:07:03 OpenWrt user.info kernel: usbcore: registered new interface driver hub
Sep  2 22:07:03 OpenWrt user.info kernel: usbcore: registered new device driver usb
Sep  2 22:07:03 OpenWrt user.err kernel: br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
Sep  2 22:07:03 OpenWrt user.info kernel: device eth0.0 entered promiscuous mode
Sep  2 22:07:03 OpenWrt user.info kernel: device eth0 entered promiscuous mode
Sep  2 22:07:03 OpenWrt user.info kernel: br-lan: port 1(eth0.0) entering learning state
Sep  2 22:07:03 OpenWrt user.info kernel: br-lan: topology change detected, propagating
Sep  2 22:07:03 OpenWrt user.info kernel: br-lan: port 1(eth0.0) entering forwarding state
Sep  2 22:07:04 OpenWrt user.info kernel: NET: Registered protocol family 8
Sep  2 22:07:04 OpenWrt user.info kernel: NET: Registered protocol family 20
Sep  2 22:07:05 OpenWrt user.info kernel: PPP generic driver version 2.4.2
Sep  2 22:07:05 OpenWrt user.info kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Sep  2 22:07:06 OpenWrt user.warn kernel: nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
Sep  2 22:07:07 OpenWrt user.debug kernel: ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
Sep  2 22:07:07 OpenWrt user.info kernel: USB Universal Host Controller Interface driver v3.0
Sep  2 22:07:08 OpenWrt user.info kernel: usbcore: registered new interface driver cdc_acm
Sep  2 22:07:08 OpenWrt user.info kernel: drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters
Sep  2 22:07:08 OpenWrt user.info kernel: usbcore: registered new interface driver usblp
Sep  2 22:07:08 OpenWrt user.info kernel: usbcore: registered new interface driver speedtch
Sep  2 22:07:09 OpenWrt user.info sysinit: Loading defaults
Sep  2 22:07:09 OpenWrt user.info sysinit: Loading synflood protection
Sep  2 22:07:10 OpenWrt user.info sysinit: Adding custom chains
Sep  2 22:07:10 OpenWrt user.info sysinit: Loading zones
Sep  2 22:07:11 OpenWrt user.info sysinit: Loading forwarding
Sep  2 22:07:11 OpenWrt user.info sysinit: Loading redirects
Sep  2 22:07:11 OpenWrt user.info sysinit: Loading rules
Sep  2 22:07:11 OpenWrt user.info sysinit: Loading includes
Sep  2 22:07:12 OpenWrt user.notice root: adding lan (br-lan) to firewall zone lan
Sep  2 22:07:13 OpenWrt authpriv.info dropbear[703]: Running in background
Sep  2 22:07:17 OpenWrt daemon.info dnsmasq[735]: started, version 2.47 cachesize 150
Sep  2 22:07:17 OpenWrt daemon.info dnsmasq[735]: compile time options: IPv6 GNU-getopt no-DBus no-I18N TFTP
Sep  2 22:07:17 OpenWrt daemon.info dnsmasq[735]: DHCP, IP range 192.168.1.100 -- 192.168.1.251, lease time 12h
Sep  2 22:07:17 OpenWrt daemon.info dnsmasq[735]: using local addresses only for domain lan
Sep  2 22:07:17 OpenWrt daemon.info dnsmasq[735]: reading /tmp/resolv.conf.auto
Sep  2 22:07:17 OpenWrt daemon.info dnsmasq[735]: using nameserver 213.241.79.38#53
Sep  2 22:07:17 OpenWrt daemon.info dnsmasq[735]: using local addresses only for domain lan
Sep  2 22:07:17 OpenWrt daemon.info dnsmasq[735]: read /etc/hosts - 1 addresses
Sep  2 22:07:17 OpenWrt daemon.info dnsmasq[735]: read /etc/ethers - 0 addresses
Sep  2 22:07:32 OpenWrt daemon.info dnsmasq[735]: DHCPDISCOVER(br-lan) 00:30:4f:45:c5:01
Sep  2 22:07:32 OpenWrt daemon.info dnsmasq[735]: DHCPOFFER(br-lan) 192.168.1.158 00:30:4f:45:c5:01
Sep  2 22:07:32 OpenWrt daemon.info dnsmasq[735]: DHCPREQUEST(br-lan) 192.168.1.158 00:30:4f:45:c5:01
Sep  2 22:07:32 OpenWrt daemon.info dnsmasq[735]: DHCPACK(br-lan) 192.168.1.158 00:30:4f:45:c5:01 blugenel
Sep  2 22:10:12 OpenWrt authpriv.info dropbear[743]: Child connection from 192.168.1.3:53302
Sep  2 22:10:14 OpenWrt authpriv.warn dropbear[743]: login attempt for nonexistent user from 192.168.1.3:53302
Sep  2 22:10:20 OpenWrt authpriv.info dropbear[743]: exit before auth: error reading: Connection reset by peer
Sep  2 22:10:24 OpenWrt authpriv.info dropbear[744]: Child connection from 192.168.1.3:53303
Sep  2 22:10:27 OpenWrt authpriv.notice dropbear[744]: password auth succeeded for 'root' from 192.168.1.3:53303
Sep  2 22:11:19 OpenWrt user.warn kernel: |^H
Sep  2 22:11:25 OpenWrt user.info kernel: /^H

a lsusb nic nie wypisuje

4

Odp: Problem z USB na Asus wl500gp v2

To wykonaj jeszcze update-usbids.sh i później lsusb. st330 to modem, nie storage, więc mój patch (tak, to mój smile) do montowania nie ma tu nic wspólnego.

Tak mi przyszło do głowy: v2 ma tylko ehci (usb 2.0). Czy czasami st330 to nie USB 1.1?
(tu mogę się mylić, nie miałem nawet v2 w rękach)

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Problem z USB na Asus wl500gp v2

Po wykonaniu update-usbids.sh nadal lsusb nic nie wyświetla.

st330 ma usb1.1, modem działa bez problemów podłączony na stacjonarnym do portu 2.0.
a wl500gp v2 ma usb2.0. Wg opisu na openwrt: "USB NOTE: NO UHCI USB drivers needed… only EHCI are used"

Zainstalowane mam:
kmod-usb-acm - 2.6.25.20-brcm47xx-1 -
kmod-usb-atm - 2.6.25.20-brcm47xx-1 -
kmod-usb-atm-speedtouch - 2.6.25.20-brcm47xx-1 -
kmod-usb-core - 2.6.25.20-brcm47xx-1 -
kmod-usb-ohci - 2.6.25.20-brcm47xx-1 -
kmod-usb-printer - 2.6.25.20-brcm47xx-1 -
kmod-usb-storage - 2.6.25.20-brcm47xx-1 -
kmod-usb-uhci - 2.6.25.20-brcm47xx-1 -
kmod-usb2 - 2.6.25.20-brcm47xx-1 -

Czy to może robić różnicę, że  uhci i ohci i usb2?

Wydaje mi się, że to nie jest kwestia tylko speedtouch'a. Podłączając pendrive albo czytnik kart sd również router nie widzi tych urządzeń i nic się nie dzieje.
/etc/init.d/usb start zwraca: mount: mounting none on /proc/bus/usb failed: Device or resource busy

6

Odp: Problem z USB na Asus wl500gp v2

Jeżeli masz już /proc/bus/usb zamontowany to tak będzie, ponowne wywołanie będzie zgłaszało błąd. Jeżeli to oczywiście to, a nie sam problem z USB.

Jesteś pewien że nie wyłączyłeś czegoś podczas samodzielnej kompilacji?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Problem z USB na Asus wl500gp v2

Nie wyłączyłem, tylko dodawałem, właściwie tylko rzeczy związane z usb i systemami plików.
Może coś pominąłem? Mogę skompilować ponownie, na co mam zwrócić uwagę?

Wcześniej korzystałem z openwrt z binarki i była identyczna sytuacja z urządzeniami usb.

Mogę spróbować z trunk'a, albo z Twoich obrazów, co polecasz?

Jak odmontuje /proc/bus/usb, to /etc/init.d/usb start się wykonuje. I nic się nie zmienia od poprzedniego stanu.

8

Odp: Problem z USB na Asus wl500gp v2

Zobacz czy masz w źródłach ten patch: https://dev.openwrt.org/ticket/3365 , dodaj go jak nie. Być może to faktycznie problem z uruchomieniem USB jest.

Lub skompiluj trunka aktualnego, będziesz miał wszystko co najnowsze.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: Problem z USB na Asus wl500gp v2

Skompilowałem aktualnego trunka i problem z wykrywaniem USB się rozwiązał:)

Natomiast pojawił się inny problem, mianowicie brak kompatybilności niektórych pakietów.
Przykładowo pakiet kmod-fs-vfat wymaga kmod-nls-base.
root@OpenWrt:/tmp# opkg install kmod-nls-base
Collected errors:
* Cannot find package kmod-nls-base.

Po ściągnięciu pakietu na router i próbie instalacji pojawia się komunikat:
Packages were found, but none compatible with the architectures configured

Problem występuje także przy innych pakietach, w szczególności przy:
kmod-pppoa
przez co nie można zainstalować też ppp-mod-pppoa,
przez co nie można uruchomić połączenia przez modem.
ifup wan zwraca: Interface type pppoa not supported.

Jak poradzić sobie z tym problemem?

10

Odp: Problem z USB na Asus wl500gp v2

Jeżeli kompilowałeś i zainstalowałes to co skompilowałeś to musi się zgadzać. Jeżeli masz pakiety z openwrt a instalkę swoję lub na odwrót - niekoniecznie. Używaj jednego źródła po prostu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: Problem z USB na Asus wl500gp v2

Pakiety rzeczywiście były z dwóch źródeł, wydawało mi się, że źródła te zapewniają to samo (katalog zbudowanych pakietów i domyślne repo).
Okazało się, że wśród zbudowanych pakietów nie było kmod-pppoa, ale tu akurat działał ten z repo, więc udało się.

Tym sposobem Netia zadziałała. Nie podoba mi się długa i dziwna synchronizacja modemu, także to, że czasami w logach mam ustanowione połączenie, a konieczne jest ponowny ifup, żeby zaczęło działać.
Ale to nie jest już problem, połączenie działa stabilnie.

Natomiast w aktualnej wersji z trunk'a mam problem z wifi.

ifconfig:

ifconfig:
root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:26:18:22:2C:D0
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:90278 errors:0 dropped:0 overruns:0 frame:0
          TX packets:81930 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7613238 (7.2 MiB)  TX bytes:95939800 (91.4 MiB)

eth0      Link encap:Ethernet  HWaddr 00:26:18:22:2C:D0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:91109 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82483 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:9681488 (9.2 MiB)  TX bytes:96738048 (92.2 MiB)
          Interrupt:4

eth0.0    Link encap:Ethernet  HWaddr 00:26:18:22:2C:D0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:91117 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82487 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8042376 (7.6 MiB)  TX bytes:96380979 (91.9 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:263 errors:0 dropped:0 overruns:0 frame:0
          TX packets:263 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:92067 (89.9 KiB)  TX bytes:92067 (89.9 KiB)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:77.253.173.188  P-t-P:195.114.190.151  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:77731 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84280 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:94401552 (90.0 MiB)  TX bytes:6785147 (6.4 MiB)

iwconfig:

root@OpenWrt:~# iwconfig
lo        no wireless extensions.
eth0      no wireless extensions.
eth0.0    no wireless extensions.
ppp0      no wireless extensions.
br-lan    no wireless extensions.

/etc/config/wireless

root@OpenWrt:~# cat /etc/config/wireless

config 'wifi-device' 'wl0'
        option 'type' 'broadcom'
        option 'channel' '6'
        option 'disabled' '0'

config 'wifi-iface'
        option 'network' 'wlan'
        option 'device' 'wl0'
        option 'mode' 'ap'
        option 'ssid' 'BENIO'
        option 'encryption' 'none'

/etc/config/network

root@OpenWrt:~# cat /etc/config/network
#### VLAN configuration
config switch eth0
        option vlan0    "0 1 2 3 5*"
        option vlan1    "4 5"


#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0


#### LAN configuration
config interface lan
        option type     bridge
        option ifname   eth0.0
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0
        option nameserver 213.241.79.37

# Moje
config interface wlan
        option type bridge
        option ifname wl0
        option proto static
        option ipaddr 10.0.0.1
        option netmask 255.255.255.0


#### WAN configuration
config interface        wan
        option ifname   "ppp0"
        option proto    pppoa
        option encaps llc
        option vpi 0
        option vci 35
        option username '************'
        option password '************'

wifi dla broadcom

root@OpenWrt:~# wifi
wl0(broadcom): Interface type not supported
wl0(broadcom): Interface type not supported

czy nie trzeba używać zamiast broadcom mac80211?

wifi dla mac80211

root@OpenWrt:~# wifi
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCSIFADDR: No such device
Error for wireless request "Set ESSID" (8B1A) :
    SET failed on device wl0 ; No such device.
Configuration file: /var/run/hostapd-wl0.conf
ioctl[SIOCGIFFLAGS]: No such device
nl80211 driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
enable_mac80211(wl0): Failed to set up wpa for interface wl0
ifconfig: SIOCGIFFLAGS: No such device

w dmesg mam takie coś:

b43-phy0: Broadcom 5354 WLAN found (core revision 13)
b43-phy0 ERROR: FOUND UNSUPPORTED PHY (Analog 6, Type 5, Revision 0)
b43: probe of ssb0:3 failed with error -122
Broadcom 43xx driver loaded [ Features: PL, Firmware-ID: FW13 ]
Broadcom 43xx-legacy driver loaded [ Features: PLID, Firmware-ID: FW10 ]

Openwrt skompilowane z broadcom wifi default.

Co może być nie tak? Jak sobie z tym poradzić?

P.S. Cezary, jak uznasz, że nadaje się to na osobny wątek, to przenieś, albo powiedz, to ja przeniosę.

12

Odp: Problem z USB na Asus wl500gp v2

Zmartwię Cię. https://dev.openwrt.org/ticket/5155

"B43 does not support your radio model yet. You have to use the proprietary Broadcom driver"

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13

Odp: Problem z USB na Asus wl500gp v2

Czyli jak rozumiem na kernelu 2.6 nie da rady.

Skompilowałem więc z trunka openwrt z jajkiem 2.4.
Widzi na nim wifi, oraz usb. Co prawda nie testowałem, ale można założyć, że wszystko działa.

Natomiast kernel 2.4 nie wspiera pppoa, nie ma też dostępnych paczek dla speedtouch'a.
Jak sobie z tym poradzić?

Znalazłem opis na http://eko.one.pl/forum/viewtopic.php?id=39
Ale to dotyczy starszej wersji jajka 2.4. Skąd wziąć potrzebne pliki / pakiety? Na powyższej stronce linki są nieaktywne.
Czy coś zmieniło się od czasu tamtego opisu? Jak się za to wszystko zabrać?

Pozdrawiam

14

Odp: Problem z USB na Asus wl500gp v2

2.4 ma obsługę pppoa, tylko w openwrt nie jest to domyślnie kompilowane bo uważane jest za niestabilne. Możesz normalnie zaznaczyć sobie i skompilować (make kernel_menuconfig). W takie właśnie sposób powstały pliki z w/w wątku.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

15

Odp: Problem z USB na Asus wl500gp v2

Przekompilowałem i..

Postępując wg opisu w/w wątku natrafiłem na kłopoty.

Kolejnym krokiem będzie uzupełnienie zasobów o wymagane moduły i programy.
Pliki modułów kernela (obsługa modemu): ppp_synctty.o, atm.o, n_hdlc.o; (obsługa ppp): ppp_mppe_mppc.o,
katalog docelowy: /lib/modules/2.4.30

Pozostałe pliki (program modemu): modem_run; (firmware): KQD6_3.012 (dla wersji modemu Rev= 2.00), ZZZL_3.012 (dla wersji modemu Rev= 4.00); oraz plugin dla PPP: pppoa3,

Z modułów w moim /lib/modules mam tylko ppp_synctt.o oraz ppp_mppe_mppc.o
Nie wiem dlaczego nie ma atm.o, skoro zaznaczałem w kernel_menuconfig opcje dotyczące atm i pppoa.
W katalogu build_dir/linux-brcm-2.4/linux-2.4.37.5/drivers/atm oraz katalogu net, mam plik atm.o. Te pliki są różne.

1) Czy skopiowanie któregoś z atm.o do /lib/modules wystarczy? Pewnie nie, więc co mam zrobić?

2) Pliku n_hdlc.o w ogóle nie mam. Co to za plik? Po co on? Co zaznaczyć w kernel_menuconfig, aby go mieć?

3) Skąd wziąć modem_run? Znalezione binarki przy uruchomieniu rzucają błąd.

4) Czy konieczne jest wgrywanie firmware Zzz_3.012 i ładowanie go za pomocą modem_run? Czy można użyć plików speedtch-1.bin i speedtch-2.bin z pakietu ipk dostępnego dla kernela 2.6? Jak wtedy ładować ten firmware?

5) Mimo zahaczenia opcji związanych z pppoa, wydaje się, że nie jest ono dostępne. Co prawda bez firmware itd, ale ifup wan (dla option proto pppoa) zwraca "interface type pppoa not supported" Czy rzeczywiście to brak wsparcia dla pppoa, czy może powodem jest brak modemu? Jeśli brak wsparcia, to jak zmusić system do pppoa?

6) Opisany sposób z wykorzystaniem pppoa3, stawia przed takim samym problemem co z modem_run. (line 1: syntax error: "(" unexpected). Binarka nie działa, skąd wziąć to pppoa3? Czy w ogóle jest potrzebne, skoro jądro wspiera pppoa? Jak sobie z tym poradzić?

dmesg:

hub.c: new USB device 00:03.1-1.1, assigned address 4
usb.c: USB device 4 (vend/prod 0x6b9/0x4061) is not claimed by any active driver.
usb.c: USB disconnect on device 00:03.1-1.1 address 4

Jak najlepiej zabrać się za rozwiązanie problemów ze speedtouchem?

16

Odp: Problem z USB na Asus wl500gp v2

Jak skompilujesz całość to w źródłach kernela będziesz miał pliki .o, one wystarczą do działania.
Konfiguracja w openwrt pppoa nie zadziała, bo oczywiście openwrt nie ma pojęcia co to jest. Weź sobie skrypty z paczki od 7.09.

modem_run i reszta powstał przez przekompilowanie któryś tam źródeł od linux-atm bodajże. Ale tego już nie pamiętam.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

17

Odp: Problem z USB na Asus wl500gp v2

n_hdlc zaznacza się w kernel_menuconfig -> character devices -> non-standard serial port support -> hdlc line discipline support

Mam problem z załadowaniem modułów atm.o i n_hdlc.o

Po skompilowaniu openwrt ze źródeł
( make menuconfig -> make -> make kernel_menuconfig -> make )
moduły te skopiowałem z:
build_dir/linux-brcm-2.4/linux-2.4.37.5/net/atm/atm.o
build_dir/linux-brcm-2.4/linux-2.4.37.5/drivers/char/n_hdlc.o

do /lib/modules na routerze.

jest jeszcze atm.o w (...)/drivers/atm (< 1kB), ale wydaje mi się, że chodziło o skopiowanie tego z net/atm (bo ma 70kB, a w znalezionej paczce z modułami atm.o miał >50kB)

insmod atm
oraz
insmod n_hdlc
nie prowadzą do załadowania się modułów, lecz:
Warning: loading atm will taint the kernel: no license. See http (...)
insmod: Relocation overflow of type 4 for memcmp
insmod: Relocation overflow of type 4 for kfree
...

i mnóstwo relocation overflow of type 4, dla różnych funkcji.

Dlaczego tak się dzieje i jak temu zaradzić?

18

Odp: Problem z USB na Asus wl500gp v2

To znaczy zapewne że to co skopiowałeś nie jest modułem jadra smile.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

19

Odp: Problem z USB na Asus wl500gp v2

Rzeczywiście, zauważyłem, że pliki w        /lib/modules

mają inny rozmiar od tych w                      linux-brcm-2.4
za to można takie same znaleźć w            target-mipsel_uClibc-0.9.30.1

Dobrze rozumiem, że to w target znajdują się skompilowane moduły?

Tylko tam nie ma ani atm.o, ani n_hdlc.o
Zaznaczałem przy kompilacji, a mimo to nie powstały.

Dlaczego? Co radzisz?

20

Odp: Problem z USB na Asus wl500gp v2

to jeszcze zobacz czy w .config w build_dir/linux-brcm-2.4/linux-2.4.37.5/ faktycznie masz te opcje zaznaczone.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.