bcm63xx: vg-8050: switch to bcm-wfi-split
[openwrt/staging/ynezz.git] / target / linux / bcm63xx / image / bcm63xx_nand.mk
1 #
2 # BCM63XX NAND Profiles
3 #
4
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
11
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
25 KERNEL_SIZE := 5120k
26 CFE_PART_FLAGS :=
27 CFE_PART_ID :=
28 CFE_RAM_FILE :=
29 CFE_RAM_JFFS2_NAME :=
30 CFE_RAM_JFFS2_PAD :=
31 CFE_WFI_VERSION :=
32 CFE_WFI_CHIP_ID = 0x$$(CHIP_ID)
33 CFE_WFI_FLASH_TYPE :=
34 CFE_WFI_FLAGS :=
35 UBINIZE_OPTS := -E 5
36 DEVICE_PACKAGES += nand-utils
37 SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
38 endef
39
40 define Device/sercomm-nand
41 $(Device/bcm63xx-nand)
42 IMAGES += factory.img
43 IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | cfe-sercomm-part | gzip | cfe-sercomm-load | cfe-sercomm-crypto
44 SERCOM_PID :=
45 SERCOMM_VERSION :=
46 endef
47
48 ### Comtrend ###
49 define Device/comtrend_vg-8050
50 $(Device/bcm63xx-nand)
51 DEVICE_VENDOR := Comtrend
52 DEVICE_MODEL := VG-8050
53 CHIP_ID := 63268
54 SOC := bcm63169
55 CFE_RAM_FILE := comtrend,vg-8050/cferam.000
56 CFE_RAM_JFFS2_NAME := cferam.000
57 BLOCKSIZE := 128k
58 PAGESIZE := 2048
59 SUBPAGESIZE := 512
60 VID_HDR_OFFSET := 2048
61 DEVICE_PACKAGES += $(USB2_PACKAGES)
62 CFE_WFI_VERSION := 0x5732
63 CFE_WFI_FLASH_TYPE := 3
64 endef
65 TARGET_DEVICES += comtrend_vg-8050
66
67 define Device/comtrend_vr-3032u
68 $(Device/bcm63xx-nand)
69 DEVICE_VENDOR := Comtrend
70 DEVICE_MODEL := VR-3032u
71 CHIP_ID := 63268
72 SOC := bcm63168
73 CFE_RAM_FILE := comtrend,vr-3032u/cferam.000
74 CFE_RAM_JFFS2_NAME := cferam.000
75 BLOCKSIZE := 128k
76 PAGESIZE := 2048
77 SUBPAGESIZE := 512
78 VID_HDR_OFFSET := 2048
79 DEVICE_PACKAGES += $(USB2_PACKAGES)
80 CFE_WFI_VERSION := 0x5732
81 CFE_WFI_FLASH_TYPE := 3
82 endef
83 TARGET_DEVICES += comtrend_vr-3032u
84
85 ### Huawei ###
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
92 DEVICE_VARIANT := v2
93 CHIP_ID := 6362
94 CFE_PART_FLAGS := 1
95 CFE_PART_ID := 0x0001EFEE
96 CFE_RAM_FILE := huawei,hg253s-v2/cferam.000
97 CFE_RAM_JFFS2_NAME := cferam.000
98 BLOCKSIZE := 128k
99 PAGESIZE := 2048
100 SUBPAGESIZE := 512
101 VID_HDR_OFFSET := 2048
102 DEVICE_PACKAGES += $(USB2_PACKAGES)
103 CFE_WFI_FLASH_TYPE := 3
104 endef
105 TARGET_DEVICES += huawei_hg253s-v2
106
107 ### Netgear ###
108 define Device/netgear_dgnd3700-v2
109 $(Device/bcm63xx-nand)
110 DEVICE_VENDOR := NETGEAR
111 DEVICE_MODEL := DGND3700
112 DEVICE_VARIANT := v2
113 CHIP_ID := 6362
114 CFE_RAM_FILE := netgear,dgnd3700-v2/cferam
115 CFE_RAM_JFFS2_NAME := cferam
116 CFE_RAM_JFFS2_PAD := 496k
117 BLOCKSIZE := 16k
118 PAGESIZE := 512
119 DEVICE_PACKAGES += $(B43_PACKAGES) $(USB2_PACKAGES)
120 CFE_WFI_VERSION := 0x5731
121 CFE_WFI_FLASH_TYPE := 2
122 endef
123 TARGET_DEVICES += netgear_dgnd3700-v2
124
125 ### Sercomm ###
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
131 CHIP_ID := 6328
132 CFE_RAM_FILE := sercomm,ad1018/cferam
133 CFE_RAM_JFFS2_NAME := cferam
134 BLOCKSIZE := 128k
135 PAGESIZE := 2048
136 SUBPAGESIZE := 512
137 VID_HDR_OFFSET := 2048
138 DEVICE_PACKAGES += $(B43_PACKAGES) $(USB2_PACKAGES)
139 CFE_WFI_FLASH_TYPE := 3
140 CFE_WFI_VERSION := 0x5731
141 SERCOMM_PID := \
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
151 endef
152 TARGET_DEVICES += sercomm_ad1018