Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#10710 closed defect (fixed)

AR934x internal switch driver issue?

Reported by: dyq <729650915@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

i tried to make a firmware for Fast FW300r v3 board(AR9341 SoC) based on Atheros DB120 support, but it seems ethernet port don't work well?
i tried to ping the router via computer but got no reply
and if i ping the computer via the router, switch worked
and this issue not appear before r29543

bootlog

[    0.000000] Linux version 2.6.39.4 (dyq@dyq-desktop) (gcc version 4.5.4 20110808 (prerelease) (Linaro GCC 4.5-2011.08) ) #1 Mon Jan 2 00:18:49 CST 2012
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9341 rev 1
[    0.000000] Clocks: CPU:500.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.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] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=TL-WR841N-v8 console=ttyS0,115200 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: 61844k/65536k available (2017k kernel code, 3692k reserved, 389k data, 188k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:80
[    0.000000] Calibrating delay loop... 249.44 BogoMIPS (lpj=1247232)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.080000] NET: Registered protocol family 16
[    0.080000] firmware by dyq (QQ:729650915)
[    0.090000] MIPS: machine is TP-LINK TL-WR841N v8
[    0.500000] bio: create slab <bio-0> at 0
[    0.510000] Switching to clocksource MIPS
[    0.520000] NET: Registered protocol family 2
[    0.520000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.520000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.530000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.530000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.540000] TCP reno registered
[    0.540000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.550000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.560000] NET: Registered protocol family 1
[    0.580000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.580000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.590000] msgmni has been set to 120
[    0.600000] io scheduler noop registered
[    0.600000] io scheduler deadline registered (default)
[    0.610000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.630000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.640000] console [ttyS0] enabled, bootconsole disabled
[    0.640000] console [ttyS0] enabled, bootconsole disabled
[    0.650000] Atheros AR71xx SPI Controller driver version 0.2.4
[    0.660000] m25p80 spi0.0: found mx25l6405d, expected m25p80
[    0.670000] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[    0.680000] 6 tp-link partitions found on MTD device spi0.0
[    0.680000] Creating 6 MTD partitions on "spi0.0":
[    0.690000] 0x000000000000-0x000000020000 : "u-boot"
[    0.690000] 0x000000020000-0x0000000f5770 : "kernel"
[    0.700000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.720000] 0x0000000f5770-0x0000007f0000 : "rootfs"
[    0.720000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.740000] mtd: partition "rootfs" set to be root filesystem
[    0.740000] mtd: partition "rootfs_data" created automatically, ofs=250000, len=5A0000 
[    0.750000] 0x000000250000-0x0000007f0000 : "rootfs_data"
[    0.760000] 0x0000007f0000-0x000000800000 : "art"
[    0.770000] 0x000000020000-0x0000007f0000 : "firmware"
[    0.770000] 0x000000000000-0x000000800000 : "fullflash"
[    1.130000] ag71xx_mdio: probed
[    1.130000] eth0: Atheros AG71xx at 0xba000000, irq 5
[    1.730000] eth0: Found an AR934X built-in switch
[    1.750000] eth1: Atheros AG71xx at 0xb9000000, irq 4
[    2.360000] Atheros AR71xx hardware watchdog driver version 0.1.0
[    2.360000] TCP westwood registered
[    2.370000] NET: Registered protocol family 17
[    2.370000] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
[    2.380000] All bugs added by David S. Miller <davem@redhat.com>
[    2.400000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    2.410000] Freeing unused kernel memory: 188k freed
[    4.570000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[    4.730000] Button Hotplug driver version 0.4.1
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
[    5.490000] eth0: link up (1000Mbps/Full duplex)
- regular preinit -
[    8.290000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[    8.300000] jffs2_build_filesystem(): unlocking the mtd device... done.
[    8.300000] jffs2_build_filesystem(): erasing all blocks after the end marker... done.
[   51.710000] JFFS2 notice: (437) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
switching to jffs2
- config restore -
- init -
[   52.140000] eth0: link down

Please press Enter to activate this console. [   52.800000] Compat-wireless backport release: compat-wireless-2011-11-29
[   52.810000] Backport based on wireless-testing.git master-2011-12-01
[   52.930000] cfg80211: Calling CRDA to update world regulatory domain
[   53.630000] cfg80211: World regulatory domain updated:
[   53.630000] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   53.640000] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   53.650000] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   53.660000] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   53.670000] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   53.680000] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   54.160000] ieee80211 phy0: Atheros AR9340 Rev:0 mem=0xb8100000, irq=78
[   54.170000] cfg80211: Calling CRDA for country: US
[   54.350000] PPP generic driver version 2.4.2
[   54.390000] cfg80211: Regulatory domain changed to country: US
[   54.400000] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   54.400000] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[   54.410000] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[   54.420000] cfg80211:     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   54.430000] cfg80211:     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   54.440000] cfg80211:     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   54.450000] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[   54.540000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   54.680000] NET: Registered protocol family 24
[   54.810000] nf_conntrack version 0.5.0 (969 buckets, 3876 max)
[   56.390000] eth0: link up (1000Mbps/Full duplex)
[   56.450000] device eth0 entered promiscuous mode
[   56.490000] br-lan: port 1(eth0) entering forwarding state
[   56.500000] br-lan: port 1(eth0) entering forwarding state
[   58.340000] cfg80211: Calling CRDA for country: CN
[   58.620000] cfg80211: Regulatory domain changed to country: CN
[   58.620000] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   58.630000] cfg80211:     (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   58.640000] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (N/A, 3000 mBm)
[   60.040000] device wlan0 entered promiscuous mode
[   60.040000] br-lan: port 2(wlan0) entering forwarding state
[   60.050000] br-lan: port 2(wlan0) entering forwarding state
[   62.210000] device wlan0 left promiscuous mode
[   62.210000] br-lan: port 2(wlan0) entering forwarding state
[   62.330000] device wlan0 entered promiscuous mode
[   62.340000] br-lan: port 2(wlan0) entering forwarding state
[   62.350000] br-lan: port 2(wlan0) entering forwarding state

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by nbd

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

fixed issues with the built-in switch in r31925.
tested on db120

comment:2 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.