summaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-17 19:05:09 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-03-17 19:05:09 +0000
commit9f0874620dc8b8675cd6bc8a0b2c550d67603db9 (patch)
treeb24105cab67e47e8e0895e1ab099f97a5e3e72eb /tools/firmware-utils
parent114410cc27fd0518e32e294c21f96cfc590cdbf8 (diff)
[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
Diffstat (limited to 'tools/firmware-utils')
-rw-r--r--tools/firmware-utils/src/imagetag.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/firmware-utils/src/imagetag.c b/tools/firmware-utils/src/imagetag.c
index b50ee2edd..f04f662c6 100644
--- a/tools/firmware-utils/src/imagetag.c
+++ b/tools/firmware-utils/src/imagetag.c
@@ -15,8 +15,8 @@
#include <sys/stat.h>
#include <netinet/in.h>
-#define IMAGETAG_MAGIC1 "OpenWRT BCM963xx"
-#define IMAGETAG_MAGIC2 "V1"
+#define IMAGETAG_MAGIC1 "Broadcom Corporatio"
+#define IMAGETAG_MAGIC2 "ver. 2.0"
#define IMAGETAG_VER "6"
#define IMAGETAG_DEFAULT_LOADADDR 0x80010000
#define IMAGETAG_CRC_START 0xFFFFFFFF
@@ -239,7 +239,7 @@ int tagfile(const char *kernel, const char *rootfs, const char *bin,
int main(int argc, char **argv)
{
int c;
- char *kernel, *rootfs, *bin, *boardid, *chipid, *magic2, *ver;
+ char *kernel, *rootfs, *bin, *boardid, *chipid, *magic2 = NULL, *ver = NULL;
uint32_t flashstart, fwoffset, loadaddr, entry;
uint32_t fwaddr, flash_bs;