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))