Commit Graph

51 Commits (b6abb59975f49cb442b6e7b18c319631ac4f5b6c)

Author SHA1 Message Date
Rafał Miłecki 92ebd6fdbe brcm47xx: image: fix typo in Asus WL-500gP v2 fw file name
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45811
9 years ago
Rafał Miłecki 69aefc771f brcm47xx: build images for Asus devices
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45789
9 years ago
Jo-Philipp Wich 048f46a075 brcm47xx: use common image prefix
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 45779
9 years ago
Rafał Miłecki f08a10f2b9 brcm47xx: build image for Asus RT-N66U
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45774
9 years ago
Rafał Miłecki c6f9582116 brcm47xx: image: use "-" separator for device version
This makes legacy subtarget follow two other.

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

SVN-Revision: 45319
9 years ago
Rafał Miłecki 80971cd0f9 brcm47xx: image: use new (& fixed) FILESYSTEM variable for trx command
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45313
9 years ago
Rafał Miłecki 090a510576 brcm47xx: image: convert legacy Linksys & Netgear devices
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45184
9 years ago
Rafał Miłecki 4faba3cc2e brcm47xx: image: convert generic subtarget to the new images system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45183
9 years ago
Rafał Miłecki 3d481d31ed brcm47xx: image: convert all mips74k images to the new building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45181
9 years ago
Rafał Miłecki 184c0af4e2 brcm47xx: image: add helpers for defining devices
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45180
9 years ago
Rafał Miłecki 6c1852cb26 brcm47xx: image: use standard KERNEL_IMAGE to avoid warnings
KERNEL_IMAGE is used as target rule so reusing the same name causes:
Makefile:326: warning: overriding recipe for target `bin/brcm47xx/vmlinux.lzma'
Makefile:326: warning: ignoring old recipe for target `bin/brcm47xx/vmlinux.lzma'
Makefile:326: warning: overriding recipe for target `build_dir/target-mipsel_74kc+dsp2_uClibc-0.9.33.2/linux-brcm47xx_mips74k/vmlinux.lzma'
Makefile:326: warning: ignoring old recipe for target `build_dir/target-mipsel_74kc+dsp2_uClibc-0.9.33.2/linux-brcm47xx_mips74k/vmlinux.lzma'

Unfortunately this will cause copying vmlinux.lzma over and over like:
cp vmlinux.lzma FOO-kernel.bin
which is redundant on brcm47xx where we never modify kernel image.

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

SVN-Revision: 45178
9 years ago
Rafał Miłecki 463a449f84 brcm47xx: update Linksys firmwares (add new E2500 versions)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45173
9 years ago
Rafał Miłecki 1751676c8b brcm47xx: convert Netgear WNDR3700 V3 to the new image building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45144
9 years ago
Rafał Miłecki 8e4b74b9fe brcm47xx: convert Linksys E1200 V2 to the new image building system
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45143
9 years ago
Rafał Miłecki 1020b84266 brcm47xx: add early support for WNDR3400 V3
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43532
10 years ago
Rafał Miłecki c84fe94b0d brcm47xx: add support for Netgear WGR614 V10
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43336
10 years ago
Rafał Miłecki 746b80f166 brcm47xx: image: create initramfs TRX nodictionary images
Signed-off-by: Stephen Parry <sgparry@mainscreen.com>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 42889
10 years ago
Hauke Mehrtens 09739f8ba5 brcm47xx: image: build alternative TRX using less optimized LZMA
There is a group of devices that lzma-loader doesn't work with. They
simply hang at "Starting program at 0x80001000" which is really hard to
debug and we didn't find any solution for this for years.

