Page 2 of 4

Re: GL inet AR150 modem support 1.13.x

Posted: Sat Sep 04, 2021 5:40 pm
by ispyisail
I've gone back to 1.12.x and it works as expected

from logread

Code: Select all

Sun Sep  5 09:37:37 2021 authpriv.notice dropbear[3599]: Password auth succeeded for 'root' from 192.168.11.214:59575
Sun Sep  5 09:38:16 2021 kern.info kernel: [  225.168700] usb 1-1: new high-speed USB device number 3 using ehci-platform
Sun Sep  5 09:38:16 2021 kern.info kernel: [  225.410900] usb-storage 1-1:1.0: USB Mass Storage device detected
Sun Sep  5 09:38:16 2021 kern.info kernel: [  225.429325] scsi host0: usb-storage 1-1:1.0
Sun Sep  5 09:38:17 2021 kern.info kernel: [  226.476548] usb 1-1: USB disconnect, device number 3
Sun Sep  5 09:38:18 2021 kern.info kernel: [  227.198910] usb 1-1: new high-speed USB device number 4 using ehci-platform
Sun Sep  5 09:38:18 2021 kern.info kernel: [  227.560939] cdc_ether 1-1:1.0 eth2: register 'cdc_ether' at usb-ehci-platform-1, CDC Ethernet Device, 0c:5b:8f:27:9a:64
Sun Sep  5 09:38:18 2021 kern.info kernel: [  227.579654] usb-storage 1-1:1.2: USB Mass Storage device detected
Sun Sep  5 09:38:18 2021 kern.info kernel: [  227.585680] scsi host0: usb-storage 1-1:1.2
Sun Sep  5 09:38:19 2021 kern.notice kernel: [  228.660030] scsi 0:0:0:0: Direct-Access     HUAWEI   TF CARD Storage  2.31 PQ: 0 ANSI: 2
Sun Sep  5 09:38:19 2021 kern.notice kernel: [  228.676724] sd 0:0:0:0: [sda] Attached SCSI removable disk
root@Gargoyle:~#

Re: GL inet AR150 modem support 1.13.x

Posted: Sat Sep 04, 2021 5:42 pm
by ispyisail
The other observation is, on the modem there is an LED

After the modem startup sequence the LED will go solid blue

with 1.13.x the LED just keeps flashing Blue?

Re: GL inet AR150 modem support 1.13.x

Posted: Sat Sep 04, 2021 7:49 pm
by Lantis
I'm wondering if the port isn't powered up properly in the ath79 case.
What if you try a USB stick? Does it detect that and let you do the USB storage setup?

Re: GL inet AR150 modem support 1.13.x

Posted: Sat Sep 04, 2021 9:45 pm
by ispyisail
Looks like your guess is correct.

USB drive is not detected with 1.13.x

Image

1.12.x same drive was detected

Nothing in the logs either as a double check

Re: GL inet AR150 modem support 1.13.x

Posted: Sat Sep 04, 2021 10:16 pm
by pythonic
I looked at the OpenWrt configs for this family of devices (AR150 & AR300M/AR300M16) and in 19.07 it seems they're in the middle of the ar71xx->ath79 transition: the AR300M (NOR only)/AR300M16 have both ar71xx and ath79 board definitions but the ath79 definitions are commented out while the AR150 appears to have both ar71xx & ath79 board definitions active. For the AR150 Gargoyle is using the ath79 board definition - perhaps there are still issues not resolved with the USB support in the ath79 board definition. Testing both OpenWrt 19.07 ar71xx and ath79 AR150 images might help confirm this.

Edit: can you check the state of GPIO 6? if I understand the definition correctly this needs to be high (1) for the USB port to be enabled - see OpenWrt GPIO docs. The GPIO needs to be declared as output.

Check the GPIO base value first as described in the Software section of the docs - if base is non-0, add it to the 6 in what follows. To see if the GPIO is visible first:

Code: Select all

ls /sys/class/gpio/
looking for gpio6.

If visible, check the state:

Code: Select all

cat /sys/class/gpio/gpio6/value
If it isn't visible, then with the USB device unplugged:

Code: Select all

echo "6" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio6/direction
echo "1" > /sys/class/gpio/gpio6/value
Then plug in the device and see whether the logs show any detection.

Pity about lsusb being missing - my bad for not checking it was available.

Re: GL inet AR150 modem support 1.13.x

Posted: Sun Sep 05, 2021 2:21 am
by ispyisail

Code: Select all

root@Gargoyle:~# ls /sys/class/gpio/
export     gpiochip0  unexport   usb-phy
root@Gargoyle:~#

Re: GL inet AR150 modem support 1.13.x

Posted: Sun Sep 05, 2021 2:24 am
by ispyisail

Code: Select all

root@Gargoyle:~# echo "6" > /sys/class/gpio/export
ash: write error: Resource busy
root@Gargoyle:~#
Tried manually editing with nano (installed nano)

Code: Select all

root@Gargoyle:~# nano /sys/class/gpio/export
Image

Re: GL inet AR150 modem support 1.13.x

Posted: Sun Sep 05, 2021 7:00 am
by pythonic
ispyisail wrote:
Sun Sep 05, 2021 2:21 am

Code: Select all

root@Gargoyle:~# ls /sys/class/gpio/
export     gpiochip0  unexport   usb-phy
root@Gargoyle:~#
Hmmm... "usb-phy" doesn't exactly match the spelling in the device tree ("usb_phy") for the GPIO linkage but it's close enough, try:

Code: Select all

cat /sys/class/gpio/usb-phy/value
If that returns 0, try:

Code: Select all

echo "1" > /sys/class/gpio/usb-phy/value
/sys is sysfs so not a normal filesystem; I'm not surprised that nano fails.

Re: GL inet AR150 modem support 1.13.x

Posted: Mon Sep 06, 2021 2:45 am
by ispyisail

Code: Select all

root@Gargoyle:~# cat /sys/class/gpio/usb-phy/value
1
root@Gargoyle:~#

Re: GL inet AR150 modem support 1.13.x

Posted: Mon Sep 06, 2021 8:34 am
by pythonic
ispyisail wrote:
Mon Sep 06, 2021 2:45 am

Code: Select all

root@Gargoyle:~# cat /sys/class/gpio/usb-phy/value
1
root@Gargoyle:~#
:( That suggests the USB port should be powered up.

Just for completeness, could you also try:

Code: Select all

cat /sys/class/gpio/usb-phy/direction
I'd expect the output to be "out", in which case I'm out of ideas.