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#2170 - WNDR3400 v2 needs gpio pin 21 high to enable USB #7046

Closed
openwrt-bot opened this issue Mar 7, 2019 · 11 comments
Closed

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

openwrt-bot opened this issue Mar 7, 2019 · 11 comments
Labels

Comments

@openwrt-bot
Copy link

ebohlman:

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.

@openwrt-bot
Copy link
Author

ynezz:

I've prepared kernel patch for this issue ynezz/linux-2.6@2b9a6c4 and I'm wondering if you're able to test it as it is.

@openwrt-bot
Copy link
Author

ynezz:

And here WIP of patch for OpenWrt ynezz@4e76c59

@openwrt-bot
Copy link
Author

ebohlman:

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).

@openwrt-bot
Copy link
Author

@openwrt-bot
Copy link
Author

ebohlman:

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

@openwrt-bot
Copy link
Author

ebohlman:

Sorry about the duplicated lsusb output.

@openwrt-bot
Copy link
Author

ynezz:

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

Reported-by: Eric Bohlman Tested-by: Eric Bohlman

If you agree of course.

@openwrt-bot
Copy link
Author

ebohlman:

ericbohlman@gmail.com

@openwrt-bot
Copy link
Author

ebohlman:

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

@openwrt-bot
Copy link
Author

ebohlman:

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

@openwrt-bot
Copy link
Author

ebohlman:

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

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