aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils
Commit message (Collapse)AuthorAgeFilesLines
* brcm47xx: Add edimax PS1208mfg supportHauke Mehrtens2010-12-022-0/+152
| | | | | | | Thank you clemvangelis for the patches. (closes #7672) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24217 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools/firmware-utils] imagetag: Significantly updated brcm63xx imagetag ↵Daniel Dickinson2010-11-165-219/+1781
| | | | | | | | | | | | | | | | | | | | | | | | | | writing tool. * Rewrote 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). git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24011 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] brcm63xx: imagetag: Fixed occaisonal wrong CRC in image due to using ↵Daniel Dickinson2010-11-151-2/+2
| | | | | | strncpy to copy the CRC into the imagetag. strncpy stops copying after a 00 byte, memcpy doesn't. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24000 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add support for the TL-MR3420 v1Gabor Juhos2010-09-271-0/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23137 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add support for the TL-WR841N v7Gabor Juhos2010-09-271-0/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23133 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Zcomax device firmware tool endianness fixMichael Büsch2010-09-041-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22885 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/firmware-utils: new tool for the Zcomax devicesGabor Juhos2010-09-032-0/+409
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22883 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22516 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22418 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/trx: Endianness fixesMichael Büsch2010-07-291-4/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22414 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils: The option -F was not detected.Hauke Mehrtens2010-07-271-1/+1
| | | | | | | | | 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
* 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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22396 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22169 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add support for the TL-WA901NDGabor Juhos2010-07-011-0/+9
| | | | | | | Patch-by: Pieter "Fate" Hollants <pieter@hollants.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22015 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22012 3c298f89-4303-0410-b956-a3cf2f4a3e73
* fixed trx version to handlingMarkus Wigge2010-06-281-1/+1
| | | | | | | 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
* [tools] remove whitespaces in imagetag toolFlorian Fainelli2010-06-201-7/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21848 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Revert r21806 there are no users of it yetFlorian Fainelli2010-06-144-513/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21808 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] add hcsmakeimage, for cable modems/routers based on bcm33xxFlorian Fainelli2010-06-144-0/+513
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21806 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] fix mktitanimg segfault on 64-bits hosts (#7443)Florian Fainelli2010-06-121-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21767 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] add mktitanimg to create Titan (AR7-based) images (#6632)Florian Fainelli2010-06-063-0/+1211
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21689 3c298f89-4303-0410-b956-a3cf2f4a3e73
* get rid of CRLF encoding in various filesFelix Fietkau2010-05-161-204/+204
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21462 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21446 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21445 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/firmware-utils: add size check to the mkplanexfw toolGabor Juhos2010-04-261-4/+11
| | | | | | | Also pad the image to a 64K boundary. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21174 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [cleanup] remove 'svn:executable' propertyNicolas Thill2010-04-121-0/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20831 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [brcm63xx] flashmap and image generation: reduced union bcm_tag to a single ↵Florian Fainelli2010-04-011-246/+80
| | | | | | | | | | | struct 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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20652 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [brcm63xx] move bcm_tag.h out of the flashmap patch so that user-land tools ↵Florian Fainelli2010-03-281-178/+1
| | | | | | can re-use it git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20548 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20522 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] revert r18760 since it prevents people from building working eva imagesFlorian Fainelli2010-03-261-88/+26
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20437 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20433 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] fix file creation mode, thanks rtzFlorian Fainelli2010-03-181-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20293 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mktplinkfw: add option to strip padding from the end of the imageGabor Juhos2010-03-101-3/+15
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20120 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mktplinkfw: fix help string, and remove duplicated optionGabor Juhos2010-03-081-5/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20067 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add board definitions for TL-WR941ND v4Gabor Juhos2010-02-191-0/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19748 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] firmware-utils: unify cc and cc2 macros, simplifies MakefileJo-Philipp Wich2010-02-011-9/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19487 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] firmware-utils: copy bcm_tag.h to src/ and get rid of cc3 macro, ↵Jo-Philipp Wich2010-02-012-5/+179
| | | | | | fixes imagetag compilation git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19485 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add support for the TL-WR841N v1.5 boardGabor Juhos2009-12-221-0/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18893 3c298f89-4303-0410-b956-a3cf2f4a3e73
* lzma2eva: Endianness fixes.Michael Büsch2009-12-111-26/+88
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18760 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: TL-WR1043ND support cleanupGabor Juhos2009-12-081-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18697 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: preliminary support for the TL-WR1043NDGabor Juhos2009-12-081-0/+9
| | | | | | | | | | | | | Adds board support for the TP-Link TL-WR1043ND Based on the Atheros AP81 platform. Presently the RTL8366RB switch support is missing due to no driver. The ethernet works with 5 ports@1Gbit but is missing vlan support. Hope Ive done this right, First time submiting a patch. Signed-off-by: Andrew Tarabaras <andrew@advancedtechnologies.com.au> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18696 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: create images for the WNDR3700, which can be flashed via the factory ↵Gabor Juhos2009-11-282-0/+200
| | | | | | web interface git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18571 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils: add WNDR3700 image fixing tool (thanks to Anael Orlinski)Gabor Juhos2009-11-282-0/+140
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18569 3c298f89-4303-0410-b956-a3cf2f4a3e73
* mkfwimage: add support for the XM layout (bullet/rocket/nano M)Felix Fietkau2009-11-181-1/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18448 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: increase max size of RouterStation and RouterStation Pro firmware imagesGabor Juhos2009-11-131-2/+2
| | | | | | | Thanks to riskable! (closes #5860) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18410 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add preliminary support for the TL-WR841ND v5 boardGabor Juhos2009-10-301-0/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18226 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils: raise the default trx image size limit for something more ↵Felix Fietkau2009-09-071-1/+1
| | | | | | appropriate for devices with 8M flash git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17537 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [brcm63xx] add support for the Pirelli AG226G board (#5337)Florian Fainelli2009-08-091-0/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17190 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] firmware-utils/addpattern: add support for the WRT160NLGabor Juhos2009-08-061-5/+55
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17140 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] firmware-utils: add new tool for the wrt400n (based on a patch by ↵Gabor Juhos2009-07-125-0/+726
| | | | | | Sandeep Mistry <sandeep.mistry at gmail.com>) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16792 3c298f89-4303-0410-b956-a3cf2f4a3e73