OpenWrt Forum Archive

Topic: Upgrading kernel to v3.14. Easy or hard?

The content of this topic has been archived on 28 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I want to do a proof-of-concept project (stability is not important) using some Linux features not introduced before kernel v3.14, on a TP-link WDR4300.

Having not done much OpenWRT or Linux kernel development before, how much work (if it's possible at all) would it be to upgrade the kernel to v3.14 or later?

Appreciate any answer smile

(Last edited by jojab on 11 Jun 2014, 14:29)

It depends on your skills:

As an example you can review many changesets that add new kernel versions:

There are changes specific to a hardware platform
https://dev.openwrt.org/changeset/37214 ( ar71xx: add linux 3.10 )
and several patches that increase the version number or fix breakage

and generic changes that are introduced earlier:
https://dev.openwrt.org/changeset/36657 ( kernel: generic: add 3.10-rc1 support )

afaik generic 3.14 is already available so "only" ar71xx specific patches remain

I tried to get 3.14 working on WDR4300, but had no luck getting it to work.

I have now gotten a hold of an ASUS RT-N16, which is a brcm47xx, and I see that 3.14 patches and config are located in the target folder. So i changed the Linux kerne version in the brcm47xx Makefile into 3.14.12, hoping that this was enough to make a fully working OpenWRT image with 3.14 kernel.

After make menuconfig with target set to brcm47xx (MIPS), subtarget Generic, and Target profile Broadcom SoC, Ethernet, WiFi (wl, proprietary), OpenWRT compiled. But flashing the image to the router just makes the PWR led flash/blink fast.

Should this work for the router (as the patches are available in the targetfolder) or isn't 3.14 that easy to get running? smile

I don't think switching from 3.10 to 3.14 caused any problems for brcm47xx. I would guess using 3.10 would result in blinking LEDs as well.

Can you attach serial console and grab the boot log for us? So we can know what causes "blinking LEDs".

I did the same test, switched kernel in Makefile to 3.14.12, compiled and installed on my device with BCM5357C0. Works fine.

(Last edited by Zajec on 15 Jul 2014, 19:00)

zloop wrote:

It depends on your skills:

As an example you can review many changesets that add new kernel versions:

There are changes specific to a hardware platform
https://dev.openwrt.org/changeset/37214 ( ar71xx: add linux 3.10 )
and several patches that increase the version number or fix breakage

and generic changes that are introduced earlier:
https://dev.openwrt.org/changeset/36657 ( kernel: generic: add 3.10-rc1 support )

afaik generic 3.14 is already available so "only" ar71xx specific patches remain


Are those patches ever submitted upstream so they get merged with the mainline kernel?

Zajec wrote:

I don't think switching from 3.10 to 3.14 caused any problems for brcm47xx. I would guess using 3.10 would result in blinking LEDs as well.

Can you attach serial console and grab the boot log for us? So we can know what causes "blinking LEDs".

I tried compiling and running 3.10 again, and you're absolutely right. The LED are blinking here as well, even though OpenWRT are working.

So I got the serial output of the 3.14 build, and here it is (does seem to stop here):

serial wrote:

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: ¤T  5¤ë 27 16:47:24 CST 2009 (root@localhost.localdomain)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.10.56.3
CPU type 0x19740: 480MHz
Tot mem: 131072 KBytes

CFE mem:    0x80700000 - 0x8079B310 (635664)
Data:       0x80731B30 - 0x80734880 (11600)
BSS:        0x80734880 - 0x80735310 (2704)
Heap:       0x80735310 - 0x80799310 (409600)
Stack:      0x80799310 - 0x8079B310 (8192)
Text:       0x80700000 - 0x80731B30 (203568)

Device eth0:  hwaddr BC-EE-7B-97-94-4E, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Null Rescue Flag.
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: TFTP Server.
Failed.
Could not load :: Timeout occured
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3712 bytes read
Entry at 0x80001000
Starting program at 0x80001000
[    0.000000] Linux version 3.14.12 (johan@johan-VirtualBox) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r41663) ) #1 Tue Jul 15 17:55:50 CEST 2014
[    0.000000] CPU0 revision is: 00019740 (MIPS 74Kc)
[    0.000000] bcm47xx: using bcma bus
[    0.000000] bcma: bus0: Found chip with id 0x4716, rev 0x01 and package 0x0A
[    0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x1F, class 0x0)
[    0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x01, class 0x0)
[    0.000000] bcma: bus0: Early bus registered
[    0.000000] MIPS: machine is Asus RT-N16
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 07fff000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffefff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffefff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32511
[    0.000000] Kernel command line:  noinitrd console=ttyS0,115200
[    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: 126436K/131068K available (2441K kernel code, 109K rwdata, 484K rodata, 152K init, 227K bss, 4632K reserved)
[    0.000000] NR_IRQS:128
[    0.000000] Setting up vectored interrupts
[    0.060000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] NET: Registered protocol family 16
[    0.090000] bio: create slab <bio-0> at 0
[    0.090000] Switched to clocksource MIPS
[    0.100000] NET: Registered protocol family 2
[    0.100000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.100000] TCP: reno registered
[    0.100000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.100000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.100000] NET: Registered protocol family 1
[    0.100000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x11, class 0x0)
[    0.100000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x00, class 0x0)
[    0.100000] bcma: bus0: Core 4 found: USB 2.0 Host (manuf 0x4BF, id 0x819, rev 0x04, class 0x0)
[    0.100000] bcma: bus0: Core 5 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0E, class 0x0)
[    0.100000] bcma: bus0: Core 6 found: DDR1/DDR2 Memory Controller (manuf 0x4BF, id 0x82E, rev 0x01, class 0x0)
[    0.100000] bcma: bus0: Core 7 found: Internal Memory (manuf 0x4BF, id 0x80E, rev 0x07, class 0x0)
[    0.100000] bcma: bus0: Core 8 found: I2S (manuf 0x4BF, id 0x834, rev 0x00, class 0x0)
[    0.130000] bcma: bus0: PCIEcore in host mode found
[    0.320000] PCI host bridge to bus 0000:00
[    0.320000] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0bffffff]
[    0.320000] pci_bus 0000:00: root bus resource [io  0x0100-0x07ff]
[    0.320000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.320000] bcma: PCI: Fixing up bridge 0000:00:00.0
[    0.320000] bcma: PCI: Fixing up device 0000:00:00.0
[    0.320000] bcma: PCI: Fixing up bridge 0000:00:00.1
[    0.320000] bcma: PCI: Fixing up device 0000:00:00.1
[    0.330000] bcma: bus0: Bus registered
[    0.330000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.330000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.330000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.330000] msgmni has been set to 246
[    0.330000] io scheduler noop registered
[    0.330000] io scheduler deadline registered (default)
[    0.340000] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.360000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2, base_baud = 1250000) is a U6_16550A
[    0.770000] console [ttyS0] enabled
[    0.780000] physmap platform flash device: 02000001 at 1c000000
[    0.780000] physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x00007e
[    0.800000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.800000]   Amd/Fujitsu Extended Query version 1.3.
[    0.810000] number of CFI chips: 1
[    0.920000] 6 bcm47xxpart partitions found on MTD device physmap-flash.0
[    0.930000] Creating 6 MTD partitions on "physmap-flash.0":
[    0.930000] 0x000000000000-0x000000040000 : "boot"
[    0.940000] 0x000000040000-0x000001fe0000 : "firmware"
[    0.950000] 0x00000004001c-0x00000004090c : "loader"
[    0.950000] 0x00000004090c-0x00000014cc00 : "linux"
[    0.960000] mtd: partition "linux" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.970000] 0x00000014cc00-0x000001fe0000 : "rootfs"
[    0.980000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    1.000000] mtd: device 4 (rootfs) set to be root filesystem
[    1.000000] mtd: partition "rootfs_data" created automatically, ofs=0x320000, len=0x1cc0000
[    1.010000] 0x000000320000-0x000001fe0000 : "rootfs_data"
[    1.020000] 0x000001fe0000-0x000002000000 : "nvram"
[    1.030000] libphy: Fixed MDIO Bus: probed
[    1.040000] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds)
[    1.050000] GPIO_WDT: failed to register misc device
[    1.050000] TCP: cubic registered
[    1.050000] NET: Registered protocol family 17
[    1.060000] 8021q: 802.1Q VLAN Support v1.8
[    1.070000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.080000] Freeing unused kernel memory: 152K (802fa000 - 80320000)
procd: Console is alive
procd: - watchdog -
[    3.300000] pps_core: LinuxPPS API ver. 1 registered
[    3.300000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    3.320000] PTP clock support registered
[    3.330000] bgmac bcma0:1: Found PHY addr: 30 (NOREGS)
[    3.330000] bgmac bcma0:1: Support for Roboswitch not implemented
[    3.340000] libphy: bgmac mii bus: probed
[    3.430000] bgmac: Broadcom 47xx GBit MAC driver loaded
procd: - preinit -
[    4.750000] random: mktemp urandom read with 40 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
jffs2 is ready
jffs2 is ready
[    8.120000] jffs2: notice: (231) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 6 of xref (0 dead, 0 orphan) found.
switching to overlay
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   10.880000] NET: Registered protocol family 10
[   11.420000] wl: module license 'unspecified' taints kernel.
[   11.420000] Disabling lock debugging due to kernel taint
[   11.520000] wl0: Broadcom BCM4329 802.11 Wireless Controller 5.10.56.27
[   11.520000] SSB/BCMA glue driver successfully attached
[   11.560000] nf_conntrack version 0.5.0 (1977 buckets, 7908 max)
[   11.580000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.620000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.740000] xt_time: kernel timezone is -0000
[   11.770000] PPP generic driver version 2.4.2
[   11.770000] NET: Registered protocol family 24
[   16.680000] device eth0.1 entered promiscuous mode
[   16.690000] device eth0 entered promiscuous mode
[   16.700000] br-lan: port 1(eth0.1) entered forwarding state
[   16.700000] br-lan: port 1(eth0.1) entered forwarding state
[   18.530000] br-lan: port 1(eth0.1) entered disabled state
procd: - init complete -
[   22.330000] random: nonblocking pool is initialized

