openwrtv3/target/linux/ramips/image/mt7628.mk
Mathias Kresin 28110727f1 ramips: set blocksize for 4MB devices
Set the blocksize for devices having only 4MB of flash for ramips
devices already using the new image build code.

Informations about the used flash chip are gathered from the OpenWrt
wiki, wikidevi, forums, OEM bootlogs or the compatible property in the
device tree source file.

The en25q32b from the AirLive Air3GII does not have 4k support in the
kernel.

For the following boards no information about the used flash chip could
be found and a 64k blocksize is assumed:

  - Ralink V11ST-FE
  - Ralink AP-RT3052-V22RW-2X2
  - MediaTek MT7628 EVB
  - MediaTek MT7621 EVB
  - UPVEL UR-326N4G
  - Buffalo WZR-AGL300NH

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-03 09:56:35 +02:00

41 lines
1,006 B
Makefile

#
# MT7628 Profiles
#
define Device/mt7628
DTS := MT7628
BLOCKSIZE := 64k
IMAGE_SIZE := $(ralink_default_fw_size_4M)
DEVICE_TITLE := MediaTek MT7628 EVB
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-ledtrig-usbdev
endef
TARGET_DEVICES += mt7628
define Device/miwifi-nano
DTS := MIWIFI-NANO
IMAGE_SIZE := $(ralink_default_fw_size_16M)
DEVICE_TITLE := Xiaomi MiWiFi Nano
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-ledtrig-usbdev
endef
TARGET_DEVICES += miwifi-nano
define Device/wrtnode2p
DTS := WRTNODE2P
IMAGE_SIZE := $(ralink_default_fw_size_16M)
DEVICE_TITLE := WRTnode 2P
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-ledtrig-usbdev
endef
TARGET_DEVICES += wrtnode2p
define Device/duzun-dm06
DTS := DUZUN-DM06
DEVICE_TITLE := DuZun DM06
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-ledtrig-usbdev
endef
TARGET_DEVICES += duzun-dm06
define Device/mac1200r-v2
DTS := MAC1200RV2
DEVICE_TITLE := Mercury MAC1200R v2.0
endef
TARGET_DEVICES += mac1200r-v2