Skip to contentSkip to conversation

Support for Ubnt UniFi Outdoor Plus

ath9k-devel Birger Brunswiek 4 participants 8 messages Sep 20, 2014 – Oct 21, 2014

lore
Share & tools
lore
#0 lore raw

Hi List,
I want to use OpenWRT on my Ubnt UniFi Outdoor Plus. So far all works but the Wifi. The symptoms are poor reception and normal transmission levels. The problems do not appear using the stock firmware. They only appear after a power cycle when using OpenWRT. OpenWRT works as expected if no power cycle was performed after installation. It was suggested that this is due to the RF filter built into the unit
(https://lists.openwrt.org/pipermail/openwrt-devel/2014-September/028103.html).
Does anyone have some pointers so I can fix this? Perhaps somehow outputting the content of the registers before doing the power cycle?

Cheers,
Birger

#1 lore raw

Hi,

It may be something as simple as GPIO pin settings.

Would you mind taking a look at both the atheros SoC GPIO register contents and the on-board CPU GPIO register contents?

Thanks,

-a

Quoted 17 lines · Birger Brunswiek

Hi List,
I want to use OpenWRT on my Ubnt UniFi Outdoor Plus. So far all works but the Wifi. The symptoms are poor reception and normal transmission levels. The problems do not appear using the stock firmware. They only appear after a power cycle when using OpenWRT. OpenWRT works as expected if no power cycle was performed after installation. It was suggested that this is due to the RF filter built into the unit
(https://lists.openwrt.org/pipermail/openwrt-devel/2014-September/028103.html).
Does anyone have some pointers so I can fix this? Perhaps somehow outputting the content of the registers before doing the power cycle?

Cheers,
Birger
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#2 lore raw

Hi,

I'm interested in this question too, but not familiar with GPIO subsystem. Can you tell me how to look at the atheros SoC GPIO register contents and the on-board CPU GPIO register contents please? Thank you.

Quoted 37 lines · Adrian Chadd

Hi,

It may be something as simple as GPIO pin settings.

Would you mind taking a look at both the atheros SoC GPIO register contents and the on-board CPU GPIO register contents?

Thanks,

-a

Quoted 11 lines · Birger Brunswiek

Hi List,
I want to use OpenWRT on my Ubnt UniFi Outdoor Plus. So far all works but the Wifi. The symptoms are poor reception and normal transmission levels. The problems do not appear using the stock firmware. They only appear after a power cycle when using OpenWRT. OpenWRT works as expected if no power cycle was performed after installation. It was suggested that this is due to the RF filter built into the unit
(https://lists.openwrt.org/pipermail/openwrt-devel/2014-September/028103.html).
Does anyone have some pointers so I can fix this? Perhaps somehow outputting the content of the registers before doing the power cycle?

Quoted 6 lines

Cheers,
Birger
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Signature · 2 lines
Kind regards
Yury Shvedov
#3 lore raw

Hi,

I'd just add some printf()'s in the openwrt board support .c source file. But I'm not normally a Linux developer; I'm normally a FreeBSD developer. :)

-a
(oops, I should say printk(). See? Not normally a Linux developer. :)

Quoted 56 lines · Shvedov Yury

Hi,

I'm interested in this question too, but not familiar with GPIO subsystem. Can you tell me how to look at the atheros SoC GPIO register contents and the on-board CPU GPIO register contents please?
Thank you.

Quoted 37 lines · Adrian Chadd

Hi,

It may be something as simple as GPIO pin settings.

Would you mind taking a look at both the atheros SoC GPIO register contents and the on-board CPU GPIO register contents?

Thanks,

-a

Quoted 13 lines · Birger Brunswiek

Hi List,
I want to use OpenWRT on my Ubnt UniFi Outdoor Plus. So far all works but the Wifi. The symptoms are poor reception and normal transmission levels. The problems do not appear using the stock firmware. They only appear after a power cycle when using OpenWRT. OpenWRT works as expected if no power cycle was performed after installation. It was suggested that this is due to the RF filter built into the unit

(https://lists.openwrt.org/pipermail/openwrt-devel/2014-September/028103.html).
Does anyone have some pointers so I can fix this? Perhaps somehow outputting the content of the registers before doing the power cycle?

Quoted 6 lines

Cheers,
Birger
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Quoted 4 lines

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

--
Kind regards
Yury Shvedov

#4 lore raw

Hm...

sounds good, but not very useful :)
Do you know exactly or approximately what source I need to modify?

Quoted 64 lines · Adrian Chadd

Hi,

I'd just add some printf()'s in the openwrt board support .c source file. But I'm not normally a Linux developer; I'm normally a FreeBSD developer. :)

-a
(oops, I should say printk(). See? Not normally a Linux developer. :)

Quoted 52 lines · Shvedov Yury

Hi,

I'm interested in this question too, but not familiar with GPIO subsystem. Can you tell me how to look at the atheros SoC GPIO register contents and the on-board CPU GPIO register contents please?
Thank you.

Quoted 34 lines · Adrian Chadd

Hi,

It may be something as simple as GPIO pin settings.

Would you mind taking a look at both the atheros SoC GPIO register contents and the on-board CPU GPIO register contents?

Thanks,

-a

Quoted 12 lines · Birger Brunswiek

Hi List,
I want to use OpenWRT on my Ubnt UniFi Outdoor Plus. So far all works but the Wifi. The symptoms are poor reception and normal transmission levels. The problems do not appear using the stock firmware. They only appear after a power cycle when using OpenWRT. OpenWRT works as expected if no power cycle was performed after installation. It was suggested that this is due to the RF filter built into the unit

(https://lists.openwrt.org/pipermail/openwrt-devel/2014-September/028103.html).
Does anyone have some pointers so I can fix this? Perhaps somehow outputting the content of the registers before doing the power cycle?

Quoted 6 lines

Cheers,
Birger
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Quoted 4 lines

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

--
Kind regards
Yury Shvedov

Signature · 2 lines
Kind regards
Yury Shvedov
#5 lore raw

Hi Yury,

2014-10-17 15:59 GMT+04:00 Shvedov Yury <[email protected]>:

Quoted 5 lines

Hm...

sounds good, but not very useful :)
Do you know exactly or approximately what source I need to modify?

If you want to know exactly how to control RF filter then try to ask ubnt guys :)