EDIT: OpenWRT seems to be running, as I can use Linux commands as ls, etc. uname -r reveals 3.14.12 kernel as well! So the problem is that it doesn't work as a router (I cannot connect to it using Ethernet) so there may be some net packages that are not working.

(Last edited by jojab on 16 Jul 2014, 10:52)

Huh, did you manage to compile OpenWrt without b53? Weird. What can you see in:

grep B53 build_dir/target-*/linux-*/linux-3.*/.config

? You should see B53 driver enabled (=y) with B53_PHY_DRIVER=y

The output from that command is:

grep wrote:

# CONFIG_MIKROTIK_RB532 is not set
CONFIG_B53=y
CONFIG_B53_PHY_DRIVER=y
# CONFIG_B53_MMAP_DRIVER is not set
# CONFIG_B53_SRAB_DRIVER is not set
CONFIG_B53_PHY_FIXUP=y

so the driver seems to be enabled. What made you think the driver where disabled?

You are supposed to see:

bgmac bcma0:0: Found PHY addr: 30 (NOREGS)
bgmac bcma0:0: Support for Roboswitch not implemented
libphy: bgmac mii bus: probed
b53_common: found switch: BCM53125, rev 4
bgmac: Broadcom 47xx GBit MAC driver loaded

I have been using the 3.14.12 kernel build on brcm47xx for a couple of days now, and it has been working well. But I have now run into some problems when trying to connect a USB dongle to it. (It is a Bluetooth dongle, but before I install any BT specific modules, I just wanted to make sure it could detect it when I connect a USB device).

