Commit Graph

513 Commits (1634461bd208f4bd108ea5c3d3f1cf9eb56d4a7e)

Author SHA1 Message Date
Alexander Couzens 5a5934f0c2 tools/mkfwimage2: remove 256 length limit for partition images
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years ago
Henryk Heisig 6e0eccc5aa tools/firmware-utils: Add Archer C50 to mktplinkfw2
Signed-off-by: Henryk Heisig <hyniu@o2.pl>
8 years ago
Felix Fietkau 7eeb254cc4 treewide: replace nbd@openwrt.org with nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Alexander Couzens 8241479605 tools/tplink-safeloader: split CPE210 from CPE510 profile
The CPE210 was still described for the OEM upgrade as compatible,
even the wireless configuration isn't compatible anymore between
both series (2ghz and 5ghz).
Update the CPE210 image profile to use the new profile.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years ago
Ash Benz 955c341d3b fw-utils/tplink-safeloader.c: Add support for Archer C2600
Signed-off-by: Ash Benz <ash.benz@bk.ru>
8 years ago
Felix Fietkau ac780e3ac8 tools/firmware-utils: remove obsolete firmware utility for airlink 525w
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
John Crispin d35801b9c5 tools: firmware-utils: add region code support to mktplinkfw
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 49215
8 years ago
John Crispin 51b6448746 tools: firmware-utils: clean up mktplinkfw
Remove the whole board list from mktplinkfw, as OpenWrt doesn't use it and
it was severely out of sync with the list of built images for ar71xx.

Also:
* fix -Wall warnings
* add const where appropriate

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 49214
8 years ago
John Crispin 5f1a82ec4f ar71xx: add TP-Link TL-WA901ND-v4 support
Signed-off-by: Tiziano Bacocco <tizbac2@gmail.com>

SVN-Revision: 49158
8 years ago
John Crispin 3fd98db818 ar71xx: Add support for the OMYlink OMY-X1
This patch adds support for the OMYlink OMY-X1

https://wiki.openwrt.org/toh/omylink/omy-x1

http://www.omylink.com/

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 49026
8 years ago
John Crispin 4d97c8bab0 ramips: Add a tool to create JCG factory images
replace spaces with tabs

Signed-off-by: Reinhard Max <reinhard@m4x.de>

SVN-Revision: 48901
8 years ago
John Crispin 678dcef7a5 ramips: Add a tool to create JCG factory images
This tool creates factory images for JCG routers.
Details can be found in the header comment of jcgimage.c.

Signed-off-by: Reinhard Max <reinhard@m4x.de>
Reviewed-by: Torsten Duwe <duwe@lst.de>

SVN-Revision: 48888
8 years ago
Felix Fietkau 076d58d344 firmware-utils: mkfwimage: fix firmware_max_length for XM layout
The new u-boot version bundled with the 5.6.x firmwares from Ubiquiti gets
confused by the smaller rootfs partition size; this can lead to various
issues:

1. We've gotten reports that flashing from the 5.6.x stock firmware to
   OpenWrt will brick devices; I wasn't able to reproduce this myself
2. Flashing from 5.5.x stock firmware to OpenWrt and back to stock (via
   TFTP recovery), following by an update to 5.6.x via web interface can
   yield a bricked device with the following properties:
   - It can't be booted without entering commands over a serial console, as
     u-boot supplies the wrong MTD layout
   - The web interface won't accept any image with the original flash
     layout, so stock firmware upgrades are impossible
   - As the TFTP recovery doesn't update u-boot, returning to the old
     u-boot from firmware 5.5.x is impossible

To recover from 2., creating an OpenWrt image which doesn't set u-boot as
read-only and flashing a backup of the old u-boot from there is the only
way known to me. (Fixing the mtdparts variable in u-boot-env from OpenWrt
might also work; settings this from u-boot over serial didn't have
any permanent effect.)

Fix all of this by setting the correct flash layout also used by the stock
firmware. Flashing has been tested from both firmware 5.5.x and 5.6.x. The
fixed layout also matches the mtdparts defined by OpenWrt.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 48829
8 years ago
Felix Fietkau 619a58d641 ar71xx, firmware-utils: split ubdev01 flash layout from XM
The ubdev01 profile defines its own MTDPARTS with smaller firmware
partition, so give it its own UBNT_BOARD in mkfwimage.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 48828
8 years ago
Felix Fietkau bd93998df6 firmware-utils: mkfwimage: add -Wall, fix obvious bugs causing compile warnings
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 48827
8 years ago
John Crispin d6cb792d21 ar71xx: Added support for TL-WA801NDv3
Signed-off-by: Tiziano Bacocco <tizbac2@gmail.com>

SVN-Revision: 48705
8 years ago
Rafał Miłecki 590c7825c1 firmware-utils: add oseama tool for creating Seama entities
It has an important feature (compared to seama) of using multiple input
files, aligning them and padding zeroes until reaching a specified
absolute offset. This is needed for a proper flash layout on NAND. We
want kernel partition to be big enough to handle future updates without
a need to resize it and wipe whole "ubi" partition. It's important as
we don't want to lose block counters.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 48601
8 years ago
Hauke Mehrtens 13b8b8c2e7 lantiq: add support for TP-Link VR200v
This adds basic support for TP-Link VR200v.
Currently the following parts are not working: FXO, Voice, DECT, WIFI (both)

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 48328
8 years ago
John Crispin 16317ceb4f firmware-utils: allow mkfwimage2 to use - in partition names
Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 47975
9 years ago
John Crispin 244173a093 firmware-utils: fix various compiler warnings
mostly implicit defines due to missing includes plus one const that
shouldn't be one.

Signed-off-by: Felix Kaechele <felix@kaechele.ca>

