X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fimage%2Fnand.mk;h=420c62a5db930fc86496517683b708dc63a78489;hp=7d283b54c4bb99066d20fe338c9b55b597f5b64a;hb=9a9cdc65c4fd3b25d04e8f08efd5ec6fc7903988;hpb=5b392c7119f23aef10ffc0def9a70e8335f9f3f8 diff --git a/target/linux/ath79/image/nand.mk b/target/linux/ath79/image/nand.mk index 7d283b54c4..420c62a5db 100644 --- a/target/linux/ath79/image/nand.mk +++ b/target/linux/ath79/image/nand.mk @@ -30,6 +30,21 @@ define Build/zyxel-factory fi endef +define Device/8dev_rambutan + SOC := qca9557 + DEVICE_VENDOR := 8devices + DEVICE_MODEL := Rambutan + DEVICE_PACKAGES := kmod-usb2 + BLOCKSIZE := 128k + PAGESIZE := 2048 + KERNEL_SIZE := 4096k + KERNEL_IN_UBI := 1 + IMAGES := factory.bin sysupgrade.tar + IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata + IMAGE/factory.bin := append-ubi +endef +TARGET_DEVICES += 8dev_rambutan + define Device/aerohive_hiveap-121 SOC := ar9344 DEVICE_VENDOR := Aerohive @@ -43,7 +58,7 @@ define Device/aerohive_hiveap-121 SUPPORTED_DEVICES += hiveap-121 IMAGES += factory.bin IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \ - check-size $$$$(IMAGE_SIZE) + check-size IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata endef TARGET_DEVICES += aerohive_hiveap-121 @@ -62,7 +77,7 @@ define Device/domywifi_dw33d IMAGES += factory.bin IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | \ - check-size $$$$(IMAGE_SIZE) + check-size endef TARGET_DEVICES += domywifi_dw33d @@ -102,21 +117,13 @@ define Device/glinet_gl-ar750s-common DEVICE_MODEL := GL-AR750S DEVICE_PACKAGES := kmod-ath10k-ct ath10k-firmware-qca9887-ct kmod-usb2 \ kmod-usb-storage block-mount - KERNEL_SIZE := 2048k IMAGE_SIZE := 16000k - PAGESIZE := 2048 - VID_HDR_OFFSET := 2048 endef -# NB: The kernel size is intentionally restricted at this time; see commit message define Device/glinet_gl-ar750s-nor-nand $(Device/glinet_gl-ar750s-common) DEVICE_VARIANT := NOR/NAND - BLOCKSIZE := 128k - GL_UBOOT_UBI_OFFSET := 2048k - IMAGES += factory.img - IMAGE/factory.img := append-kernel | pad-to $$$$(GL_UBOOT_UBI_OFFSET) | \ - append-ubi | check-kernel-size $$$$(GL_UBOOT_UBI_OFFSET) + KERNEL_SIZE := 4096k IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata SUPPORTED_DEVICES += glinet,gl-ar750s-nor endef @@ -145,9 +152,9 @@ define Device/netgear_ath79_nand KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma IMAGES := sysupgrade.bin factory.img IMAGE/factory.img := append-kernel | append-ubi | netgear-dni | \ - check-size $$$$(IMAGE_SIZE) + check-size IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata | \ - check-size $$$$(IMAGE_SIZE) + check-size UBINIZE_OPTS := -E 5 endef @@ -172,6 +179,16 @@ define Device/netgear_wndr4300 endef TARGET_DEVICES += netgear_wndr4300 +define Device/netgear_wndr4300sw + SOC := ar9344 + DEVICE_MODEL := WNDR4300SW + NETGEAR_KERNEL_MAGIC := 0x33373033 + NETGEAR_BOARD_ID := WNDR4300SW + NETGEAR_HW_ID := 29763948+0+128+128+2x2+3x3 + $(Device/netgear_ath79_nand) +endef +TARGET_DEVICES += netgear_wndr4300sw + define Device/netgear_wndr4300-v2 SOC := qca9563 DEVICE_MODEL := WNDR4300