Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#160 - usb-serial (pl2303) failures on mt7621 dlink dir860l-b1 #5234

Open
openwrt-bot opened this issue Sep 5, 2016 · 0 comments
Open
Labels

Comments

@openwrt-bot
Copy link

russell:

git describe reboot-1497-ga810e77

with diffconfig:

CONFIG_TARGET_ramips=y CONFIG_TARGET_ramips_mt7621=y CONFIG_TARGET_ramips_mt7621_DEVICE_dir-860l-b1=y CONFIG_DEVEL=y CONFIG_BUILD_LOG=y CONFIG_PACKAGE_ip=y CONFIG_PACKAGE_kmod-usb-core=y CONFIG_PACKAGE_kmod-usb-ohci=y CONFIG_PACKAGE_kmod-usb-ohci-pci=y CONFIG_PACKAGE_kmod-usb-serial=y CONFIG_PACKAGE_kmod-usb-serial-ftdi=y CONFIG_PACKAGE_kmod-usb-serial-pl2303=y CONFIG_PACKAGE_kmod-usb2=y CONFIG_PACKAGE_kmod-usb2-pci=y CONFIG_PACKAGE_kmod-usb3=y CONFIG_PACKAGE_screen=y

screen starts, but doesn't work. The usb-relevant dmesg's are:

[ 4.550000] usbcore: registered new interface driver usbfs [ 4.560000] usbcore: registered new interface driver hub [ 4.570000] usbcore: registered new device driver usb [ 4.580000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 4.620000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 4.670000] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1 [ 4.720000] hub 1-0:1.0: USB hub found [ 4.740000] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2 [ 4.760000] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 4.770000] hub 2-0:1.0: USB hub found [ 5.260000] usb 1-1: new full-speed USB device number 2 using xhci-mtk [ 5.410000] usb 1-1: no of_node; not parsing pinctrl DT [ 10.150000] usbcore: registered new interface driver usbserial [ 10.160000] usbcore: registered new interface driver usbserial_generic [ 10.180000] usbserial: USB Serial support registered for generic [ 10.220000] usbcore: registered new interface driver ftdi_sio [ 10.240000] usbserial: USB Serial support registered for FTDI USB Serial Device [ 10.260000] usbcore: registered new interface driver pl2303 [ 10.270000] usbserial: USB Serial support registered for pl2303 [ 10.290000] pl2303 ttyUSB0: no of_node; not parsing pinctrl DT [ 10.290000] usb 1-1: pl2303 converter now attached to ttyUSB0 [ 871.510000] pl2303 ttyUSB0: pl2303_get_line_request - failed: -145 [ 871.620000] pl2303 ttyUSB0: pl2303_set_line_request - failed: -145 [ 871.840000] pl2303 ttyUSB0: pl2303_set_control_lines - failed: -145

Screen also throws an error (which gets blanked out, but is captured by the serial console):

# screen /dev/ttyUSB0 115200 /dev/null/utmp: Not a directory
@openwrt-bot
Copy link
Author

karlp:

Try with picocom, that looks like screen is trying to use utmp for locking or something? Arguably a bug with screen.

picocom -b 115200 /dev/ttyUSB0

@openwrt-bot
Copy link
Author

mkresin:

utmp is implemented only as [[http://wiki.musl-libc.org/wiki/FAQ#Q:why_is_the_utmp.2Fwtmp_functionality_only_implemented_as_stubs.3F|stub in musl]]. Therefore utmp support needs to be disabled in screen, which it at least possible with [[http://git.savannah.gnu.org/cgit/screen.git/commit/?id=df1c012227c95dd7aafe8706f4537445ba8f5d48|commit df1c012227c95dd7aafe8706f4537445ba8f5d48]].

But screen is part of the openwrt (external/additional) packages feed and issues for these packages are tracked at [[https://github.com/openwrt/packages/issues]].

I'll close the report here. Please open a new issue at the location mentioned above. Fell free to forward the information I've provided.

Edit:

Reopened the bug after getting pointed to the real issue this report is about:

[ 871.510000] pl2303 ttyUSB0: pl2303_get_line_request - failed: -145 [ 871.620000] pl2303 ttyUSB0: pl2303_set_line_request - failed: -145 [ 871.840000] pl2303 ttyUSB0: pl2303_set_control_lines - failed: -145

@openwrt-bot
Copy link
Author

russell:

I tried picocom, it gives the same kernel message:

[ 122.770000] pl2303 ttyUSB0: pl2303_set_control_lines - failed: -145

@openwrt-bot
Copy link
Author

russell:

I tried an ftdi usb-serial cable with a loopback wire (connecting tx with rx), and that worked in picocom and screen. So, ftdi = okay, pl2303 = broken on dir860l-b1.

@openwrt-bot
Copy link
Author

russell:

not a screen bug

@openwrt-bot
Copy link
Author

russell:

The pl2303 usb-serial chip has historically worked fine on OpenWrt platforms, going back to the ancient days (circa 2006) with a pl2303 built in to USB-GPS devices plugged into Netgear WGT634U and as recently as OpenWrt r49063 from late March 2016 on ramips AsiaRF AWM002.

Most recent revision with the failure is LEDE r1591. Earliest LEDE version tested on mt7621 was r1279-gc769c1b, which also failed.

Suggest changing the title to "usb-serial (pl2303) failures on mt7621 dlink dir860l-b1".

@openwrt-bot
Copy link
Author

russell:

The physical device is out of my regular kit bag that I use regularly and works fine on my desktop, and has worked fine in the same AsiaRF AWM002 as referenced above, so the adapter itself is okay. I have also tried 4 different pl2303-based devices, all of which work in my Ubuntu 14.04 laptop. I think we can rule out a bad pl2303.

@openwrt-bot
Copy link
Author

russell:

Plugging a usb2 hub into the dlink's usb3 host port, and then plugging the pl2303 into the hub, and it works fine.

It would be nice if someone else with an mt7621 or a dlink dir860l-b1 could try to replicate this problem.

@openwrt-bot
Copy link
Author

hngsvtdu:

Is the usb2 hub you plugged into external powered?

@openwrt-bot
Copy link
Author

russell:

Not sure it's relevant, but no, the usb2 hub was not powered externally. The pl2303 usb-serial draws very little power. Nothing else was plugged into the usb2 hub.

@openwrt-bot
Copy link
Author

stintel:

I can confirm this, tested on DIR-860L B1 running LEDE r2762-ed69e93.

Bus 001 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port [ 47.870000] usbcore: registered new interface driver pl2303 [ 47.880000] usbserial: USB Serial support registered for pl2303 [ 47.890000] pl2303 1-1:1.0: pl2303 converter detected [ 47.900000] usb 1-1: pl2303 converter now attached to ttyUSB0 [ 108.830000] pl2303 ttyUSB0: pl2303_set_control_lines - failed: -145 [ 108.940000] pl2303 ttyUSB0: pl2303_get_line_request - failed: -145 [ 109.050000] pl2303 ttyUSB0: pl2303_set_line_request - failed: -145 [ 109.160000] pl2303 1-1:1.0: pl2303_vendor_write - failed to write [0000]: -145 [ 109.270000] pl2303 ttyUSB0: pl2303_set_control_lines - failed: -145

@openwrt-bot
Copy link
Author

jmar83:

same problem with: QinHeng Electronics HL-340 USB-Serial adapter

@openwrt-bot
Copy link
Author

jmar83:

dmesg:

[screen is terminating]
root@OpenWrt:# opkg update && opkg install usbutils
Downloading http://downloads.openwrt.org/releases/18.06.0/targets/ar71xx/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06.0/targets/ar71xx/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mips_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mips_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mips_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mips_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mips_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mips_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mips_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mips_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mips_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mips_24kc/telephony/Packages.sig
Signature check passed.
Installing usbutils (007-7) to root...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mips_24kc/base/usbutils_007-7_mips_24kc.ipk
Installing librt (1.1.19-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.0/targets/ar71xx/generic/packages/librt_1.1.19-1_mips_24kc.ipk
Installing libusb-1.0 (1.0.22-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mips_24kc/base/libusb-1.0_1.0.22-1_mips_24kc.ipk
Configuring librt.
Configuring libusb-1.0.
Configuring usbutils.
root@OpenWrt:
# lsusb
Bus 001 Device 007: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@OpenWrt:#
root@OpenWrt:
# dmesg
[ 0.000000] Linux version 4.9.111 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9) ) #0 Mon Jul 30 16:25:17 2018
[ 0.000000] MyLoader: sysp=ffff0000, boardp=ffff0000, parts=ffff0000
[ 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] 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 80441ee4, 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=132768
[ 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: board=MYNET-N750 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro console=ttyS0,115200 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: 124996K/131072K available (3361K kernel code, 174K rwdata, 444K rodata, 300K init, 219K bss, 6076K 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:560.000MHz, DDR:480.000MHz, AHB:240.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[ 0.000009] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[ 0.008313] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[ 0.081138] pid_max: default: 32768 minimum: 301
[ 0.086160] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.093210] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.103168] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.113681] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.121308] NET: Registered protocol family 16
[ 0.127525] MIPS: machine is WD My Net N750
[ 0.159363] registering PCI controller with io_map_base unset
[ 0.420552] Can't analyze schedule() prologue at 803a4bd4
[ 0.435518] PCI host bridge to bus 0000:00
[ 0.439933] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.447249] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.453192] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.460413] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.468885] pci 0000:00:00.0: [168c:0030] type 00 class 0x028000
[ 0.468896] pci 0000:00:00.0: invalid calibration data
[ 0.474391] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit]
[ 0.474445] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.474519] pci 0000:00:00.0: supports D1
[ 0.474529] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.474760] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.474789] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.482616] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.490309] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.498390] clocksource: Switched to clocksource MIPS
[ 0.504810] NET: Registered protocol family 2
[ 0.510427] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.517852] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.524671] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.531521] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.537742] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.544683] NET: Registered protocol family 1
[ 0.549396] PCI: CLS 0 bytes, default 32
[ 0.551847] Crashlog allocated RAM at address 0x3f00000
[ 0.558295] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.572713] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.578959] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.597282] io scheduler noop registered
[ 0.601503] io scheduler deadline registered (default)
[ 0.607380] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.616908] console [ttyS0] disabled
[ 0.640794] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.649981] console [ttyS0] enabled
[ 0.657393] bootconsole [early0] disabled
[ 0.671048] m25p80 spi0.0: found mx25l12805d, expected m25p80
[ 0.677415] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.682620] 6 cmdlinepart partitions found on MTD device spi0.0
[ 0.688640] Creating 6 MTD partitions on "spi0.0":
[ 0.693509] 0x000000000000-0x000000040000 : "u-boot"
[ 0.699973] 0x000000040000-0x000000050000 : "u-boot-env"
[ 0.706913] 0x000000050000-0x000000060000 : "devdata"
[ 0.713631] 0x000000060000-0x000000070000 : "devconf"
[ 0.720367] 0x000000070000-0x000000ff0000 : "firmware"
[ 0.752037] 2 seama-fw partitions found on MTD device firmware
[ 0.757973] 0x000000070040-0x0000001c0000 : "kernel"
[ 0.764380] 0x0000001c0000-0x000000ff0000 : "rootfs"
[ 0.771020] mtd: device 6 (rootfs) set to be root filesystem
[ 0.776795] 1 squashfs-split partitions found on MTD device rootfs
[ 0.783116] 0x000000400000-0x000000ff0000 : "rootfs_data"
[ 0.790180] 0x000000ff0000-0x000001000000 : "radiocfg"
[ 0.797768] libphy: Fixed MDIO Bus: probed
[ 1.809837] switch0: Atheros AR8327 rev. 2 switch registered on ag71xx-mdio.0
[ 2.479876] libphy: ag71xx_mdio: probed
[ 2.598385] random: fast init done
[ 4.107017] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[ 4.118557] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 4.126567] NET: Registered protocol family 10
[ 4.134481] NET: Registered protocol family 17
[ 4.139102] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 4.152359] 8021q: 802.1Q VLAN Support v1.8
[ 4.158261] hctosys: unable to open rtc device (rtc0)
[ 4.167853] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[ 4.176333] Freeing unused kernel memory: 300K
[ 4.180871] This architecture does not have kernel memory protection.
[ 4.874808] init: Console is alive
[ 4.878533] init: - watchdog -
[ 5.821477] kmodloader: loading kernel modules from /etc/modules-boot.d/

[ 5.888931] usbcore: registered new interface driver usbfs
[ 5.894624] usbcore: registered new interface driver hub
[ 5.900138] usbcore: registered new device driver usb
[ 5.910337] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.918524] ehci-platform: EHCI generic platform driver
[ 5.923920] ehci-platform ehci-platform: EHCI Host Controller
[ 5.929827] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 5.939969] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 5.968432] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[ 5.975647] hub 1-0:1.0: USB hub found
[ 5.979844] hub 1-0:1.0: 1 port detected
[ 5.984638] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.002424] init: - preinit -
[ 6.623045] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 6.760055] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6.786517] random: procd: uninitialized urandom read (4 bytes read)
[ 6.821342] hub 1-1:1.0: USB hub found
[ 6.826860] hub 1-1:1.0: 4 ports detected
[ 7.158414] usb 1-1.2: new full-speed USB device number 3 using ehci-platform
[ 7.799649] eth0: link up (1000Mbps/Full duplex)
[ 7.804415] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 9.968690] jffs2: notice: (436) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 9.986546] mount_root: switching to jffs2 overlay
[ 10.060545] urandom-seed: Seeding with /etc/urandom.seed
[ 10.262647] eth0: link down
[ 10.277743] procd: - early -
[ 10.281479] procd: - watchdog -
[ 10.921588] procd: - watchdog -
[ 10.925056] procd: - ubus -
[ 11.031946] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.040350] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.047257] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.054766] procd: - init -
[ 11.534003] kmodloader: loading kernel modules from /etc/modules.d/*
[ 11.545235] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 11.561620] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 11.569791] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 11.579526] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 11.593462] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 11.647305] usbcore: registered new interface driver usbserial
[ 11.653378] usbcore: registered new interface driver usbserial_generic
[ 11.660118] usbserial: USB Serial support registered for generic
[ 11.683746] xt_time: kernel timezone is -0000
[ 11.707596] usbcore: registered new interface driver ch341
[ 11.713324] usbserial: USB Serial support registered for ch341-uart
[ 11.719768] ch341 1-1.2:1.0: ch341-uart converter detected
[ 11.746768] usb 1-1.2: ch341-uart converter now attached to ttyUSB0
[ 11.788906] PPP generic driver version 2.4.2
[ 11.795557] NET: Registered protocol family 24
[ 11.838288] ath: EEPROM regdomain: 0x0
[ 11.838296] ath: EEPROM indicates default country code should be used
[ 11.838300] ath: doing EEPROM country->regdmn map search
[ 11.838314] ath: country maps to regdmn code: 0x3a
[ 11.838320] ath: Country alpha2 being used: US
[ 11.838324] ath: Regpair used: 0x3a
[ 11.850475] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 11.854202] ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=47
[ 11.861149] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 11.872227] ath: EEPROM regdomain: 0x0
[ 11.872234] ath: EEPROM indicates default country code should be used
[ 11.872238] ath: doing EEPROM country->regdmn map search
[ 11.872253] ath: country maps to regdmn code: 0x3a
[ 11.872259] ath: Country alpha2 being used: US
[ 11.872263] ath: Regpair used: 0x3a
[ 11.882388] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 11.886141] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, irq=40
[ 12.016221] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 13.345548] urandom_read: 5 callbacks suppressed
[ 13.345556] random: jshn: uninitialized urandom read (4 bytes read)
[ 24.011310] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 24.018587] eth0: link up (1000Mbps/Full duplex)
[ 24.038598] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
root@OpenWrt:# dmesg
[ 0.000000] Linux version 4.9.111 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9) ) #0 Mon Jul 30 16:25:17 2018
[ 0.000000] MyLoader: sysp=ffff0000, boardp=ffff0000, parts=ffff0000
[ 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] 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 80441ee4, 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=132768
[ 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: board=MYNET-N750 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,64k(devdata)ro,64k(devconf)ro,15872k(firmware),64k(radiocfg)ro console=ttyS0,115200 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: 124996K/131072K available (3361K kernel code, 174K rwdata, 444K rodata, 300K init, 219K bss, 6076K 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:560.000MHz, DDR:480.000MHz, AHB:240.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[ 0.000009] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[ 0.008313] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[ 0.081138] pid_max: default: 32768 minimum: 301
[ 0.086160] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.093210] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.103168] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.113681] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.121308] NET: Registered protocol family 16
[ 0.127525] MIPS: machine is WD My Net N750
[ 0.159363] registering PCI controller with io_map_base unset
[ 0.420552] Can't analyze schedule() prologue at 803a4bd4
[ 0.435518] PCI host bridge to bus 0000:00
[ 0.439933] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 0.447249] pci_bus 0000:00: root bus resource [io 0x0000]
[ 0.453192] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.460413] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.468885] pci 0000:00:00.0: [168c:0030] type 00 class 0x028000
[ 0.468896] pci 0000:00:00.0: invalid calibration data
[ 0.474391] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x0001ffff 64bit]
[ 0.474445] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.474519] pci 0000:00:00.0: supports D1
[ 0.474529] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.474760] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 0.474789] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 0.482616] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 0.490309] pci 0000:00:00.0: using irq 40 for pin 1
[ 0.498390] clocksource: Switched to clocksource MIPS
[ 0.504810] NET: Registered protocol family 2
[ 0.510427] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.517852] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.524671] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.531521] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.537742] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.544683] NET: Registered protocol family 1
[ 0.549396] PCI: CLS 0 bytes, default 32
[ 0.551847] Crashlog allocated RAM at address 0x3f00000
[ 0.558295] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.572713] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.578959] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.597282] io scheduler noop registered
[ 0.601503] io scheduler deadline registered (default)
[ 0.607380] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.616908] console [ttyS0] disabled
[ 0.640794] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 0.649981] console [ttyS0] enabled
[ 0.657393] bootconsole [early0] disabled
[ 0.671048] m25p80 spi0.0: found mx25l12805d, expected m25p80
[ 0.677415] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.682620] 6 cmdlinepart partitions found on MTD device spi0.0
[ 0.688640] Creating 6 MTD partitions on "spi0.0":
[ 0.693509] 0x000000000000-0x000000040000 : "u-boot"
[ 0.699973] 0x000000040000-0x000000050000 : "u-boot-env"
[ 0.706913] 0x000000050000-0x000000060000 : "devdata"
[ 0.713631] 0x000000060000-0x000000070000 : "devconf"
[ 0.720367] 0x000000070000-0x000000ff0000 : "firmware"
[ 0.752037] 2 seama-fw partitions found on MTD device firmware
[ 0.757973] 0x000000070040-0x0000001c0000 : "kernel"
[ 0.764380] 0x0000001c0000-0x000000ff0000 : "rootfs"
[ 0.771020] mtd: device 6 (rootfs) set to be root filesystem
[ 0.776795] 1 squashfs-split partitions found on MTD device rootfs
[ 0.783116] 0x000000400000-0x000000ff0000 : "rootfs_data"
[ 0.790180] 0x000000ff0000-0x000001000000 : "radiocfg"
[ 0.797768] libphy: Fixed MDIO Bus: probed
[ 1.809837] switch0: Atheros AR8327 rev. 2 switch registered on ag71xx-mdio.0
[ 2.479876] libphy: ag71xx_mdio: probed
[ 2.598385] random: fast init done
[ 4.107017] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[ 4.118557] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 4.126567] NET: Registered protocol family 10
[ 4.134481] NET: Registered protocol family 17
[ 4.139102] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 4.152359] 8021q: 802.1Q VLAN Support v1.8
[ 4.158261] hctosys: unable to open rtc device (rtc0)
[ 4.167853] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[ 4.176333] Freeing unused kernel memory: 300K
[ 4.180871] This architecture does not have kernel memory protection.
[ 4.874808] init: Console is alive
[ 4.878533] init: - watchdog -
[ 5.821477] kmodloader: loading kernel modules from /etc/modules-boot.d/

[ 5.888931] usbcore: registered new interface driver usbfs
[ 5.894624] usbcore: registered new interface driver hub
[ 5.900138] usbcore: registered new device driver usb
[ 5.910337] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.918524] ehci-platform: EHCI generic platform driver
[ 5.923920] ehci-platform ehci-platform: EHCI Host Controller
[ 5.929827] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 5.939969] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[ 5.968432] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[ 5.975647] hub 1-0:1.0: USB hub found
[ 5.979844] hub 1-0:1.0: 1 port detected
[ 5.984638] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.002424] init: - preinit -
[ 6.623045] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 6.760055] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6.786517] random: procd: uninitialized urandom read (4 bytes read)
[ 6.821342] hub 1-1:1.0: USB hub found
[ 6.826860] hub 1-1:1.0: 4 ports detected
[ 7.158414] usb 1-1.2: new full-speed USB device number 3 using ehci-platform
[ 7.799649] eth0: link up (1000Mbps/Full duplex)
[ 7.804415] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 9.968690] jffs2: notice: (436) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 9.986546] mount_root: switching to jffs2 overlay
[ 10.060545] urandom-seed: Seeding with /etc/urandom.seed
[ 10.262647] eth0: link down
[ 10.277743] procd: - early -
[ 10.281479] procd: - watchdog -
[ 10.921588] procd: - watchdog -
[ 10.925056] procd: - ubus -
[ 11.031946] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.040350] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.047257] random: ubusd: uninitialized urandom read (4 bytes read)
[ 11.054766] procd: - init -
[ 11.534003] kmodloader: loading kernel modules from /etc/modules.d/*
[ 11.545235] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 11.561620] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 11.569791] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 11.579526] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 11.593462] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 11.647305] usbcore: registered new interface driver usbserial
[ 11.653378] usbcore: registered new interface driver usbserial_generic
[ 11.660118] usbserial: USB Serial support registered for generic
[ 11.683746] xt_time: kernel timezone is -0000
[ 11.707596] usbcore: registered new interface driver ch341
[ 11.713324] usbserial: USB Serial support registered for ch341-uart
[ 11.719768] ch341 1-1.2:1.0: ch341-uart converter detected
[ 11.746768] usb 1-1.2: ch341-uart converter now attached to ttyUSB0
[ 11.788906] PPP generic driver version 2.4.2
[ 11.795557] NET: Registered protocol family 24
[ 11.838288] ath: EEPROM regdomain: 0x0
[ 11.838296] ath: EEPROM indicates default country code should be used
[ 11.838300] ath: doing EEPROM country->regdmn map search
[ 11.838314] ath: country maps to regdmn code: 0x3a
[ 11.838320] ath: Country alpha2 being used: US
[ 11.838324] ath: Regpair used: 0x3a
[ 11.850475] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 11.854202] ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=47
[ 11.861149] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[ 11.872227] ath: EEPROM regdomain: 0x0
[ 11.872234] ath: EEPROM indicates default country code should be used
[ 11.872238] ath: doing EEPROM country->regdmn map search
[ 11.872253] ath: country maps to regdmn code: 0x3a
[ 11.872259] ath: Country alpha2 being used: US
[ 11.872263] ath: Regpair used: 0x3a
[ 11.882388] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 11.886141] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xb0000000, irq=40
[ 12.016221] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 13.345548] urandom_read: 5 callbacks suppressed
[ 13.345556] random: jshn: uninitialized urandom read (4 bytes read)
[ 24.011310] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 24.018587] eth0: link up (1000Mbps/Full duplex)
[ 24.038598] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 24.056519] br-lan: port 1(eth0.1) entered blocking state
[ 24.062061] br-lan: port 1(eth0.1) entered disabled state
[ 24.067933] device eth0.1 entered promiscuous mode
[ 24.072965] device eth0 entered promiscuous mode
[ 24.122792] br-lan: port 1(eth0.1) entered blocking state
[ 24.128285] br-lan: port 1(eth0.1) entered forwarding state
[ 24.134134] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 25.078603] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 87.289384] random: crng init done
[ 1318.205853] usb 1-1.2: USB disconnect, device number 3
[ 1318.267830] usb 1-1.2: ch341_read_int_callback - usb_submit_urb failed: -19
[ 1318.351850] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 1318.442565] ch341 1-1.2:1.0: device disconnected
[ 2317.922108] usb 1-1.1: new full-speed USB device number 4 using ehci-platform
[ 2318.154669] ch341 1-1.1:1.0: ch341-uart converter detected
[ 2318.242631] usb 1-1.1: ch341-uart converter now attached to ttyUSB0
[ 3211.838309] usb 1-1.1: USB disconnect, device number 4
[ 3211.900116] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 3211.990849] ch341 1-1.1:1.0: device disconnected
[ 3218.274367] usb 1-1.1: new high-speed USB device number 5 using ehci-platform
[ 3225.193918] usb 1-1.2: new full-speed USB device number 6 using ehci-platform
[ 3225.426458] ch341 1-1.2:1.0: ch341-uart converter detected
[ 3225.514616] usb 1-1.2: ch341-uart converter now attached to ttyUSB0
[ 3592.915446] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[ 3593.012576] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[ 3593.110928] usb 1-1.2: USB disconnect, device number 6
[ 3593.172635] usb 1-1.2: ch341_read_int_callback - usb_submit_urb failed: -19
[ 3593.256428] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 3593.347093] ch341 1-1.2:1.0: device disconnected
[ 3601.214305] usb 1-1.1: USB disconnect, device number 5
[ 3604.326772] usb 1-1.1: new full-speed USB device number 7 using ehci-platform
[ 3604.559237] ch341 1-1.1:1.0: ch341-uart converter detected
[ 3604.647113] usb 1-1.1: ch341-uart converter now attached to ttyUSB0
root@OpenWrt:
#

p.s.: your servers are DAMN slow!!

@openwrt-bot
Copy link
Author

jmar83:

do i need to install kmod-usb-ohci OR kmod-usb-uhci after installing kmod-usb-serial-ch341? don't think so..?!?

@openwrt-bot
Copy link
Author

jmar83:

"do i need to install kmod-usb-ohci OR kmod-usb-uhci after installing kmod-usb-serial-ch341? don't think so..?!?"

No, does not help

@openwrt-bot
Copy link
Author

jmar83:

WHY NO ANSWER?!?

@openwrt-bot
Copy link
Author

jmar83:

PLEASE FIX THAT PROBLEM!!

@openwrt-bot
Copy link
Author

None:

We are not your personal support service and shouting really isn't appreciated.

@openwrt-bot
Copy link
Author

jmar83:

anyway, i was thinking it's positive when i submit some problems...?

maybe not... however. is it possible to compile the source code as a kernel module on version 18.06.1 / kernel 4.9.120 as a kernel module, without to compile the whole kernel?

@openwrt-bot
Copy link
Author

jmar83:

Problem is solved by using a FTDI USB-RS232-Adapter!!

@openwrt-bot
Copy link
Author

russell:

Jan, yeah, I mentioned the ftdi working two years ago in the original wave of reporting (13.09.2016 17:36), however for the reasons mentioned I don't consider one device working as solving the other group of devices not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant