2018-05-06 08:20:11 +00:00
|
|
|
define Build/netgear-squashfs
|
|
|
|
rm -rf $@.fs $@.squashfs
|
|
|
|
mkdir -p $@.fs/image
|
|
|
|
cp $@ $@.fs/image/uImage
|
|
|
|
$(STAGING_DIR_HOST)/bin/mksquashfs-lzma \
|
|
|
|
$@.fs $@.squashfs \
|
|
|
|
-noappend -root-owned -be -b 65536 \
|
|
|
|
$(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
|
|
|
|
|
|
|
|
dd if=/dev/zero bs=1k count=1 >> $@.squashfs
|
|
|
|
mkimage \
|
|
|
|
-A mips -O linux -T filesystem -C none \
|
|
|
|
-M $(NETGEAR_KERNEL_MAGIC) \
|
|
|
|
-a 0xbf070000 -e 0xbf070000 \
|
|
|
|
-n 'MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION)' \
|
|
|
|
-d $@.squashfs $@
|
|
|
|
rm -rf $@.squashfs $@.fs
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/netgear-uImage
|
|
|
|
$(call Build/uImage,$(1) -M $(NETGEAR_KERNEL_MAGIC))
|
|
|
|
endef
|
|
|
|
|
2018-03-02 18:28:50 +00:00
|
|
|
|
|
|
|
define Device/avm_fritz300e
|
|
|
|
ATH_SOC := ar7242
|
|
|
|
DEVICE_TITLE := AVM FRITZ!WLAN Repeater 300E
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | eva-image
|
|
|
|
KERNEL_INITRAMFS := $$(KERNEL)
|
|
|
|
IMAGE_SIZE := 15232k
|
|
|
|
IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | \
|
|
|
|
append-squashfs-fakeroot-be | pad-to 256 | \
|
|
|
|
append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
|
|
|
|
DEVICE_PACKAGES := fritz-tffs rssileds -swconfig
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += avm_fritz300e
|
|
|
|
|
2018-05-08 05:22:38 +00:00
|
|
|
define Device/embeddedwireless_dorin
|
2018-05-06 08:20:11 +00:00
|
|
|
ATH_SOC := ar9331
|
|
|
|
DEVICE_TITLE := Embedded Wireless Dorin
|
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2
|
2018-05-07 19:09:44 +00:00
|
|
|
IMAGE_SIZE := 16000k
|
2018-05-07 20:41:04 +00:00
|
|
|
SUPPORTED_DEVICES += ew-dorin
|
2018-05-06 08:20:11 +00:00
|
|
|
endef
|
2018-05-08 05:22:38 +00:00
|
|
|
TARGET_DEVICES += embeddedwireless_dorin
|
2018-05-06 08:20:11 +00:00
|
|
|
|
2018-05-07 16:08:00 +00:00
|
|
|
define Device/etactica-eg200
|
|
|
|
ATH_SOC := ar9331
|
|
|
|
DEVICE_TITLE := eTactica EG200
|
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2 kmod-ledtrig-oneshot \
|
|
|
|
kmod-usb-serial kmod-usb-serial-ftdi kmod-usb-storage kmod-fs-ext4
|
|
|
|
SUPPORTED_DEVICES += etactica,eg200 rme-eg200
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += etactica-eg200
|
|
|
|
|
2018-05-08 05:22:38 +00:00
|
|
|
define Device/glinet_ar150
|
2018-05-06 08:20:11 +00:00
|
|
|
ATH_SOC := ar9330
|
|
|
|
DEVICE_TITLE := GL.iNet GL-AR150
|
|
|
|
DEVICE_PACKAGES := kmod-usb-chipidea2
|
|
|
|
IMAGE_SIZE := 16000k
|
2018-05-07 20:41:04 +00:00
|
|
|
SUPPORTED_DEVICES += gl-ar150
|
2018-05-06 08:20:11 +00:00
|
|
|
endef
|
2018-05-08 05:22:38 +00:00
|
|
|
TARGET_DEVICES += glinet_ar150
|
2018-05-06 08:20:11 +00:00
|
|
|
|
2018-05-08 05:22:38 +00:00
|
|
|
define Device/openmesh_om5p-ac-v2
|
2018-05-06 08:20:11 +00:00
|
|
|
ATH_SOC := qca9558
|
2018-05-08 05:22:38 +00:00
|
|
|
DEVICE_TITLE := OpenMesh OM5P-AC v2
|
2018-05-06 08:20:11 +00:00
|
|
|
DEVICE_PACKAGES := kmod-ath10k ath10k-firmware-qca988x om-watchdog
|
2018-05-07 19:09:44 +00:00
|
|
|
IMAGE_SIZE := 7808k
|
2018-05-07 20:41:04 +00:00
|
|
|
SUPPORTED_DEVICES += om5p-acv2
|
2018-05-06 08:20:11 +00:00
|
|
|
endef
|
2018-05-08 05:22:38 +00:00
|
|
|
TARGET_DEVICES += openmesh_om5p-ac-v2
|
2018-05-06 08:20:11 +00:00
|
|
|
|
|
|
|
define Device/netgear_wndr3800
|
|
|
|
ATH_SOC := ar7161
|
|
|
|
DEVICE_TITLE := NETGEAR WNDR3800
|
2018-05-07 19:09:44 +00:00
|
|
|
NETGEAR_KERNEL_MAGIC := 0x33373031
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma -d20 | netgear-uImage lzma
|
2018-05-06 08:20:11 +00:00
|
|
|
NETGEAR_BOARD_ID := WNDR3800
|
|
|
|
NETGEAR_HW_ID := 29763654+16+128
|
2018-05-07 19:09:44 +00:00
|
|
|
IMAGE_SIZE := 15872k
|
|
|
|
IMAGES := sysupgrade.bin factory.img
|
|
|
|
IMAGE/default := append-kernel | pad-to $$$$(BLOCKSIZE) | netgear-squashfs | append-rootfs | pad-rootfs
|
2018-05-07 20:41:04 +00:00
|
|
|
IMAGE/sysupgrade.bin := $$(IMAGE/default) | append-metadata | check-size $$$$(IMAGE_SIZE)
|
2018-05-07 19:09:44 +00:00
|
|
|
IMAGE/factory.img := $$(IMAGE/default) | netgear-dni | check-size $$$$(IMAGE_SIZE)
|
|
|
|
DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport kmod-leds-reset
|
2018-05-07 20:41:04 +00:00
|
|
|
SUPPORTED_DEVICES += wndr3800
|
2018-05-06 08:20:11 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += netgear_wndr3800
|
|
|
|
|
|
|
|
define Device/buffalo_wzr-hp-g450h
|
|
|
|
ATH_SOC := ar7242
|
|
|
|
DEVICE_TITLE := Buffalo WZR-HP-G450H
|
|
|
|
DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-ledtrig-usbport
|
2018-05-07 19:09:44 +00:00
|
|
|
IMAGE_SIZE := 32256k
|
2018-05-07 20:41:04 +00:00
|
|
|
SUPPORTED_DEVICES += wzr-hp-g450h
|
2018-05-06 08:20:11 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += buffalo_wzr-hp-g450h
|