Installing OpenWrt on Mikrotik wAP R (RBwAPR-2nD)


#61

Weird, I cant think of something now.
I can try something in the morning


#62

okay :slight_smile: Do you want me to use your build for clarity - just in case?


#63

No point if its from the same source


#64

Oh its me. I didn't update image build source - my bad. trying now.


#65

@robimarko: does flags need to also have RBSPI_HAS_USB to support USB mini-PCIe devices? My guess is that GPIO 15 toggles power for the slot, and the slot is either PCIe or USB depending on which interface the card uses.


#66

Hm, haven't thought about USB to PCI devices as the SoC has a native PCI-E slot.
It could be added since it only registers USB port,but I dont think that maintainers will really like it


#67

I meant that mini PCIe has pins for an actual USB device on it that can be wired directly to the SoC's USB interface. A lot of LTE cards are actually implemented that way and not as PCIe devices.


#68

That's actually a good point. The R11e-LTE which comes as part of the wAP R kit has USB interface, same as EC25-E etc.


#69

It's easy to try; just add the flag to robimarko's changes.


#70

I'm building already!


#71

Its allot better -

cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  0/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 4.09
S:  Manufacturer=Linux 4.9.109 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=ehci-platform
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=2cd2 ProdID=0001 Rev= 1.00
S:  Manufacturer=MikroTik
S:  Product=R11e-LTE
S:  SerialNumber=000000000000
C:* #Ifs= 7 Cfg#= 1 Atr=c0 MxPwr=500mA
A:  FirstIf#= 0 IfCount= 2 Cls=e0(wlcon) Sub=01 Prot=03
A:  FirstIf#= 2 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01
A:  FirstIf#= 4 IfCount= 2 Cls=02(comm.) Sub=02 Prot=01
I:* If#= 0 Alt= 0 #EPs= 1 Cls=e0(wlcon) Sub=01 Prot=03 Driver=rndis_host
E:  Ad=8c(I) Atr=03(Int.) MxPS=  16 Ivl=4096ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=rndis_host
E:  Ad=8e(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=0d(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=(none)
E:  Ad=84(I) Atr=03(Int.) MxPS=  16 Ivl=4096ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=4096ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=8b(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=0a(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

#72

@dehrmann Awesome hint.
Will then add this to my branch too to be included in PR.

@borsss Can you note which LED matches what on the device?


#73

Its the 3rd signal bar (led3) but I am not sure if this is the most relevant one to use.

LEDs 1,2 and 3 marked blue.

1317_hi_res


#74

Ok, so LED1 is supposed to be power LED.
LED2 is WiFi.
And they are using the third LED in a combination of first two as signal strength bar.
Cool trick but I don't think that we have triggers for that.
User LED should then be the one next to ethernet?

Have I got it right?


#75

User LED is next to the WiFi sign. I cant seem to be able to figure our what control led does tho.

ls -al /sys/class/leds
drwxr-xr-x    2 root     root             0 Jan  1  1970 .
drwxr-xr-x   20 root     root             0 Jan  1  1970 ..
lrwxrwxrwx    1 root     root             0 Jun 24 23:47 ath9k-phy0 -> ../../devices/platform/qca953x_wmac/leds/ath9k-phy0
lrwxrwxrwx    1 root     root             0 Jan  1  1970 rb:green:control -> ../../devices/platform/leds-gpio/leds/rb:green:control
lrwxrwxrwx    1 root     root             0 Jan  1  1970 rb:green:led1 -> ../../devices/platform/leds-gpio/leds/rb:green:led1
lrwxrwxrwx    1 root     root             0 Jan  1  1970 rb:green:led2 -> ../../devices/platform/leds-gpio/leds/rb:green:led2
lrwxrwxrwx    1 root     root             0 Jan  1  1970 rb:green:led3 -> ../../devices/platform/leds-gpio/leds/rb:green:led3
lrwxrwxrwx    1 root     root             0 Jan  1  1970 rb:green:user -> ../../devices/platform/leds-gpio/leds/rb:green:user


#76

Whats LED1 if left to the wifi is user?
I dont know whats control LED from GPL too.


#77

LED1 is on my picture above - in blue. It is first in the series of LEDs allocated to indicate mobile signal strength. Or this is what I think at this time of the day at least!


#78

Ok.
But then I really dont get whats user LED.


#79

User LED is WiFi indicator - /sys/class/leds/rb:green:user

user


#80

OK,got it now.
Only mistery is control LED.