John Crispin
ccb6b0a063
tools: clean up Makefiles / make ccache work
...
SVN-Revision: 29754
2012-01-15 11:43:13 +00:00
Gabor Juhos
8a8e5bde15
firware-utils/mktplinkfw: add TL-WR2543N/ND support
...
SVN-Revision: 29681
2012-01-07 19:36:40 +00:00
Gabor Juhos
923e5d3543
firmware-utils/mktplinkfw: add support for TL-WA701N/ND
...
SVN-Revision: 29655
2012-01-04 17:30:53 +00:00
Gabor Juhos
55e13f4e6a
firmware-utils/mktplinkfw: add support for TL-MR3020
...
Signed-off-by: Christian Cier-Zniewski <c.cier@gmx.de>
SVN-Revision: 29650
2012-01-04 17:30:44 +00:00
Gabor Juhos
29a2c2ea80
firmware-utils/mktplinkfw: add ability to put jffs2 eof marker into the image
...
SVN-Revision: 29544
2011-12-15 22:03:42 +00:00
Gabor Juhos
2592c0a283
tools/mktplinkfw: allow to specify hw_id, hw_rev and flash_layout
...
SVN-Revision: 29466
2011-12-06 16:26:41 +00:00
Gabor Juhos
54c8d61b03
firmware-utils/mktplinkfw: allow to align the rootfs on a specified boundary
...
SVN-Revision: 29445
2011-12-05 14:52:31 +00:00
Gabor Juhos
81cda3e2f1
firmware-utils/mktplinkfw: fix combined image creation
...
SVN-Revision: 29409
2011-12-03 16:57:21 +00:00
Gabor Juhos
6632e38d08
firmware-utils/mktplinfw: use htonl/ntohl
...
Based on a patch by Adrian Chadd <adrian@freebsd.org>
SVN-Revision: 29327
2011-11-24 20:09:40 +00:00
Gabor Juhos
13b0ec6cf7
firmware-utils/mktplinkfw: add TL-WR741ND v4
...
SVN-Revision: 28707
2011-11-01 11:20:54 +00:00
Vasilis Tsiligiannis
aadbbc4bac
Add firmware tool for generating factory images for Edimax devices
...
SVN-Revision: 28688
2011-10-30 22:57:41 +00:00
Gabor Juhos
500a8e2014
firmware-utils/mktplinkfw: fix hardware id of the TL-WR740 v3
...
SVN-Revision: 28602
2011-10-26 13:34:48 +00:00
Gabor Juhos
712521955b
firmware-utils/mktplinkfw: add support for TL-WR703N v1
...
Patch-by: dongyuqi <729650915@qq.com>
SVN-Revision: 28278
2011-09-21 11:47:55 +00:00
Gabor Juhos
ffbdaf8ec8
firmware-utils/mktplinkfw: add support for TL-WR743ND v1
...
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
SVN-Revision: 28270
2011-09-21 11:47:42 +00:00
Gabor Juhos
9faace4327
firmware-utils/mktplinkfw: add support for TL-WR740N v3
...
Signed-off-by: Martin Raykov <martin.raykov@gmail.com>
SVN-Revision: 28268
2011-09-21 11:47:39 +00:00
Felix Fietkau
bdb676b90d
firmware-utils: rename the devname variable in mkwrgimg to avoid a clash with a BSD stdlib function
...
SVN-Revision: 27553
2011-07-08 05:20:24 +00:00
Gabor Juhos
9d980dc121
tools/firmware-utils: add yet another buffalo tool
...
SVN-Revision: 27475
2011-07-06 08:04:53 +00:00
Gabor Juhos
533067b8f5
tools/firmware-utils: allow to create buffalo image from two files
...
SVN-Revision: 27473
2011-07-06 08:04:50 +00:00
Gabor Juhos
ea6bc8858a
tools/firmware-utils: allow to create buffalo tags w/o hw version
...
SVN-Revision: 27472
2011-07-06 08:04:49 +00:00
Gabor Juhos
1c5b7d0a32
tools/firmware-utils: add new firmware tool for the DIR-300-B1 board
...
SVN-Revision: 27438
2011-07-04 06:48:42 +00:00
Hauke Mehrtens
fbed51a8b5
firmware-utils: fix build on big endian systems
...
This closes #9446
SVN-Revision: 27255
2011-06-21 21:13:58 +00:00
Gabor Juhos
0d7a558f23
tools/firmware-utils: fix buffalo csum calculation
...
Also print an error message if decryption fails.
SVN-Revision: 27167
2011-06-13 08:12:41 +00:00
Gabor Juhos
145402e11b
tools/firmware-utils: add support for hd_id tag into mkdniimg
...
Signed-off-by: Mark Mentovai <mark@moxienet.com>
SVN-Revision: 27052
2011-05-31 22:53:24 +00:00
Gabor Juhos
fb9a672c78
tools/firmware-utils: add buffalo specific fw tools
...
SVN-Revision: 27050
2011-05-31 22:53:21 +00:00
Florian Fainelli
dce13b8c4d
bcm63xx: Add firmware helpers for T-Home Speedport W 303V
...
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
2011-05-11 13:34:05 +00:00
Daniel Dickinson
f83c5938d2
bcm63xx: Move the OpenWrt rootfs length field
...
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
2011-04-15 12:18:25 +00:00
Hauke Mehrtens
869fb691ec
firmware-utils: fix endianness bugs in firmware generation program.
...
Should make it work on big endian systems again, I do not have such a system.
This closes #9093 .
SVN-Revision: 26543
2011-04-09 15:06:01 +00:00
Gabor Juhos
72b3c18da1
firmware-utils/mktplinkfw: add support for the TP-Link TL-WA901ND v2 board
...
Patch-by: Jonathan Benett <jbscience87@gmail.com>
SVN-Revision: 26118
2011-03-13 15:08:29 +00:00
Hauke Mehrtens
e08740c747
brcm47xx: fix error when build firmware on x86_64 host ( closes #7672 )
...
SVN-Revision: 25472
2011-02-12 13:17:47 +00:00
Gabor Juhos
78ffb50c8e
firmware-utils/mkdniimg: don't use NA region by default
...
SVN-Revision: 24981
2011-01-14 10:37:09 +00:00
Gabor Juhos
e116785f27
firmware-utils/wndr3700: allow to specify image magic via command line
...
SVN-Revision: 24980
2011-01-14 10:37:04 +00:00
Daniel Dickinson
fc3a1d0ba3
Added OpenWRT-specific field to imagetag so that we can record the real root 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
2010-12-26 04:18:13 +00:00
Gabor Juhos
0f659a13dd
ar71xx: add support for TL-WR740N v1
...
Same as TL-WR741ND but with different hardware ID and without
detachable antenna.
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
SVN-Revision: 24811
2010-12-23 12:42:16 +00:00
Gabor Juhos
29379780a6
firmware-utils/mkzynfw: fix available flash space calculation
...
SVN-Revision: 24653
2010-12-17 20:34:31 +00:00
Gabor Juhos
912a140b19
firmware-utils/mktplinkfw: add support for the TL-MR3220 v1
...
SVN-Revision: 24438
2010-12-10 17:57:43 +00:00
Hauke Mehrtens
41b3383499
brcm47xx: Add edimax PS1208mfg support
...
Thank you clemvangelis for the patches. (closes #7672 )
SVN-Revision: 24217
2010-12-02 21:27:54 +00:00
Daniel Dickinson
eadb5c84fa
imagetag: Significantly updated brcm63xx imagetag 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).
...
SVN-Revision: 24011
2010-11-16 06:46:53 +00:00
Daniel Dickinson
6cd4575153
brcm63xx: imagetag: Fixed occaisonal wrong CRC in image due to using strncpy to copy the CRC into the imagetag. strncpy stops copying after a 00 byte, memcpy doesn't.
...
SVN-Revision: 24000
2010-11-15 04:08:09 +00:00
Gabor Juhos
1d855c0890
firmware-utils/mktplinkfw: add support for the TL-MR3420 v1
...
SVN-Revision: 23137
2010-09-27 14:54:02 +00:00
Gabor Juhos
142fb3e229
firmware-utils/mktplinkfw: add support for the TL-WR841N v7
...
SVN-Revision: 23133
2010-09-27 14:53:51 +00:00
Michael Büsch
f40f0c001e
Zcomax device firmware tool endianness fix
...
SVN-Revision: 22885
2010-09-04 05:40:56 +00:00
Gabor Juhos
7bf8159991
tools/firmware-utils: new tool for the Zcomax devices
...
SVN-Revision: 22883
2010-09-03 18:14:40 +00:00
Hauke Mehrtens
7640f89045
brcm47xx: Add new image generation and fix leds/reset button on WNR834B V2
...
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
2010-08-06 20:21:32 +00:00
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
2010-07-30 21:19:49 +00:00
Michael Büsch
02549b0448
firmware-utils/trx: Endianness fixes
...
SVN-Revision: 22414
2010-07-29 18:14:10 +00:00
Hauke Mehrtens
233294722c
firmware-utils: The option -F was not detected. This was missing in r22396
...
This fixes build of brcm47xx
SVN-Revision: 22398
2010-07-27 18:16:32 +00:00
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
2010-07-27 15:37:37 +00:00
Gabor Juhos
a06400d432
tools/firmware-utils: enhance mktplinkfw utility
...
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
2010-07-13 16:51:59 +00:00
Gabor Juhos
48e579a536
firmware-utils/mktplinkfw: add support for the TL-WA901ND
...
Patch-by: Pieter "Fate" Hollants <pieter@hollants.com>
SVN-Revision: 22015
2010-07-01 14:49:04 +00:00
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
2010-07-01 10:40:22 +00:00
Markus Wigge
67416b62d7
fixed trx version to handling
...
I forgot to write the right trx version to the actual header...
SVN-Revision: 21986
2010-06-28 17:35:20 +00:00
Florian Fainelli
e79f259abf
remove whitespaces in imagetag tool
...
SVN-Revision: 21848
2010-06-20 11:58:40 +00:00
Florian Fainelli
39fa664f99
Revert r21806 there are no users of it yet
...
SVN-Revision: 21808
2010-06-14 21:49:03 +00:00
Florian Fainelli
3a332f39de
add hcsmakeimage, for cable modems/routers based on bcm33xx
...
SVN-Revision: 21806
2010-06-14 21:47:21 +00:00
Florian Fainelli
5ec4eabfcb
fix mktitanimg segfault on 64-bits hosts ( #7443 )
...
SVN-Revision: 21767
2010-06-12 18:10:01 +00:00
Florian Fainelli
04a4638910
add mktitanimg to create Titan (AR7-based) images ( #6632 )
...
SVN-Revision: 21689
2010-06-06 19:16:43 +00:00
Gabor Juhos
01d8285e47
firmware-utils/mkzynfw: add support for the NBG460N board
...
Adding NBG460N/550N/550NH boards to mkzynfw.
Signed-off-by: Michael Kurz <michi.kurz@googlemail.com>
SVN-Revision: 21446
2010-05-14 09:20:36 +00:00
Gabor Juhos
8976d8f2ad
firmware-utils/mkzynfw: don't use next_offset twice ( closes #7273 )
...
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
2010-05-14 09:20:34 +00:00
Gabor Juhos
edac7e5a63
tools/firmware-utils: add size check to the mkplanexfw tool
...
Also pad the image to a 64K boundary.
SVN-Revision: 21174
2010-04-26 18:28:07 +00:00
Nicolas Thill
0946764732
remove 'svn:executable' property
...
SVN-Revision: 20831
2010-04-12 17:08:57 +00:00
Florian Fainelli
2a4fb82289
flashmap and image generation: reduced union bcm_tag to a single 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.
...
SVN-Revision: 20652
2010-04-01 21:20:43 +00:00
Florian Fainelli
dad85cddac
move bcm_tag.h out of the flashmap patch so that user-land tools can re-use it
...
SVN-Revision: 20548
2010-03-28 18:11:06 +00:00
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
2010-03-27 17:38:26 +00:00
Florian Fainelli
5d2105af23
revert r18760 since it prevents people from building working eva images
...
SVN-Revision: 20437
2010-03-26 10:12:30 +00:00
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
2010-03-25 19:34:49 +00:00
Florian Fainelli
66dc3ee0c9
fix file creation mode, thanks rtz
...
SVN-Revision: 20293
2010-03-18 23:35:12 +00:00
Gabor Juhos
c07fdecea8
mktplinkfw: add option to strip padding from the end of the image
...
SVN-Revision: 20120
2010-03-10 17:41:50 +00:00
Gabor Juhos
4ccab48a6b
mktplinkfw: fix help string, and remove duplicated option
...
SVN-Revision: 20067
2010-03-08 17:35:07 +00:00
Gabor Juhos
7fd1228672
firmware-utils/mktplinkfw: add board definitions for TL-WR941ND v4
...
SVN-Revision: 19748
2010-02-19 11:52:30 +00:00
Jo-Philipp Wich
14f6a53b6d
firmware-utils: unify cc and cc2 macros, simplifies Makefile
...
SVN-Revision: 19487
2010-02-01 01:56:02 +00:00
Jo-Philipp Wich
e0933ce6e6
firmware-utils: copy bcm_tag.h to src/ and get rid of cc3 macro, fixes imagetag compilation
...
SVN-Revision: 19485
2010-02-01 01:17:46 +00:00
Gabor Juhos
cace9f4566
ar71xx: add support for the TL-WR841N v1.5 board
...
SVN-Revision: 18893
2009-12-22 19:31:28 +00:00
Michael Büsch
d0ca6b9080
lzma2eva: Endianness fixes.
...
SVN-Revision: 18760
2009-12-11 23:50:51 +00:00
Gabor Juhos
7d8a1bf239
ar71xx: TL-WR1043ND support cleanup
...
SVN-Revision: 18697
2009-12-08 12:46:30 +00:00
Gabor Juhos
b12d752a63
ar71xx: preliminary support for the TL-WR1043ND
...
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>
SVN-Revision: 18696
2009-12-08 12:46:25 +00:00
Gabor Juhos
6d2fa1c896
ar71xx: create images for the WNDR3700, which can be flashed via the factory web interface
...
SVN-Revision: 18571
2009-11-28 09:28:25 +00:00
Gabor Juhos
09b5ed9641
firmware-utils: add WNDR3700 image fixing tool (thanks to Anael Orlinski)
...
SVN-Revision: 18569
2009-11-28 08:25:53 +00:00
Felix Fietkau
e999c93128
mkfwimage: add support for the XM layout (bullet/rocket/nano M)
...
SVN-Revision: 18448
2009-11-18 18:10:24 +00:00
Gabor Juhos
e6a40cac9a
ar71xx: increase max size of RouterStation and RouterStation Pro firmware images
...
Thanks to riskable! (closes #5860 )
SVN-Revision: 18410
2009-11-13 17:11:23 +00:00
Gabor Juhos
7849923473
ar71xx: add preliminary support for the TL-WR841ND v5 board
...
SVN-Revision: 18226
2009-10-30 12:26:25 +00:00
Felix Fietkau
f32f0814b1
firmware-utils: raise the default trx image size limit for something more appropriate for devices with 8M flash
...
SVN-Revision: 17537
2009-09-07 13:55:02 +00:00
Florian Fainelli
85698765da
add support for the Pirelli AG226G board ( #5337 )
...
SVN-Revision: 17190
2009-08-09 10:19:47 +00:00
Gabor Juhos
59c1e90fd7
firmware-utils/addpattern: add support for the WRT160NL
...
SVN-Revision: 17140
2009-08-06 09:15:05 +00:00
Gabor Juhos
86d7900724
firmware-utils: add new tool for the wrt400n (based on a patch by Sandeep Mistry <sandeep.mistry at gmail.com>)
...
SVN-Revision: 16792
2009-07-12 08:59:18 +00:00
Gabor Juhos
a21bf40453
increase size of the kernel partition on the TL-WR[789]41N boards
...
SVN-Revision: 16785
2009-07-11 17:20:46 +00:00
Gabor Juhos
db71f38ed6
firmware-utils/mktplinkfw: add option for combined images
...
SVN-Revision: 16742
2009-07-08 08:17:26 +00:00
Gabor Juhos
4be401d44b
firmware-utils/mktplinkfw: add board definitions for TL-WR741ND v1
...
SVN-Revision: 16740
2009-07-07 19:45:33 +00:00
Florian Fainelli
9e94806990
fix segfault when using the maxlen argument ( #4359 )
...
SVN-Revision: 16641
2009-07-01 14:58:15 +00:00
Gabor Juhos
c79ee4222e
firmware-utils: add a tool to compute crc value for the 5gxi firmware
...
SVN-Revision: 16557
2009-06-25 09:41:06 +00:00
Gabor Juhos
d14e512f00
firmware-utils/mkcsysimg: minor bugfix
...
SVN-Revision: 16556
2009-06-25 09:39:30 +00:00
Gabor Juhos
19afadf0b2
firmware-utils/mkcsysimg: add signature for the 5GXi board
...
SVN-Revision: 16551
2009-06-24 16:44:30 +00:00
Gabor Juhos
c1a4eef483
firmware-utils: add a file {en,de}cryption tool, based on the PC1 encryption algrithm
...
SVN-Revision: 16550
2009-06-24 16:35:38 +00:00
Florian Fainelli
1795111337
add imagetag support for BT Voyager 2500V, patch from Daniel Dickinson ( #5364 )
...
SVN-Revision: 16506
2009-06-18 15:00:32 +00:00
Felix Fietkau
a6d8f8be9e
firmware-utils: add a small utility for generating nand flash images with ecc info
...
SVN-Revision: 16458
2009-06-14 20:42:28 +00:00
Florian Fainelli
ca16accfbb
The attached patch adds building of firmware images for more routers based on the brcm63xx chipset.
...
Signed-Off By: Daniel Dickinson <crazycshore@gmail.com>
SVN-Revision: 16396
2009-06-10 08:24:13 +00:00
Florian Fainelli
01118457e8
rework imagetag firmware generator and MTD partition parser to accomodate with all known imagetag versions from Broadcom and vendors, patch from Daniel Dickinson ( fixes #4987 ).
...
SVN-Revision: 16393
2009-06-09 08:04:52 +00:00
Gabor Juhos
c8bf295481
build firmware image for the MZK-W300NH board
...
SVN-Revision: 16342
2009-06-04 19:14:46 +00:00
Gabor Juhos
9221732114
firmware-utils/mkfwimage: add support for RouterStation Pro (patch from Ubiquiti Networks)
...
SVN-Revision: 16064
2009-05-25 17:18:21 +00:00
Florian Fainelli
ac7e89329b
fix crc calculation with the new padding ( #5143 )
...
SVN-Revision: 15977
2009-05-22 07:49:23 +00:00
Florian Fainelli
e5a836693e
fix padding between end of the kernel and beginning of the rootfs in imagetag ( #5108 )
...
SVN-Revision: 15801
2009-05-12 13:20:36 +00:00