Commit Graph

17 Commits (9601d94138de66e4fc9f55a08dfb348cdfcc3181)

Author SHA1 Message Date
FUKAUMI Naoki 7faee1bc9f firmware-utils: improve tools for Buffalo DHP series
some of Buffalo DHP series use slightly different trx magic, buffalo-enc,
buffalo-tag, and factory image begin with 'bgn'.

this patch adds support for building those images.

Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
7 years ago
Gabor Juhos fd8e5b04b4 firmware-utils/trx: remove trailing whitespaces
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38963
11 years ago
Gabor Juhos b61b447472 firmware-utils/trx: fix two bugs
- fix crc32 calculation if -F was enabled.

 - don't convert the crc32 to little endian twice.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>

SVN-Revision: 38962
11 years ago
Hauke Mehrtens da7493d8f9 mostly revert commit r22396
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)

SVN-Revision: 22418
14 years ago
Michael Büsch 02549b0448 firmware-utils/trx: Endianness fixes
SVN-Revision: 22414
14 years ago
Hauke Mehrtens 233294722c firmware-utils: The option -F was not detected. This was missing in r22396
This fixes build of brcm47xx

SVN-Revision: 22398
14 years ago
Markus Wigge 7a052dc799 fix CRC32 calculation for sysupgrade
* 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.

SVN-Revision: 22396
14 years ago
Markus Wigge 642a6e1a51 preset stable and try* flags for TRX2 headers
* 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

SVN-Revision: 22012
14 years ago
Markus Wigge 67416b62d7 fixed trx version to handling
I forgot to write the right trx version to the actual header...

SVN-Revision: 21986
14 years ago
Gabor Juhos 585198518e firmware-utils/trx: add relative offset parameter
* will be used for the WRT160NL board
 * patch by Bernhard Loos
 * note: rejected parts has been fixed

SVN-Revision: 20522
14 years ago
Markus Wigge d9a698e77c added support for wrt54g3gv2-vf and new trx header format
- 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.

SVN-Revision: 20433
14 years ago
Felix Fietkau f32f0814b1 firmware-utils: raise the default trx image size limit for something more appropriate for devices with 8M flash
SVN-Revision: 17537
15 years ago
Florian Fainelli 9e94806990 fix segfault when using the maxlen argument (#4359)
SVN-Revision: 16641
15 years ago
Hamish Guthrie e970f61273 Remove a debug statement from trx.c, add config changes for at91
SVN-Revision: 7491
17 years ago
Hamish Guthrie fe57573343 Fixed trx - variable append used uninitialised. If -A option was not used, the first offset was not written to the .trx file.
SVN-Revision: 7400
17 years ago
Felix Fietkau 63300d3d91 Fix broadcom squashfs images:
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.

SVN-Revision: 7253
17 years ago
Felix Fietkau ebdcc6d40c move target/utils to tools/firmware-utils
SVN-Revision: 5702
18 years ago