I have downloaded the trunk, changed the Makefile to 3.14.12, compiled using target brcm47xx (MIPS),  target profile Broadcom SoC, all Ethernet, WiFi (wl, proprietary). I have also have put a (*) on kmod-usb-brcm47xx, kmod-usb-core, kmod-usb-ohci and kmod-usb2. Here is my bootlog (when it is finished booting I plug in two USB devices, and as you can see only one of them gets recognized):

3.14.12 wrote:

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: ¤T  5¤ë 27 16:47:24 CST 2009 (root@localhost.localdomain)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.10.56.3
CPU type 0x19740: 480MHz
Tot mem: 131072 KBytes

CFE mem:    0x80700000 - 0x8079B310 (635664)
Data:       0x80731B30 - 0x80734880 (11600)
BSS:        0x80734880 - 0x80735310 (2704)
Heap:       0x80735310 - 0x80799310 (409600)
Stack:      0x80799310 - 0x8079B310 (8192)
Text:       0x80700000 - 0x80731B30 (203568)

Device eth0:  hwaddr BC-EE-7B-97-94-4E, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Null Rescue Flag.
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: TFTP Server.
Failed.
Could not load :: Timeout occured
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3712 bytes read
Entry at 0x80001000
Starting program at 0x80001000
[    0.000000] Linux version 3.14.12 (hussar@hussar) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r41814) ) #1 Wed Jul 23 15:31:33 CEST 2014
[    0.000000] CPU0 revision is: 00019740 (MIPS 74Kc)
[    0.000000] bcm47xx: using bcma bus
[    0.000000] bcma: bus0: Found chip with id 0x4716, rev 0x01 and package 0x0A
[    0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x1F, class 0x0)
[    0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x01, class 0x0)
[    0.000000] bcma: bus0: Early bus registered
[    0.000000] MIPS: machine is Asus RT-N16
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 07fff000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffefff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffefff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32511
[    0.000000] Kernel command line:  noinitrd console=ttyS0,115200
[    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: 126436K/131068K available (2443K kernel code, 115K rwdata, 484K rodata, 144K init, 227K bss, 4632K reserved)
[    0.000000] NR_IRQS:128
[    0.000000] Setting up vectored interrupts
[    0.060000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] NET: Registered protocol family 16
[    0.090000] bio: create slab <bio-0> at 0
[    0.090000] Switched to clocksource MIPS
[    0.100000] NET: Registered protocol family 2
[    0.100000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.100000] TCP: reno registered
[    0.100000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.100000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.100000] NET: Registered protocol family 1
[    0.100000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x11, class 0x0)
[    0.100000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x00, class 0x0)
[    0.100000] bcma: bus0: Core 4 found: USB 2.0 Host (manuf 0x4BF, id 0x819, rev 0x04, class 0x0)
[    0.100000] bcma: bus0: Core 5 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0E, class 0x0)
[    0.100000] bcma: bus0: Core 6 found: DDR1/DDR2 Memory Controller (manuf 0x4BF, id 0x82E, rev 0x01, class 0x0)
[    0.100000] bcma: bus0: Core 7 found: Internal Memory (manuf 0x4BF, id 0x80E, rev 0x07, class 0x0)
[    0.100000] bcma: bus0: Core 8 found: I2S (manuf 0x4BF, id 0x834, rev 0x00, class 0x0)
[    0.130000] bcma: bus0: PCIEcore in host mode found
[    0.320000] PCI host bridge to bus 0000:00
[    0.320000] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0bffffff]
[    0.320000] pci_bus 0000:00: root bus resource [io  0x0100-0x07ff]
[    0.320000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.320000] bcma: PCI: Fixing up bridge 0000:00:00.0
[    0.320000] bcma: PCI: Fixing up device 0000:00:00.0
[    0.320000] bcma: PCI: Fixing up bridge 0000:00:00.1
[    0.320000] bcma: PCI: Fixing up device 0000:00:00.1
[    0.330000] bcma: bus0: Bus registered
[    0.330000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.330000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.330000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.330000] msgmni has been set to 246
[    0.330000] io scheduler noop registered
[    0.330000] io scheduler deadline registered (default)
[    0.340000] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.360000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2, base_baud = 1250000) is a U6_16550A
[    0.770000] console [ttyS0] enabled
[    0.780000] physmap platform flash device: 02000001 at 1c000000
[    0.780000] physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x00007e
[    0.790000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.800000]   Amd/Fujitsu Extended Query version 1.3.
[    0.800000] number of CFI chips: 1
[    0.920000] 6 bcm47xxpart partitions found on MTD device physmap-flash.0
[    0.920000] Creating 6 MTD partitions on "physmap-flash.0":
[    0.930000] 0x000000000000-0x000000040000 : "boot"
[    0.940000] 0x000000040000-0x000001fe0000 : "firmware"
[    0.950000] 0x00000004001c-0x00000004090c : "loader"
[    0.950000] 0x00000004090c-0x00000014cc00 : "linux"
[    0.960000] mtd: partition "linux" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.970000] 0x00000014cc00-0x000001fe0000 : "rootfs"
[    0.980000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    1.000000] mtd: device 4 (rootfs) set to be root filesystem
[    1.000000] mtd: partition "rootfs_data" created automatically, ofs=0x340000, len=0x1ca0000
[    1.010000] 0x000000340000-0x000001fe0000 : "rootfs_data"
[    1.020000] 0x000001fe0000-0x000002000000 : "nvram"
[    1.030000] libphy: Fixed MDIO Bus: probed
[    1.040000] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds)
[    1.050000] GPIO_WDT: failed to register misc device
[    1.050000] TCP: cubic registered
[    1.050000] NET: Registered protocol family 17
[    1.060000] 8021q: 802.1Q VLAN Support v1.8
[    1.070000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.080000] Freeing unused kernel memory: 144K (802fc000 - 80320000)
procd: Console is alive
procd: - watchdog -
[    3.440000] pps_core: LinuxPPS API ver. 1 registered
[    3.440000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    3.460000] PTP clock support registered
[    3.470000] bgmac bcma0:1: Found PHY addr: 30 (NOREGS)
[    3.480000] bgmac bcma0:1: Support for Roboswitch not implemented
[    3.480000] libphy: bgmac mii bus: probed
[    3.640000] b53_common: found switch: BCM53115, rev 8
[    3.650000] bgmac: Broadcom 47xx GBit MAC driver loaded
[    3.700000] usbcore: registered new interface driver usbfs
[    3.710000] usbcore: registered new interface driver hub
[    3.710000] usbcore: registered new device driver usb
[    3.720000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.730000] ehci-platform: EHCI generic platform driver
[    3.740000] ehci-platform ehci-platform.0: EHCI Host Controller
[    3.740000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[    3.750000] ehci-platform ehci-platform.0: irq 5, io mem 0x18004000
[    3.780000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[    3.780000] hub 1-0:1.0: USB hub found
[    3.790000] hub 1-0:1.0: 2 ports detected
[    3.800000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
procd: - preinit -
[    5.200000] random: mktemp urandom read with 42 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    5.650000] libphy: bgmac-0-0:1e - Link is Up - 1000/Full
jffs2 is ready
jffs2 is ready
[    7.500000] jffs2: notice: (250) jffs2_build_xattr_subsystem: complete building xattr subsystem, 16 of xdatum (0 unchecked, 15 orphan) and 21 of xref (0 dead, 15 orphan) found.
switching to overlay
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   10.370000] NET: Registered protocol family 10
[   10.910000] wl: module license 'unspecified' taints kernel.
[   10.910000] Disabling lock debugging due to kernel taint
[   11.010000] wl0: Broadcom BCM4329 802.11 Wireless Controller 5.10.56.27
[   11.010000] SSB/BCMA glue driver successfully attached
[   11.040000] nf_conntrack version 0.5.0 (1977 buckets, 7908 max)
[   11.060000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.110000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.280000] xt_time: kernel timezone is -0000
[   11.290000] PPP generic driver version 2.4.2
[   11.300000] NET: Registered protocol family 24
[   15.760000] libphy: bgmac-0-0:1e - Link is Up - 1000/Full
[   17.360000] device eth0.1 entered promiscuous mode
[   17.370000] device eth0 entered promiscuous mode
[   17.390000] br-lan: port 1(eth0.1) entered forwarding state
[   17.390000] br-lan: port 1(eth0.1) entered forwarding state
[   18.950000] libphy: bgmac-0-0:1e - Link is Up - 1000/Full
procd: - init complete -
[   19.390000] br-lan: port 1(eth0.1) entered forwarding state
[   22.830000] random: nonblocking pool is initialized
[   35.700000] usb 1-2: new high-speed USB device number 3 using ehci-platform

For comparison, here is my 3.10.49 build bootlog using the exact same menuconfig choices (here you can see both USB devices getting recognized at the end):

3.10.49 bootlog wrote:

CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: ¤T  5¤ë 27 16:47:24 CST 2009 (root@localhost.localdomain)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.10.56.3
CPU type 0x19740: 480MHz
Tot mem: 131072 KBytes

CFE mem:    0x80700000 - 0x8079B310 (635664)
Data:       0x80731B30 - 0x80734880 (11600)
BSS:        0x80734880 - 0x80735310 (2704)
Heap:       0x80735310 - 0x80799310 (409600)
Stack:      0x80799310 - 0x8079B310 (8192)
Text:       0x80700000 - 0x80731B30 (203568)

Device eth0:  hwaddr BC-EE-7B-97-94-4E, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Null Rescue Flag.
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: TFTP Server.
Failed.
Could not load :: Timeout occured
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3712 bytes read
Entry at 0x80001000
Starting program at 0x80001000
[    0.000000] Linux version 3.10.49 (hussar@hussar) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r41812) ) #1 Wed Jul 23 14:45:20 CEST 2014
[    0.000000] CPU revision is: 00019740 (MIPS 74Kc)
[    0.000000] bcm47xx: using bcma bus
[    0.000000] bcma: bus0: Found chip with id 0x4716, rev 0x01 and package 0x0A
[    0.000000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x1F, class 0x0)
[    0.000000] bcma: bus0: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x01, class 0x0)
[    0.000000] bcma: bus0: Early bus registered
[    0.000000] MIPS: machine is Asus RT-N16
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 07fff000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x07ffefff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x07ffefff]
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32511
[    0.000000] Kernel command line:  noinitrd console=ttyS0,115200
[    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: 126568k/131068k available (2314k kernel code, 4500k reserved, 580k data, 172k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.000000] Setting up vectored interrupts
[    0.060000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.070000] pid_max: default: 32768 minimum: 301
[    0.070000] Mount-cache hash table entries: 512
[    0.070000] NET: Registered protocol family 16
[    0.090000] bio: create slab <bio-0> at 0
[    0.090000] Switching to clocksource MIPS
[    0.100000] NET: Registered protocol family 2
[    0.100000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.100000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.100000] TCP: reno registered
[    0.100000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.100000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.100000] NET: Registered protocol family 1
[    0.100000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x11, class 0x0)
[    0.100000] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x00, class 0x0)
[    0.100000] bcma: bus0: Core 4 found: USB 2.0 Host (manuf 0x4BF, id 0x819, rev 0x04, class 0x0)
[    0.100000] bcma: bus0: Core 5 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0E, class 0x0)
[    0.100000] bcma: bus0: Core 6 found: DDR1/DDR2 Memory Controller (manuf 0x4BF, id 0x82E, rev 0x01, class 0x0)
[    0.100000] bcma: bus0: Core 7 found: Internal Memory (manuf 0x4BF, id 0x80E, rev 0x07, class 0x0)
[    0.100000] bcma: bus0: Core 8 found: I2S (manuf 0x4BF, id 0x834, rev 0x00, class 0x0)
[    0.130000] bcma: bus0: PCIEcore in host mode found
[    0.320000] PCI host bridge to bus 0000:00
[    0.320000] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0bffffff]
[    0.320000] pci_bus 0000:00: root bus resource [io  0x0100-0x07ff]
[    0.320000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.320000] bcma: PCI: Fixing up bridge 0000:00:00.0
[    0.320000] bcma: PCI: Fixing up device 0000:00:00.0
[    0.320000] bcma: PCI: Fixing up bridge 0000:00:00.1
[    0.320000] bcma: PCI: Fixing up device 0000:00:00.1
[    0.330000] bcma: bus0: Bus registered
[    0.330000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.330000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.330000] msgmni has been set to 247
[    0.330000] io scheduler noop registered
[    0.330000] io scheduler deadline registered (default)
[    0.330000] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled
[    0.360000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2) is a U6_16550A
[    0.750000] console [ttyS0] enabled
[    0.760000] physmap platform flash device: 02000001 at 1c000000
[    0.760000] physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x00007e
[    0.770000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.780000]   Amd/Fujitsu Extended Query version 1.3.
[    0.780000] number of CFI chips: 1
[    0.900000] 6 bcm47xxpart partitions found on MTD device physmap-flash.0
[    0.900000] Creating 6 MTD partitions on "physmap-flash.0":
[    0.910000] 0x000000000000-0x000000040000 : "boot"
[    0.920000] 0x000000040000-0x000001fe0000 : "firmware"
[    0.930000] 0x00000004001c-0x00000004090c : "loader"
[    0.930000] 0x00000004090c-0x000000142400 : "linux"
[    0.940000] mtd: partition "linux" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.950000] 0x000000142400-0x000001fe0000 : "rootfs"
[    0.960000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.970000] mtd: device 4 (rootfs) set to be root filesystem
[    0.980000] mtd: partition "rootfs_data" created automatically, ofs=0x340000, len=0x1ca0000
[    0.990000] 0x000000340000-0x000001fe0000 : "rootfs_data"
[    1.000000] 0x000001fe0000-0x000002000000 : "nvram"
[    1.010000] libphy: Fixed MDIO Bus: probed
[    1.010000] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds)
[    1.020000] GPIO_WDT: failed to register misc device
[    1.030000] TCP: cubic registered
[    1.030000] NET: Registered protocol family 17
[    1.040000] 8021q: 802.1Q VLAN Support v1.8
[    1.050000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    1.060000] Freeing unused kernel memory: 172K (802d5000 - 80300000)
procd: Console is alive
procd: - watchdog -
[    3.400000] pps_core: LinuxPPS API ver. 1 registered
[    3.410000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    3.420000] PTP clock support registered
[    3.430000] bgmac bcma0:1: Found PHY addr: 30 (NOREGS)
[    3.440000] bgmac bcma0:1: Support for Roboswitch not implemented
[    3.450000] libphy: bgmac mii bus: probed
[    3.530000] b53_common: found switch: BCM53115, rev 8
[    3.530000] bgmac: Broadcom 47xx GBit MAC driver loaded
[    3.580000] usbcore: registered new interface driver usbfs
[    3.590000] usbcore: registered new interface driver hub
[    3.600000] usbcore: registered new device driver usb
[    3.610000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.620000] ehci-platform: EHCI generic platform driver
[    3.620000] ehci-platform ehci-platform.0: EHCI Host Controller
[    3.630000] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[    3.640000] ehci-platform ehci-platform.0: irq 5, io mem 0x18004000
[    3.660000] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[    3.660000] hub 1-0:1.0: USB hub found
[    3.670000] hub 1-0:1.0: 2 ports detected
[    3.670000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.680000] ohci-platform ohci-platform.0: Generic Platform OHCI Controller
[    3.690000] ohci-platform ohci-platform.0: new USB bus registered, assigned bus number 2
[    3.700000] ohci-platform ohci-platform.0: irq 5, io mem 0x18009000
[    3.760000] hub 2-0:1.0: USB hub found
[    3.760000] hub 2-0:1.0: 2 ports detected
procd: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    5.530000] libphy: bgmac-0-0:1e - Link is Up - 1000/Full
jffs2 is ready
jffs2 is ready
[    8.460000] jffs2: notice: (253) jffs2_build_xattr_subsystem: complete building xattr subsystem, 16 of xdatum (0 unchecked, 15 orphan) and 21 of xref (0 dead, 15 orphan) found.
switching to overlay
procd: - early -
procd: - watchdog -
procd: - ubus -
procd: - init -
Please press Enter to activate this console.
[   11.320000] NET: Registered protocol family 10
[   11.860000] wl: module license 'unspecified' taints kernel.
[   11.870000] Disabling lock debugging due to kernel taint
[   11.960000] wl0: Broadcom BCM4329 802.11 Wireless Controller 5.10.56.27
[   11.960000] SSB/BCMA glue driver successfully attached
[   11.990000] nf_conntrack version 0.5.0 (1980 buckets, 7920 max)
[   12.000000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.040000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.130000] xt_time: kernel timezone is -0000
[   12.240000] PPP generic driver version 2.4.2
[   12.240000] NET: Registered protocol family 24
[   16.750000] libphy: bgmac-0-0:1e - Link is Up - 1000/Full
[   18.440000] device eth0.1 entered promiscuous mode
[   18.450000] device eth0 entered promiscuous mode
[   18.460000] br-lan: port 1(eth0.1) entered forwarding state
[   18.460000] br-lan: port 1(eth0.1) entered forwarding state
[   19.750000] libphy: bgmac-0-0:1e - Link is Up - 1000/Full
procd: - init complete -
[   20.460000] br-lan: port 1(eth0.1) entered forwarding state
[   29.210000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[   36.130000] usb 2-2: new full-speed USB device number 2 using ohci-platform

It seems like there is something not working with the ohci-driver. Can this problem be similar to the ethernet problem?

The discussion might have continued from here.