summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2009-04-19 13:18:48 +0000
committerFlorian Fainelli <florian@openwrt.org>2009-04-19 13:18:48 +0000
commit1f334e3caa3f0b8547e77e0bc55a4be859d90e20 (patch)
treee5267447b1c6a3fbb719857d31de84a0f9440933 /target/linux/brcm63xx
parent08ae0cd8d2a48bb7ed5b84206be55d2fdcdcfc0f (diff)
downloadmtk-20170518-1f334e3caa3f0b8547e77e0bc55a4be859d90e20.zip
mtk-20170518-1f334e3caa3f0b8547e77e0bc55a4be859d90e20.tar.gz
mtk-20170518-1f334e3caa3f0b8547e77e0bc55a4be859d90e20.tar.bz2
make images that can be flashed using the stock firmware web interface, thanks to Anselmo Luginbuhl and Daniel Dickinson (#4909, #4943)
SVN-Revision: 15253
Diffstat (limited to 'target/linux/brcm63xx')
-rw-r--r--target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm_tag.h14
-rw-r--r--target/linux/brcm63xx/image/Makefile4
2 files changed, 10 insertions, 8 deletions
diff --git a/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm_tag.h b/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm_tag.h
index efc4f02..7c170c0 100644
--- a/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm_tag.h
+++ b/target/linux/brcm63xx/files/include/asm-mips/mach-bcm63xx/bcm_tag.h
@@ -14,17 +14,21 @@ struct bcm_tag {
unsigned char totalLength[IMAGE_LEN]; //Total length of image
unsigned char cfeAddress[ADDRESS_LEN]; // Address in memory of CFE
unsigned char cfeLength[IMAGE_LEN]; // Size of CFE
- unsigned char rootAddress[ADDRESS_LEN]; // Address in memory of rootfs
- unsigned char rootLength[IMAGE_LEN]; // Size of rootfs
+ unsigned char cfeRootAddress[ADDRESS_LEN]; // Address in memory of rootfs
+ unsigned char cfeRootLength[IMAGE_LEN]; // Size of rootfs
unsigned char kernelAddress[ADDRESS_LEN]; // Address in memory of kernel
unsigned char kernelLength[IMAGE_LEN]; // Size of kernel
unsigned char dualImage[2]; // Unused at present
unsigned char inactiveFlag[2]; // Unused at present
unsigned char reserved1[74]; // Reserved area not in use
unsigned char imageCRC[4]; // CRC32 of images
- unsigned char reserved2[16]; // Unused at present
- unsigned char headerCRC[4]; // CRC32 of header excluding tagVersion
- unsigned char reserved3[16]; // Unused at present
+// unsigned char reserved2[16]; // Unused at present
+ unsigned char reserved2[4]; //Unused
+ unsigned char rootAddress[ADDRESS_LEN]; // Address in memory of rootfs
+ unsigned char headerCRC[4]; // CRC32 of header excluding tagVersion
+// unsigned char reserved3[16]; // Unused at present
+ unsigned char reserved3[6]; // Unused at present
+ unsigned char rootLength[IMAGE_LEN]; // Size of rootfs
};
#endif /* __BCM63XX_TAG_H */
diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile
index 8714096..7c4ed46 100644
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -34,7 +34,6 @@ define Image/Build/CFE
-b $(2) -c $(3) -e $(LOADADDR) -l $(LOADADDR)
# -b $(2) -c $(3) -e $(KERNEL_ENTRY) -l $(LOADADDR)
- $(call prepare_generic_squashfs,$(BIN_DIR)/openwrt-$(2)-$(1)-cfe.bin)
endef
define Image/Build/CFEAGPF
@@ -42,8 +41,7 @@ define Image/Build/CFEAGPF
$(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \
-o $(BIN_DIR)/openwrt-$(2)-$(1)-cfe.bin \
-b $(2) -c $(3) -e $(LOADADDR) -l $(LOADADDR) \
- -v 8 -m IMAGE -k 0x20000 -n $(4)
- $(call prepare_generic_squashfs,$(BIN_DIR)/openwrt-$(2)-$(1)-cfe.bin)
+ -v 8 -m IMAGE -k 0x20000 -n $(4) -p alice
endef
define Image/Build/RedBoot