summaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils
Commit message (Collapse)AuthorAgeFilesLines
* firmware-utils/mkfwimage: allow to override firmware magicjuhosg2012-02-181-5/+12
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30627 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [lantiq] Support booting the Speedport W502V using BRN-BOOT.blogic2012-02-143-0/+353
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | While the disadvantage is less available flash space, it's easy and safe to flash without opening the device. Going back to the original firmware is also possible. This patch add two firmware utilities, mkbrncmdline and mkbrnboot. mkbrncmdline patches the uncompressed kernel so the registeres a0 to a3 are initialized and the memory size is passed in. mkbrnboot takes the lzma compressed kernel and squashfs images and creates a firmware image that can be flashed using the BRN-BOOT recovery kernel, which is booted by holding both buttons when powering up the device and will listen on http://192.168.2.1. The firmware file from bin/lantiq/ to use is openwrt-lantiq-danube-ARV4525PW-BRNDTW502-brnImage The BRN-BOOT recovery kernel does size-check the image, so if it's too big to fit into flash it will complain accordingly. A second patch is needed to make the wired network interface work since there is no u-boot to pre-initialise it. Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30532 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mkmylofw: add WPE72 supportjuhosg2012-01-262-0/+4
| | | | | | Signed-off-by: Johnathan Boyce <jon.boyce@globalreach.eu.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29913 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools: clean up Makefiles / make ccache workblogic2012-01-151-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29754 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firware-utils/mktplinkfw: add TL-WR2543N/ND supportjuhosg2012-01-071-0/+12
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29681 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add support for TL-WA701N/NDjuhosg2012-01-041-0/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29655 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add support for TL-MR3020juhosg2012-01-041-0/+6
| | | | | | Signed-off-by: Christian Cier-Zniewski <c.cier@gmx.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29650 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add ability to put jffs2 eof marker into the imagejuhosg2011-12-151-1/+45
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29544 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/mktplinkfw: allow to specify hw_id, hw_rev and flash_layoutjuhosg2011-12-061-89/+125
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29466 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: allow to align the rootfs on a specified boundaryjuhosg2011-12-051-14/+45
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29445 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: fix combined image creationjuhosg2011-12-031-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29409 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinfw: use htonl/ntohljuhosg2011-11-241-44/+39
| | | | | | Based on a patch by Adrian Chadd <adrian@freebsd.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29327 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add TL-WR741ND v4juhosg2011-11-011-0/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28707 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [tools] Add firmware tool for generating factory images for Edimax devicesacinonyx2011-10-302-1/+261
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28688 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: fix hardware id of the TL-WR740 v3juhosg2011-10-261-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28602 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add support for TL-WR703N v1juhosg2011-09-211-0/+9
| | | | | | Patch-by: dongyuqi <729650915@qq.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28278 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add support for TL-WR743ND v1juhosg2011-09-211-0/+9
| | | | | | Signed-off-by: Paul Fertser <fercerpav@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28270 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add support for TL-WR740N v3juhosg2011-09-211-0/+9
| | | | | | Signed-off-by: Martin Raykov <martin.raykov@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28268 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils: rename the devname variable in mkwrgimg to avoid a clash ↵nbd2011-07-081-4/+4
| | | | | | with a BSD stdlib function git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27553 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/firmware-utils: add yet another buffalo tooljuhosg2011-07-062-0/+180
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27475 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/firmware-utils: allow to create buffalo image from two filesjuhosg2011-07-062-17/+111
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27473 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/firmware-utils: allow to create buffalo tags w/o hw versionjuhosg2011-07-061-1/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27472 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/firmware-utils: add new firmware tool for the DIR-300-B1 boardjuhosg2011-07-042-0/+241
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27438 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils: fix build on big endian systemshauke2011-06-211-1/+1
| | | | | | | This closes #9446 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27255 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/firmware-utils: fix buffalo csum calculationjuhosg2011-06-132-2/+4
| | | | | | Also print an error message if decryption fails. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27167 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/firmware-utils: add support for hd_id tag into mkdniimgjuhosg2011-05-311-4/+13
| | | | | | Signed-off-by: Mark Mentovai <mark@moxienet.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27052 3c298f89-4303-0410-b956-a3cf2f4a3e73
* tools/firmware-utils: add buffalo specific fw toolsjuhosg2011-05-315-0/+1177
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27050 3c298f89-4303-0410-b956-a3cf2f4a3e73
* bcm63xx: Add firmware helpers for T-Home Speedport W 303Vflorian2011-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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26877 3c298f89-4303-0410-b956-a3cf2f4a3e73
* bcm63xx: Move the OpenWrt rootfs length fieldcshore2011-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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26680 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils: fix endianness bugs in firmware generation program.hauke2011-04-091-12/+29
| | | | | | | | | Should make it work on big endian systems again, I do not have such a system. This closes #9093. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26543 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add support for the TP-Link TL-WA901ND v2 boardjuhosg2011-03-131-0/+9
| | | | | | Patch-by: Jonathan Benett <jbscience87@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26118 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm47xx: fix error when build firmware on x86_64 host (closes #7672)hauke2011-02-121-11/+14
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25472 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mkdniimg: don't use NA region by defaultjuhosg2011-01-141-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24981 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/wndr3700: allow to specify image magic via command linejuhosg2011-01-141-4/+15
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24980 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Added OpenWRT-specific field to imagetag so that we can record the real root ↵cshore2010-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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24838 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ar71xx: add support for TL-WR740N v1juhosg2010-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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24811 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mkzynfw: fix available flash space calculationjuhosg2010-12-171-2/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24653 3c298f89-4303-0410-b956-a3cf2f4a3e73
* firmware-utils/mktplinkfw: add support for the TL-MR3220 v1juhosg2010-12-101-0/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24438 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm47xx: Add edimax PS1208mfg supporthauke2010-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 ↵cshore2010-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 ↵cshore2010-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 v1juhosg2010-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 v7juhosg2010-09-271-0/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23133 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Zcomax device firmware tool endianness fixmb2010-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 devicesjuhosg2010-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 V2hauke2010-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 r22396hauke2010-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 fixesmb2010-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.hauke2010-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 sysupgrademarkus2010-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