Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11158 closed defect (fixed)

USB controller on AR7240 broken

Reported by: buhscout@… Owned by: developers
Priority: high Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc:

Description

I've flashed my Buffalo WHR-HP-G300N with USB-mod, with AR7240, using openwrt built from SVN rev. 31037. Most things work, but USB doesn't. Here's the output from the log:

[    0.000000] Linux version 3.2.9 (scout@Omega) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Mon Mar 19 00:32:12 YEKT 2012
[    0.000000] MyLoader: sysp=00000000, boardp=00000000, parts=00000000
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR7240 rev 2
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00004000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00004000
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 802c3d10, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16256 pages, LIFO batch:3
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=WHR-HP-G300N console=ttyS0,115200 mtdparts=spi0.0:248k(u-boot)ro,8k(u-boot-env)ro,896k(kernel),2816k(rootfs),64k(user_property),64k(art)ro,3712k@0x40000(firmware) rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 61804k/65536k available (2053k kernel code, 3732k reserved, 395k data, 192k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:48
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.090000] MIPS: machine is Buffalo WHR-HP-G300N
[    1.490000] registering PCI controller with io_map_base unset
[    1.500000] bio: create slab <bio-0> at 0
[    1.510000] pci 0000:00:00.0: [168c:002a] type 0 class 0x000280
[    1.510000] pci 0000:00:00.0: fixup device configuration
[    1.510000] pci 0000:00:00.0: reg 10: [mem 0x00000000-0x0000ffff 64bit]
[    1.510000] pci 0000:00:00.0: supports D1
[    1.510000] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.510000] pci 0000:00:00.0: PME# disabled
[    1.520000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1000ffff 64bit]
[    1.520000] pci 0000:00:00.0: BAR 0: set to [mem 0x10000000-0x1000ffff 64bit] (PCI address [0x10000000-0x1000ffff])
[    1.530000] pci 0000:00:00.0: using irq 40 for pin 1
[    1.530000] Switching to clocksource MIPS
[    1.540000] NET: Registered protocol family 2
[    1.540000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.540000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    1.550000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    1.550000] TCP: Hash tables configured (established 2048 bind 2048)
[    1.560000] TCP reno registered
[    1.560000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.570000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.580000] NET: Registered protocol family 1
[    1.580000] PCI: CLS 0 bytes, default 32
[    1.600000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.610000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.620000] msgmni has been set to 120
[    1.620000] io scheduler noop registered
[    1.630000] io scheduler deadline registered (default)
[    1.630000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    1.660000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    1.670000] console [ttyS0] enabled, bootconsole disabled
[    1.680000] m25p80 spi0.0: found mx25l3205d, expected m25p80
[    1.690000] m25p80 spi0.0: mx25l3205d (4096 Kbytes)
[    1.690000] 7 cmdlinepart partitions found on MTD device spi0.0
[    1.700000] Creating 7 MTD partitions on "spi0.0":
[    1.700000] 0x000000000000-0x00000003e000 : "u-boot"
[    1.710000] 0x00000003e000-0x000000040000 : "u-boot-env"
[    1.720000] 0x000000040000-0x000000120000 : "kernel"
[    1.720000] 0x000000120000-0x0000003e0000 : "rootfs"
[    1.730000] mtd: partition "rootfs" set to be root filesystem
[    1.740000] mtd: partition "rootfs_data" created automatically, ofs=2E0000, len=100000 
[    1.750000] 0x0000002e0000-0x0000003e0000 : "rootfs_data"
[    1.750000] 0x0000003e0000-0x0000003f0000 : "user_property"
[    1.760000] 0x0000003f0000-0x000000400000 : "art"
[    1.770000] 0x000000040000-0x0000003e0000 : "firmware"
[    2.020000] ag71xx_mdio: probed
[    2.020000] eth0: Atheros AG71xx at 0xba000000, irq 5
[    2.620000] eth0: Found an AR7240/AR9330 built-in switch
[    3.850000] eth1: Atheros AG71xx at 0xb9000000, irq 4
[    4.460000] ag71xx ag71xx.0: eth1: connected to PHY at ag71xx-mdio.0:04 [uid=004dd041, driver=Generic PHY]
[    4.470000] TCP westwood registered
[    4.470000] NET: Registered protocol family 17
[    4.470000] 8021q: 802.1Q VLAN Support v1.8
[    4.490000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    4.500000] Freeing unused kernel memory: 192k freed
[    9.790000] Registered led device: buffalo:orange:security
[    9.790000] Registered led device: buffalo:red:diag
[    9.790000] Registered led device: buffalo:green:router
[    9.790000] Registered led device: buffalo:green:wan
[    9.790000] Registered led device: buffalo:green:lan1
[    9.790000] Registered led device: buffalo:green:lan2
[    9.790000] Registered led device: buffalo:green:lan3
[    9.790000] Registered led device: buffalo:green:lan4
[   10.560000] eth0: link up (1000Mbps/Full duplex)
[   13.320000] JFFS2 notice: (428) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 66 of xref (0 dead, 0 orphan) found.
[   14.910000] usbcore: registered new interface driver usbfs
[   14.920000] usbcore: registered new interface driver hub
[   14.930000] usbcore: registered new device driver usb
[   14.950000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   14.960000] ath79-ohci ath79-ohci: Atheros built-in OHCI controller
[   14.960000] ath79-ohci ath79-ohci: new USB bus registered, assigned bus number 1
[   14.970000] ath79-ohci ath79-ohci: irq 14, io mem 0x1b000000
[   15.040000] hub 1-0:1.0: USB hub found
[   15.040000] hub 1-0:1.0: 1 port detected
[   15.390000] usb 1-1: new full-speed USB device number 2 using ath79-ohci
[   20.390000] ath79-ohci ath79-ohci: Unlink after no-IRQ?  Controller is probably using the wrong IRQ.