SVN-Revision: 47865
9 years ago
John Crispin 0231d41352 mktplinkfw: add missing exceeding bytes info to logs
Add the info on exceeding bytes also to the remaining log messages.

Signed-off-by: Felix Kaechele <felix@kaechele.ca>

SVN-Revision: 47864
9 years ago
John Crispin 90e4b76bd1 firmware-utils mkmerakifw: firmware generator for MR18
This patch adds firmware generation tool for Cisco's MR18

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>

SVN-Revision: 47856
9 years ago
Jonas Gorski 008aec391a brcm63xx: work around boot failures with squashfs on BCM6368
Due to the LWL/LWR SMP issue on BCM6368, booting with squash might fail
if the rootfs is not word aligned. As a quick fix, work around it by
ensuring this condition is always true.

Reported-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 47380
9 years ago
John Crispin 257e76a3df ar71xx: Bitmain Antminer S1 & S3 cleanup
Sets the LEDs to boardname:color:led-name
Sets the LAN to eth0
Other corrections such as the Machine Name and HWIDs
v2 corrects the profile names in the Makefile and changes tabs to spaces
in the Makefile 'define Device/' like the other devices.

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 47221
9 years ago
John Crispin 21e1b4163f tools/firmware-utils: tplink-safeloader: add version 1.1 support to CPE210/220/510/520
The hardware is identical to version 1.0, add the new models to the support
list.

Also remove the empty line at the end of the support list, the current
stock images don't have it either.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 47212
9 years ago
John Crispin fea5d26c7f tools/firmware-utils: tplink-safeloader: fix support-list format, clean up vendor information
The first 4 bytes of the support list and the vendor information are
supposed to contain the length of these fields.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 47211
9 years ago
John Crispin e9ed50829e tools/firmware-utils: tplink-safeloader: clean up code
There is no reason for the internal functions not to be static.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 47210
9 years ago
Felix Fietkau 86492a1eb8 firmware-utils/buffalo-enc: explicitly use signed char for checksum function
ARM defaults to unsigned char and that breaks the calculation, as it
relies on sign extension

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47186
9 years ago
Felix Fietkau 772e2c0a77 firmware-utils/buffalo-enc: add support for decrypting data with an offset
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47185
9 years ago
Hauke Mehrtens 3d1a65adb4 tools: firmware-utils: fix compiler warnings
This just fixes a lot of compiler warnings.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 47181
9 years ago
John Crispin 161179f40b lantiq: Add target TP-Link TD-W8980
The device is similar to the TD-W8970, beside a different Atheros 2.4 GHz
wireless chip and the additional, PCI connected, WAVE300 5 GHz wireless.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

SVN-Revision: 47130
9 years ago
John Crispin cc3747e9e2 tools/firmware-utils: add header version 2 support for mktplinkfw
Signed-off-by: Weijie Gao <hackpascal@gmail.com>

This patch adds header version 2 option for mktplinkfw.

The version 2 header is used for AR/QCA firmwares and is not the same as
the header generated by mktplinkfw2.
Instead, it is nearly the same as version 1 header except for the header
version and the RSA signature.

The header version 2 support is used for newer TP-Link routers which have
only a 64kb bootloader part, e.g. TL-WDR6500 v2.

SVN-Revision: 46661
9 years ago
John Crispin a77a9f520c firmware-utils mktplinkfw: print amount of exceeding bytes
This is very useful for trimming images towards 4 MiB flash size.

Signed-off-by: Stephan Maka <stephan@spaceboyz.net>

SVN-Revision: 46469
9 years ago
John Crispin 5cd49bb067 ar71xx: add support for Onion Omega
This patch adds support for the Onion Omega.

https://onion.io/omega

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
Acked-by: Boken Lin <bl@onion.io>
Tested-by: Jacky Huang <huangfangcheng@163.com>

SVN-Revision: 46458
9 years ago
John Crispin 055663201b ar71xx: Add Support for the Bitmain Antminer S3
This patch adds support for the Bitmain Antminer S3 Cryptocurrency Miner

http://wiki.openwrt.org/toh/bitmain/s3

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 46236
9 years ago
John Crispin e85f3471ba ar71xx: add support for TL-WR720N-v4.
The hardware should be almost the same as TL-WR720N-v3.  WiFi and LAN networks
were tested by "Lo Yuk Fai <loyukfai@gmail.com>".  Failsafe and slider switch
were tested by "Wong min <alpha080@gmail.com>".

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 46046
9 years ago
John Crispin 694dd581eb ar71xx: Add Support for the Bitmain Antminer S1
This patch adds support for the Bitmain Antminer S1 Cryptocurrency Miner

http://wiki.openwrt.org/toh/bitmain/s1

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
Acked-by: James Hilliard <james.hilliard1@gmail.com>

SVN-Revision: 46044
9 years ago
Felix Fietkau 39b8f7c0f7 firmware-tools/ptgen: use stdint types for struct pte
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45957
9 years ago
Felix Fietkau 6263567444 firmware-tools/ptgen: fix endianness conversion for PTE .start, .length field.
They are of 32-bit little endian integers.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 45956
9 years ago
John Crispin 5d3f0eea1c tools/firmware-utils: Allow changing the CRC32 poly value in mkbrnimg
VGV7519 is currently the only device with brnboot support. It seems to
be happy with 0x2083b8ed as CRC32 poly. However, VGV7510KW22 fails to
validate the checksum - it requires 0x04c11db7 instead.

I have built an brnboot image manually on the command line, once with
the old code and then with the new code but passing the old CRC32
poly value. Both resulted in a brnboot image with the same sha1sum.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

SVN-Revision: 45881
9 years ago
Rafał Miłecki 63cac50d24 firmware-utils: asustrx: support setting firmware version
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45791
9 years ago
Rafał Miłecki 6feb68603a firmware-utils: asustrx: new tool for TRX format with Asus tail
Asus devices use TRX format with some extra data at the end.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45773
9 years ago
Felix Fietkau a13e2d0e5c mktplinkfw: add flag to ignore size limit (used for initramfs images)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45644
9 years ago
Jonas Gorski bb54859543 brcm63xx: do not align squashfs rootfs start
We do not need to align the start of read only rootfs's to erase blocks.
This allows us to write the squashfs rootfs directly behind the kernel,
potentially freeing up one erase block.

We still need to align for jffs2, so add a flag for imagetag to
optionally align the rootfs start.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44556
9 years ago
Jonas Gorski 56fd5df368 firmware-utils: imagetag: use cyg_crc32 instead of duplicating code
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 44554
9 years ago
John Crispin 9358a8a798 ar71xx: TL-WA7210n v2 support
This patch adds support for TP-Link TL-WA7210n[0]

[0] http://www.tplink.com/en/products/details/?model=TL-WA7210N

Signed-off-by: Hendrik Frenzel <hfrenzel@scunc.net>

SVN-Revision: 44526
9 years ago
Jo-Philipp Wich f7e56763e1 tools: remove static linking support
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 44285
9 years ago
John Crispin baaef42952 ar71xx: Revert "added board support for compex wpj558"
This reverts commit f7873071561d82e75ba2dc46433a2982fef8ac6f.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44245
9 years ago
John Crispin bc906ca59e added board support for compex wpj558
Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 44237
9 years ago
John Crispin 4961c7d0f5 ar71xx: add support for TL-WA701ND v2
Signed-off-by: Luigi Tarenga <luigi.tarenga@gmail.com>

SVN-Revision: 44063
9 years ago
Florian Fainelli 0c5feac573 tools: edimax_fw_header: fix suspicious memset usage
memset() was called with a size argument against a pointer size, not the
structure size itself.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 43913
9 years ago
Felix Fietkau 265174ef48 tools/firmware-utils: add version 3 header support for mktplinkfw2
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43897
9 years ago
Felix Fietkau c12ac30870 buffalo-enc: pass the longstate option to decryption
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43756
10 years ago
Felix Fietkau 8e8437103c buffalo-enc: accept the longstate command line option
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43755
10 years ago
Imre Kaloz 211cac98d5 Belkin AC 1750 DB (F9K1115v2) support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43734
10 years ago
John Crispin 8a123f6f66 ramips: generate factory images for Nexx devices
Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>

SVN-Revision: 43541
10 years ago
Felix Fietkau 40e8649947 firmware-utils: remove dependency on error.h in tplink-safeloader
Fixes build on Mac OS X

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43402
10 years ago
John Crispin f318ae995a firmware-utils: add new tool tplink-safeloader for the new TP-LINK Pharos devices (CPE210/220/510/520)
The new TP-LINK Pharos series uses a new bootloader, the "TP-LINK Safeloader".
It uses an advanced firmware image format, containing an image partition table
and a flash partition table (and image partitions are mapped to the
corresponding flash partitions). The exact image format is documented in the
source code.

Furthermore, the bootloader expects the kernel image as an ELF executable.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 43384
10 years ago
John Crispin d0bf15f235 ramips: add support for A5-V11 board (resubmit)
(Reposted due to an issue with the patchwork server during original submission)

Unbranded. Silkscreen on PCB is “A5-V11”, believed to be made by Bococom (or at least uses Bococom image encryption - as used on poray devices - but different key)

Signed-off-by: Gareth Bryan <gareth@mx9.org>

SVN-Revision: 43102
10 years ago
Felix Fietkau a1b6a7e572 firmware-utils: rename encrypt()/decrypt() in mkhilinkfw to avoid collisions
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 42998
10 years ago
John Crispin 6e1637f8fa firmware-utils: restore compilation of mkhilinkfw.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 42989
10 years ago
John Crispin 7322fe161a firmware-utils: fix compilation warnings.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 42986
10 years ago
Jo-Philipp Wich 6358368500 firmware-utils: allow passing a specific MBR signature to ptgen
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 42934
10 years ago
John Crispin 7ab5357280 firmware-utils: add NEXX factory image support
This patch adds support to encode and decode images for certain types of
NEXX routers.

SVN-Revision: 42784
10 years ago
John Crispin 058a5c85ef firmware-utils: made mkdir615h1 work for all Senao-produced devices as mksenaofw and cleaned up some of its formatting
Signed-off-by: Forest Crossman <cyrozap@gmail.com>

SVN-Revision: 41962
10 years ago
Jonas Gorski b8f5c43748 firmware-utils: add new tool for fixing headers on ZyXEL devices (brcm63xx)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41849
10 years ago
Gabor Juhos def30210f8 firmware-utils/mktplinkfw: add support for GL.iNet v1
Patch is based on http://patchwork.openwrt.org/patch/5273/.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>
Signed-off-by: Mark Janssen <mark@sig-io.nl>
Signed-off-by: alzhao <alzhao@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/5653/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41620
10 years ago
John Crispin ea137d3735 firmware-utils/mkdir615h1: fix magic XOR calculation
Signed-off-by: Forest Crossman <cyrozap@gmail.com>

SVN-Revision: 41314
10 years ago
John Crispin 575127fe1c lantiq: DGN3500 (all known variants) factory and sysupgrade image building support
This patch adds factory image building for the DGN3500, all variants,
and fixes sysupgrade images to make them play nice with the sercomm
secondary boot loader.

The factory images can be used directly in the update dialog in the
interface of the stock firmware and via the special Sercomm bootmode
and a special windows flashing utility (allegedly present in the CD
that came with the device -- but it's also compatible with the NSLU2
Upgrade_207_XP utility.) The special bootmode can be activated by
turning the device on while holding the reset button pressed, then
releasing it when the power led starts blinking red and green. Please
notice that if using the 207 utility, it will always report that the
flashing failed even though it completed successfully. Just power
cycle the router manually after the utility reports the failure and
OpenWRT will boot. This same utility (despite reporting failure in
this case too) can revert a DGN3500 (any variant) to the appropriate
stock Netgear firmware.

This patch is a heavily modified version of a package I found on the
OpenWRT forum with a couple fixes and features added -- mainly the
generation of all the different image variants to support all known
models directly, atm known variants are AnnexA-WW, AnnexA-NA and
AnnexB-DE/GR.

I tested the patch successfully on my device.

Signed-off-by: Marco Antonio Mauro <marcus90@gmail.com>

SVN-Revision: 41236
10 years ago
John Crispin dc5fe5f73f ramips: RT-N56U support fixes and factory image creation
Signed-off-by: Mikko Hissa <mikko.hissa@werzek.com>

SVN-Revision: 41224
10 years ago
John Crispin 3208d0d7b7 firmware-utils: add Gemtek header tool
Generates webflash-compatible images for a few RT2880 routers based
on Gemtek OEM boards.

Signed-off-by: Claudio Leite <leitec@staticky.com>

SVN-Revision: 40551
10 years ago
Gabor Juhos 1a53806b86 firmware-utils/mktplinkfw: add support for TL-WDR4300v1 (IL)
The version of TL-WDR4300 sold in Israel comes with a different
hardware id.

Patch-by: Daniel <daniel@makrotopia.org>
Patchwork: http://patchwork.openwrt.org/patch/5001/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40037
10 years ago
Gabor Juhos d9341f97ed firmware-utils/mktplinkfw: add support for the Oolite v1 board
Patch-by: Lars Bøgild Thomsen <lth@cow.dk>
Patchwork: http://patchwork.openwrt.org/patch/4922/
[juhosg: fix whitespaces]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40035
10 years ago
Gabor Juhos 6aae3694c9 firmware-utils/mktplinkfw: add an option to generate 16MiB images
Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>
Patchwork: http://patchwork.openwrt.org/patch/2449/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40034
10 years ago
Gabor Juhos fe99a2d67d firmware-utils/mktplinkfw: allow to reserve space in the generated images
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39396
10 years ago
John Crispin 9821ce8ed6 ralink: don't build mkhilinkfw untilt he ssl header dependency is resolved
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39248
10 years ago
John Crispin 4bf844e834 firmware-utils: mkhilinkfw breaks the build bots
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39243
10 years ago
John Crispin 2b4a04089f firmware-utils: add HLK-RM04 tool
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 39238
10 years ago
John Crispin 3b4152bfda firmware-utils: check_magic() in buffalo-lib.c always return 0
spotted with cppcheck

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>

SVN-Revision: 39171
11 years ago
Gabor Juhos 2b6ca18e82 firmware-utils/mkplinkfw: add TL-WA801ND v2 support
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Patchwork: http://patchwork.openwrt.org/patch/4503/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39066
11 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
Gabor Juhos 4069a50de6 firmware-utils/mkplinkfw: add TL-WR1043ND v2 support
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38957
11 years ago
Gabor Juhos 5a85a21e06 tools: adapt addpattern for WD's Range Extender
A few things had to be changed to add support for these devices:
 - support code patterns with 8 characters
 - new board definition for the range extender device

Patchwork: http://patchwork.openwrt.org/patch/4280/
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38685
11 years ago
Gabor Juhos d9c9633d19 firmware-utils: remove the wndr3700 utility
It is not used anymore.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38663
11 years ago
Gabor Juhos 50458fb24c mkfwimage: Increase RSPRO maximum size to 0xF00000 (15 MiB)
RSPRO has 16MiB of Flash, using the following layout:

[    2.930000] 0x000000000000-0x000000030000 : "RedBoot"
[    2.940000] 0x000000030000-0x000000130000 : "kernel"
[    2.950000] 0x000000130000-0x000000ff0000 : "rootfs"
[    2.960000] 0x000000ff0000-0x000000fff000 : "FIS directory"
[    2.970000] 0x000000fff000-0x000001000000 : "RedBoot config"

Firmware images contain kernel and rootfs, so they can use up to 0xFF0000 -
0x30000 = 0xFC0000 (15,75MiB) of space. We don't include the RedBoot and FIS
partitions and leave an extra 0xC0000 (768KiB) of space.

This is based on revision 18410 which sets the limit to 0xB00000 (11 MiB).

Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38484
11 years ago
John Crispin fa4ca9d7eb tools: add tool to generate dcs93xl images
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 38317
11 years ago
Gabor Juhos da3700b2a6 firmware-utils/mktplinkfw: add support for the TL-MR13U board
Signed-off-by: Oleg Titov <oleg.titov@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4063/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38065
11 years ago
John Crispin 15721d535b firmware-utils: add a tool TP-Link v2 image generation
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37726
11 years ago
John Crispin 1af56d7c46 firmware-utils: remove v2 support
we will use gabors patch instead

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37725
11 years ago
John Crispin 815d9334e2 firmware-utils: fix segfault introduced by v2 changes
Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 37724
11 years ago
John Crispin eb844ad321 firmware-utils: add support for TDW8970 to mktplinkfw
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37718
11 years ago
John Crispin 85cb2c4f9e firmware-utils: add v2 header support to firmware-utils
only image build works. inspect and md5 checksum support are not implemented yet

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 37717
11 years ago
John Crispin aaedf6c8c6 ramips: add basics for Poray devices
This commit adds the basic elements to support Poray brand routers.
It contains a tool to do the encryption/obfuscation that is used in
Poray routers.

Support for Poray devices was worked on by:

Felix Kaechele <heffer@fedoraproject.org>
Luis Soltero <lsoltero@globalmarinenet.com>
Michel Stempin <michel.stempin@wanadoo.fr>

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>

SVN-Revision: 37635
11 years ago
Gabor Juhos 2fb993fdbf firmware-utils/mktplinkfw: add support for the TL-MR10U board
Based on andelf's patch:
http://andelf.diandian.com/post/2013-05-22/40050677370

Signed-off-by: Oleg Titov <oleg.titov@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3840/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37549
11 years ago
Florian Fainelli b5b3e94132 tools: add Broadcom cable modem firmware image creator
Signed-off-by: Florian Fainelli <florian@openwrt.org>

SVN-Revision: 36873
11 years ago
Gabor Juhos 3a407a0986 firmware-utils/mkcameofw: allow to use combined kernel image
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36583
11 years ago
Gabor Juhos 9658206abc firmware-utils/mktplinkfw: add description for -W option into usage output
Add description for -W <hwrev> option into usage output of mktplinkfw.

Signed-off-by: yousong <yszhou4tech@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36497
11 years ago
Gabor Juhos 85db8b7a21 firmware-utils/mktplinkfw: add support for the TL-WR720N v3 board
Signed-off-by: yousong <yszhou4tech@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 36455
11 years ago
John Crispin 48feea4861 Add Netgear WNCE2001 (OF version)
Add Netgear WNCE2001.

This is a small RT3052 device with 4MB spi flash and 32MB ram.
2 built-in antennas, 1x fastE, no USB, reset & wps switch.
On my model the AP/RT switch is unpopulated, but I verified the gpio
mapping for it.
The stock firmware is running an unprotected tftpd which allows you
to read any file from the filesystem.
Serial port is present on testpads (See image on the wiki page).
There are more testpads below the shield near the SoC, which
may have JTAG.

Slight annoyance: The bootloader is checksumming kernel&rootfs, but
can be tricked by zeroing checksum and length fields in the checksum
partition, see
target/linux/ramips/base-files/lib/preinit/04_disable_wnce2001_flash_checksumming

The manufacturer image is very similar to the DAP one, so I slightly
modified mkdapimg to support generating it.

The resulting
openwrt-ramips-rt305x-wnce2001-squashfs-factory-(worldwide|northamerica).bin
can be used to flash from stock to OpenWRT using the stock firmware
upgrade function, without using the serial port.

http://www.netgear.com/landing/wnce2001.aspx
http://wiki.openwrt.org/toh/netgear/wnce2001

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>

SVN-Revision: 36289
11 years ago
Gabor Juhos 55e2ae7452 firmware-utils/mktplinkfw: Add support for MR3420v2
Patch-by: Dmytro <dioptimizer@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3441/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35963
11 years ago
Gabor Juhos ddb29bebf5 firmware-utils/mktplinkfw: add support for the TL-WA830RE v1/v2 boards
Signed-off-by: Ronald Hecht <ronald.hecht@gmx.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35787
11 years ago
Gabor Juhos c75c1e03a3 firmware-utils/mktplinkfw: add support for the TL-WDR4900 v1
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35593
11 years ago
Gabor Juhos cbeb862b95 firmware-utils/mktplinkfw: add TP-LINK TL-WR743ND v2 support
AR9331 based, these same as 741v4

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35448
11 years ago
John Crispin 2739a19992 adds support for Edimax BR-6524N
fixes #12754

Signed-off-by: <rq@akl.lt>

SVN-Revision: 35019
12 years ago
Gabor Juhos cbc3aebcc7 firmware-utils/mktplinkfw: add support for the TL-MR3220 v2
Based on the following patch:
http://patchwork.openwrt.org/patch/3043/

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34781
12 years ago
Gabor Juhos 113b6b96c1 firmware-utils/mkfwimage2: allow to use numbers in partition names
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34729
12 years ago
Gabor Juhos dfab9cb4e7 firmware-utils/mktplinkfw: add support for TP-LINK WA801NDv1
Patch-by: Amir Sagie <openwrt-devel@taproot.org.il>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34575
12 years ago
Gabor Juhos 588c81d1e0 firmware-utils/mktplinkfw: add support for TL-WA7510N
[juhosg: separated from the http://patchwork.openwrt.org/patch/2820/ patch]

Signed-off-by: Stefan Helmert <helst_listen@aol.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 34189
12 years ago
Gabor Juhos 86b788b1b4 firmware-utils: new tool for fixing U-Media firmware headers
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33848
12 years ago
Gabor Juhos 25250a22ef tools/firmware-utils: add seama tool
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 33840
12 years ago
Jonas Gorski 997ace7e5e firmware-utils: move bcm_tag.h here
Since there is only one user of bcm_tag.h left, we can safely move it
into the firmware-utils directory, replacing the symlink.

SVN-Revision: 33655
12 years ago
Gabor Juhos 872e798473 tools/firmware-utils: add a new tool for TEW-712BR firmware generation
SVN-Revision: 33233
12 years ago
John Crispin 6c9d20d6e7 tools/firmware-utils/ptgen option to use MB rounding
SVN-Revision: 33218
12 years ago
Gabor Juhos 25ac1447ed tools/firmware-utils: add tool for DIR-651-H1 firmware generation
Signed-off-by: Mikko Hissa <mikko.hissa@uta.fi>

SVN-Revision: 33204
12 years ago
Jo-Philipp Wich cf1698c637 use HOST_STATIC_LINKING instead of hardcoding -static
SVN-Revision: 33140
12 years ago
Jo-Philipp Wich e2e55d7acd firmware-utils: link statically
SVN-Revision: 33117
12 years ago
John Crispin fb81e7a802 adds mkdapimg
Signed-off-by: Yoichi Shinoda <shinoda@jaist.ac.jp>

SVN-Revision: 32822
12 years ago
Gabor Juhos a45427bc79 firmware-utils/mktplinkfw: allow to specify firmware version
SVN-Revision: 32616
12 years ago
Jonas Gorski b31108e0a8 tools: imagetag: add parameter for padding images
Allow images to be padded to a certain size. This prevents CFE from
flashing them to the second image offset.

SVN-Revision: 31875
12 years ago
Gabor Juhos de7324674a firmware-utils/mktplinkfw: add support for the TL-WR1041N v2
Patch-by: Vince Huang <axishero@foxmail.com>

SVN-Revision: 31609
12 years ago
Gabor Juhos 84267683bb firmware-utils/mkfwimage: allow to override firmware magic
SVN-Revision: 30627
12 years ago
John Crispin cd1a204365 Support booting the Speedport W502V using BRN-BOOT.
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>

SVN-Revision: 30532
12 years ago
Gabor Juhos 1338af2640 firmware-utils/mkmylofw: add WPE72 support
Signed-off-by: Johnathan Boyce <jon.boyce@globalreach.eu.com>

SVN-Revision: 29913
12 years ago
John Crispin ccb6b0a063 tools: clean up Makefiles / make ccache work
SVN-Revision: 29754
13 years ago
Gabor Juhos 8a8e5bde15 firware-utils/mktplinkfw: add TL-WR2543N/ND support
SVN-Revision: 29681
13 years ago
Gabor Juhos 923e5d3543 firmware-utils/mktplinkfw: add support for TL-WA701N/ND
SVN-Revision: 29655
13 years ago
Gabor Juhos 55e13f4e6a firmware-utils/mktplinkfw: add support for TL-MR3020
Signed-off-by: Christian Cier-Zniewski <c.cier@gmx.de>

SVN-Revision: 29650
13 years ago
Gabor Juhos 29a2c2ea80 firmware-utils/mktplinkfw: add ability to put jffs2 eof marker into the image
SVN-Revision: 29544
13 years ago
Gabor Juhos 2592c0a283 tools/mktplinkfw: allow to specify hw_id, hw_rev and flash_layout
SVN-Revision: 29466
13 years ago
Gabor Juhos 54c8d61b03 firmware-utils/mktplinkfw: allow to align the rootfs on a specified boundary
SVN-Revision: 29445
13 years ago
Gabor Juhos 81cda3e2f1 firmware-utils/mktplinkfw: fix combined image creation
SVN-Revision: 29409
13 years ago
Gabor Juhos 6632e38d08 firmware-utils/mktplinfw: use htonl/ntohl
Based on a patch by Adrian Chadd <adrian@freebsd.org>

SVN-Revision: 29327
13 years ago
Gabor Juhos 13b0ec6cf7 firmware-utils/mktplinkfw: add TL-WR741ND v4
SVN-Revision: 28707
13 years ago
Vasilis Tsiligiannis aadbbc4bac Add firmware tool for generating factory images for Edimax devices
SVN-Revision: 28688
13 years ago
Gabor Juhos 500a8e2014 firmware-utils/mktplinkfw: fix hardware id of the TL-WR740 v3
SVN-Revision: 28602
13 years ago
Gabor Juhos 712521955b firmware-utils/mktplinkfw: add support for TL-WR703N v1
Patch-by: dongyuqi <729650915@qq.com>

SVN-Revision: 28278
13 years ago
Gabor Juhos ffbdaf8ec8 firmware-utils/mktplinkfw: add support for TL-WR743ND v1
Signed-off-by: Paul Fertser <fercerpav@gmail.com>

SVN-Revision: 28270
13 years ago
Gabor Juhos 9faace4327 firmware-utils/mktplinkfw: add support for TL-WR740N v3
Signed-off-by: Martin Raykov <martin.raykov@gmail.com>

SVN-Revision: 28268
13 years ago
Felix Fietkau bdb676b90d firmware-utils: rename the devname variable in mkwrgimg to avoid a clash with a BSD stdlib function
SVN-Revision: 27553
13 years ago
Gabor Juhos 9d980dc121 tools/firmware-utils: add yet another buffalo tool
SVN-Revision: 27475
13 years ago
Gabor Juhos 533067b8f5 tools/firmware-utils: allow to create buffalo image from two files
SVN-Revision: 27473
13 years ago
Gabor Juhos ea6bc8858a tools/firmware-utils: allow to create buffalo tags w/o hw version
SVN-Revision: 27472
13 years ago
Gabor Juhos 1c5b7d0a32 tools/firmware-utils: add new firmware tool for the DIR-300-B1 board
SVN-Revision: 27438
13 years ago
Hauke Mehrtens fbed51a8b5 firmware-utils: fix build on big endian systems
This closes #9446

SVN-Revision: 27255
13 years ago
Gabor Juhos 0d7a558f23 tools/firmware-utils: fix buffalo csum calculation
Also print an error message if decryption fails.

SVN-Revision: 27167
13 years ago
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
13 years ago
Gabor Juhos fb9a672c78 tools/firmware-utils: add buffalo specific fw tools
SVN-Revision: 27050
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
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
13 years ago
Hauke Mehrtens e08740c747 brcm47xx: fix error when build firmware on x86_64 host (closes #7672)
SVN-Revision: 25472
13 years ago
Gabor Juhos 78ffb50c8e firmware-utils/mkdniimg: don't use NA region by default
SVN-Revision: 24981
14 years ago
Gabor Juhos e116785f27 firmware-utils/wndr3700: allow to specify image magic via command line
SVN-Revision: 24980
14 years ago
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
14 years ago
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
14 years ago
Gabor Juhos 29379780a6 firmware-utils/mkzynfw: fix available flash space calculation
SVN-Revision: 24653
14 years ago
Gabor Juhos 912a140b19 firmware-utils/mktplinkfw: add support for the TL-MR3220 v1
SVN-Revision: 24438
14 years ago
Hauke Mehrtens 41b3383499 brcm47xx: Add edimax PS1208mfg support
Thank you clemvangelis for the patches. (closes #7672)

SVN-Revision: 24217
14 years ago
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
14 years ago
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
14 years ago
Gabor Juhos 1d855c0890 firmware-utils/mktplinkfw: add support for the TL-MR3420 v1
SVN-Revision: 23137
14 years ago
Gabor Juhos 142fb3e229 firmware-utils/mktplinkfw: add support for the TL-WR841N v7
SVN-Revision: 23133
14 years ago
Michael Büsch f40f0c001e Zcomax device firmware tool endianness fix
SVN-Revision: 22885
14 years ago
Gabor Juhos 7bf8159991 tools/firmware-utils: new tool for the Zcomax devices
SVN-Revision: 22883
14 years ago
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
14 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
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
14 years ago
Gabor Juhos 48e579a536 firmware-utils/mktplinkfw: add support for the TL-WA901ND
Patch-by: Pieter "Fate" Hollants <pieter@hollants.com>

SVN-Revision: 22015
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
Florian Fainelli e79f259abf remove whitespaces in imagetag tool
SVN-Revision: 21848
14 years ago
Florian Fainelli 39fa664f99 Revert r21806 there are no users of it yet
SVN-Revision: 21808
14 years ago
Florian Fainelli 3a332f39de add hcsmakeimage, for cable modems/routers based on bcm33xx
SVN-Revision: 21806
14 years ago
Florian Fainelli 5ec4eabfcb fix mktitanimg segfault on 64-bits hosts (#7443)
SVN-Revision: 21767
14 years ago
Florian Fainelli 04a4638910 add mktitanimg to create Titan (AR7-based) images (#6632)
SVN-Revision: 21689
14 years ago
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
14 years ago
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
14 years ago
Gabor Juhos edac7e5a63 tools/firmware-utils: add size check to the mkplanexfw tool
Also pad the image to a 64K boundary.

SVN-Revision: 21174
14 years ago
Nicolas Thill 0946764732 remove 'svn:executable' property
SVN-Revision: 20831
14 years ago
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
14 years ago
Florian Fainelli dad85cddac move bcm_tag.h out of the flashmap patch so that user-land tools can re-use it
SVN-Revision: 20548
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
Florian Fainelli 5d2105af23 revert r18760 since it prevents people from building working eva images
SVN-Revision: 20437
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
Florian Fainelli 66dc3ee0c9 fix file creation mode, thanks rtz
SVN-Revision: 20293
14 years ago
Gabor Juhos c07fdecea8 mktplinkfw: add option to strip padding from the end of the image
SVN-Revision: 20120
14 years ago
Gabor Juhos 4ccab48a6b mktplinkfw: fix help string, and remove duplicated option
SVN-Revision: 20067
14 years ago
Gabor Juhos 7fd1228672 firmware-utils/mktplinkfw: add board definitions for TL-WR941ND v4
SVN-Revision: 19748
14 years ago
Jo-Philipp Wich 14f6a53b6d firmware-utils: unify cc and cc2 macros, simplifies Makefile
SVN-Revision: 19487
15 years ago
Jo-Philipp Wich e0933ce6e6 firmware-utils: copy bcm_tag.h to src/ and get rid of cc3 macro, fixes imagetag compilation
SVN-Revision: 19485
15 years ago
Gabor Juhos cace9f4566 ar71xx: add support for the TL-WR841N v1.5 board
SVN-Revision: 18893
15 years ago
Michael Büsch d0ca6b9080 lzma2eva: Endianness fixes.
SVN-Revision: 18760
15 years ago
Gabor Juhos 7d8a1bf239 ar71xx: TL-WR1043ND support cleanup
SVN-Revision: 18697
15 years ago
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
15 years ago
Gabor Juhos 6d2fa1c896 ar71xx: create images for the WNDR3700, which can be flashed via the factory web interface
SVN-Revision: 18571
15 years ago
Gabor Juhos 09b5ed9641 firmware-utils: add WNDR3700 image fixing tool (thanks to Anael Orlinski)
SVN-Revision: 18569
15 years ago
Felix Fietkau e999c93128 mkfwimage: add support for the XM layout (bullet/rocket/nano M)
SVN-Revision: 18448
15 years ago
Gabor Juhos e6a40cac9a ar71xx: increase max size of RouterStation and RouterStation Pro firmware images
Thanks to riskable! (closes #5860)

SVN-Revision: 18410
15 years ago
Gabor Juhos 7849923473 ar71xx: add preliminary support for the TL-WR841ND v5 board
SVN-Revision: 18226
15 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 85698765da add support for the Pirelli AG226G board (#5337)
SVN-Revision: 17190
15 years ago
Gabor Juhos 59c1e90fd7 firmware-utils/addpattern: add support for the WRT160NL
SVN-Revision: 17140
15 years ago
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
15 years ago
Gabor Juhos a21bf40453 increase size of the kernel partition on the TL-WR[789]41N boards
SVN-Revision: 16785
15 years ago
Gabor Juhos db71f38ed6 firmware-utils/mktplinkfw: add option for combined images
SVN-Revision: 16742
15 years ago
Gabor Juhos 4be401d44b firmware-utils/mktplinkfw: add board definitions for TL-WR741ND v1
SVN-Revision: 16740
15 years ago
Florian Fainelli 9e94806990 fix segfault when using the maxlen argument (#4359)
SVN-Revision: 16641
15 years ago
Gabor Juhos c79ee4222e firmware-utils: add a tool to compute crc value for the 5gxi firmware
SVN-Revision: 16557
15 years ago
Gabor Juhos d14e512f00 firmware-utils/mkcsysimg: minor bugfix
SVN-Revision: 16556
15 years ago
Gabor Juhos 19afadf0b2 firmware-utils/mkcsysimg: add signature for the 5GXi board
SVN-Revision: 16551
15 years ago
Gabor Juhos c1a4eef483 firmware-utils: add a file {en,de}cryption tool, based on the PC1 encryption algrithm
SVN-Revision: 16550
15 years ago
Florian Fainelli 1795111337 add imagetag support for BT Voyager 2500V, patch from Daniel Dickinson (#5364)
SVN-Revision: 16506
15 years ago
Felix Fietkau a6d8f8be9e firmware-utils: add a small utility for generating nand flash images with ecc info
SVN-Revision: 16458
15 years ago
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
15 years ago
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
15 years ago
Gabor Juhos c8bf295481 build firmware image for the MZK-W300NH board
SVN-Revision: 16342
15 years ago
Gabor Juhos 9221732114 firmware-utils/mkfwimage: add support for RouterStation Pro (patch from Ubiquiti Networks)
SVN-Revision: 16064
15 years ago
Florian Fainelli ac7e89329b fix crc calculation with the new padding (#5143)
SVN-Revision: 15977
15 years ago
Florian Fainelli e5a836693e fix padding between end of the kernel and beginning of the rootfs in imagetag (#5108)
SVN-Revision: 15801
15 years ago
Gabor Juhos 35d1918758 firmware-utils/mkfwimage2: fix a typo
SVN-Revision: 15770
15 years ago
Jo-Philipp Wich 70bf92d03c Generate suitable images for the UBNT PicoStation2
SVN-Revision: 15314
15 years ago
Florian Fainelli 1f334e3caa make images that can be flashed using the stock firmware web interface, thanks to Anselmo Luginbuhl and Daniel Dickinson (#4909, #4943)
SVN-Revision: 15253
15 years ago
Felix Fietkau 34939cad39 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
SVN-Revision: 15242
15 years ago
Florian Fainelli 47387c945a revert changeset 15081 seems to break Alice box devices
SVN-Revision: 15140
15 years ago
Florian Fainelli 11a791a318 compute rootfs crc32 required for brcm63xx web upgrades
SVN-Revision: 15081
15 years ago
Gabor Juhos 406ce1ae5d firmware-utils/mktplinkfw: add support for the TL-WR841ND v3 board
SVN-Revision: 15023
15 years ago
Rod Whitby 34ad500e2c tools/firmware-utils: Added encode_crc, for Freecom devices.
SVN-Revision: 14961
15 years ago
Florian Fainelli ddfb6e1637 cleanup imagetag
SVN-Revision: 14941
15 years ago
Florian Fainelli 1c9c725184 fix a bug which prevented imagetag from correctly initializing the version and magic2, use the broadcom default magics, which allows uploading through web interfaces
SVN-Revision: 14925
15 years ago
Gabor Juhos b4644aedce create firmware image for the Ubiquiti LS-SR71 board
SVN-Revision: 14874
15 years ago
Florian Fainelli 6495fa36ea add support for AGPF-S0 (Pirelli Alice Gate VoIP 2 Plus Wi-Fi) #4366
SVN-Revision: 14850
15 years ago
Florian Fainelli 0e3c23cdb2 allow flash start address and firmware offset to be set on the command line (#4666)
SVN-Revision: 14832
15 years ago
Gabor Juhos 4a518ddf1c firmware-utils: add new firmware generation tool for the TP-LINK TL-WR941ND device
SVN-Revision: 14672
15 years ago
Felix Fietkau 7eb1589875 build system refactoring in preparation for allowing packages to do host-build steps
SVN-Revision: 14610
15 years ago
Gabor Juhos 03f3002a17 firmware-utils/mkplanexfw: new firmware generation tool for the Planex MZK-W04NU device
SVN-Revision: 14410
16 years ago
Gabor Juhos 7fcc18ee99 firmware-utils/mkfwimage: update RouterStation specific values, adn remove some unused code
SVN-Revision: 14404
16 years ago
Gabor Juhos 955c501e9a firmware-utils/mkcasfw: fix magic value of the TN-U200 board
SVN-Revision: 14022
16 years ago
Gabor Juhos 50c19eee3f firmware-utils/mkfwimage: fix root_start values
SVN-Revision: 13874
16 years ago
Gabor Juhos 54b85f55d9 firmware-utils/mkfwimage: fix Ubiquiti firmware generation (closes #4414)
SVN-Revision: 13859
16 years ago
Gabor Juhos 124f0b003a firmware-utils/mkfwimage: add RouterStation support (based on a patch by Jonas <jonas at ubnt.com>)
SVN-Revision: 13682
16 years ago
Gabor Juhos 0b699a76d8 firmware_utils/mkmylofw: add support of named partitions
SVN-Revision: 13253
16 years ago
Gabor Juhos fcd2fe58ea firmware_utils/mkmylofw: add definitions for the NP25G and WPE53G boards
SVN-Revision: 13226
16 years ago
Florian Fainelli bccf525528 Fix small typo #4148
SVN-Revision: 13142
16 years ago
Florian Fainelli 15c130c762 Add makeamitbin to generate images for other RDC-based devices, thanks sn9 !
SVN-Revision: 13056
16 years ago
Gabor Juhos a1f36eaa94 firmware-utils: new firmware generation tool for the WILIGEAR WBD-111
SVN-Revision: 12975
16 years ago