[OpenWrt-Devel] [PATCH][ar71xx] Mikrotik Routerboard RB2011 switch fix

Soren Harward stharward at gmail.com
Thu Jan 1 22:45:44 EST 2015


On Sun, Dec 14, 2014 at 4:41 PM, Soren Harward <stharward at gmail.com> wrote:
> On Sat, Dec 13, 2014 at 1:22 PM, Chris Green <cl at isbd.net> wrote:
>> This patch is the same as the Routerboard 951G fix, I've built this
>> and tested it on my rb-2011uias-2hnd.  However we should check that it
>> also works on other/older RB2011 routers which did work OK with the
>> unpatched code.
>
> I'll do that some time around 29 or 30 Dec.

I finally had a chance to test this patch.  I built three separate
images from r43800, with ath79_eth0_pll_data.pll_1000 as 0x06000000
(the current default value), 0x3e000000, and 0x6f000000.  I netbooted
each of them in turn.  All three values seem to work fine with my
router: ten pings to my laptop (hooked up on Eth1) didn't drop any
packets.

I'm attaching my dmesg just in case someone who understands the boot
process of these devices better than I do can maybe figure out what
the difference is between my [working] machine and everyone else's
[non-working] machines.

-- 
Soren Harward
-------------- next part --------------
[    0.000000] Linux version 3.10.36 (soren at jens) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r40803) ) #7 Wed May 21 15:14:49 EDT 2014
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9344 rev 2
[    0.000000] Clocks: CPU:500.000MHz, DDR:450.000MHz, AHB:450.000MHz, Ref:25.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 802cc9b0, node_mem_map 81000000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    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] 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: 32512
[    0.000000] Kernel command line:  console=ttyS0,115200 parts=1 boot_part_size=4194304 gpio=249387 HZ=250000000 mem=128M kmac=4C:5E:0C:3E:6C:78 board=2011r5 ver=3.10 boot=1 mlc=5 rootfstype=yaffs noinitrd
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 126512k/131072k available (2161k kernel code, 4560k reserved, 433k data, 220k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.060000] 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.090000] MIPS: machine is Mikrotik RouterBOARD 2011UiAS
[    0.510000] bio: create slab <bio-0> at 0
[    0.510000] Switching to clocksource MIPS
[    0.520000] NET: Registered protocol family 2
[    0.520000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.530000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.540000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.540000] TCP: reno registered
[    0.550000] 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.560000] PCI: CLS 0 bytes, default 32
[    0.580000] yaffs: yaffs built May 21 2014 15:03:41 Installing.
[    0.580000] msgmni has been set to 247
[    0.580000] io scheduler noop registered
[    0.590000] io scheduler deadline registered (default)
[    0.590000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.620000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.630000] console [ttyS0] enabled, bootconsole disabled
[    0.640000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[    0.650000] m25p80 spi0.0: unrecognized JEDEC id c22010
[    0.650000] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[    0.670000] Scanning device for bad blocks
[    0.790000] Bad eraseblock 925 at 0x0000073a0000
[    0.810000] Creating 3 MTD partitions on "ar934x-nfc":
[    0.810000] 0x000000000000-0x000000040000 : "booter"
[    0.820000] 0x000000040000-0x000000400000 : "kernel"
[    0.820000] 0x000000400000-0x000008000000 : "rootfs"
[    0.830000] mtd: device 2 (rootfs) set to be root filesystem
[    0.840000] mtdsplit: no squashfs found in "rootfs"
[    0.840000] mtdsplit: no squashfs found in "ar934x-nfc"
[    0.860000] libphy: ag71xx_mdio: probed
[    0.900000] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[    2.200000] libphy: ag71xx_mdio: probed
[    2.760000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[    2.770000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    3.330000] ag71xx-mdio.1: Found an AR934X built-in switch
[    4.360000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    4.360000] TCP: cubic registered
[    4.370000] NET: Registered protocol family 17
[    4.370000] 8021q: 802.1Q VLAN Support v1.8
[    4.380000] yaffs: dev is 32505858 name is "mtdblock2" ro
[    4.380000] yaffs: passed flags ""
[    4.390000] yaffs: yaffs: Attempting MTD mount of 31.2,"mtdblock2"
[    4.390000] yaffs: auto selecting yaffs2
[    4.510000] yaffs: block 894 is bad
[    5.360000] yaffs: yaffs_read_super: is_checkpointed 0
[    5.360000] VFS: Mounted root (yaffs filesystem) readonly on device 31:2.
[    5.370000] Freeing unused kernel memory: 220K (802e9000 - 80320000)
[    6.460000] usbcore: registered new interface driver usbfs
[    6.470000] usbcore: registered new interface driver hub
[    6.470000] usbcore: registered new device driver usb
[    6.480000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.490000] ehci-platform: EHCI generic platform driver
[    6.490000] ehci-platform ehci-platform: EHCI Host Controller
[    6.500000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    6.510000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    6.540000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    6.540000] hub 1-0:1.0: USB hub found
[    6.550000] hub 1-0:1.0: 1 port detected
[    6.550000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.870000] usb 1-1: new full-speed USB device number 2 using ehci-platform
[    8.760000] eth0: link up (1000Mbps/Full duplex)
[    9.920000] eth0: link down
[   11.640000] NET: Registered protocol family 10
[   11.650000] tun: Universal TUN/TAP device driver, 1.6
[   11.650000] tun: (C) 1999-2004 Max Krasnyansky <maxk at qualcomm.com>
[   11.670000] sit: IPv6 over IPv4 tunneling driver
[   11.690000] nf_conntrack version 0.5.0 (1980 buckets, 7920 max)
[   11.720000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.780000] hidraw: raw HID events driver (C) Jiri Kosina
[   11.800000] u32 classifier
[   11.810000]     input device check on
[   11.810000]     Actions configured
[   11.820000] Mirror/redirect action on
[   11.840000] Failed to load ipt action
[   11.870000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.960000] usbcore: registered new interface driver usbhid
[   11.970000] usbhid: USB HID core driver
[   12.020000] xt_time: kernel timezone is -0000
[   17.520000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   17.530000] IPv6: ADDRCONF(NETDEV_UP): eth1.4: link is not ready
[   17.550000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   17.550000] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[   17.590000] IPv6: ADDRCONF(NETDEV_UP): eth1.7: link is not ready
[   17.600000] IPv6: ADDRCONF(NETDEV_UP): eth0.5: link is not ready
[   17.620000] IPv6: ADDRCONF(NETDEV_UP): eth0.6: link is not ready
[   17.630000] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   17.690000] IPv6: ADDRCONF(NETDEV_UP): eth0.3: link is not ready
[   17.750000] IPv6: ADDRCONF(NETDEV_UP): eth1.15: link is not ready
[   17.770000] eth0: link up (1000Mbps/Full duplex)
[   17.820000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   17.840000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   17.840000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   17.850000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.3: link becomes ready
[   17.860000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.5: link becomes ready
[   17.860000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.6: link becomes ready
[   18.120000] eth1: link up (1000Mbps/Full duplex)
[   18.120000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   18.190000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1.4: link becomes ready
[   18.190000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1.7: link becomes ready
[   18.200000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1.15: link becomes ready
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list