Commit Graph

251 Commits (699c5518e83957852db81f70de0e162007225b4b)

Author SHA1 Message Date
Michael Büsch ef67285052 Zcomax device firmware tool endianness fix
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22885 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-04 05:40:56 +00:00
Gabor Juhos 42a913f817 tools/firmware-utils: new tool for the Zcomax devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22883 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-03 18:14:40 +00:00
Hauke Mehrtens c9d8571734 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.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22516 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-06 20:21:32 +00:00
Hauke Mehrtens 43aabdf185 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)


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22418 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-30 21:19:49 +00:00
Michael Büsch ff71f10390 firmware-utils/trx: Endianness fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22414 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-29 18:14:10 +00:00
Hauke Mehrtens 4dbe40188f firmware-utils: The option -F was not detected.
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
2010-07-27 18:16:32 +00:00
Markus Wigge 520b6d0ce0 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.



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22396 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-27 15:37:37 +00:00
Gabor Juhos 61c81bfbe9 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>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22169 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-13 16:51:59 +00:00
Gabor Juhos b76444287b firmware-utils/mktplinkfw: add support for the TL-WA901ND
Patch-by: Pieter "Fate" Hollants <pieter@hollants.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22015 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-01 14:49:04 +00:00
Markus Wigge 785ebf7bf3 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



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22012 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-01 10:40:22 +00:00
Markus Wigge 54ffe62ded fixed trx version to handling
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
2010-06-28 17:35:20 +00:00
Florian Fainelli e2ca235a69 [tools] remove whitespaces in imagetag tool
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21848 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-20 11:58:40 +00:00
Florian Fainelli fa8999e464 Revert r21806 there are no users of it yet
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21808 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-14 21:49:03 +00:00
Florian Fainelli b39b1b61a9 [tools] add hcsmakeimage, for cable modems/routers based on bcm33xx
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21806 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-14 21:47:21 +00:00
Florian Fainelli 0be9ece4bc [tools] fix mktitanimg segfault on 64-bits hosts (#7443)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21767 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-12 18:10:01 +00:00
Florian Fainelli efe0f8bd76 [tools] add mktitanimg to create Titan (AR7-based) images (#6632)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21689 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-06 19:16:43 +00:00
Felix Fietkau 55de6aeeb9 get rid of CRLF encoding in various files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21462 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-16 00:20:17 +00:00
Gabor Juhos 2923f9f5a6 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>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21446 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-14 09:20:36 +00:00
Gabor Juhos 3574cdbc0a 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>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21445 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-14 09:20:34 +00:00
Gabor Juhos ff8218d3a3 tools/firmware-utils: add size check to the mkplanexfw tool
Also pad the image to a 64K boundary.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21174 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-26 18:28:07 +00:00
Nicolas Thill f46b3d70d3 [cleanup] remove 'svn:executable' property
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20831 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-12 17:08:57 +00:00
Florian Fainelli 9b32abb33e [brcm63xx] 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.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20652 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-01 21:20:43 +00:00
Florian Fainelli dc3662326e [brcm63xx] move bcm_tag.h out of the flashmap patch so that user-land tools can re-use it
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20548 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-28 18:11:06 +00:00
Gabor Juhos 567def1d7f firmware-utils/trx: add relative offset parameter
* 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
2010-03-27 17:38:26 +00:00
Florian Fainelli b92d712175 [tools] revert r18760 since it prevents people from building working eva images
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20437 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-26 10:12:30 +00:00
Markus Wigge 6af0d9e549 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.



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20433 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-25 19:34:49 +00:00
Florian Fainelli 878447cc75 [tools] fix file creation mode, thanks rtz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20293 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-18 23:35:12 +00:00
Gabor Juhos 991cc2f274 mktplinkfw: add option to strip padding from the end of the image
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20120 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-10 17:41:50 +00:00
Gabor Juhos be8c626c20 mktplinkfw: fix help string, and remove duplicated option
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20067 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-08 17:35:07 +00:00
Gabor Juhos 7419011330 firmware-utils/mktplinkfw: add board definitions for TL-WR941ND v4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19748 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-19 11:52:30 +00:00
Jo-Philipp Wich ea35e3e4c9 [tools] firmware-utils: unify cc and cc2 macros, simplifies Makefile
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19487 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-01 01:56:02 +00:00
Jo-Philipp Wich e402bf7a8e [tools] firmware-utils: copy bcm_tag.h to src/ and get rid of cc3 macro, fixes imagetag compilation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19485 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-01 01:17:46 +00:00
Gabor Juhos e80ae1b19a ar71xx: add support for the TL-WR841N v1.5 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18893 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-22 19:31:28 +00:00
Michael Büsch 25c6342957 lzma2eva: Endianness fixes.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18760 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-11 23:50:51 +00:00
Gabor Juhos 9828d89496 ar71xx: TL-WR1043ND support cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18697 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-08 12:46:30 +00:00
Gabor Juhos 00c14fd865 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>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18696 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-08 12:46:25 +00:00
Gabor Juhos 1c396a22fd ar71xx: create images for the WNDR3700, which can be flashed via the factory web interface
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18571 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-28 09:28:25 +00:00
Gabor Juhos b601f71cb5 firmware-utils: add WNDR3700 image fixing tool (thanks to Anael Orlinski)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18569 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-28 08:25:53 +00:00
Felix Fietkau 65859fa5d9 mkfwimage: add support for the XM layout (bullet/rocket/nano M)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18448 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-18 18:10:24 +00:00
Gabor Juhos e8da3793a2 ar71xx: increase max size of RouterStation and RouterStation Pro firmware images
Thanks to riskable! (closes #5860)


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18410 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-11-13 17:11:23 +00:00
Gabor Juhos b6318c8ae6 ar71xx: add preliminary support for the TL-WR841ND v5 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18226 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-30 12:26:25 +00:00
Felix Fietkau a76fe21fd2 firmware-utils: raise the default trx image size limit for something more appropriate for devices with 8M flash
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17537 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-07 13:55:02 +00:00
Florian Fainelli 1c49507d80 [brcm63xx] add support for the Pirelli AG226G board (#5337)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17190 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-09 10:19:47 +00:00
Gabor Juhos 89839845e0 [tools] firmware-utils/addpattern: add support for the WRT160NL
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17140 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-06 09:15:05 +00:00
Gabor Juhos 31083d5f9e [tools] firmware-utils: add new tool for the wrt400n (based on a patch by Sandeep Mistry <sandeep.mistry at gmail.com>)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16792 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-12 08:59:18 +00:00
Gabor Juhos 346ca391ed [ar71xx] increase size of the kernel partition on the TL-WR[789]41N boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16785 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-11 17:20:46 +00:00
Gabor Juhos e111b2d68b [tools] firmware-utils/mktplinkfw: add option for combined images
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16742 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-08 08:17:26 +00:00
Gabor Juhos 754e89b442 [tools] firmware-utils/mktplinkfw: add board definitions for TL-WR741ND v1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16740 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-07 19:45:33 +00:00
Florian Fainelli 7d7ed4e8a3 [tools] fix segfault when using the maxlen argument (#4359)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16641 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-01 14:58:15 +00:00
Gabor Juhos c328f90581 [tools] firmware-utils: add a tool to compute crc value for the 5gxi firmware
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16557 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-25 09:41:06 +00:00
Gabor Juhos 9a2d1d7128 [tools] firmware-utils/mkcsysimg: minor bugfix
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16556 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-25 09:39:30 +00:00
Gabor Juhos 33cd0e99eb [tools] firmware-utils/mkcsysimg: add signature for the 5GXi board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16551 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-24 16:44:30 +00:00
Gabor Juhos 4240b7c838 [tools] firmware-utils: add a file {en,de}cryption tool, based on the PC1 encryption algrithm
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16550 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-24 16:35:38 +00:00
Florian Fainelli e951c62e47 [brcm63xx] add imagetag support for BT Voyager 2500V, patch from Daniel Dickinson (#5364)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16506 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-18 15:00:32 +00:00
Felix Fietkau 157a4ab646 firmware-utils: add a small utility for generating nand flash images with ecc info
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16458 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-14 20:42:28 +00:00
Florian Fainelli 2670ed1229 The attached patch adds building of firmware
images for more routers based on the brcm63xx chipset.

Signed-Off By: Daniel Dickinson <crazycshore@gmail.com>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16396 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-10 08:24:13 +00:00
Florian Fainelli 3339e02ed8 [brcm63xx] 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).


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16393 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-09 08:04:52 +00:00
Gabor Juhos 988e7d96da [ar71xx] build firmware image for the MZK-W300NH board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16342 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-04 19:14:46 +00:00
Gabor Juhos e35ee94c74 [tools] firmware-utils/mkfwimage: add support for RouterStation Pro (patch from Ubiquiti Networks)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16064 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-25 17:18:21 +00:00
Florian Fainelli 8e8024fce2 [tools] fix crc calculation with the new padding (#5143)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15977 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-22 07:49:23 +00:00
Florian Fainelli bd03626da3 [tools] fix padding between end of the kernel and beginning of the rootfs in imagetag (#5108)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15801 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-12 13:20:36 +00:00
Gabor Juhos cdce1e17d7 [tools] firmware-utils/mkfwimage2: fix a typo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15770 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-11 14:51:56 +00:00
Jo-Philipp Wich 3c7b1324a5 [atheros] Generate suitable images for the UBNT PicoStation2
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15314 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-21 01:16:34 +00:00
Florian Fainelli fb6c465ea7 [brcm63xx] make images that can be flashed using the stock firmware web interface, thanks to Anselmo Luginbuhl and Daniel Dickinson (#4909, #4943)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15253 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-19 13:18:48 +00:00
Felix Fietkau 5bdd866100 get rid of $Id$ - it has never helped us and it has broken too many patches ;)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15242 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-17 14:09:46 +00:00
Florian Fainelli c0e3ae80b5 [tools] revert changeset 15081 seems to break Alice box devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15140 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-07 15:14:40 +00:00
Florian Fainelli 1e9385317f [tools] compute rootfs crc32 required for brcm63xx web upgrades
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15081 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-02 09:57:00 +00:00
Gabor Juhos c25ff213db [tools] firmware-utils/mktplinkfw: add support for the TL-WR841ND v3 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15023 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-24 16:08:07 +00:00
Rod Whitby 627802ff62 tools/firmware-utils: Added encode_crc, for Freecom devices.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14961 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-22 11:39:32 +00:00
Florian Fainelli bc2824ec3d [tools] cleanup imagetag
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14941 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-18 17:18:25 +00:00
Florian Fainelli 187b0d99d1 [tools] fix a bug which prevented imagetag from correctly initializing the version and magic2, use the broadcom default magics, which allows uploading through web interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14925 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-17 19:05:09 +00:00
Gabor Juhos c77724d127 [ar71xx] create firmware image for the Ubiquiti LS-SR71 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14874 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-14 13:25:49 +00:00
Florian Fainelli 4750ec9396 [brcm63xx] add support for AGPF-S0 (Pirelli Alice Gate VoIP 2 Plus Wi-Fi) #4366
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14850 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-12 08:54:04 +00:00
Florian Fainelli eb0eee587f [tools] allow flash start address and firmware offset to be set on the command line (#4666)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14832 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-10 09:18:47 +00:00
Gabor Juhos a51f29fd74 [tools] firmware-utils: add new firmware generation tool for the TP-LINK TL-WR941ND device
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14672 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-26 16:59:15 +00:00
Felix Fietkau b892e1fb85 build system refactoring in preparation for allowing packages to do host-build steps
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14610 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-22 04:37:20 +00:00
Gabor Juhos 769e8639c4 [tools] firmware-utils/mkplanexfw: new firmware generation tool for the Planex MZK-W04NU device
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14410 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-04 21:09:06 +00:00
Gabor Juhos 5702336049 [tools] firmware-utils/mkfwimage: update RouterStation specific values, adn remove some unused code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14404 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-04 08:13:58 +00:00
Gabor Juhos 3b1eeb4baf [tools] firmware-utils/mkcasfw: fix magic value of the TN-U200 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14022 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-13 10:18:13 +00:00
Gabor Juhos 22281a9146 [tools] firmware-utils/mkfwimage: fix root_start values
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13874 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-05 12:35:51 +00:00
Gabor Juhos 2289835e41 [tools] firmware-utils/mkfwimage: fix Ubiquiti firmware generation (closes #4414)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13859 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-04 18:42:46 +00:00
Gabor Juhos c2c9472aa6 [tools] firmware-utils/mkfwimage: add RouterStation support (based on a patch by Jonas <jonas at ubnt.com>)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13682 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-18 13:31:59 +00:00
Gabor Juhos 32a99ae3df [tools] firmware_utils/mkmylofw: add support of named partitions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13253 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-17 07:45:01 +00:00
Gabor Juhos e920e4f778 [tools] firmware_utils/mkmylofw: add definitions for the NP25G and WPE53G boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13226 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-16 07:49:27 +00:00
Florian Fainelli fb11dfd1e5 Fix small typo #4148
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13142 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-08 18:03:09 +00:00
Florian Fainelli 0feb20763b Add makeamitbin to generate images for other RDC-based devices, thanks sn9 !
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13056 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-28 16:26:42 +00:00
Gabor Juhos 312f012530 [tools] firmware-utils: new firmware generation tool for the WILIGEAR WBD-111
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12975 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-13 17:17:19 +00:00
Felix Fietkau 0524ab8590 firmware-utils: when using open with O_CREAT and O_WRONLY, also use O_TRUNC to ensure that overwritten files have the right size (fixes #3505)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12667 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-23 16:12:40 +00:00
Gabor Juhos 9f40ecda1f [tools] firmware-utils/mkmylofw: WP543 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12552 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-09-08 12:39:33 +00:00
Travis Kemen b1e275317b fix mkfwimage to recognize the -s option
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11978 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-28 20:48:06 +00:00
Felix Fietkau 9d5f9a0e4e fix mkfwimage build on mac os x
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11947 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-26 20:27:03 +00:00
Travis Kemen 0ead72668a Use mkfwimage from athero.openwrt.net with modification for XS2 devices. Add back in ubiquiti image generation.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11920 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-25 03:55:21 +00:00
Imre Kaloz 28b170883b replacement of the add_header utility used by various vendors
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11588 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-27 12:18:31 +00:00
Gabor Juhos 187d527e9f [tools] firmware-utils/mkzynfs: even more improvements
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11559 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-22 19:02:42 +00:00
Gabor Juhos cfb8d79abd [tools] firmware-utils: ZyXEL firmware tool improvements
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11550 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-22 05:41:37 +00:00
Gabor Juhos efe4d40c93 [tools] firmware-utils/mkcasfw: add model id for Ovislink WL-5420/5460 IP cameras
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11527 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-06-17 15:05:53 +00:00
Felix Fietkau c097f77d51 bcm963xx: add cfe image tagging utility
This replaces the proprietary bcmImageBuilder program from the Broadcom source
drops. It basically adds a 256 bytes header in front of the kernel + rootfs
which contains a few text signatures, the locations of the data as well as the
checksums of the data and the tag. It also adds a 12 bytes header in front of
the LZMA kernel which contains the load address, kernel entry and the size of
the compressed LZMA data.

Signed-off-by: Axel Gembe <ago@bastart.eu.org>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11170 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-18 17:29:51 +00:00
Gabor Juhos f1b4cfe421 [firmware-utils] mkzynfw: add definitions for the P-2602HW-D1A
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11096 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-09 08:19:30 +00:00
Gabor Juhos f39858975e [firmware-utils] mkzynfw: fix NBG-318S definitions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11095 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-09 07:53:24 +00:00
Travis Kemen a91bb11f6a buld images for the Ubiquiti LiteStation and NanoStation ported from http://atheros.openwrt.net. Tested on a Nanostation 2 with airos 3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11061 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-07 23:47:17 +00:00
Florian Fainelli b43169c8a5 Create a dummy sit package for 2.4 kernelsq
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10668 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-03-27 15:44:14 +00:00
Florian Fainelli 838b5385e4 Add definitions for the Zyxel NBG-318S
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10662 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-03-26 13:34:29 +00:00
Matteo Croce 3419049abe Add AG241 code pattern (fixes #1089)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10584 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-03-11 00:45:22 +00:00
Gabor Juhos a342adc51e [tools] firmware-utils: new firmware generation tool for the Cellvision CAS-6xx/NFS-xxx devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10306 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-29 08:31:54 +00:00
Gabor Juhos 73e5afb5a1 [tools] firmware-utils/mkzynfw: remove 'svn:executable' property (closes #3082)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10258 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-25 19:05:51 +00:00
Gabor Juhos 7e243160bf [tools] firmware-utils/mkzynfw: add preliminary support for OEM boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10243 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-25 08:19:31 +00:00
Gabor Juhos c240c20361 [tools] firmware-utils:fix a bug in mkzynfw, thanks to <theosch at gmx.de> (closes #3003)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10218 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-01-17 14:46:10 +00:00
Florian Fainelli 643ab9877c Add support for Conceptronic C54BSR4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10002 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-28 17:48:39 +00:00
Felix Fietkau 17391bc30b Use $(CP) instead of $(INSTALL_BIN) for binaries.
Signed-off-by: Andy Boyett <agb-openwrt@padded-cell.net>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9694 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-09 18:53:06 +00:00
Gabor Juhos eccd445e74 [firmware-utils] fix some definitions in the ZyXEL tool
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9493 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-03 17:00:57 +00:00
Gabor Juhos 1de1dd52e3 [adm5120] image generation fixes (closes: #2643, #2644)
* rewrite mkcsysimg to use an align parameter instead of a fixed size
 * Edimax images contains the jffs2 end-of-filesystem marker at the right position from now on


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9490 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-03 14:53:24 +00:00
Felix Fietkau 1cca4d630c add updated motorola-bin.c file from #2483 (by D. Hugh Redelmeier)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9434 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-24 18:06:24 +00:00
Eugene Konev 6427bfebf0 ar7: add eva image generation (thanks Axel Gembe)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9401 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-22 14:20:02 +00:00
Gabor Juhos ffee907666 [adm5120] add ids for Edimax BR-6104Wg boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9342 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-10-18 07:40:01 +00:00
Florian Fainelli 311a6b12e0 Add the ralink signature, will use it later
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8702 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-09 10:34:53 +00:00
Gabor Juhos 3c96096c63 I have new e-mail address. Thanks to Kaloz ;)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8538 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-29 17:27:11 +00:00
Felix Fietkau d10a56dc58 build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8362 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-07 00:04:25 +00:00
Gabor Juhos 8858dec6c0 remove case sensitivity from the board name checking
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8352 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-06 17:38:40 +00:00
Florian Fainelli fdb3b8946c Fix the jffs2 images with rdc devices (thanks to Daniel Gimpelevich)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8329 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-03 08:06:06 +00:00
Gabor Juhos 20fc312ae9 add firmware generation tool for ZyXEL boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8318 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-08-02 19:05:28 +00:00
Hamish Guthrie d69aa84e30 Remove a debug statement from trx.c, add config changes for at91
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7491 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-04 17:39:38 +00:00
Hamish Guthrie 3e03b74269 Fixed trx - variable append used uninitialised. If -A option was not
used, the first offset was not written to the .trx file.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7400 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-30 10:49:46 +00:00
Florian Fainelli 395e6dee3b mkcsysimg cleanups
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7392 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-30 10:05:27 +00:00
Felix Fietkau 5621f1bc2c fix x86 boot filesystem allocation (#1736)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7312 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-23 18:15:11 +00:00
Felix Fietkau e82efeea82 Fix broadcom squashfs images:
We switched over to appending the jffs2 eof mark to the squashfs images, 
but since the squashfs is not always aligned to eraseblocksize, the eof
mark landed in the wrong place. This commit adds an extra flag to the
trx utility that can append extra data to a partition with alignment.
This is used to place the jffs2 eof mark at the right offset.



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7253 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-15 18:41:48 +00:00
Florian Fainelli 6b2a60df0b Fix 32/64bits issues with airlink image generator
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7189 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-11 18:22:22 +00:00
Mike Baker 789da13432 host-build.mk used incorrectly
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7156 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-05-10 07:02:04 +00:00
Florian Fainelli 7a2d3e8ee2 Fix airlink image generation tool
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6913 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-09 08:30:06 +00:00
Florian Fainelli 79f2817fa8 mkcsysimg typos
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6853 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-03 19:55:10 +00:00
Florian Fainelli 30a4001aa4 Remove useless mksyshdr utility, replaced by mkcsysimg, Edimax images are no longer broken, and have been tested
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6847 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-03 09:50:17 +00:00
Florian Fainelli 5218d952cd Add ADM5120 based edimax image generation utilities
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6840 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-02 17:10:48 +00:00
Florian Fainelli a9ebb0fabc Make airlink.c more endianness robus (sn9)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6834 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-02 16:05:40 +00:00
Felix Fietkau 3eb9df8af2 convert from dos to unix format
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6791 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-01 14:06:59 +00:00
Florian Fainelli 7d17ba2f44 Fix image generation (sn9)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6781 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-04-01 11:08:26 +00:00
Florian Fainelli 73baaa6b6a Fix a typo
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6771 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-31 09:09:02 +00:00
Florian Fainelli bee15dddc8 fix crc32 and endianness, thanks sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6769 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-31 08:59:51 +00:00
Florian Fainelli 06280df79a airlink generation fix, thanks st9_
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6764 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-30 21:51:48 +00:00
Florian Fainelli e8de0d65c3 Fix mkmylofw write_out_padding routine
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6758 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-29 22:20:21 +00:00
Florian Fainelli 640ac733da Add definitions to myloader thanks Gabor Juhos
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6710 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-26 07:31:28 +00:00
Florian Fainelli c93d58f908 Fix potential unligned access with MyLoader based devices, thanks Juhos
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6659 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-24 10:22:53 +00:00
Florian Fainelli 3f117aead5 Make mksyshdr safe for 64bits platforms (#1504)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6646 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-23 12:50:43 +00:00
Florian Fainelli 20cf5f8f68 Add firmware generation for other Compex boards based on myloader, thanks to Juhos Gabor !
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6640 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-22 21:36:15 +00:00
Florian Fainelli 9881eea43e Add image generation for edimax routers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6627 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-21 15:04:07 +00:00
Florian Fainelli c7c677d4a7 Fix a warning
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6602 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-18 13:06:33 +00:00
Eugene Konev 61dfb5041b Add srec2bin to firmware-utils
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6599 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-18 09:33:39 +00:00
Felix Fietkau e3b8c1fa59 make ptgen print the end offset of the last partition as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6358 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-02-25 17:58:54 +00:00
Felix Fietkau ccc7465f7a fix cylinder rounding in ptgen
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6352 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-02-24 20:20:57 +00:00
Felix Fietkau a7396ee5de fix compile error (pointed out by nonsequitor)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5772 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-12-12 16:57:16 +00:00
Florian Fainelli 4145f16872 Add airlink firmware generation tool, thanks to Vassily Galinsky for that !
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5760 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-12-11 17:49:05 +00:00
Felix Fietkau 3115db47d4 remove custom partition table hack, add ptgen utility for generating partition tables
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5704 3c298f89-4303-0410-b956-a3cf2f4a3e73
2006-12-07 00:26:26 +00:00