You can check and even manipulate GPIO lines from userspace without kernel source modification.

To control SoC own GPIO just export required line by issuing:

# echo X > /sys/class/gpio/export
and then you can control line state (direction and level) via files in
/sys/class/gpio/gpioX/

Wireless chip GPIO lines control a bit different. You can manipulate by any of chip registers via regidx and regval files located in /sys/kernel/debug/ieee80211/phyX/ath9k/. Just write register address to regidx and you can get and set register content by performing read and write operations with regval.

# echo 0x1234abcd > /sys/kernel/debug/ieee80211/phyX/ath9k/regidx
# cat /sys/kernel/debug/ieee80211/phyX/ath9k/regval
Quoted 70 lines · Adrian Chadd
Quoted 7 lines

Hi,

I'd just add some printf()'s in the openwrt board support .c source file. But I'm not normally a Linux developer; I'm normally a FreeBSD developer. :)

Quoted 57 lines

-a
(oops, I should say printk(). See? Not normally a Linux developer. :)

Quoted 52 lines · Shvedov Yury

Hi,

I'm interested in this question too, but not familiar with GPIO subsystem. Can you tell me how to look at the atheros SoC GPIO register contents and the on-board CPU GPIO register contents please?
Thank you.

Quoted 34 lines · Adrian Chadd

Hi,

It may be something as simple as GPIO pin settings.

Would you mind taking a look at both the atheros SoC GPIO register contents and the on-board CPU GPIO register contents?

Thanks,

-a

Quoted 12 lines · Birger Brunswiek

Hi List,
I want to use OpenWRT on my Ubnt UniFi Outdoor Plus. So far all works but the Wifi. The symptoms are poor reception and normal transmission levels. The problems do not appear using the stock firmware. They only appear after a power cycle when using OpenWRT. OpenWRT works as expected if no power cycle was performed after installation. It was suggested that this is due to the RF filter built into the unit

(https://lists.openwrt.org/pipermail/openwrt-devel/2014-September/028103.html).
Does anyone have some pointers so I can fix this? Perhaps somehow outputting the content of the registers before doing the power cycle?

Quoted 6 lines

Cheers,
Birger
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Quoted 4 lines

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

--
Kind regards
Yury Shvedov

--
Kind regards
Yury Shvedov

Signature · 2 lines
BR,
Sergey
#6 lore raw

Sergey, thank you.

Its now becoming much more clear. But I still don't know how to learn which exactly gpio port and register I have to look at. Maybe Adrian know that?

Quoted 95 lines · Sergey Ryazanov

Hi Yury,

2014-10-17 15:59 GMT+04:00 Shvedov Yury <[email protected]>:

Quoted 5 lines

Hm...

sounds good, but not very useful :)
Do you know exactly or approximately what source I need to modify?

If you want to know exactly how to control RF filter then try to ask ubnt guys :)

You can check and even manipulate GPIO lines from userspace without kernel source modification.

To control SoC own GPIO just export required line by issuing:

# echo X > /sys/class/gpio/export
and then you can control line state (direction and level) via files in
/sys/class/gpio/gpioX/

Wireless chip GPIO lines control a bit different. You can manipulate by any of chip registers via regidx and regval files located in /sys/kernel/debug/ieee80211/phyX/ath9k/. Just write register address to regidx and you can get and set register content by performing read and write operations with regval.

# echo 0x1234abcd > /sys/kernel/debug/ieee80211/phyX/ath9k/regidx
# cat /sys/kernel/debug/ieee80211/phyX/ath9k/regval
Quoted 68 lines · Adrian Chadd
Quoted 7 lines

