summaryrefslogtreecommitdiff
path: root/tools/firmware-utils/src/trx.c
AgeCommit message (Collapse)Author
2010-07-30mostly revert commit r22396hauke
CFE does not boot images generated with these checksums because of wrong checksum. After flashing then with tftp to my Asus wl500-GPv1 the following messages are show: Null Rescue Flag. Boot program checksum is invalid Hello!! Enter Rescue Mode: (Check error) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22418 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-29firmware-utils/trx: Endianness fixesmb
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22414 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-27firmware-utils: The option -F was not detected.hauke
This was missing in r22396 This fixes build of brcm47xx git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22398 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-27fix CRC32 calculation for sysupgrademarkus
* reduce image size for CRC calculation by fs_mark size sysupgrade sometimes failed for me and I noticed that it was due to incorrect CRC values in trx-header after performing it. It seems that the fs_mark was completely included in the calculation and that it was nevertheless modified by sysupgrade while appending the jffs data. This only occurs for the first boot after sysupgrade as the flashmap driver recalculates the CRC to an even smaller area when it boots. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22396 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-01preset stable and try* flags for TRX2 headersmarkus
* changed addpattern.c to preset the stable and try flags used in TRXv2 images to dupe CFE and pretend a stable image. * changed trx.c to calculate TRXv2 CRC with stable and try flags set to 0xFF like CFE does on startup * fixed compile warnings in trx.c by explicit casting git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22012 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-28fixed trx version to handlingmarkus
I forgot to write the right trx version to the actual header... git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21986 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-27firmware-utils/trx: add relative offset parameterjuhosg
* will be used for the WRT160NL board * patch by Bernhard Loos * note: rejected parts has been fixed git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20522 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-25added support for wrt54g3gv2-vf and new trx header formatmarkus
- hacked addpattern due to changes in header format - added "-5" to addpattern, some 0xFF are needed for trx2 header "-4" broke CRC checking in CFE - hacked trx.c due to new header format version - added target to create trx-V2 images the flashmap driver possibly needs to be customized. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20433 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-07firmware-utils: raise the default trx image size limit for something more ↵nbd
appropriate for devices with 8M flash git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17537 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-01[tools] fix segfault when using the maxlen argument (#4359)florian
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16641 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-04Remove a debug statement from trx.c, add config changes for at91hcg
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7491 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-30Fixed trx - variable append used uninitialised. If -A option was nothcg
used, the first offset was not written to the .trx file. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7400 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-15Fix broadcom squashfs images:nbd
We switched over to appending the jffs2 eof mark to the squashfs images, but since the squashfs is not always aligned to eraseblocksize, the eof mark landed in the wrong place. This commit adds an extra flag to the trx utility that can append extra data to a partition with alignment. This is used to place the jffs2 eof mark at the right offset. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7253 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-12-06move target/utils to tools/firmware-utilsnbd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5702 3c298f89-4303-0410-b956-a3cf2f4a3e73