Broadcom doesn't use lzma-loader on these devices anyway. They decided
to drop lzma-loader and use less optimal LZMA compression that can be
handled by CFE itself (it doesn't use dictionary).

So support these devices we will need kernel compressed with different
parameters and trx without a loader.

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

SVN-Revision: 42205
10 years ago
Hauke Mehrtens ba0b904d0b brcm47xx: image: update list of Netgear WNR* firmwares
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 42165
10 years ago
Hauke Mehrtens 4632347879 brcm47xx: remove unneeded images from generic target
broadcom-wl now builds in the mips74k profile, so remove these chips
from the generic profile.

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

SVN-Revision: 41546
10 years ago
Hauke Mehrtens 3597b7d456 brcm47xx: image: legacy: take over old devices images
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 41530
10 years ago
Hauke Mehrtens 0eb3c26e7d brcm47xx: image: mips74k: take over some device images
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41529
10 years ago
Hauke Mehrtens c3b3df1da8 brcm47xx: image: prepare for using mips74k subtarget
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 41528
10 years ago
Hauke Mehrtens b5d42bc111 brcm47xx: move current target to "generic" subtarget
This allows creating more subtargets and optimize builds per family.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41024
10 years ago
Hauke Mehrtens 1d878cabf2 brcm47xx: image: respect device flash block size
We should be more careful and don't generate 128K JFFS2 images for
devices with flashes using 64K blocks (nor the other way).

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

SVN-Revision: 40762
10 years ago
Hauke Mehrtens 4cd010a712 brcm47xx: image: document some defines arguments
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 40761
10 years ago
Hauke Mehrtens c78e4fb220 brcm47xx: Add support for Huawei E970
This patch adds support for Huawei E970 wireless gateway devices.
It has been tested on an E970 labelled as T-Mobile web'n'walk Box IV.
E960/B970 should work too, from what I know it's basically the same hardware.

The device has a Broadcom BCM5354 SoC and a built-in 3G USB modem.

It uses a hardware watchdog which needs GPIO-7 to be toggled at least
every 1-2 seconds. This patch uses gpio_wdt module (see my previous
patch today) to take care of this.

Tested and works:  3G wan,  wlan+LED,  VLAN config,  failsafe using reset
button,   image to be used for upgrade from OEM firmware's web interface

Link to the wiki page I've created:  <http://wiki.openwrt.org/toh/huawei/e970>

Issue:

* lzma-loader crashes, so gzipped kernel is used. Presumably due to watchdog
  reset during kernel decompress.

Signed-off-by: Mathias Adam <m.adam--openwrt@adamis.de>

SVN-Revision: 38011
11 years ago
Florian Fainelli 6a4f2922f6 targets: prepare for supporting normal and initramfs images
In order to support both normal images and initramfs, ensure that each
target sets KERNELNAME properly so that the generic kernel building code
can copy the corresponding files over $(KDIR) with the appropriate
extension. Update the various paths to the kernel and wrapper images
from $(LINUX_DIR)/arch/$(ARCH)/boot/$(foo) to $(KDIR)/$(foo).

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

SVN-Revision: 37049
11 years ago
Hauke Mehrtens ca7f9638d5 broadcom-diag: support for the WNDR3700v3
I recently picked up a WNDR3700 to put OpenWRT on, and only after tearing into the box did I find it
was one of the v3 boards, with poor OpenWRT support. This patch should add the board detection and
LED/button control to the broadcom-diag module, and should generate a netgear .chk image that the
bootloader and stock firmware will accept.

The changes to the broadcom-diag module are more than a few lines because the WNDR3700v3 is driving
its LEDs through an HC164 8-bit shift register.

Signed-off-by: Owen Kirby <osk@exegin.com>

SVN-Revision: 36482
11 years ago
Hauke Mehrtens 98ef9e5411 brcm47xx: generate images for Linksys E.... models
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 36139
11 years ago
Hauke Mehrtens 31c9452120 brcm47xx: activate image generation for some Netgear devices which are on the market and should be supported.
SVN-Revision: 36137
11 years ago
Hauke Mehrtens a9e5a178ef brcm47xx: generate images for more WRT...N models
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 36136
11 years ago
Hauke Mehrtens d5cf67297a brcm47xx: generate images for some more devices
These devices should be supported by trunk now.

SVN-Revision: 36099
11 years ago
Hauke Mehrtens 5d3b728372 brcm47xx: board detection WNDR3400v2
WNDR3400v2 is based on BCM53xx . Image that is created breaks the router somehow therefore "#".

CFE and NVRAM contain different vars - example:
CFE line original: Device eth0:  hwaddr 74-44-01-37-C6-69, ipaddr 192.168.1.1, mask 255.255.255.0
CFE after openwrt: Device eth0:  hwaddr 00-FF-FF-FF-FF-FF, ipaddr 192.168.1.1, mask 255.255.255.0

Logs were posted earlier on this mailing list: https://lists.openwrt.org/pipermail/openwrt-devel/2012-July/016174.html
Different logs with factory firmware are in the wiki: http://wiki.openwrt.org/toh/netgear/wndr3400#wndr3400v2
(and on wikidevi for example)

Signed off by: Dirk Neukirchen <dirkneukirchen@web.de>

SVN-Revision: 35790
12 years ago
Hauke Mehrtens e083c7926b brcm47xx: create image for Netgear WNDR3400 V1
SVN-Revision: 35323
12 years ago
Hauke Mehrtens 6c8efbfdc0 brcm47xx: Additional BCM4716 support
Additional BCM4716 support.  Still needs working ethernet driver.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>

SVN-Revision: 34672
12 years ago
Imre Kaloz 702fd5cdb5 generate images for the D-Link DWL-3150 as well
SVN-Revision: 33961
12 years ago
Hauke Mehrtens 35661401da generate image for Linksys e3200
SVN-Revision: 33003
12 years ago
Hauke Mehrtens 482b99a660 brcm47xx: generate image for Linksys WRT610N V1
SVN-Revision: 31696
12 years ago
Hauke Mehrtens 5dec9dd3b2 brcm47xx: add code to generate images for some netgear devices
This is commented out until we get report of working devices.

SVN-Revision: 30639
13 years ago
Felix Fietkau 24dfe525c2 brcm47xx: fix padding of trx images, padjffs2 does not work properly on empty files by default
SVN-Revision: 28125
13 years ago
Hauke Mehrtens 8976fa2622 brcm47xx: deactivate wndr3400 for now as this device will not boot
SVN-Revision: 27316
13 years ago
Hauke Mehrtens 8c62c5d109 brcm47xx: generate image to flash on Netgear WNDR3400.
The image will not boot because serial flash support is missing this is only for experts.

SVN-Revision: 27302
13 years ago
Hauke Mehrtens bf64ac730a bcm47xx: Remove kernel checks from image Makefile
2.4 isn't present anymore, so it will always be 2.6 (or newer). Since the
2.6 check will break with 3.0, remove it alltogether.

Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com>

SVN-Revision: 27185
13 years ago
Hauke Mehrtens 41b3383499 brcm47xx: Add edimax PS1208mfg support
Thank you clemvangelis for the patches. (closes #7672)

SVN-Revision: 24217
14 years ago
Hauke Mehrtens 09244c0811 brcm47xx: do not generate image for wgr614_v8 as long as we did not get any positive reports with that device.
SVN-Revision: 22522
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
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
Markus Wigge 114ce0bd4c renamed wrt54g3gv2-vf images
'factory' and 'sysupgrade' did not make much sense. A discussion
with jow convinced me that .trx results in a helpdesk disaster.
So I decided to use '.bin' for normal bin-headers and '.noheader.bin'
for the trx-v2 image.
I fixed the wiki accordingly.

SVN-Revision: 22013
14 years ago