Hi,

I'd just add some printf()'s in the openwrt board support .c source file. But I'm not normally a Linux developer; I'm normally a FreeBSD developer. :)

Quoted 56 lines

-a
(oops, I should say printk(). See? Not normally a Linux developer. :)

Quoted 51 lines · Shvedov Yury

Hi,

I'm interested in this question too, but not familiar with GPIO subsystem. Can you tell me how to look at the atheros SoC GPIO register contents and the on-board CPU GPIO register contents please?
Thank you.

Quoted 34 lines · Adrian Chadd

Hi,

It may be something as simple as GPIO pin settings.

Would you mind taking a look at both the atheros SoC GPIO register contents and the on-board CPU GPIO register contents?

Thanks,

-a

Quoted 12 lines · Birger Brunswiek

Hi List,
I want to use OpenWRT on my Ubnt UniFi Outdoor Plus. So far all works but the Wifi. The symptoms are poor reception and normal transmission levels. The problems do not appear using the stock firmware. They only appear after a power cycle when using OpenWRT. OpenWRT works as expected if no power cycle was performed after installation. It was suggested that this is due to the RF filter built into the unit

(https://lists.openwrt.org/pipermail/openwrt-devel/2014-September/028103.html).
Does anyone have some pointers so I can fix this? Perhaps somehow outputting the content of the registers before doing the power cycle?

Quoted 6 lines

Cheers,
Birger
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Quoted 4 lines

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

--
Kind regards
Yury Shvedov

--
Kind regards
Yury Shvedov

Signature · 2 lines
Kind regards
Yury Shvedov
#7 lore raw

2014-10-21 13:18 GMT+04:00 Shvedov Yury <[email protected]>:

Quoted 5 lines

Sergey, thank you.

Its now becoming much more clear. But I still don't know how to learn which exactly gpio port and register I have to look at. Maybe Adrian know that?

Do you try to read the sources, especially the headers files?

And BTW do you try to tune to different channels? Rx don't work at each of them? I still cannot understand how this external filter determines tuning frequency.

Quoted 116 lines · Sergey Ryazanov
Quoted 21 lines

Hi Yury,

2014-10-17 15:59 GMT+04:00 Shvedov Yury <[email protected]>:

Quoted 6 lines

Hm...

sounds good, but not very useful :)
Do you know exactly or approximately what source I need to modify?

If you want to know exactly how to control RF filter then try to ask ubnt guys :)

You can check and even manipulate GPIO lines from userspace without kernel source modification.

To control SoC own GPIO just export required line by issuing:

# echo X > /sys/class/gpio/export
and then you can control line state (direction and level) via files in
/sys/class/gpio/gpioX/
Quoted 88 lines

Wireless chip GPIO lines control a bit different. You can manipulate by any of chip registers via regidx and regval files located in /sys/kernel/debug/ieee80211/phyX/ath9k/. Just write register address to regidx and you can get and set register content by performing read and write operations with regval.

# echo 0x1234abcd > /sys/kernel/debug/ieee80211/phyX/ath9k/regidx
# cat /sys/kernel/debug/ieee80211/phyX/ath9k/regval
Quoted 80 lines · Adrian Chadd
Quoted 8 lines

Hi,

I'd just add some printf()'s in the openwrt board support .c source file. But I'm not normally a Linux developer; I'm normally a FreeBSD developer. :)

Quoted 67 lines

-a
(oops, I should say printk(). See? Not normally a Linux developer. :)

Quoted 62 lines · Shvedov Yury

Hi,

I'm interested in this question too, but not familiar with GPIO subsystem.
Can you tell me how to look at the atheros SoC GPIO register contents and
the on-board CPU GPIO register contents please?
Thank you.

Quoted 41 lines · Adrian Chadd

Hi,

It may be something as simple as GPIO pin settings.

Would you mind taking a look at both the atheros SoC GPIO register contents and the on-board CPU GPIO register contents?

Thanks,

-a

Quoted 16 lines · Birger Brunswiek

Hi List,
I want to use OpenWRT on my Ubnt UniFi Outdoor Plus. So far all works but the Wifi. The symptoms are poor reception and normal transmission levels. The problems do not appear using the stock firmware. They only
appear after a power cycle when using OpenWRT. OpenWRT works as expected
if no power cycle was performed after installation. It was suggested that this is due to the RF filter built into the unit

(https://lists.openwrt.org/pipermail/openwrt-devel/2014-September/028103.html).
Does anyone have some pointers so I can fix this? Perhaps somehow outputting the content of the registers before doing the power cycle?

Quoted 6 lines

Cheers,
Birger
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Quoted 4 lines

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

--
Kind regards
Yury Shvedov

--
Kind regards
Yury Shvedov

--
Kind regards
Yury Shvedov

Signature · 5 lines
BR,
Sergey

? ?????????? ???????????
??????? ??????