Commit graph

387 commits

Author SHA1 Message Date
Andy Boyett
9638e84966 qemu: add dependency on libuuid
SVN-Revision: 22757
2010-08-22 09:16:49 +00:00
Andy Boyett
6e2f8d7eec qemu: fix build failure on some systems. Closes #7767
SVN-Revision: 22751
2010-08-21 17:02:09 +00:00
Andy Boyett
bb662f4f32 quilt: needs autoconf
SVN-Revision: 22652
2010-08-14 22:58:55 +00:00
Florian Fainelli
4bc034f07c update wrt350nv2 builder to v2.3 (#7580)
SVN-Revision: 22579
2010-08-10 15:19:06 +00:00
Andy Boyett
ff43518669 qemu: build qemu-img for packaging vmdk and vdi images
SVN-Revision: 22552
2010-08-09 04:22:34 +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
Jo-Philipp Wich
f45be33f17 sed: fix compilation on FreeBSD/AMD64
SVN-Revision: 22499
2010-08-06 00:19:34 +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
Alexandros C. Couloumbis
d83a959719 tools/quilt: fix openSUSE/patch-2.6.1.81 issue (closes #7635)
SVN-Revision: 22397
2010-07-27 17:21:30 +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
Jo-Philipp Wich
f8c3ebc7c6 squashfs4: fix compilation on FreeBSD
SVN-Revision: 22347
2010-07-22 03:09:10 +00:00
Jo-Philipp Wich
26a6539a2e yaffs2: fix compilation on FreeBSD
SVN-Revision: 22345
2010-07-22 02:59:14 +00:00
Jo-Philipp Wich
4ad8aa543d mkimage: fix compilation on FreeBSD
SVN-Revision: 22344
2010-07-22 02:43:44 +00:00
Felix Fietkau
67b4181c8a squashfs4: backport an upstream change to fix the file mode check to allow setuid/setgid binaries (thx, ermo) - fixes #7653
SVN-Revision: 22334
2010-07-21 17:31:16 +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
Felix Fietkau
ea5b74da62 mkimage fails to build on some systems if sed is not installed, add a dependency to fix parallel build issues
SVN-Revision: 21210
2010-04-27 21:57:32 +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
Alexandros C. Couloumbis
5134195d40 tools: update gmp to 4.3.2
SVN-Revision: 21147
2010-04-24 20:11:08 +00:00
Alexandros C. Couloumbis
0d36c3fd37 tools: update quilt to 0.48
SVN-Revision: 21146
2010-04-24 19:54:53 +00:00
Alexandros C. Couloumbis
bfe71b159a tools: update cloog to 0.15.9
SVN-Revision: 21071
2010-04-21 17:21:29 +00:00
Florian Fainelli
8ca51dc6f1 fix graphite options with gcc-4.5, add libelf for LTO, fix mbsd_multi patch, patch from Bernhard Loos
SVN-Revision: 21046
2010-04-20 16:18:08 +00:00
Alexandros C. Couloumbis
6d59a298e8 add gcc-4.5.0 preliminary support
SVN-Revision: 21033
2010-04-19 15:43:08 +00:00
Felix Fietkau
01ca56639c mtd-utils: remove bogus include statement to make it more portable
SVN-Revision: 20853
2010-04-14 10:50:33 +00:00
Nicolas Thill
0946764732 remove 'svn:executable' property
SVN-Revision: 20831
2010-04-12 17:08:57 +00:00
Alexandros C. Couloumbis
c2c88d315f add jffs2/lzma support (not activated by default yet)
SVN-Revision: 20828
2010-04-12 13:14:42 +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
Felix Fietkau
b321fe82d3 sstrip: fix a section length corruption bug (patch from #6847)
SVN-Revision: 20154
2010-03-12 00:35:36 +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
Felix Fietkau
fe05a0887b mkimage: fix spurious build errors caused by its braindead build system
SVN-Revision: 20065
2010-03-08 17:17:46 +00:00
Felix Fietkau
9156e19ac0 mtd-utils: do not try to compile in support for ubifs ioctls and extended flags - some linux distros do not support this
SVN-Revision: 19846
2010-02-24 23:02:38 +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
Travis Kemen
3c5ca326ec Update to v2.2 fixed checksum byte calculation for other versions than 0x2019 fixed rare problem with padsize updated info to stock firmware 2.00.20 fixed typos
Signed off by: Matthias Buecher <mail@maddes.net>

SVN-Revision: 19683
2010-02-17 02:18:13 +00:00
Travis Kemen
cb9c37af38 Update to v2.1 Stays closer to the stock firmware by using wrt350n.bin for the created image. Adds the possibility to create the image in two separate steps (-b / -z). Makefiles now support the possibility to include a u-boot image for a 100%-stock-like image.
Signed off by: Matthias Buecher <mail@maddes.net>

SVN-Revision: 19596
2010-02-12 01:40:57 +00:00
Imre Kaloz
7b367d0313 with no users left, remove support for 2.6.21
SVN-Revision: 19578
2010-02-11 08:37:57 +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
Felix Fietkau
393835a5d9 mtd-utils: refresh the cygwin_fixes patch
SVN-Revision: 19159
2010-01-16 00:11:47 +00:00
Felix Fietkau
5c8bfc0c17 mtd-utils: fix compile on mac os x
SVN-Revision: 19158
2010-01-16 00:11:43 +00:00
Felix Fietkau
f7c4735a19 libuuid: only build the static variant - fixes compile on mac os x
SVN-Revision: 19157
2010-01-16 00:11:38 +00:00
Lars-Peter Clausen
5f84b8a838 mtd-utils depends on libuuid
SVN-Revision: 19117
2010-01-13 13:14:35 +00:00
Lars-Peter Clausen
5cc66964c1 Fix libuuid header location and reenable building of mkfs.ubifs
SVN-Revision: 19113
2010-01-13 05:21:50 +00:00
Lars-Peter Clausen
46efcd60eb mtd-utils: Don't include lzo headers aswell...
SVN-Revision: 19107
2010-01-11 16:15:52 +00:00
Florian Fainelli
bcdfe67a13 do not build nor install mkfs.ubifs until we have it fixed (#6483)
SVN-Revision: 19106
2010-01-11 15:40:45 +00:00
Lars-Peter Clausen
fb86cd6dcc Add libuuid Makefile. Oops...
SVN-Revision: 19105
2010-01-11 11:18:26 +00:00
Lars-Peter Clausen
f26aa5f82a mtd-utils: Disable lzo for mkfs.ubifs
SVN-Revision: 19104
2010-01-11 11:04:30 +00:00
Lars-Peter Clausen
2ee3073b70 Add libuuid hosttool package. It's needed in order to build mkfs.ubifs
SVN-Revision: 19103
2010-01-11 11:02:54 +00:00
Lars-Peter Clausen
5ec88a4a15 mtd-utils: Build mkfs.ubifs
SVN-Revision: 19096
2010-01-11 01:04:15 +00:00
Felix Fietkau
43d56d9b56 mkimage: fix compile errors on non-glibc systems
SVN-Revision: 19095
2010-01-10 18:42:12 +00:00
Imre Kaloz
f8a49928e5 upgrade and build from the u-boot source
SVN-Revision: 19091
2010-01-10 15:57:43 +00:00
Nicolas Thill
02b4c152e2 mpfr: add missing MD5SUM
SVN-Revision: 19060
2010-01-07 02:07:51 +00:00
Florian Fainelli
1c50561480 make mtd-utils compile correctly on cygwin
SVN-Revision: 19039
2010-01-05 11:06:16 +00:00
Imre Kaloz
29a020ffb3 remove handling of older unsupported kernels
SVN-Revision: 18955
2009-12-27 21:54:09 +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
Felix Fietkau
79cdfd5456 wrt350nv2-builder: increase path limit from 64 bytes to 256 bytes, as 64 bytes may not be enough. suggested by maddes
SVN-Revision: 18794
2009-12-16 13:47:47 +00:00
Felix Fietkau
3fcaccd9b3 add a hacked up version of upslug2 which is able to flash a wrt350nv2 in recovery mode
SVN-Revision: 18765
2009-12-12 02:00:50 +00:00
Felix Fietkau
2820f3cbd3 wrt350nv2-builder: fix a small off-by-one error (thx, mb)
SVN-Revision: 18764
2009-12-12 01:01:42 +00:00
Felix Fietkau
54f40f36f7 fix portability issues and other minor bugs in the wrt350nv2 image builder
SVN-Revision: 18762
2009-12-12 00:44:15 +00:00
Felix Fietkau
a5e97547c6 add wrt350n v2 image building code from #5970 (thx, maddes)
SVN-Revision: 18761
2009-12-12 00:44:03 +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
32e3529836 tools: build old squashfs tools for ar71xx
SVN-Revision: 18596
2009-11-29 09:33:50 +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
Florian Fainelli
9f15eecf64 update automake to 1.10, fixes #6022
SVN-Revision: 18527
2009-11-24 21:17:20 +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
Felix Fietkau
73384dd1ff mklibs: fix missing __pack_f symbol in uclibc after relink
SVN-Revision: 18438
2009-11-17 04:36:07 +00:00
Imre Kaloz
f87c3cbb3a make the lzma version kernel version dependent, and only build the one we do need
SVN-Revision: 18426
2009-11-15 20:25:29 +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
Felix Fietkau
3a5deae00d gcc: add a config option for using the gcc graphite framework (disabled by default)
SVN-Revision: 18403
2009-11-12 13:42:07 +00:00
Imre Kaloz
cc222ce56d powerpc: use the in-kernel dtc compiler
SVN-Revision: 18374
2009-11-11 13:44:12 +00:00
Felix Fietkau
bfba89123b Don't build gmp and mpfr when using external toolchains (based on patch from #6035)
SVN-Revision: 18310
2009-11-05 11:16:20 +00:00
Felix Fietkau
c79b439709 squashfs4: use our lzma props settings again instead of the defaults (smaller images on arm/mips)
SVN-Revision: 18273
2009-11-02 14:52:15 +00:00
Felix Fietkau
2ecc782491 squashfs4: refresh the cygwin patch
SVN-Revision: 18272
2009-11-02 14:52:09 +00:00
Felix Fietkau
6b09768275 squashfs4: fix build breakage
SVN-Revision: 18271
2009-11-02 14:52:03 +00:00
Imre Kaloz
4364bc210e sync mksquashfs4 with the CVS code to generate LZMA images
SVN-Revision: 18268
2009-11-02 09:52:54 +00:00
Felix Fietkau
22523c204a add cloog and ppl to the tools build for the graphite framework in gcc 4.4
SVN-Revision: 18264
2009-11-02 00:47:21 +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
28d3db089d mklibs: use -Wl,--gc-sections when relinking - currently only saves a few bytes, maybe more in the future
SVN-Revision: 18123
2009-10-22 16:54:18 +00:00
Felix Fietkau
6f52504a97 mklibs: preserve the uclibc init symbol
SVN-Revision: 18085
2009-10-19 23:26:05 +00:00
Felix Fietkau
57d29edb07 mklibs: handle duplicate symbols properly
SVN-Revision: 18084
2009-10-19 23:26:00 +00:00
Felix Fietkau
eeadbde8ea mklibs: fix crashes on nonexistant sections in readelf (thx, justus)
SVN-Revision: 18083
2009-10-19 23:25:42 +00:00