/proc/interrupt shows:

CPU0       
  4:      69965      MIPS  eth1
  5:         61      MIPS  eth0
  7:      93845      MIPS  timer
 11:         34      MISC  serial
 14:          0      MISC  ohci_hcd:usb1
 40:      82963  AR724X PCI   ath9k
ERR:          0

but on kernel 2.6.39.4 USB works perfectly:

[    0.000000] Linux version 2.6.39.4 (scout@Omega) (gcc version 4.5.4 20110808 (prerelease) (Linaro GCC 4.5-2011.08) ) #1 Tue Mar 20 16:30:45 YEKT 2012

...

[   18.000000] usbcore: registered new interface driver usbfs
[   18.010000] usbcore: registered new interface driver hub
[   18.020000] usbcore: registered new device driver usb
[   18.630000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   18.640000] ar71xx-ohci ar71xx-ohci: Atheros AR71xx built-in OHCI controller
[   18.650000] ar71xx-ohci ar71xx-ohci: new USB bus registered, assigned bus number 1
[   18.650000] ar71xx-ohci ar71xx-ohci: irq 3, io mem 0x1b000000
[   18.720000] hub 1-0:1.0: USB hub found
[   18.720000] hub 1-0:1.0: 1 port detected
[   18.790000] Initializing USB Mass Storage driver...
[   18.790000] usbcore: registered new interface driver usb-storage
[   18.800000] USB Mass Storage support registered.
[   19.070000] usb 1-1: new full speed USB device number 2 using ar71xx-ohci
[   19.250000] usb-storage 1-1:1.0: Quirks match for vid 058f pid 6387: 400
[   19.260000] scsi0 : usb-storage 1-1:1.0
[   20.260000] scsi 0:0:0:0: Direct-Access     JetFlash TS256MJF2A/120   8.07 PQ: 0 ANSI: 2
[   20.290000] sd 0:0:0:0: [sda] 511998 512-byte logical blocks: (262 MB/249 MiB)
[   20.310000] sd 0:0:0:0: [sda] Write Protect is off
[   20.310000] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[   20.310000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   20.350000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   20.370000]  sda:
[   20.400000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   20.410000] sd 0:0:0:0: [sda] Attached SCSI removable disk
...

/proc/interrupt shows:

           CPU0       
  3:        218      MIPS  ohci_hcd:usb1
  4:     277730      MIPS  eth1
  5:          0      MIPS  eth0
  6:          0      MIPS  cascade [AR71XX MISC]
  7:     317430      MIPS  timer
 10:          0  AR71XX MISC  cascade [AR71XX GPIO]
 11:         38  AR71XX MISC  serial
 72:     372823  AR724X PCI   ath9k
ERR:          0

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by buhscout@…

Thank you, juhosg. Confirmed fixed. Path works perfectly.

comment:2 Changed 6 years ago by juhosg

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.