2021-12-25 08:19:52 +00:00
|
|
|
include ./common-ubnt.mk
|
2020-10-04 05:43:41 +00:00
|
|
|
|
|
|
|
define Device/ubnt_aircube-ac
|
|
|
|
$(Device/ubnt-acb)
|
|
|
|
SOC := ar9342
|
|
|
|
DEVICE_MODEL := airCube AC
|
|
|
|
UBNT_CHIP := ar9342
|
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_aircube-ac
|
|
|
|
|
|
|
|
define Device/ubnt_aircube-isp
|
|
|
|
$(Device/ubnt-acb)
|
|
|
|
SOC := qca9533
|
|
|
|
DEVICE_MODEL := airCube ISP
|
|
|
|
UBNT_CHIP := qca9533
|
2020-10-06 12:08:28 +00:00
|
|
|
SUPPORTED_DEVICES += ubnt,acb-isp
|
2019-08-22 12:34:45 +00:00
|
|
|
endef
|
2020-10-06 12:08:28 +00:00
|
|
|
TARGET_DEVICES += ubnt_aircube-isp
|
2019-08-22 12:34:45 +00:00
|
|
|
|
2020-12-23 02:32:54 +00:00
|
|
|
define Device/ubnt_bullet-ac
|
|
|
|
$(Device/ubnt-2wa)
|
|
|
|
DEVICE_MODEL := Bullet AC
|
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_bullet-ac
|
|
|
|
|
2018-11-17 07:01:55 +00:00
|
|
|
define Device/ubnt_bullet-m-xw
|
|
|
|
$(Device/ubnt-xw)
|
2020-07-15 16:41:57 +00:00
|
|
|
DEVICE_MODEL := Bullet M
|
2019-11-13 15:18:59 +00:00
|
|
|
DEVICE_PACKAGES += rssileds
|
2018-11-17 07:01:55 +00:00
|
|
|
SUPPORTED_DEVICES += bullet-m-xw
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_bullet-m-xw
|
|
|
|
|
2020-01-01 09:01:48 +00:00
|
|
|
define Device/ubnt_edgeswitch-5xp
|
|
|
|
$(Device/ubnt-sw)
|
|
|
|
DEVICE_MODEL := EdgeSwitch 5XP
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_edgeswitch-5xp
|
|
|
|
|
2019-12-03 21:48:35 +00:00
|
|
|
define Device/ubnt_edgeswitch-8xp
|
|
|
|
$(Device/ubnt-sw)
|
|
|
|
DEVICE_MODEL := EdgeSwitch 8XP
|
2020-05-13 21:42:15 +00:00
|
|
|
DEVICE_PACKAGES += kmod-switch-bcm53xx-mdio
|
2022-11-18 15:39:27 +00:00
|
|
|
DEFAULT := n
|
2019-12-03 21:48:35 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_edgeswitch-8xp
|
|
|
|
|
2018-09-19 12:17:35 +00:00
|
|
|
define Device/ubnt_lap-120
|
|
|
|
$(Device/ubnt-wa)
|
2020-07-15 16:41:57 +00:00
|
|
|
DEVICE_MODEL := LiteAP ac (LAP-120)
|
2019-12-22 20:05:13 +00:00
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
|
2018-09-19 12:17:35 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_lap-120
|
|
|
|
|
2019-04-12 17:21:58 +00:00
|
|
|
define Device/ubnt_litebeam-ac-gen2
|
|
|
|
$(Device/ubnt-wa)
|
|
|
|
DEVICE_MODEL := LiteBeam AC
|
|
|
|
DEVICE_VARIANT := Gen2
|
2019-12-22 20:05:13 +00:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
|
2019-04-12 17:21:58 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_litebeam-ac-gen2
|
|
|
|
|
2019-01-08 14:27:57 +00:00
|
|
|
define Device/ubnt_nanobeam-ac
|
|
|
|
$(Device/ubnt-wa)
|
2019-06-16 19:34:46 +00:00
|
|
|
DEVICE_MODEL := NanoBeam AC
|
2020-10-25 13:51:55 +00:00
|
|
|
DEVICE_VARIANT := Gen1
|
2019-12-22 20:05:13 +00:00
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
|
2019-01-08 14:27:57 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_nanobeam-ac
|
|
|
|
|
2020-10-25 13:51:55 +00:00
|
|
|
define Device/ubnt_nanobeam-ac-gen2
|
|
|
|
$(Device/ubnt-wa)
|
|
|
|
DEVICE_MODEL := NanoBeam AC
|
|
|
|
DEVICE_VARIANT := Gen2
|
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_nanobeam-ac-gen2
|
|
|
|
|
2022-01-16 18:00:19 +00:00
|
|
|
define Device/ubnt_nanobeam-ac-xc
|
|
|
|
$(Device/ubnt-xc)
|
|
|
|
SOC := qca9558
|
|
|
|
DEVICE_MODEL := NanoBeam AC
|
|
|
|
DEVICE_VARIANT := Gen1 (XC)
|
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct rssileds
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_nanobeam-ac-xc
|
|
|
|
|
2022-05-21 15:17:34 +00:00
|
|
|
define Device/ubnt_nanobeam-m5-xw
|
2022-04-23 15:49:34 +00:00
|
|
|
$(Device/ubnt-xw)
|
|
|
|
DEVICE_MODEL := NanoBeam M5
|
|
|
|
DEVICE_PACKAGES += rssileds
|
|
|
|
SUPPORTED_DEVICES += loco-m-xw
|
|
|
|
endef
|
2022-05-21 15:17:34 +00:00
|
|
|
TARGET_DEVICES += ubnt_nanobeam-m5-xw
|
2022-04-23 15:49:34 +00:00
|
|
|
|
2018-09-04 00:08:01 +00:00
|
|
|
define Device/ubnt_nanostation-ac
|
|
|
|
$(Device/ubnt-wa)
|
2019-06-16 19:34:46 +00:00
|
|
|
DEVICE_MODEL := Nanostation AC
|
2019-12-22 20:05:13 +00:00
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
|
2018-09-04 00:08:01 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_nanostation-ac
|
|
|
|
|
2018-01-23 10:36:41 +00:00
|
|
|
define Device/ubnt_nanostation-ac-loco
|
|
|
|
$(Device/ubnt-wa)
|
2019-06-16 19:34:46 +00:00
|
|
|
DEVICE_MODEL := Nanostation AC loco
|
2019-12-22 20:05:13 +00:00
|
|
|
DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
|
2018-01-23 10:36:41 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_nanostation-ac-loco
|
|
|
|
|
2019-09-18 13:17:56 +00:00
|
|
|
define Device/ubnt_nanostation-loco-m-xw
|
|
|
|
$(Device/ubnt-xw)
|
|
|
|
DEVICE_MODEL := Nanostation Loco M
|
|
|
|
DEVICE_PACKAGES += rssileds
|
|
|
|
SUPPORTED_DEVICES += loco-m-xw
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_nanostation-loco-m-xw
|
|
|
|
|
2019-08-22 12:34:45 +00:00
|
|
|
define Device/ubnt_nanostation-m-xw
|
|
|
|
$(Device/ubnt-xw)
|
|
|
|
DEVICE_MODEL := Nanostation M
|
2019-11-13 15:18:59 +00:00
|
|
|
DEVICE_PACKAGES += rssileds
|
2019-08-22 12:34:45 +00:00
|
|
|
SUPPORTED_DEVICES += nanostation-m-xw
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_nanostation-m-xw
|
|
|
|
|
2020-04-24 00:22:44 +00:00
|
|
|
define Device/ubnt_powerbeam-5ac-500
|
|
|
|
$(Device/ubnt-xc)
|
|
|
|
SOC := qca9558
|
|
|
|
DEVICE_MODEL := PowerBeam 5AC
|
|
|
|
DEVICE_VARIANT := 500
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_powerbeam-5ac-500
|
|
|
|
|
2020-03-12 10:37:10 +00:00
|
|
|
define Device/ubnt_powerbeam-5ac-gen2
|
|
|
|
$(Device/ubnt-wa)
|
|
|
|
DEVICE_MODEL := PowerBeam 5AC
|
|
|
|
DEVICE_VARIANT := Gen2
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct rssileds
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_powerbeam-5ac-gen2
|
|
|
|
|
ath79: add support for Ubiquiti PowerBeam M2 (XW)
This patch adds support for the Ubiquiti PowerBeam M2 (XW), e.g. PBE-M2-400,
a 802.11n wireless with a feed+dish form factor. This device was previously
supported by the ar71xx loco-m-xw firmware.
Specifications:
- Atheros AR9342 SoC
- 64 MB RAM
- 8 MB SPI flash
- 1x 10/100 Mbps Ethernet port, 24 Vdc PoE-in
- Power and LAN green LEDs
- 4x RSSI LEDs (red, orange, green, green)
- UART (115200 8N1)
Flashing via stock GUI:
- Downgrade to AirOS v5.5.x (latest available is 5.5.10-u2) first (see
https://openwrt.org/toh/ubiquiti/powerbeam installation instructions)
- Upload the factory image via AirOS web GUI.
Flashing via TFTP:
- Use a pointy tool (e.g., unbent paperclip) to keep the
reset button pressed.
- Power on the device (keep reset button pressed).
- Keep pressing until LEDs flash alternatively LED1+LED3 =>
LED2+LED4 => LED1+LED3, etc.
- Release reset button.
- The device starts a TFTP server at 192.168.1.20.
- Set a static IP on the computer (e.g., 192.168.1.21/24).
- Upload via tftp the factory image:
$ tftp 192.168.1.20
tftp> bin
tftp> trace
tftp> put openwrt-ath79-generic-ubnt_powerbeam-m2-xw-squashfs-factory.bin
WARNING: so far, no non-destructive method has been discovered for
opening the enclosure to reach the serial console. Internal photos
are available here: https://fcc.io/SWX-NBM2HP
Signed-off-by: Russell Senior <russell@personaltelco.net>
2021-08-13 05:57:41 +00:00
|
|
|
define Device/ubnt_powerbeam-m2-xw
|
|
|
|
$(Device/ubnt-xw)
|
|
|
|
DEVICE_MODEL := PowerBeam M2
|
|
|
|
DEVICE_PACKAGES += rssileds
|
|
|
|
SUPPORTED_DEVICES += loco-m-xw
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_powerbeam-m2-xw
|
|
|
|
|
2021-08-13 05:57:39 +00:00
|
|
|
define Device/ubnt_powerbeam-m5-xw
|
ath79: add support for Ubiquiti PowerBeam M (XW)
This patch adds support for the Ubiquiti PowerBeam M (XW), e.g. PBE-M5-400,
a 802.11n wireless with a feed+dish form factor. This device was previously
supported by the ar71xx loco-m-xw firmware.
Specifications:
- Atheros AR9342 SoC
- 64 MB RAM
- 8 MB SPI flash
- 1x 10/100 Mbps Ethernet port, 24 Vdc PoE-in
- Power and LAN green LEDs
- 4x RSSI LEDs (red, orange, green, green)
- UART (115200 8N1)
Flashing via stock GUI:
- Downgrade to AirOS v5.5.x (latest available is 5.5.10-u2) first (see
https://openwrt.org/toh/ubiquiti/powerbeam installation instructions)
- Upload the factory image via AirOS web GUI.
Flashing via TFTP:
- Use a pointy tool (e.g., unbent paperclip) to keep the
reset button pressed.
- Power on the device (keep reset button pressed).
- Keep pressing until LEDs flash alternatively LED1+LED3 =>
LED2+LED4 => LED1+LED3, etc.
- Release reset button.
- The device starts a TFTP server at 192.168.1.20.
- Set a static IP on the computer (e.g., 192.168.1.21/24).
- Upload via tftp the factory image:
$ tftp 192.168.1.20
tftp> bin
tftp> trace
tftp> put openwrt-ath79-generic-xxxxx-ubnt_powerbeam-m-xw-squashfs-factory.bin
WARNING: so far, no non-destructive method has been discovered for
opening the enclosure to reach the serial console. Internal photos
are available here: https://fcc.io/SWX-NBM5HP
Signed-off-by: Russell Senior <russell@personaltelco.net>
2021-06-05 00:27:48 +00:00
|
|
|
$(Device/ubnt-xw)
|
2021-08-13 05:57:39 +00:00
|
|
|
DEVICE_MODEL := PowerBeam M5
|
ath79: add support for Ubiquiti PowerBeam M (XW)
This patch adds support for the Ubiquiti PowerBeam M (XW), e.g. PBE-M5-400,
a 802.11n wireless with a feed+dish form factor. This device was previously
supported by the ar71xx loco-m-xw firmware.
Specifications:
- Atheros AR9342 SoC
- 64 MB RAM
- 8 MB SPI flash
- 1x 10/100 Mbps Ethernet port, 24 Vdc PoE-in
- Power and LAN green LEDs
- 4x RSSI LEDs (red, orange, green, green)
- UART (115200 8N1)
Flashing via stock GUI:
- Downgrade to AirOS v5.5.x (latest available is 5.5.10-u2) first (see
https://openwrt.org/toh/ubiquiti/powerbeam installation instructions)
- Upload the factory image via AirOS web GUI.
Flashing via TFTP:
- Use a pointy tool (e.g., unbent paperclip) to keep the
reset button pressed.
- Power on the device (keep reset button pressed).
- Keep pressing until LEDs flash alternatively LED1+LED3 =>
LED2+LED4 => LED1+LED3, etc.
- Release reset button.
- The device starts a TFTP server at 192.168.1.20.
- Set a static IP on the computer (e.g., 192.168.1.21/24).
- Upload via tftp the factory image:
$ tftp 192.168.1.20
tftp> bin
tftp> trace
tftp> put openwrt-ath79-generic-xxxxx-ubnt_powerbeam-m-xw-squashfs-factory.bin
WARNING: so far, no non-destructive method has been discovered for
opening the enclosure to reach the serial console. Internal photos
are available here: https://fcc.io/SWX-NBM5HP
Signed-off-by: Russell Senior <russell@personaltelco.net>
2021-06-05 00:27:48 +00:00
|
|
|
DEVICE_PACKAGES += rssileds
|
|
|
|
SUPPORTED_DEVICES += loco-m-xw
|
|
|
|
endef
|
2021-08-13 05:57:39 +00:00
|
|
|
TARGET_DEVICES += ubnt_powerbeam-m5-xw
|
ath79: add support for Ubiquiti PowerBeam M (XW)
This patch adds support for the Ubiquiti PowerBeam M (XW), e.g. PBE-M5-400,
a 802.11n wireless with a feed+dish form factor. This device was previously
supported by the ar71xx loco-m-xw firmware.
Specifications:
- Atheros AR9342 SoC
- 64 MB RAM
- 8 MB SPI flash
- 1x 10/100 Mbps Ethernet port, 24 Vdc PoE-in
- Power and LAN green LEDs
- 4x RSSI LEDs (red, orange, green, green)
- UART (115200 8N1)
Flashing via stock GUI:
- Downgrade to AirOS v5.5.x (latest available is 5.5.10-u2) first (see
https://openwrt.org/toh/ubiquiti/powerbeam installation instructions)
- Upload the factory image via AirOS web GUI.
Flashing via TFTP:
- Use a pointy tool (e.g., unbent paperclip) to keep the
reset button pressed.
- Power on the device (keep reset button pressed).
- Keep pressing until LEDs flash alternatively LED1+LED3 =>
LED2+LED4 => LED1+LED3, etc.
- Release reset button.
- The device starts a TFTP server at 192.168.1.20.
- Set a static IP on the computer (e.g., 192.168.1.21/24).
- Upload via tftp the factory image:
$ tftp 192.168.1.20
tftp> bin
tftp> trace
tftp> put openwrt-ath79-generic-xxxxx-ubnt_powerbeam-m-xw-squashfs-factory.bin
WARNING: so far, no non-destructive method has been discovered for
opening the enclosure to reach the serial console. Internal photos
are available here: https://fcc.io/SWX-NBM5HP
Signed-off-by: Russell Senior <russell@personaltelco.net>
2021-06-05 00:27:48 +00:00
|
|
|
|
2021-04-25 20:41:46 +00:00
|
|
|
define Device/ubnt_rocket-5ac-lite
|
|
|
|
$(Device/ubnt-xc)
|
|
|
|
SOC := qca9558
|
|
|
|
DEVICE_MODEL := Rocket 5AC
|
|
|
|
DEVICE_VARIANT := Lite
|
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_rocket-5ac-lite
|
|
|
|
|
2019-08-22 12:34:45 +00:00
|
|
|
define Device/ubnt_routerstation_common
|
2020-07-27 10:30:41 +00:00
|
|
|
DEVICE_PACKAGES := -kmod-ath9k -wpad-basic-wolfssl -uboot-envtools kmod-usb-ohci \
|
2019-12-19 19:42:19 +00:00
|
|
|
kmod-usb2 fconfig
|
2019-08-22 12:34:45 +00:00
|
|
|
DEVICE_VENDOR := Ubiquiti
|
2019-12-20 00:12:42 +00:00
|
|
|
SOC := ar7161
|
ath79: switch some RedBoot based devices to OKLI loader
After the kernel has switched version to 5.10, JA76PF2 and
RouterStations lost the capability to sysupgrade the OpenWrt version.
The cause is the lack of porting the patches responsible for partial
flash erase block writing and these boards FIS directory and RedBoot
config partitions share the same erase block. Because of that the FIS
directory can't be updated to accommodate kernel/rootfs partition size
changes. This could be remedied by bootloader update, but it is very
intrusive and could potentially lead to non-trivial recovery procedure,
if something went wrong. The less difficult option is to use OpenWrt
kernel loader, which will let us use static partition sizes and employ
mtd splitter to dynamically adjust kernel and rootfs partition sizes.
On sysupgrade from ath79 19.07 or 21.02 image, which still let to modify
FIS directory, the loader will be written to kernel partition, while the
kernel+rootfs to rootfs partition.
The caveats are:
* image format changes, no possible upgrade from ar71xx target images
* downgrade to any older OpenWrt version will require TFTP recovery or
usage of bootloader command line interface
To downgrade to 19.07 or 21.02, or to upgrade if one is already on
OpenWrt with kernel 5.10, for RouterStations use TFTP recovery
procedure. For JA76PF2 use instructions from this commit message:
commit 0cc87b3bacee ("ath79: image: disable sysupgrade images for routerstations and ja76pf2"),
replacing kernel image with loader (loader.bin suffix) and rootfs
image with firmware (firmware.bin suffix).
Fixes: b10d6044599d ("kernel: add linux 5.10 support")
Fixes: 15aa53d7ee65 ("ath79: switch to Kernel 5.10")
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
(mkubntimage was moved to generic-ubnt.mk)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-06-07 13:58:27 +00:00
|
|
|
LOADER_TYPE := bin
|
|
|
|
LOADER_FLASH_OFFS := 0x50000
|
|
|
|
COMPILE := loader-$(1).bin
|
|
|
|
COMPILE/loader-$(1).bin := loader-okli-compile | lzma | pad-to 128k
|
|
|
|
IMAGE_SIZE := 16000k
|
2020-12-01 17:30:27 +00:00
|
|
|
IMAGES += factory.bin
|
ath79: switch some RedBoot based devices to OKLI loader
After the kernel has switched version to 5.10, JA76PF2 and
RouterStations lost the capability to sysupgrade the OpenWrt version.
The cause is the lack of porting the patches responsible for partial
flash erase block writing and these boards FIS directory and RedBoot
config partitions share the same erase block. Because of that the FIS
directory can't be updated to accommodate kernel/rootfs partition size
changes. This could be remedied by bootloader update, but it is very
intrusive and could potentially lead to non-trivial recovery procedure,
if something went wrong. The less difficult option is to use OpenWrt
kernel loader, which will let us use static partition sizes and employ
mtd splitter to dynamically adjust kernel and rootfs partition sizes.
On sysupgrade from ath79 19.07 or 21.02 image, which still let to modify
FIS directory, the loader will be written to kernel partition, while the
kernel+rootfs to rootfs partition.
The caveats are:
* image format changes, no possible upgrade from ar71xx target images
* downgrade to any older OpenWrt version will require TFTP recovery or
usage of bootloader command line interface
To downgrade to 19.07 or 21.02, or to upgrade if one is already on
OpenWrt with kernel 5.10, for RouterStations use TFTP recovery
procedure. For JA76PF2 use instructions from this commit message:
commit 0cc87b3bacee ("ath79: image: disable sysupgrade images for routerstations and ja76pf2"),
replacing kernel image with loader (loader.bin suffix) and rootfs
image with firmware (firmware.bin suffix).
Fixes: b10d6044599d ("kernel: add linux 5.10 support")
Fixes: 15aa53d7ee65 ("ath79: switch to Kernel 5.10")
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
(mkubntimage was moved to generic-ubnt.mk)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-06-07 13:58:27 +00:00
|
|
|
IMAGE/factory.bin := append-kernel | uImage lzma -M 0x4f4b4c49 | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
append-rootfs | pad-rootfs | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
mkubntimage $$$$(KDIR)/loader-$(1).bin | check-size
|
|
|
|
IMAGE/sysupgrade.bin := append-kernel | uImage lzma -M 0x4f4b4c49 | pad-to $$$$(BLOCKSIZE) | \
|
|
|
|
append-rootfs | pad-rootfs | pad-to $$$$(BLOCKSIZE) | check-size | \
|
|
|
|
sysupgrade-tar kernel=$$$$(KDIR)/loader-$(1).bin rootfs=$$$$@ | append-metadata
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma
|
2019-08-22 12:34:45 +00:00
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb
|
ath79: switch some RedBoot based devices to OKLI loader
After the kernel has switched version to 5.10, JA76PF2 and
RouterStations lost the capability to sysupgrade the OpenWrt version.
The cause is the lack of porting the patches responsible for partial
flash erase block writing and these boards FIS directory and RedBoot
config partitions share the same erase block. Because of that the FIS
directory can't be updated to accommodate kernel/rootfs partition size
changes. This could be remedied by bootloader update, but it is very
intrusive and could potentially lead to non-trivial recovery procedure,
if something went wrong. The less difficult option is to use OpenWrt
kernel loader, which will let us use static partition sizes and employ
mtd splitter to dynamically adjust kernel and rootfs partition sizes.
On sysupgrade from ath79 19.07 or 21.02 image, which still let to modify
FIS directory, the loader will be written to kernel partition, while the
kernel+rootfs to rootfs partition.
The caveats are:
* image format changes, no possible upgrade from ar71xx target images
* downgrade to any older OpenWrt version will require TFTP recovery or
usage of bootloader command line interface
To downgrade to 19.07 or 21.02, or to upgrade if one is already on
OpenWrt with kernel 5.10, for RouterStations use TFTP recovery
procedure. For JA76PF2 use instructions from this commit message:
commit 0cc87b3bacee ("ath79: image: disable sysupgrade images for routerstations and ja76pf2"),
replacing kernel image with loader (loader.bin suffix) and rootfs
image with firmware (firmware.bin suffix).
Fixes: b10d6044599d ("kernel: add linux 5.10 support")
Fixes: 15aa53d7ee65 ("ath79: switch to Kernel 5.10")
Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
(mkubntimage was moved to generic-ubnt.mk)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2022-06-07 13:58:27 +00:00
|
|
|
DEVICE_COMPAT_VERSION := 2.0
|
|
|
|
DEVICE_COMPAT_MESSAGE := Partition design has changed compared to older versions (19.07 and 21.02) \
|
|
|
|
due to kernel drivers restrictions. Upgrade via sysupgrade mechanism is one way operation. \
|
|
|
|
Downgrading OpenWrt version will involve usage of TFTP recovery or bootloader command line interface.
|
2019-08-22 12:34:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/ubnt_routerstation
|
|
|
|
$(Device/ubnt_routerstation_common)
|
|
|
|
DEVICE_MODEL := RouterStation
|
|
|
|
UBNT_BOARD := RS
|
|
|
|
UBNT_TYPE := RSx
|
|
|
|
UBNT_CHIP := ar7100
|
|
|
|
DEVICE_PACKAGES += -swconfig
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_routerstation
|
|
|
|
|
|
|
|
define Device/ubnt_routerstation-pro
|
|
|
|
$(Device/ubnt_routerstation_common)
|
|
|
|
DEVICE_MODEL := RouterStation Pro
|
|
|
|
UBNT_BOARD := RSPRO
|
|
|
|
UBNT_TYPE := RSPRO
|
|
|
|
UBNT_CHIP := ar7100pro
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_routerstation-pro
|
|
|
|
|
2022-07-11 20:42:59 +00:00
|
|
|
define Device/ubnt_unifi-ap
|
2018-05-06 08:20:11 +00:00
|
|
|
$(Device/ubnt-bz)
|
2022-03-24 08:26:01 +00:00
|
|
|
DEVICE_MODEL := UniFi AP
|
2022-07-11 20:42:59 +00:00
|
|
|
SUPPORTED_DEVICES += unifi ubnt,unifi
|
2018-05-06 08:20:11 +00:00
|
|
|
endef
|
2022-07-11 20:42:59 +00:00
|
|
|
TARGET_DEVICES += ubnt_unifi-ap
|
2018-06-05 12:38:02 +00:00
|
|
|
|
2022-07-11 20:43:00 +00:00
|
|
|
define Device/ubnt_unifi-ap-lr
|
|
|
|
$(Device/ubnt-bz)
|
|
|
|
DEVICE_MODEL := UniFi AP
|
|
|
|
DEVICE_VARIANT := LR
|
|
|
|
SUPPORTED_DEVICES += unifi ubnt,unifi ubnt,unifi-ap
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_unifi-ap-lr
|
|
|
|
|
2018-06-27 10:10:33 +00:00
|
|
|
define Device/ubnt_unifiac
|
2019-06-16 19:34:46 +00:00
|
|
|
DEVICE_VENDOR := Ubiquiti
|
2019-12-20 00:12:42 +00:00
|
|
|
SOC := qca9563
|
2018-06-05 12:38:02 +00:00
|
|
|
IMAGE_SIZE := 7744k
|
2018-09-05 12:51:44 +00:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
2018-06-05 12:38:02 +00:00
|
|
|
endef
|
|
|
|
|
2018-06-27 10:10:33 +00:00
|
|
|
define Device/ubnt_unifiac-lite
|
|
|
|
$(Device/ubnt_unifiac)
|
2020-07-15 16:41:57 +00:00
|
|
|
DEVICE_MODEL := UniFi AC Lite
|
2022-04-17 13:56:53 +00:00
|
|
|
DEVICE_PACKAGES += -swconfig
|
2019-10-14 09:16:54 +00:00
|
|
|
SUPPORTED_DEVICES += unifiac-lite
|
2018-06-05 12:38:02 +00:00
|
|
|
endef
|
2018-06-27 10:10:33 +00:00
|
|
|
TARGET_DEVICES += ubnt_unifiac-lite
|
2018-06-26 07:30:46 +00:00
|
|
|
|
2019-10-06 17:48:34 +00:00
|
|
|
define Device/ubnt_unifiac-lr
|
|
|
|
$(Device/ubnt_unifiac)
|
2020-07-15 16:41:57 +00:00
|
|
|
DEVICE_MODEL := UniFi AC LR
|
2022-04-17 13:56:53 +00:00
|
|
|
DEVICE_PACKAGES += -swconfig
|
2019-10-06 17:48:34 +00:00
|
|
|
SUPPORTED_DEVICES += unifiac-lite ubnt,unifiac-lite
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_unifiac-lr
|
|
|
|
|
2018-06-27 12:33:40 +00:00
|
|
|
define Device/ubnt_unifiac-mesh
|
|
|
|
$(Device/ubnt_unifiac)
|
2020-07-15 16:41:57 +00:00
|
|
|
DEVICE_MODEL := UniFi AC Mesh
|
2022-04-17 13:56:53 +00:00
|
|
|
DEVICE_PACKAGES += -swconfig
|
2020-01-23 14:42:48 +00:00
|
|
|
SUPPORTED_DEVICES += unifiac-lite
|
2018-06-27 12:33:40 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_unifiac-mesh
|
|
|
|
|
2018-07-02 12:39:54 +00:00
|
|
|
define Device/ubnt_unifiac-mesh-pro
|
|
|
|
$(Device/ubnt_unifiac)
|
2020-07-15 16:41:57 +00:00
|
|
|
DEVICE_MODEL := UniFi AC Mesh Pro
|
2020-01-23 14:42:48 +00:00
|
|
|
SUPPORTED_DEVICES += unifiac-pro
|
2018-07-02 12:39:54 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_unifiac-mesh-pro
|
|
|
|
|
2018-06-26 07:30:46 +00:00
|
|
|
define Device/ubnt_unifiac-pro
|
|
|
|
$(Device/ubnt_unifiac)
|
2020-07-15 16:41:57 +00:00
|
|
|
DEVICE_MODEL := UniFi AC Pro
|
2019-09-22 10:06:25 +00:00
|
|
|
DEVICE_PACKAGES += kmod-usb2
|
2020-01-23 14:42:48 +00:00
|
|
|
SUPPORTED_DEVICES += unifiac-pro
|
2018-06-26 07:30:46 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_unifiac-pro
|
2020-09-11 16:32:05 +00:00
|
|
|
|
2020-12-09 21:18:43 +00:00
|
|
|
define Device/ubnt_unifi-ap-outdoor-plus
|
|
|
|
$(Device/ubnt-bz)
|
|
|
|
$(Device/ubnt-unifi-jffs2)
|
|
|
|
DEVICE_MODEL := UniFi AP Outdoor+
|
|
|
|
SUPPORTED_DEVICES += unifi-outdoor-plus
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_unifi-ap-outdoor-plus
|
|
|
|
|
2020-09-11 16:32:05 +00:00
|
|
|
define Device/ubnt_unifi-ap-pro
|
2020-12-09 21:18:43 +00:00
|
|
|
$(Device/ubnt-unifi-jffs2)
|
2020-09-11 16:32:05 +00:00
|
|
|
SOC := ar9344
|
|
|
|
DEVICE_MODEL := UniFi AP Pro
|
|
|
|
UBNT_CHIP := ar934x
|
|
|
|
SUPPORTED_DEVICES += uap-pro
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ubnt_unifi-ap-pro
|