Commit Graph

53 Commits

Author SHA1 Message Date
John Crispin
b475b15c93 ipq807x: fix patch annotation
The batman patch lost its annotation during last rebase.

Signed-off-by: John Crispin <john@phrozen.org>
2020-09-21 13:16:06 +02:00
John Crispin
bad57a30f6 ec420: fix generation of br-lan
OpenWrt does not allow bridges with no default interfaces.

Fixes: WIFI-756
Signed-off-by: John Crispin <john@phrozen.org>
2020-09-17 08:27:38 +02:00
John Crispin
7c8e51fa4c ipq807x: fix the batman profile patch
Signed-off-by: John Crispin <john@phrozen.org>
2020-09-16 17:20:06 +02:00
John Crispin
ba41a15fec ipq807x: add CIG WF188N
This is the nand based variant.

Signed-off-by: John Crispin <john@phrozen.org>
2020-09-16 12:07:44 +02:00
John Crispin
456b74de85 patches/ipq807x: arm64/v4.4 compile fixes
Get the tree ready for v4.4 builds

Signed-off-by: John Crispin <john@phrozen.org>
2020-09-16 12:07:27 +02:00
John Crispin
381acf5e4e ipq807x: update kernel and ath11k
Pull kernel and ath11k up to the latest release.

Signed-off-by: John Crispin <john@phrozen.org>
2020-09-16 12:07:14 +02:00
Chaitanya Kiran Godavarthi
0c3064e437 opensync: Add video/voice detect
- Add kernel module which detects voice/video by
  analysing the traffic.
- Add new report to the stats manager in opensync.
- Generates a report each time a voice call is
  detected, indicats callstart, callstop and callreport.

Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
2020-09-15 14:41:07 +02:00
Ammad Rehmat
efb5e4a9aa WIFI-442 : Support for synthetic radius client added
Signed-off-by: Ammad Rehmat <ammad.rehmat@connectus.ai>
2020-09-07 11:47:28 +02:00
Nagendrababu
88e8163410 package:openNDS
Implement a per-SSID embedded Captive Portal making use of OpenNDS
Authentication type:None
Fix for WIFI-596
Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2020-09-07 11:38:33 +02:00
John Crispin
f8a2150f66 base-files: add the wlan-ap repo hash
currently the banner will show the revision of the build tree.
This patch adds the hash of the wlan-ap tree.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-29 08:28:44 +02:00
John Crispin
c2559486b1 profiles: add ct-bugcheck to wlan-ap.py
Signed-off-by: John Crispin <john@phrozen.org>
2020-08-29 07:51:04 +02:00
Linus Lüssing
97f6cd8203 profiles: adding batman-adv packages
Adding the batman-adv kernel module and the batctl userspace
configuration tool to the wlan-ap profile.

Signed-off-by: Linus Lüssing <ll@simonwunderlich.de>
2020-08-29 07:42:11 +02:00
John Crispin
34897d13e1 Revert "opensync: populate Wifi_Route_State"
This reverts commit 42fc1965cd.

The commit was causing issues when updating NM2 state.

Fixes: WIFI-702
Signed-off-by: John Crispin <john@phrozen.org>
2020-08-29 07:40:19 +02:00
John Crispin
42e9d44311 ipq807x: add board2.bin on hk01
This makes sure the bdf file is installed on the reference board.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
b6b5999a4a ipq807x: add thermald
This adds the thermal mitigation daemon.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
378d88554c scripts/ubinize-image.sh: allow setting the rootfs name
This patch allows us to use a different rootfs name. Some QCA boards will
require the in ubi rfs to be called ubi_rootfs.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
07e8acfdf1 ipq807x: move ath11k to the openwrt ax staging tree
Use the ath11k feed from github where OpenWrt keeps the latest version.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
42fc1965cd opensync: populate Wifi_Route_State
This populates the ipv4 routes.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:17:14 +02:00
John Crispin
f11c74f1aa ipq40xx: fix oap-110 mdio
The board support patch was missing the pinctrl for the mdio bus.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 16:16:29 +02:00
John Crispin
96416e59a5 ipq40xx: fix oap-110 bootargs
The board support patch was missing the boortargs-append line in the dts.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-16 15:36:08 +02:00
John Crispin
0c49d4ec3e ipq40xx: add edgecore OAP100
flashing the unit
* first update to latest edcore FW as per the PDF instructions
* boot the initramfs
  - tftpboot 0x88000000 openwrt-ipq40xx-generic-edgecore_oap100-initramfs-fit-uImage.itb; bootm
