2 # BCM63XX NAND Profiles
5 DEVICE_VARS += CFE_RAM_FILE
6 DEVICE_VARS += CFE_RAM_JFFS2_NAME CFE_RAM_JFFS2_PAD
7 DEVICE_VARS += CFE_WFI_CHIP_ID CFE_WFI_FLASH_TYPE
8 DEVICE_VARS += CFE_WFI_FLAGS CFE_WFI_VERSION
10 # CFE expects a single JFFS2 partition with cferam and kernel. However,
11 # it's possible to fool CFE into properly loading both cferam and kernel
12 # from two different JFFS2 partitions by adding dummy files (see
13 # cfe-jffs2-cferam and cfe-jffs2-kernel).
14 # Separate JFFS2 partitions allow upgrading openwrt without reflashing cferam
15 # JFFS2 partition, which is much safer in case anything goes wrong.
16 define Device/bcm63xx-nand
17 FILESYSTEMS := squashfs ubifs
18 KERNEL := kernel-bin | append-dtb | relocate-kernel | lzma | cfe-jffs2-kernel
19 KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-lzma elf
20 IMAGES := cfe.bin sysupgrade.bin
21 IMAGE/cfe.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | cfe-jffs2-cferam | append-ubi | cfe-wfi-tag
22 IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
28 CFE_WFI_VERSION := 0x5731
29 CFE_WFI_CHIP_ID = 0x$$(CFE_CHIP_ID)
33 DEVICE_PACKAGES += nand-utils
34 SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
38 define Device/comtrend_vr-3032u
39 $(Device/bcm63xx-nand)
40 DEVICE_VENDOR := Comtrend
41 DEVICE_MODEL := VR-3032u
44 CFE_RAM_FILE := comtrend,vr-3032u/cferam.000
45 CFE_RAM_JFFS2_NAME := cferam.000
49 VID_HDR_OFFSET := 2048
50 DEVICE_PACKAGES += $(USB2_PACKAGES)
51 CFE_WFI_FLASH_TYPE := 3
53 TARGET_DEVICES += comtrend_vr-3032u
55 define Device/comtrend_vg-8050
56 $(Device/bcm63xx-nand)
57 DEVICE_VENDOR := Comtrend
58 DEVICE_MODEL := VG-8050
61 CFE_RAM_FILE := comtrend,vg-8050/cferam.000
62 CFE_RAM_JFFS2_NAME := cferam.000
66 VID_HDR_OFFSET := 2048
67 DEVICE_PACKAGES += $(USB2_PACKAGES)
68 CFE_WFI_FLASH_TYPE := 3
70 TARGET_DEVICES += comtrend_vg-8050
73 define Device/netgear_dgnd3700-v2
74 $(Device/bcm63xx-nand)
75 DEVICE_VENDOR := NETGEAR
76 DEVICE_MODEL := DGND3700
79 CFE_RAM_FILE := netgear,dgnd3700-v2/cferam
80 CFE_RAM_JFFS2_NAME := cferam
81 CFE_RAM_JFFS2_PAD := 496k
84 DEVICE_PACKAGES += $(B43_PACKAGES) $(USB2_PACKAGES)
85 CFE_WFI_FLASH_TYPE := 2
87 TARGET_DEVICES += netgear_dgnd3700-v2
90 define Device/sercomm_ad1018
91 $(Device/bcm63xx-nand)
92 IMAGE/cfe.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | ad1018-jffs2-cferam | append-ubi | cfe-wfi-tag
93 DEVICE_VENDOR := Sercomm
94 DEVICE_MODEL := AD1018
96 CFE_RAM_FILE := sercomm,ad1018/cferam
97 CFE_RAM_JFFS2_NAME := cferam
101 VID_HDR_OFFSET := 2048
102 DEVICE_PACKAGES += $(B43_PACKAGES) $(USB2_PACKAGES)
103 CFE_WFI_FLASH_TYPE := 3
105 TARGET_DEVICES += sercomm_ad1018