[OpenWrt-Devel] [PATCH 2/3] ipq-wifi: select board-2.bin at runtime

Matthew McClintock msm-oss at mcclintock.net
Tue Jan 16 09:50:06 EST 2018


On Thu, Jan 11, 2018 at 11:36 AM, Christian Lamparter
<chunkeey at gmail.com> wrote:
> On Thursday, January 11, 2018 7:44:33 AM CET Mathias Kresin wrote:
>> 11.01.2018 07:23, Mathias Kresin:
>> > 10.01.2018 11:15, Thomas Hebb:
>> >> Currently, we solve the problem of different IPQ4019 boards needing
>> >> different sets of Wi-Fi calibration data (board-2.bin) by using an
>> >> ipq-wifi-* package to overwrite board-2.bin in the filesystem. This
>> >> presents a problem when we need the same image to support multiple
>> >> boards, as we do for the upcoming Netgear EX6100v2 and EX6150v2
>> >> support.
>> >
>> > I don't get what kind of issue do you have with this approach. Why not
>> > just add ipq-wifi-ex6100v2 to the DEVICE_PACKAGES of your EX6150v2.
>> >
>> > I'm quite sure I miss here something. Which either means it is to early
>> > for me or the commit message doesn't provide the whole picture.
>>
>> After reviewing your Netgear EX6100v2/EX6150v2 support patch I got your
>> issue. One image for two boards where the distinction of the board is
>> done in userspace and each board requires a different board-2.bin.
>
> Wait! It is possible to do this now:
> Sven Eckelmann added support for extracting the variant from the DT.
> "ath10k: search DT for qcom,ath10k-calibration-variant" [0]
>
> So, if Thomas splits the EX6100v2 and EX6150v2 image. He could have
> two separate dts. This way, each device can have its unique
> "qcom,ath10k-calibration-variant" and both can share a single
> board-2.bin.
>
> @Thomas, it's possible to get the EX6100v2/EX6150v2 board.bin into
> the official board-2.bin. The process is explained on the linux-wireless
> wiki:
> <https://wireless.wiki.kernel.org/en/users/drivers/ath10k/boardfiles>
> It would be great if you could post the raw board.bin files there
> too.

There are also tools to repackage here:
https://github.com/qca/qca-swiss-army-knife

So you could make your own with just the calibration ones you were
interested in (to save space?) or just add your missing ones to a
custom board-2.bin.

-M
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list