mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 18:59:13 +08:00
ath79: fix several issues for ZyXEL NBG6716
This fixes several issues introduced with ZyXEL NBG6716 support: - Inhomogeneous indent - Wrong ath10k MAC patching function - Wrong brackets for pad-to in nand.mk - Add missing DEVICE_MODEL - Remove k2t.sh include (copy/paste leftover) Fixes: 99835e09992b ("ath79: add support for ZyXEL NBG6716") Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
cd87272eb2
commit
6d00e6fc7b
@ -105,7 +105,7 @@
|
||||
};
|
||||
|
||||
&gpio {
|
||||
gpio_usb_power {
|
||||
usb_power {
|
||||
gpio-hog;
|
||||
gpios = <16 0>;
|
||||
output-high;
|
||||
|
@ -94,6 +94,7 @@ TARGET_DEVICES += netgear_wndr4300
|
||||
define Device/zyxel_nbg6716
|
||||
ATH_SOC := qca9558
|
||||
DEVICE_VENDOR := ZyXEL
|
||||
DEVICE_MODEL := NBG6716
|
||||
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct
|
||||
RAS_BOARD := NBG6716
|
||||
RAS_ROOTFS_SIZE := 29696k
|
||||
@ -104,7 +105,7 @@ define Device/zyxel_nbg6716
|
||||
KERNEL := kernel-bin | append-dtb | uImage none | \
|
||||
zyxel-buildkerneljffs | check-size 4096k
|
||||
IMAGES := sysupgrade.tar sysupgrade-4M-Kernel.bin factory.bin
|
||||
IMAGE/sysupgrade.tar/squashfs := append-rootfs | pad-to $$$${BLOCKSIZE} | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
||||
IMAGE/sysupgrade.tar/squashfs := append-rootfs | pad-to $$$$(BLOCKSIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
|
||||
IMAGE/sysupgrade-4M-Kernel.bin/squashfs := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | pad-to 263192576 | gzip
|
||||
IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | zyxel-factory
|
||||
UBINIZE_OPTS := -E 5
|
||||
|
@ -3,7 +3,6 @@
|
||||
[ -e /lib/firmware/$FIRMWARE ] && exit 0
|
||||
|
||||
. /lib/functions/caldata.sh
|
||||
. /lib/functions/k2t.sh
|
||||
|
||||
board=$(board_name)
|
||||
|
||||
@ -12,7 +11,7 @@ case "$FIRMWARE" in
|
||||
case $board in
|
||||
zyxel,nbg6716)
|
||||
caldata_extract "art" 0x5000 0x844
|
||||
ath10kcal_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1)
|
||||
ath10k_patch_mac $(macaddr_add $(mtd_get_mac_ascii u-boot-env ethaddr) +1)
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user