aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils
Commit message (Collapse)AuthorAgeFilesLines
* firmware-utils: rename the devname variable in mkwrgimg to avoid a clash ↵Felix Fietkau2011-07-081-4/+4
| | | | | | with a BSD stdlib function SVN-Revision: 27553
* tools/firmware-utils: add yet another buffalo toolGabor Juhos2011-07-062-0/+180
| | | | SVN-Revision: 27475
* tools/firmware-utils: allow to create buffalo image from two filesGabor Juhos2011-07-062-17/+111
| | | | SVN-Revision: 27473
* tools/firmware-utils: allow to create buffalo tags w/o hw versionGabor Juhos2011-07-061-1/+3
| | | | SVN-Revision: 27472
* tools/firmware-utils: add new firmware tool for the DIR-300-B1 boardGabor Juhos2011-07-042-0/+241
| | | | SVN-Revision: 27438
* firmware-utils: fix build on big endian systemsHauke Mehrtens2011-06-211-1/+1
| | | | | | This closes #9446 SVN-Revision: 27255
* tools/firmware-utils: fix buffalo csum calculationGabor Juhos2011-06-132-2/+4
| | | | | | Also print an error message if decryption fails. SVN-Revision: 27167
* tools/firmware-utils: add support for hd_id tag into mkdniimgGabor Juhos2011-05-311-4/+13
| | | | | | Signed-off-by: Mark Mentovai <mark@moxienet.com> SVN-Revision: 27052
* tools/firmware-utils: add buffalo specific fw toolsGabor Juhos2011-05-315-0/+1177
| | | | SVN-Revision: 27050
* bcm63xx: Add firmware helpers for T-Home Speedport W 303VFlorian Fainelli2011-05-113-0/+379
| | | | | | | | | Add two helpers for generating correctly tagged images for the T-Home Speedport W 303V Typ B as well as xor'd ones as required by CFE. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> SVN-Revision: 26877
* bcm63xx: Move the OpenWrt rootfs length fieldDaniel Dickinson2011-04-154-35/+2
| | | | | | | | | | | | | | | | 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
* firmware-utils: fix endianness bugs in firmware generation program.Hauke Mehrtens2011-04-091-12/+29
| | | | | | | | Should make it work on big endian systems again, I do not have such a system. This closes #9093. SVN-Revision: 26543
* firmware-utils/mktplinkfw: add support for the TP-Link TL-WA901ND v2 boardGabor Juhos2011-03-131-0/+9
| | | | | | Patch-by: Jonathan Benett <jbscience87@gmail.com> SVN-Revision: 26118
* brcm47xx: fix error when build firmware on x86_64 host (closes #7672)Hauke Mehrtens2011-02-121-11/+14
| | | | SVN-Revision: 25472
* firmware-utils/mkdniimg: don't use NA region by defaultGabor Juhos2011-01-141-1/+1
| | | | SVN-Revision: 24981
* firmware-utils/wndr3700: allow to specify image magic via command lineGabor Juhos2011-01-141-4/+15
| | | | SVN-Revision: 24980
* Added OpenWRT-specific field to imagetag so that we can record the real root ↵Daniel Dickinson2010-12-261-2/+3
| | | | | | | | length, so that when the CRC fixup is applied and the root length is recorded as zero we can still calculate the rootfs mtd partition size. Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net> SVN-Revision: 24838
* ar71xx: add support for TL-WR740N v1Gabor Juhos2010-12-231-0/+9
| | | | | | | | | Same as TL-WR741ND but with different hardware ID and without detachable antenna. Signed-off-by: Paul Fertser <fercerpav@gmail.com> SVN-Revision: 24811
* firmware-utils/mkzynfw: fix available flash space calculationGabor Juhos2010-12-171-2/+3
| | | | SVN-Revision: 24653
* firmware-utils/mktplinkfw: add support for the TL-MR3220 v1Gabor Juhos2010-12-101-0/+9
| | | | SVN-Revision: 24438
* brcm47xx: Add edimax PS1208mfg supportHauke Mehrtens2010-12-022-0/+152
| | | | | | Thank you clemvangelis for the patches. (closes #7672) SVN-Revision: 24217
* imagetag: Significantly updated brcm63xx imagetag writing tool. * Rewrote ↵Daniel Dickinson2010-11-165-219/+1781
| | | | | | commandline parsing code using gengetopt - We now get long options - We have more options including use of the info section for board information (e.g. to add the same boardid but different GPIOs on different routers) * Added back the ability to write stock images (this is useful, for example, when copying the firmware from the in-memory flash, and then being able to create an image that will let you revert to/test stock firmware * Fixed copying of CRCs to use memcpy instead of strncpy (strncpy stops at 0) * Added ability to use all sections of the imagetag, including custom magic signatures (e.g. for the Telsey router I'm adding soon), info sections, and reserved sections * Added putting the router type (as defined in the image generating Makefile) into the info1 section and the filesystem type in the info2 section. This will be used by mtd (when I add the code) to return the name of image used to flash this router. (As requested by Jo, as well as being useful for same boardid different board scenario described above). SVN-Revision: 24011
* brcm63xx: imagetag: Fixed occaisonal wrong CRC in image due to using strncpy ↵Daniel Dickinson2010-11-151-2/+2
| | | | | | to copy the CRC into the imagetag. strncpy stops copying after a 00 byte, memcpy doesn't. SVN-Revision: 24000
* firmware-utils/mktplinkfw: add support for the TL-MR3420 v1Gabor Juhos2010-09-271-0/+9
| | | | SVN-Revision: 23137
* firmware-utils/mktplinkfw: add support for the TL-WR841N v7Gabor Juhos2010-09-271-0/+9
| | | | SVN-Revision: 23133
* Zcomax device firmware tool endianness fixMichael Büsch2010-09-041-1/+1
| | | | SVN-Revision: 22885
* tools/firmware-utils: new tool for the Zcomax devicesGabor Juhos2010-09-032-0/+409
| | | | SVN-Revision: 22883
* brcm47xx: Add new image generation and fix leds/reset button on WNR834B V2Hauke Mehrtens2010-08-062-0/+328
| | | | | | | | | Thank you realopty for the patch. tools/firmware-utils/src/mkchkimg.c is from http://www.myopenrouter.com/download/10611/mkchkimg/ This closes #7702. SVN-Revision: 22516
* mostly revert commit r22396Hauke Mehrtens2010-07-301-1/+1
| | | | | | | | | | | | | 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
* firmware-utils/trx: Endianness fixesMichael Büsch2010-07-291-4/+7
| | | | SVN-Revision: 22414
* firmware-utils: The option -F was not detected. This was missing in r22396Hauke Mehrtens2010-07-271-1/+1
| | | | | | This fixes build of brcm47xx SVN-Revision: 22398
* fix CRC32 calculation for sysupgradeMarkus Wigge2010-07-271-3/+5
| | | | | | | | | | | | | | * 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
* tools/firmware-utils: enhance mktplinkfw utilityGabor Juhos2010-07-131-9/+278
| | | | | | | | | | | Attached patch enhances the mktplinkfw utility: 1. existing firmware files in TP-Link format can now be inspected, showing eg. the used offsets 2. optionally the kernel and rootfs parts can be extracted (saves calculations for dd) 3. when generating firmwares, kernel entry point, load address and rootfs offset can be overwritten (for experienced users) Patch-by: Pieter "Fate" Hollants <pieter@hollants.com> SVN-Revision: 22169
* firmware-utils/mktplinkfw: add support for the TL-WA901NDGabor Juhos2010-07-011-0/+9
| | | | | | Patch-by: Pieter "Fate" Hollants <pieter@hollants.com> SVN-Revision: 22015
* preset stable and try* flags for TRX2 headersMarkus Wigge2010-07-012-4/+22
| | | | | | | | | | * 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
* fixed trx version to handlingMarkus Wigge2010-06-281-1/+1
| | | | | | I forgot to write the right trx version to the actual header... SVN-Revision: 21986
* remove whitespaces in imagetag toolFlorian Fainelli2010-06-201-7/+7
| | | | SVN-Revision: 21848
* Revert r21806 there are no users of it yetFlorian Fainelli2010-06-144-513/+0
| | | | SVN-Revision: 21808
* add hcsmakeimage, for cable modems/routers based on bcm33xxFlorian Fainelli2010-06-144-0/+513
| | | | SVN-Revision: 21806
* fix mktitanimg segfault on 64-bits hosts (#7443)Florian Fainelli2010-06-121-1/+2
| | | | SVN-Revision: 21767
* add mktitanimg to create Titan (AR7-based) images (#6632)Florian Fainelli2010-06-063-0/+1211
| | | | SVN-Revision: 21689
* firmware-utils/mkzynfw: add support for the NBG460N boardGabor Juhos2010-05-142-0/+20
| | | | | | | | Adding NBG460N/550N/550NH boards to mkzynfw. Signed-off-by: Michael Kurz <michi.kurz@googlemail.com> SVN-Revision: 21446
* firmware-utils/mkzynfw: don't use next_offset twice (closes #7273)Gabor Juhos2010-05-141-1/+1
| | | | | | | | | The test if a file can fit in an image considers the current offset twice. So a image that would fit is too big. Thanks-to: Michael Kurz <michi.kurz@googlemail.com> SVN-Revision: 21445
* tools/firmware-utils: add size check to the mkplanexfw toolGabor Juhos2010-04-261-4/+11
| | | | | | Also pad the image to a 64K boundary. SVN-Revision: 21174
* remove 'svn:executable' propertyNicolas Thill2010-04-121-0/+0
| | | | SVN-Revision: 20831
* flashmap and image generation: reduced union bcm_tag to a single struct ↵Florian Fainelli2010-04-011-246/+80
| | | | | | combining the elements so that it is no longer necessary to create an openwrt-only tagid and tagcrc, and elimate the tagid detection and switch statements which made dealing with imagetags overly complicated, especially since the logic would need analogs in all code that touched the imagetag. Patch from cshore. SVN-Revision: 20652
* move bcm_tag.h out of the flashmap patch so that user-land tools can re-use itFlorian Fainelli2010-03-281-178/+1
| | | | SVN-Revision: 20548
* firmware-utils/trx: add relative offset parameterGabor Juhos2010-03-271-2/+22
| | | | | | | | * will be used for the WRT160NL board * patch by Bernhard Loos * note: rejected parts has been fixed SVN-Revision: 20522
* revert r18760 since it prevents people from building working eva imagesFlorian Fainelli2010-03-261-88/+26
| | | | SVN-Revision: 20437
* added support for wrt54g3gv2-vf and new trx header formatMarkus Wigge2010-03-252-14/+50
| | | | | | | | | | | | - 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