2 # BCM63XX NAND Profiles
5 DEVICE_VARS
+= CFE_PART_FLAGS CFE_PART_ID
6 DEVICE_VARS
+= CFE_RAM_FILE
7 DEVICE_VARS
+= CFE_RAM_JFFS2_NAME CFE_RAM_JFFS2_PAD
8 DEVICE_VARS
+= CFE_WFI_CHIP_ID CFE_WFI_FLASH_TYPE
9 DEVICE_VARS
+= CFE_WFI_FLAGS CFE_WFI_VERSION
10 DEVICE_VARS
+= SERCOMM_PID SERCOMM_VERSION
12 # CFE expects a single JFFS2 partition with cferam and kernel. However,
13 # it's possible to fool CFE into properly loading both cferam and kernel
14 # from two different JFFS2 partitions by adding dummy files (see
15 # cfe-jffs2-cferam and cfe-jffs2-kernel).
16 # Separate JFFS2 partitions allow upgrading openwrt without reflashing cferam
17 # JFFS2 partition, which is much safer in case anything goes wrong.
18 define Device
/bcm63xx-nand
19 FILESYSTEMS
:= squashfs ubifs
20 KERNEL
:= kernel-bin | append-dtb | relocate-kernel | lzma | cfe-jffs2-kernel
21 KERNEL_INITRAMFS
:= kernel-bin | append-dtb | lzma | loader-lzma elf
22 IMAGES
:= cfe.bin sysupgrade.bin
23 IMAGE
/cfe.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | cfe-jffs2-cferam | append-ubi | cfe-wfi-tag
24 IMAGE
/sysupgrade.bin
:= sysupgrade-tar | append-metadata
32 CFE_WFI_CHIP_ID
= 0x
$$(CHIP_ID
)
36 DEVICE_PACKAGES
+= nand-utils
37 SUPPORTED_DEVICES
:= $(subst _
,$(comma
),$(1))
40 define Device
/sercomm-nand
41 $(Device
/bcm63xx-nand
)
43 IMAGE
/factory.img
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | append-ubi | cfe-sercomm-part | gzip | cfe-sercomm-load | cfe-sercomm-crypto
49 define Device
/comtrend_vr-3032u
50 $(Device
/bcm63xx-nand
)
51 DEVICE_VENDOR
:= Comtrend
52 DEVICE_MODEL
:= VR-3032u
55 CFE_RAM_FILE
:= comtrend
,vr-3032u
/cferam
.000
56 CFE_RAM_JFFS2_NAME
:= cferam
.000
60 VID_HDR_OFFSET
:= 2048
61 DEVICE_PACKAGES
+= $(USB2_PACKAGES
)
62 CFE_WFI_VERSION
:= 0x5731
63 CFE_WFI_FLASH_TYPE
:= 3
65 TARGET_DEVICES
+= comtrend_vr-3032u
67 define Device
/comtrend_vg-8050
68 $(Device
/bcm63xx-nand
)
69 DEVICE_VENDOR
:= Comtrend
70 DEVICE_MODEL
:= VG-8050
73 CFE_RAM_FILE
:= comtrend
,vg-8050
/cferam
.000
74 CFE_RAM_JFFS2_NAME
:= cferam
.000
78 VID_HDR_OFFSET
:= 2048
79 DEVICE_PACKAGES
+= $(USB2_PACKAGES
)
80 CFE_WFI_VERSION
:= 0x5731
81 CFE_WFI_FLASH_TYPE
:= 3
83 TARGET_DEVICES
+= comtrend_vg-8050
86 define Device
/huawei_hg253s-v2
87 $(Device
/bcm63xx-nand
)
88 IMAGES
:= flash.bin sysupgrade.bin
89 IMAGE
/flash.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | cfe-jffs2-cferam | append-ubi
90 DEVICE_VENDOR
:= Huawei
91 DEVICE_MODEL
:= HG253s
95 CFE_PART_ID
:= 0x0001EFEE
96 CFE_RAM_FILE
:= huawei
,hg253s-v2
/cferam
.000
97 CFE_RAM_JFFS2_NAME
:= cferam
.000
101 VID_HDR_OFFSET
:= 2048
102 DEVICE_PACKAGES
+= $(USB2_PACKAGES
)
103 CFE_WFI_FLASH_TYPE
:= 3
105 TARGET_DEVICES
+= huawei_hg253s-v2
108 define Device
/netgear_dgnd3700-v2
109 $(Device
/bcm63xx-nand
)
110 DEVICE_VENDOR
:= NETGEAR
111 DEVICE_MODEL
:= DGND3700
114 CFE_RAM_FILE
:= netgear
,dgnd3700-v2
/cferam
115 CFE_RAM_JFFS2_NAME
:= cferam
116 CFE_RAM_JFFS2_PAD
:= 496k
119 DEVICE_PACKAGES
+= $(B43_PACKAGES
) $(USB2_PACKAGES
)
120 CFE_WFI_VERSION
:= 0x5731
121 CFE_WFI_FLASH_TYPE
:= 2
123 TARGET_DEVICES
+= netgear_dgnd3700-v2
126 define Device
/sercomm_ad1018
127 $(Device
/sercomm-nand
)
128 IMAGE
/cfe.bin
:= append-kernel | pad-to
$$$$(KERNEL_SIZE
) | ad1018-jffs2-cferam | append-ubi | cfe-wfi-tag
129 DEVICE_VENDOR
:= Sercomm
130 DEVICE_MODEL
:= AD1018
132 CFE_RAM_FILE
:= sercomm
,ad1018
/cferam
133 CFE_RAM_JFFS2_NAME
:= cferam
137 VID_HDR_OFFSET
:= 2048
138 DEVICE_PACKAGES
+= $(B43_PACKAGES
) $(USB2_PACKAGES
)
139 CFE_WFI_FLASH_TYPE
:= 3
140 CFE_WFI_VERSION
:= 0x5731
142 30 30 30 30 30 30 30 31 34 31 35 31 35 33 30 30 \
143 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 \
144 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 \
145 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 \
146 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 \
147 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 \
148 30 30 30 30 33 30 31 33 30 30 30 30 30 30 30 30 \
149 0D
0A
00 00 00 00 00 00 00 00 00 00 00 00 00 00
150 SERCOMM_VERSION
:= 1001
152 TARGET_DEVICES
+= sercomm_ad1018