Hi all,
I'm trying to add USB support to a broadcom 6328 based board, named
96328dg2x2. I used the definition of another board, 963281TAN, and added
.has_ehci0 = 1 and ohci0 too, and configured gpio10 as a led. With this,
I got to work usb-storage flawlessly.
When I insert a ohci usb device, like pl2303 usb to serial converter,
the system says:
root@OpenWrt:/# dmesg | grep USB
[ 7.188000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
[ 7.320000] ehci-platform ehci-platform: new USB bus registered,
assigned bus number 1
[ 7.348000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00,
overcurrent ignored
[ 7.356000] hub 1-0:1.0: USB hub found
[ 7.380000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 7.392000] ohci-platform ohci-platform: new USB bus registered,
assigned bus number 2
[ 7.468000] hub 2-0:1.0: USB hub found
[ 10.676000] cdc_acm: USB Abstract Control Model driver for USB modems
and ISDN adapters
[ 10.784000] usbhid: USB HID core driver
[ 10.812000] usbserial: USB Serial support registered for generic
[ 10.872000] usbserial: USB Serial support registered for ark3116
[ 11.160000] usbserial: USB Serial support registered for pl2303
[ 151.644000] usb 2-1: new full-speed USB device number 2 using
ohci-platform
The last message is the only indicator that a device has plugged, but it
is not recognized by drivers. The previous are included as relevant
context.
When I try to reboot the router, kernel panic:
procd: - shutdown -
[ 921.192000] br-lan: port 1(eth0.1) entered disabled state
[ 921.204000] device eth0.1 left promiscuous mode
[ 921.208000] device eth0 left promiscuous mode
[ 921.212000] br-lan: port 1(eth0.1) entered disabled state
procd: - reboot -
[ 948.664000] bcm63xx_wdt: watchdog will restart system
[ 990.612000] bcm63xx_wdt fire[#1]:
[ 990.612000] CPU: 0 PID: 0 Comm: swapper Not tainted 3.10.24 #15
[ 990.612000] task: 802d53b0 ti: 802ce000 task.ti: 802ce000
[ 990.612000] $ 0 : 00000000 10008401 80330000 00000000
[ 990.612000] $ 4 : 10008400 00000000 00000000 ffff00fe
[ 990.612000] $ 8 : 00000000 00008400 80e86580 80e86300
[ 990.612000] $12 : 80c8ed00 64726573 00000000 80caae80
[ 990.612000] $16 : 802d0000 802d0000 802867c4 00000001
[ 990.612000] $20 : 802d0000 00000000 80624e90 00000001
[ 990.612000] $24 : 00000000 8001c9e0
[ 990.612000] $28 : 802ce000 802cfeb8 00000000 8004ffb4
[ 990.612000] Hi : 000000e6
[ 990.612000] Lo : 80d63500
[ 990.612000] epc : 80010ae0 __r4k_wait+0x20/0x40
[ 990.612000] Not tainted
[ 990.612000] ra : 8004ffb4 cpu_startup_entry+0xb8/0x138
[ 990.612000] Status: 10008403 KERNEL EXL IE
[ 990.612000] Cause : 00800400
[ 990.612000] PrId : 0002a075 (Broadcom BMIPS4350)
[ 990.612000] Modules linked in: pppoe ppp_async iptable_nat brcmsmac
snd_usb_audio pppox ppp_generic pl2303 nf_nat_ipv4 nf_conntrack_ipv4
mac80211 ipt_MASQUERADE cfg80211 ark3116 xt_time xt_
tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack
xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT usbserial usbhid
snd_usbmidi_lib slhc nf_nat_irc nf_nat_ftp nf_nat nf_def
rag_ipv4 nf_conntrack_irc nf_conntrack_ftp iptable_raw iptable_mangle
iptable_filter ipt_REJECT ip_tables crc8 crc_ccitt cordic compat cdc_acm
brcmutil hid evdev ip6t_REJECT ip6t_rt ip6t_hbh i
p6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw
ip6table_mangle ip6table_filter ip6_tables x_tables nf_conntrack_ipv6
nf_conntrack nf_defrag_ipv6 msdos snd_compress snd_pcm_os
s snd_mixer_oss snd_pcm snd_timer snd_rawmidi snd_seq_device snd_hwdep
snd_page_alloc snd soundcore vfat fat bcma nls_cp437 ipv6 arc4
crypto_blkcipher gpio_keys_polled usb_storage input_pollde
v ohci_hcd ehci_pci ehci_platform ehci_hcd sd_mod scsi_mod ext4 crc16
jbd2 mbcache button_hotplug input_core usbcore nls_base usb_common
crypto_hash
[ 990.612000] Process swapper (pid: 0, threadinfo=802ce000,
task=802d53b0, tls=00000000)
[ 990.612000] Stack : 00000000 802d0000 80320000 80014bf4 0000012d
802d0000 80320000 80310000
8031992d 802ea91c 00000000 80309578 00000059 0000001c ffffffff
ffffffff
802ea2a4 00000000 803198e0 00000000 80601240 00000000 b8010100
80624e90
80737d80 80601240 00000000 00000000 00000000 00000000 00000000
00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000
...
[ 990.612000] Call Trace:
[ 990.612000] [<80010ae0>] __r4k_wait+0x20/0x40
[ 990.612000] [<8004ffb4>] cpu_startup_entry+0xb8/0x138
[ 990.612000] [<802ea91c>] start_kernel+0x394/0x3b4
[ 990.612000]
[ 990.612000]
Code: 00000000 00000000 42000020 <03e00008> 00000000 00000000
00000000 00000000 00000000
[ 990.872000] ---[ end trace 14aec3a96c86d895 ]---
[ 990.884000] Kernel panic - not syncing: Fatal exception in interrupt
[ 990.884000] Rebooting in 3 seconds..
HELO90.884000] triggering watchdog soft-reset...
CPUI
L1CI
But while I don't plug the ohci usb device, the router reboots just
fine. I tested with several other usb devices, like pl2303, an arduino
board, and a headset.
What should I do?
Regards.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel