OpenWrt/LEDE Project

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Medium
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Eric Bohlman - 07.03.2019
Last edited by Petr Štetiar - 21.03.2019

FS#2170 - WNDR3400 v2 needs gpio pin 21 high to enable USB

The Netgear WNDR3400 v2, just like the v3, requires GPIO pin 21 to be set to high for the USB port to work, but the current software version doesn’t do it.

Upon powerup, USB devices are not recognized. After executing

echo "21" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio21/direction
echo "1" > /sys/class/gpio/gpio21/value

they are recognized. Because this comes after files have been mounted, it’s necessary to reboot to access, say, an extroot.

Closed by  Petr Štetiar
21.03.2019 22:47
Reason for closing:  Fixed
Additional comments about closing:  

Fixed in https://git.o penwrt.org/?p=openwrt/openwrt.git;a=comm it;h=d2c3eb1e431fa8b1421c3633576781e5d4e ede58

Project Manager
Petr Štetiar commented on 07.03.2019 10:50

I've prepared kernel patch for this issue https://github.com/ynezz/linux-2.6/commit/2b9a6c45b25f113ab46e8624c59e7c5f9ad80d13 and I'm wondering if you're able to test it as it is.

Project Manager
Petr Štetiar commented on 07.03.2019 11:01
Eric Bohlman commented on 08.03.2019 04:17

Could test it right away if you had a binary, otherwise I'll need a few days to get up to speed on the build system (new to OpenWRT, have an embedded development background but a little(?) rusty).

Project Manager
Petr Štetiar commented on 08.03.2019 06:00
Eric Bohlman commented on 08.03.2019 07:59

Can't fully test because of kernel dependency issues:

* satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-ext4:
 *      kernel (= 4.14.105-1-c99889e63a91d623eb94d8fd563f5b99)
 * opkg_install_cmd: Cannot install package kmod-fs-ext4.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-storage:
 *      kernel (= 4.14.105-1-c99889e63a91d623eb94d8fd563f5b99)
 * opkg_install_cmd: Cannot install package kmod-usb-storage.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-ohci:
 *      kernel (= 4.14.105-1-c99889e63a91d623eb94d8fd563f5b99)
 * opkg_install_cmd: Cannot install package kmod-usb-ohci.
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-usb-uhci:
 *      kernel (= 4.14.105-1-c99889e63a91d623eb94d8fd563f5b99)
 * opkg_install_cmd: Cannot install package kmod-usb-uhci.

However, the port does seem to be recognized by the hardware:

root@OpenWrt:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/2p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=, 480M
    |__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=, 480M
root@OpenWrt:~# lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/2p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=, 480M
    |__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=, 480M
Eric Bohlman commented on 08.03.2019 08:01

Sorry about the duplicated lsusb output.

Project Manager
Petr Štetiar commented on 08.03.2019 15:14

Thanks for testing, please can you give me your email address so I can add it to your:

Reported-by: Eric Bohlman <fixme@missing.com>
Tested-by: Eric Bohlman <fixme@missing.com>

If you agree of course.

Eric Bohlman commented on 09.03.2019 00:08

ericbohlman@gmail.com

Eric Bohlman commented on 09.03.2019 01:01

Kernel in the snapshot you sent me is 4.14.104, but kmod packages want 4.14.105.

Eric Bohlman commented on 10.03.2019 06:50

If you could send me a patched kernel_4.14.105-1 .ipk, I should be able to muddle my way through ImageBuilder.

Eric Bohlman commented on 10.03.2019 22:51

Ignore the last two comments; I've patched the kernel and it now works correctly with extroot. Consider it fully tested.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing