Extensive openwifi support for OpenWRT#4
Merged
Conversation
A custom uEnv.txt file is automatically installed that loads in the system_top.bit file, which is provided by the user. Since OpenWiFi does not yet have .dtso files available, in case OpenWiFi package is selected, the dts directory and filename is changed to that of the OpenWiFi dts.
Newer versions of mac80211 do not work anymore with the current release of openwifi due to change in tx path The tx queue path is not implemented. To fix this, the older package versions are used and the package feed is overwritten by ./scripts/feeds install -f -a
… place all packages in a logical menu
…_common packages in the same manifest file
This keeps all the non-mainline analog devices linux kernel stuff together. It also avoids issues in the collect_module_symvers
…g in kernel modules and /etc/board.d/openwifi to allow lan to use dhcp client Using the AutoLoad method worked, but it provides no clear/straightforward path to call the ./rf_init_11n.sh file (see wgd.sh in openwifi). Calling this file is necessary to enable the fir filters, otherwise no AP will become visible. A straightforward solution is to create a openwifi service under /etc/init.d, which calls the wgd.sh script under /openwifi/user_space, the openwifi sources are installed in the root folder anyway. For OpenWiFi, it makes sense to use dhcp client instead of a static ip on the eth port. This is done by a file in /etc/board.d/01_openwifi
Adjustable clock is only used by openwifi zynq boards.
ZCU102 device tree of openwifi has fclk0 node with compatible = "xlnx,fclk". However, the driver for xlnx,fclk is only present in Xilinx variant of Linux kernel. Two options may fix this: - Add fixed-clock to compatibility property as a fallback in case used with OpenWrt kernel. - Add the Xilinx fabric clock driver to OpenWrt kernel. Here, I implement the latter. See original commit: analogdevicesinc/linux@69d0477
…ided by kernel package
In ethernet-phy node of default device tree for zcu102, the phandle in the reset-gpios property points to gpio@20 node with compatibility string "ti,tca6416". The driver was not present, causing a deferred probe. After a quick Linux kernel search, this requires CONFIG_GPIO_PCA953X=y.
When this config option is set, inserting the xilinx-dma kernel package that is embedded in the openwrt image causes a symbol version mismatch. However, directly loading in the drivers/dma/xilinx/xilinx_dma.ko from the openwrt kernel tree works fine. My suspicion is that this issue is caused by some openwrt symbol magic during packaging.
…vec() Quite an ugly patch. However, xilinx-vdma driver KernelPackage misbehaves if dmaengine.h is not patched before it is compiled. Only alternative would be to let xilinx-vdma depend on an adi_non-mainline_common package. There is no immediate clean fix for this.
…we do not want to keep hacky openwifi specific stuff in Linux kernel of all targets
Since v2.12, TF-A automatically selects the no-warn-rwx-segments option if needed. So move this hack to the package Makefiles. Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> Link: openwrt#17243 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit c117d7a)
…zedboard ps7_init_gpl files from openwifi system_top.xsa
…zc706 ps7_init_gpl files from openwifi system_top.xsa
…fi-zynq-boards.patch
…in uboot-zynq package
…in uboot-zynqmp package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.