immortalwrt/tools/firmware-utils/src
Daniel Dickinson f83c5938d2 bcm63xx: Move the OpenWrt rootfs length field
Dual image capable CFEs store an image sequence at the same place as
currently OpenWrt stores the actual rootfs length, so it will get
overwritten when flashing through such a CFE.

To prevent this from happening, move the rootfs length field to the next
four bytes, thus completely using the reserved1 field.

Since the reserved1 field is now completely in use, it does not make sense
to allow it to be set from the imagetag utility, so remove the option.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

SVN-Revision: 26680
2011-04-15 12:18:25 +00:00
..
add_header.c firmware-utils: when using open with O_CREAT and O_WRONLY, also use O_TRUNC to ensure that overwritten files have the right size (fixes #3505) 2008-09-23 16:12:40 +00:00
addpattern.c preset stable and try* flags for TRX2 headers 2010-07-01 10:40:22 +00:00
airlink.c fix file creation mode, thanks rtz 2010-03-18 23:35:12 +00:00
bcm_tag.h move bcm_tag.h out of the flashmap patch so that user-land tools can re-use it 2010-03-28 18:11:06 +00:00
csysimg.h firmware-utils/mkcsysimg: add signature for the 5GXi board 2009-06-24 16:44:30 +00:00
cyg_crc16.c firmware-utils: add new tool for the wrt400n (based on a patch by Sandeep Mistry <sandeep.mistry at gmail.com>) 2009-07-12 08:59:18 +00:00
cyg_crc32.c firmware-utils: add new tool for the wrt400n (based on a patch by Sandeep Mistry <sandeep.mistry at gmail.com>) 2009-07-12 08:59:18 +00:00
cyg_crc.h firmware-utils: add new tool for the wrt400n (based on a patch by Sandeep Mistry <sandeep.mistry at gmail.com>) 2009-07-12 08:59:18 +00:00
dgfirmware.c move target/utils to tools/firmware-utils 2006-12-06 23:41:38 +00:00
encode_crc.c remove 'svn:executable' property 2010-04-12 17:08:57 +00:00
fw.h buld images for the Ubiquiti LiteStation and NanoStation ported from http://atheros.openwrt.net. Tested on a Nanostation 2 with airos 3 2008-05-07 23:47:17 +00:00
imagetag_cmdline.c bcm63xx: Move the OpenWrt rootfs length field 2011-04-15 12:18:25 +00:00
imagetag_cmdline.h bcm63xx: Move the OpenWrt rootfs length field 2011-04-15 12:18:25 +00:00
imagetag.c bcm63xx: Move the OpenWrt rootfs length field 2011-04-15 12:18:25 +00:00
imagetag.ggo bcm63xx: Move the OpenWrt rootfs length field 2011-04-15 12:18:25 +00:00
lzma2eva.c revert r18760 since it prevents people from building working eva images 2010-03-26 10:12:30 +00:00
makeamitbin.c Add makeamitbin to generate images for other RDC-based devices, thanks sn9 ! 2008-10-28 16:26:42 +00:00
md5.c firmware-utils: add new firmware generation tool for the TP-LINK TL-WR941ND device 2009-02-26 16:59:15 +00:00
md5.h firmware-utils: add new firmware generation tool for the TP-LINK TL-WR941ND device 2009-02-26 16:59:15 +00:00
mkcasfw.c get rid of $Id$ - it has never helped us and it has broken too many patches ;) 2009-04-17 14:09:46 +00:00
mkchkimg.c brcm47xx: Add new image generation and fix leds/reset button on WNR834B V2 2010-08-06 20:21:32 +00:00
mkcsysimg.c firmware-utils/mkcsysimg: minor bugfix 2009-06-25 09:39:30 +00:00
mkdniimg.c firmware-utils/mkdniimg: don't use NA region by default 2011-01-14 10:37:09 +00:00
mkfwimage2.c firmware-utils/mkfwimage2: fix a typo 2009-05-11 14:51:56 +00:00
mkfwimage.c mkfwimage: add support for the XM layout (bullet/rocket/nano M) 2009-11-18 18:10:24 +00:00
mkmylofw.c firmware_utils/mkmylofw: add support of named partitions 2008-11-17 07:45:01 +00:00
mkplanexfw.c tools/firmware-utils: add size check to the mkplanexfw tool 2010-04-26 18:28:07 +00:00
mktitanimg.c fix mktitanimg segfault on 64-bits hosts (#7443) 2010-06-12 18:10:01 +00:00
mktitanimg.h add mktitanimg to create Titan (AR7-based) images (#6632) 2010-06-06 19:16:43 +00:00
mktplinkfw.c firmware-utils/mktplinkfw: add support for the TP-Link TL-WA901ND v2 board 2011-03-13 15:08:29 +00:00
mkzcfw.c Zcomax device firmware tool endianness fix 2010-09-04 05:40:56 +00:00
mkzynfw.c firmware-utils/mkzynfw: fix available flash space calculation 2010-12-17 20:34:31 +00:00
motorola-bin.c get rid of $Id$ - it has never helped us and it has broken too many patches ;) 2009-04-17 14:09:46 +00:00
myloader.h firmware_utils/mkmylofw: add definitions for the NP25G and WPE53G boards 2008-11-16 07:49:27 +00:00
nand_ecc.c firmware-utils: add a small utility for generating nand flash images with ecc info 2009-06-14 20:42:28 +00:00
osbridge-crc.c firmware-utils: add a tool to compute crc value for the 5gxi firmware 2009-06-25 09:41:06 +00:00
pc1crypt.c firmware-utils: add a file {en,de}cryption tool, based on the PC1 encryption algrithm 2009-06-24 16:35:38 +00:00
ptgen.c firmware-utils: when using open with O_CREAT and O_WRONLY, also use O_TRUNC to ensure that overwritten files have the right size (fixes #3505) 2008-09-23 16:12:40 +00:00
sha1.c firmware-utils/mkplanexfw: new firmware generation tool for the Planex MZK-W04NU device 2009-02-04 21:09:06 +00:00
sha1.h firmware-utils/mkplanexfw: new firmware generation tool for the Planex MZK-W04NU device 2009-02-04 21:09:06 +00:00
srec2bin.c Fix a warning 2007-03-18 13:06:33 +00:00
trx2edips.c firmware-utils: fix endianness bugs in firmware generation program. 2011-04-09 15:06:01 +00:00
trx2usr.c move target/utils to tools/firmware-utils 2006-12-06 23:41:38 +00:00
trx.c mostly revert commit r22396 2010-07-30 21:19:49 +00:00
wndr3700.c firmware-utils/wndr3700: allow to specify image magic via command line 2011-01-14 10:37:04 +00:00
wrt400n.c firmware-utils: add new tool for the wrt400n (based on a patch by Sandeep Mistry <sandeep.mistry at gmail.com>) 2009-07-12 08:59:18 +00:00
zynos.h firmware-utils/mkzynfw: add support for the NBG460N board 2010-05-14 09:20:36 +00:00