diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2020-05-19 13:29:12 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2020-05-19 13:33:39 +0200 |
commit | 5f826919232db2ca2d3d7e9da00de93c5f6a95bf (patch) | |
tree | a3d3202259d2028a264731bc165916e654d06d12 /target/linux/bcm63xx/image/Makefile | |
parent | 5d3bb7ea9aaa1d9bfb1b9263a5a9bac0ab6d0440 (diff) | |
download | upstream-5f826919232db2ca2d3d7e9da00de93c5f6a95bf.tar.gz upstream-5f826919232db2ca2d3d7e9da00de93c5f6a95bf.tar.bz2 upstream-5f826919232db2ca2d3d7e9da00de93c5f6a95bf.zip |
bcm63xx: add unmodded SERCOMM AD1018 support
Until now only HW modded SPI flash version was supported.
BCM6328 with 64M RAM and 128M NAND.
More info: https://openwrt.org/toh/sercomm/ad1018
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/bcm63xx/image/Makefile')
-rw-r--r-- | target/linux/bcm63xx/image/Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/bcm63xx/image/Makefile b/target/linux/bcm63xx/image/Makefile index e392d99f2c..483e711a5d 100644 --- a/target/linux/bcm63xx/image/Makefile +++ b/target/linux/bcm63xx/image/Makefile @@ -95,6 +95,31 @@ define Image/FileSystemStrip $(firstword $(subst +,$(space),$(subst root.,,$(notdir $(1))))) endef +define Build/ad1018-jffs2-cferam + mv $@ $@.kernel + + rm -rf $@-cferam + mkdir -p $@-cferam + + # CFE RAM JFFS2 partition + cp $(KDIR)/bcm63xx-cfe/$(CFE_RAM_FILE) $@-cferam/$(CFE_RAM_JFFS2_NAME) + $(call Build/cfe-jffs2,$@-cferam) + mv $@ $@.cferam + + # First block of CFE RAM 1 will be destroyed by MMAP + dd if=$@.cferam bs=$(BLOCKSIZE) count=1 > $@ + dd if=$@.cferam >> $@ + $(call Build/pad-to,896k) + + # CFE RAM 2 + dd if=$@.cferam >> $@ + + # Append kernel @ 4M + $(call Build/pad-to,4096k) + dd if=$@.kernel >> $@ + rm -f $@.kernel +endef + define Build/cfe-bin $(STAGING_DIR_HOST)/bin/imagetag -i $(IMAGE_KERNEL) -f $(IMAGE_ROOTFS) \ --output $@ --boardid $(CFE_BOARD_ID) --chipid $(CFE_CHIP_ID) \ |