Hi,
I am running OpenWrt 18.06.2 and I'm trying to get a USB to serial cable working on the USB port of my RB2011, but nothing happens at all when I plug the device in. A friend of mine also has an RB2011 running 18.06.1 and he had the same problem, he even tried a powered USB hub and it didn't help.
The output here is completely blank:
root@router:~# cat /sys/kernel/debug/usb/devices
root@router:~#
Here is my kernel log:
[ 0.000000] Linux version 4.9.152 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7627-753531d) ) #0 Mon Jan 28 08:54:32 2019
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] SoC: Atheros AR9344 rev 2
[ 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] 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] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat 8047d994, node_mem_map 81000020
[ 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] 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: parts=1 boot_part_size=4194304 gpio=249387 HZ=300000000 mem=128M kmac=D4:CA:6D:96:D4:C1 board=2011G boot=0 mlc=4 rootfstype=squashfs 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: 124876K/131072K available (3602K kernel code, 161K rwdata, 456K rodata, 188K init, 209K bss, 6196K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Clocks: CPU:600.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[ 0.000009] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[ 0.008866] Calibrating delay loop... 299.82 BogoMIPS (lpj=1499136)
[ 0.081949] pid_max: default: 32768 minimum: 301
[ 0.087296] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.094813] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.105686] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.116885] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.125039] NET: Registered protocol family 16
[ 0.133091] MIPS: machine is Mikrotik RouterBOARD 2011UAS-2HnD
[ 0.615921] Can't analyze schedule() prologue at 803e10e4
[ 0.635202] clocksource: Switched to clocksource MIPS
[ 0.641987] NET: Registered protocol family 2
[ 0.647931] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.655901] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.663121] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.670433] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.677103] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.684466] NET: Registered protocol family 1
[ 0.689492] PCI: CLS 0 bytes, default 32
[ 0.693246] Crashlog allocated RAM at address 0x3f00000
[ 0.700384] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.714636] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.721299] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.742142] io scheduler noop registered
[ 0.746637] io scheduler deadline registered (default)
[ 0.752874] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.762821] console [ttyS0] disabled
[ 0.787055] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[ 0.796855] console [ttyS0] enabled
[ 0.880349] bootconsole [early0] disabled
[ 0.982342] m25p80 spi0.0: found w25x10, expected m25p80
[ 1.056302] m25p80 spi0.0: w25x10 (128 Kbytes)
[ 1.110000] Creating 4 MTD partitions on "spi0.0":
[ 1.167478] 0x000000000000-0x00000000c000 : "routerboot"
[ 1.233083] 0x00000000c000-0x00000000d000 : "hard_config"
[ 1.299903] 0x00000000d000-0x00000000e000 : "bios"
[ 1.359443] 0x00000000e000-0x00000000f000 : "soft_config"
[ 1.456252] nand: device found, Manufacturer ID: 0x98, Chip ID: 0xd1
[ 1.532477] nand: Toshiba TC58NVG0S3E 1G 3.3V 8-bit
[ 1.590980] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.681883] Scanning device for bad blocks
[ 1.735003] random: fast init done
[ 1.877813] Creating 3 MTD partitions on "ar934x-nfc":
[ 1.939453] 0x000000000000-0x000000040000 : "booter"
[ 2.000847] 0x000000040000-0x000000400000 : "kernel"
[ 2.062559] 0x000000400000-0x000008000000 : "ubi"
[ 2.124518] libphy: Fixed MDIO Bus: probed
[ 2.186661] libphy: ag71xx_mdio: probed
[ 2.241685] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
[ 3.043475] libphy: ag71xx_mdio: probed
[ 3.716679] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
[ 3.844805] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 4.546991] ag71xx-mdio.1: Found an AR934X built-in switch
[ 4.659389] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[ 4.732949] NET: Registered protocol family 10
[ 4.789511] NET: Registered protocol family 17
[ 4.842939] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 4.998497] 8021q: 802.1Q VLAN Support v1.8
[ 5.052225] UBI: auto-attach mtd6
[ 5.092020] ubi0: attaching mtd6
[ 6.489318] random: crng init done
[ 6.699352] ubi0: scanning is finished
[ 6.762350] ubi0: attached mtd6 (name "ubi", size 124 MiB)
[ 6.828195] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[ 6.910684] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 6.991107] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[ 7.072579] ubi0: good PEBs: 992, bad PEBs: 0, corrupted PEBs: 0
[ 7.144664] ubi0: user volume: 4, internal volumes: 1, max. volumes count: 128
[ 7.231362] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 541962632
[ 7.339951] ubi0: available PEBs: 0, total reserved PEBs: 992, PEBs reserved for bad PEB handling: 20
[ 7.455700] ubi0: background thread "ubi_bgt0d" started, PID 368
[ 7.547840] block ubiblock0_2: created from ubi0:2(rootfs)
[ 7.613729] ubiblock: device ubiblock0_2 (rootfs) set to be root filesystem
[ 7.707259] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 7.793815] Freeing unused kernel memory: 188K
[ 7.847070] This architecture does not have kernel memory protection.
[ 8.519041] init: Console is alive
[ 8.560035] init: - watchdog -
[ 9.529655] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 9.693125] usbcore: registered new interface driver usbfs
[ 9.759061] usbcore: registered new interface driver hub
[ 9.822885] usbcore: registered new device driver usb
[ 9.888843] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 9.968762] ehci-platform: EHCI generic platform driver
[ 10.034222] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 10.109682] ohci-platform: OHCI generic platform driver
[ 10.173191] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 10.270345] init: - preinit -
[ 10.965991] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 12.096825] eth0: link up (1000Mbps/Full duplex)
[ 12.154602] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 14.391992] UBIFS (ubi0:3): background thread "ubifs_bgt0_3" started, PID 439
[ 14.555671] UBIFS (ubi0:3): recovery needed
[ 14.764292] UBIFS (ubi0:3): recovery completed
[ 14.817733] UBIFS (ubi0:3): UBIFS: mounted UBI device 0, volume 3, name "rootfs_data"
[ 14.911732] UBIFS (ubi0:3): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 15.030747] UBIFS (ubi0:3): FS size: 117540864 bytes (112 MiB, 911 LEBs), journal size 5935104 bytes (5 MiB, 46 LEBs)
[ 15.158112] UBIFS (ubi0:3): reserved for root: 4952683 bytes (4836 KiB)
[ 15.237503] UBIFS (ubi0:3): media format: w4/r0 (latest is w4/r0), UUID 44D1B7CB-589F-4025-9D00-30E1C0AEC355, small LPT model
[ 15.392952] mount_root: switching to ubifs overlay
[ 15.491854] urandom-seed: Seeding with /etc/urandom.seed
[ 15.756657] eth0: link down
[ 15.809969] procd: - early -
[ 15.844576] procd: - watchdog -
[ 16.546409] procd: - watchdog -
[ 16.584351] procd: - ubus -
[ 16.766907] procd: - init -
[ 17.858678] kmodloader: loading kernel modules from /etc/modules.d/*
[ 17.944643] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 18.031749] Netfilter messages via NETLINK v0.30.
[ 18.109830] ip_set: protocol 6
[ 18.284729] u32 classifier
[ 18.317168] input device check on
[ 18.361057] Actions configured
[ 18.405393] Mirror/redirect action on
[ 18.504311] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 18.600408] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 18.752368] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 18.855940] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 19.005013] usbcore: registered new interface driver usbserial
[ 19.075182] usbcore: registered new interface driver usbserial_generic
[ 19.153683] usbserial: USB Serial support registered for generic
[ 19.246898] xt_time: kernel timezone is -0000
[ 19.325621] usbcore: registered new interface driver cp210x
[ 19.392605] usbserial: USB Serial support registered for cp210x
[ 19.511387] usbcore: registered new interface driver pl2303
[ 19.578417] usbserial: USB Serial support registered for pl2303
[ 19.653529] PPP generic driver version 2.4.2
[ 19.707454] NET: Registered protocol family 24
[ 19.810837] ath: EEPROM regdomain: 0x0
[ 19.810845] ath: EEPROM indicates default country code should be used
[ 19.810849] ath: doing EEPROM country->regdmn map search
[ 19.810864] ath: country maps to regdmn code: 0x3a
[ 19.810870] ath: Country alpha2 being used: US
[ 19.810873] ath: Regpair used: 0x3a
[ 19.823399] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 19.827387] ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=47
[ 20.072799] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 32.289873] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 32.571342] eth0: link up (1000Mbps/Full duplex)
[ 33.226434] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Any suggestions?
Thanks!