* inside the initramfs call the following commiands
  - ubiattach -p /dev/mtd0
  - ubirmvol /dev/ubi0 -n0
  - ubirmvol /dev/ubi0 -n1
  - ubirmvol /dev/ubi0 -n2
* scp the sysupgrade image to the board and call
  - sysupgrade -n openwrt-ipq40xx-generic-edgecore_oap100-squashfs-nand-sysupgrade.bin

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-08 12:37:10 +02:00
John Crispin
e51b350d43 ipq807x: fix sercomm wallaby support
The board is named wallaby and not kiwi. The previous rename was missing
some changes.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-07 16:35:36 +02:00
John Crispin
045bb2e9b5 ipq807x: improve image building code
We can now flash using qsdk style images to convert qsdk->OpenAp.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:49:29 +02:00
John Crispin
1cbf1015c0 ipq807x: enable gpio-leds
The initial port was missing this kernel config.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:49:29 +02:00
John Crispin
8ab79219fb ipq807x: add Sercomm Wallaby support
This patch adds support for the Sercomm Kiwi AP.

Specification:
- SoC: Qualcomm Atheros IPQ807x ARM64 quad core
- RAM: 1GB
- NAND Flash: 256MB
- Ethernet: 1 x 2G
- WLAN: 2x Titan AX

Installation instructions:

1) scp openwrt-ipq807x-sercomm_kiwi-squashfs-nand-factory.bin into the preflashed qsdk image
2) ssh into the unit and call sysupgrade -n openwrt-ipq807x-sercomm_kiwi-squashfs-nand-factory.bin

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:49:29 +02:00
John Crispin
d53a31e59e ipq807x: add CIG WF188 support
This patch adds support for the Cigtech WF188 AP.

Specification:
- SoC: Qualcomm Atheros IPQ6018 ARM64 quad core
- RAM: 512MB
- NOR Flash: 32MB SPI NOR
- Ethernet: 1 x 1G
- WLAN: 2x IPQ60xx AX

Installation instructions:

1) enter uboot console
- setenv bootargs mtdparts=spi32766.0:6144k@3712k(0:HLOS),20608k@9856k(rootfs) console=ttyMSM0,115200n8
- tftpboot 0x44000000 wf188-initramfs
- bootm
2) inside the in ramfs, scp the sysupgrade image to the device and run sysupgrade.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:49:29 +02:00
John Crispin
0a31c9f692 opensync: convert the last board to the unified package
There is no a single opensync package that reads the board data from uci.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 15:11:56 +02:00
John Crispin
a2187f5a8c base-files: default passwd
ttylogin was open when hitting enter really early in the boot.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 11:54:21 +02:00
John Crispin
ed379f94f2 opensync: more network manager fixes
This patch will get folded into the main patch when we push to trunk.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-02 11:53:07 +02:00
John Crispin
f2ad970ed9 base-files: update banner
Use OpenWiFi as the banner text.

Signed-off-by: John Crispin <john@phrozen.org>
2020-08-01 10:19:34 +02:00
Nagendrababu
3601f9cad6 openNDS: add package
Add openNDS package to enable captive portal at bridge level added customized
configurations to make it work as required Package:openNDS

