Skip to content

Commit

Permalink
bcm63xx: image: don't add the CFE to the sercomm factory
Browse files Browse the repository at this point in the history
There is no need to include the CFE bootloader in the Sercomm factory
images.

There might be a case when this could be useful:
  - We are running the stock firmware on the first Sercomm image
  - The second partition storing the botloader was erased (unlikely)
Even in this case flashing an image without a bootlader is harmless.

Don't include the bootloader in the factory image creation and rid of the
risk of flashing factory images with an untested bootloader partition.

Signed-off-by: Daniel González Cabanelas <[email protected]>
  • Loading branch information
danitool authored and Noltari committed Jun 7, 2020
1 parent 598ba5b commit 27c20a1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions target/linux/bcm63xx/image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -218,20 +218,8 @@ define Build/cfe-sercomm-part
--part-name rootfs_lib \
--part-version $(SERCOMM_VERSION)

rm -rf $@-bootloader
mkdir -p $@-bootloader
cp $(KDIR)/bcm63xx-cfe/$(CFE_RAM_FILE) $@-bootloader/$(CFE_RAM_JFFS2_NAME)
$(call Build/cfe-jffs2,$@-bootloader)
$(call Build/pad-to,$(BLOCKSIZE))
$(TOPDIR)/scripts/sercomm-partition-tag.py \
--input-file $@ \
--output-file $@.bootloader \
--part-name bootloader \
--part-version $(SERCOMM_VERSION)

mv $@.kernel_rootfs $@
dd if=$@.rootfs_lib >> $@
dd if=$@.bootloader >> $@
endef

define Build/cfe-sercomm-load
Expand Down

0 comments on commit 27c20a1

Please sign in to comment.