Signed-off-by: Nagendrababu <nagendrababu.bonkuri@connectus.ai>
2020-08-01 10:11:53 +02:00
John Crispin
ef59c4c6e4 opensync: add netifd manager
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-31 14:12:11 +02:00
John Crispin
082c895c34 base-files: set default password to "openwifi"
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-30 16:52:01 +02:00
Rick Sommerville
6a6cb55ff0 opensync: Support Multi-SSID per radio. Support radioX -> wlanX-Y naming convention.
Signed-off-by: Rick Sommerville <rick.sommerville@netexperience.com>
2020-07-30 07:55:38 +02:00
John Crispin
dab51c9bf0 opensync: more unified target updates
convert ap2220 and ea8300 to use the unified package.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 16:35:57 +02:00
John Crispin
a98b0eac77 ecw5211: make the board use the unified opensync target
Drop the vendor specific target. Also fix ct-fwcfg for this board.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
1b168a811e opensync: add kernel crash detection
This feature makes use of the crashlog driver in the kernel. If we experience
an oops, the kernel will store the stack trace inside /sys/kernel/debug/crashlog.
OpenSync will then add an entry to the Alarms table. The could can then retrieve
the crashlog via the Command_config table.

A crash can be simulated with
   echo c > /proc/sysrq-trigger

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
9a61ca270a profiles: disable failsafe
Set the .config options to disable failsafe mode.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
43573f67e8 opensync: stop and disable the webserver
Once the AP connected to the cloud for the first time we wait 5 minutes.
Once that period is over we stop and disable the webserver. It is only
intended for initial WAN bringup during deployment.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-29 14:17:39 +02:00
John Crispin
3affbc1cad QualComm/AX: add Hawkeye and Cypress support
This series is based on
* 2020-07-10 ipq6018-ilq-11-0_qca_oem-034672b0676c37b1f4519e5720e18e95fe6236ef

Add support for
* qsdk kernel/v4.4
* qsdk ethernet subsystem
* v5.7 ath11k backport + QualComm staging patches (wlan_ap_1.0)
* ath11k-firmware
* hostapd/iw/...

Feature support
* full boot, system detection
* sysupgrade to nand
* HE support via latest hostapd
* driver support for usb, crypto, hwmon, cpufreq, ...

Missing
* NSS/HW flow offloading - FW blob is not redistributable

Using the qsdk v4.4 is an intermediate solution while the vanilla is being
tested. Vanilla kernel is almost on feature par. Work has already started
to upstream the ethernet and switch drivers. Once complete the target will
be fully upstream.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-23 18:54:03 +02:00
John Crispin
7690787c9f opensync: add command manager
This allows us to trigger remote commands, such as tcpdump.
Also allow configuring NTP and remote syslog.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-23 18:54:03 +02:00
John Crispin
d33b6face5 wlan-ap-config: add ath10k fwcfg files
These files get loaded by the FW and allow us to tweak the internal settings.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-23 17:10:56 +02:00
John Crispin
63dd655ea4 tplkin/ec420: add board support
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-22 14:58:04 +02:00
John Crispin
bd28d088fc lldpd: select package and configure it
This patch makes sure lldpd is installed and comes up with the correct
configuration.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-22 14:58:04 +02:00
Chaitanya Kiran Godavarthi
fb4c7dc852 nft-ssid-ratelimit: Add new package nft-ssid-ratelimit
Add new package which has scripts for ssid client ratelimiting.
Adds rules for ssid ratelimiting and client ratimiting based on
'wireless' config file options 'drate'(ssid dl), 'urate'(ssid ul),
'cdrate'(client dl), and 'curate' (client ul).

Signed-off-by: Chaitanya Kiran Godavarthi <chaitanya.kiran@connectus.ai>
2020-07-22 14:58:04 +02:00
John Crispin
22f43634f3 opensync: add a unified build target
With this patch applied we do not need build variants anymore.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-22 14:58:04 +02:00
John Crispin
a34d844742 opensync: add vlan support
When we bring up a VLAN we need to add several sections to make openwrt
aware of the new vlan network.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-15 18:03:17 +02:00
John Crispin
1b0e3728df netifd: backport vlan support
For AP VLANs to work, we need to backport the corresponding netifd patches.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-15 18:03:17 +02:00
John Crispin
bf054a6485 wpad-basic: disable wpad-basic
Explicitly turn of the package inside the wlan-ap profile.

Signed-off-by: John Crispin <john@phrozen.org>
2020-07-15 18:03:17 +02:00
John Crispin
d8091386bf opensync: update to 2.0.5.0
Signed-off-by: John Crispin <john@phrozen.org>
2020-07-10 11:57:22 +02:00