Commit Graph

138 Commits (02b93e44c22011d49918f501f88afb725d6b4c01)

Author SHA1 Message Date
Daniel Dickinson 68981f5d8e bcm63xx: Add board id override fixup.
Add a fixup for the kernel to check the bcm tag of the image for a boardid in
the information1 field, and use that instead of the supplied one by cfe. This
is triggered by a + at the start of the information1 field.

Also modify the image generation to generate apropriately tagged images.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24189 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-28 22:04:40 +00:00
Daniel Dickinson e96cc39f19 bcm63xx: Finalize support for DSL-274xB, rev C2.
The DSL-2740B/DSL-2741B rev C2 support was missing the board definition,
resulting in a kernel panic on boot.
This patch adds it, and also renames the generated image name to properly
reflect that it is for the revision C2, and for both the DSL-2740B and
DSL-2741B.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24188 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-28 22:04:36 +00:00
Daniel Dickinson ed589945f0 [brcm63xx] image Makefile: Removed extraneous tab from Image/LimitName16 macro definition. The solves the strange whitespace in front of the image name in the info1 section
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24127 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-24 11:06:13 +00:00
Daniel Dickinson 53af0d5fbb [brcm63xx] image: Limited image name put into the info1 field to 16 characters and eliminted the OpenWRT revision. This makes using the image (router) name as the board name possible, so that boards with same real boardid but different GPIOs can be detected and the correct GPIOs used.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24118 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-23 20:17:08 +00:00
Daniel Dickinson 4470bf532c [brcm63xx] Initial support for Telsey CPVA642 boards (no vlans, no DSL, GPIO led/buttons not known).
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24040 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-19 13:41:54 +00:00
Daniel Dickinson caefcca898 [tools/firmware-utils] 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).



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24011 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-16 06:46:53 +00:00
Nicolas Thill 9d42bb1a21 define a shared IMG_PREFIX variable used as a basename for image files, it contains board & subtarget infos (if appropriate) allowing subtargets to share the same bin directory without overwriting each other's files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20834 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-12 23:15:56 +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 4d33e84269 [brcm63xx] build images for RG100A (bcm6358-based boards) (#6755)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19894 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-28 11:09:39 +00:00
Florian Fainelli 297d0b6536 [brcm63xx] do not generate trx images, this is useless
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18204 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-29 13:39:29 +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
Florian Fainelli 8426afed36 [brcm63xx] generate images for RTA1025W_16-based routers (#5594)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17058 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-07-31 10:47:00 +00:00
Florian Fainelli 076ac8ee88 [brcm63xx] generate images for the bcm6338w
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16566 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-26 10:27:37 +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
Florian Fainelli 3135ca9da0 [brcm63xx] generate experimental images for bcm6338 boards, thanks to Daniel Dickinson
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16490 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-17 13:16:59 +00:00
Florian Fainelli 2af8093895 [brcm63xx] use build system REVISION variable (#5317)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16400 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-10 13:43:48 +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
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 7206f21b0a [brcm63x] imagetag's -k argument is expected to be hexadecimal instead of decimal (#4885)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15133 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-07 13:22:32 +00:00
Florian Fainelli 1a7f8acef6 [brcm63xx] add the CFE offset command line option to the imagetag utility, closes (#4366)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14896 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-16 12:29:11 +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 2f386223ed [brcm63xx] add support for user9102 boards (#4537)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14305 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-31 16:01:20 +00:00
Florian Fainelli a476b91064 [brcm63xx] generate images for old CFE based boards like the Davolink DV201
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14264 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-01-29 14:56:45 +00:00
Florian Fainelli 220e386022 Build images for Inventel Livebox
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13616 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-12 15:16:57 +00:00
Florian Fainelli 2eaba04abd Fix typo, we are not building for the DG834G (ar7) but the DG834GT (brcm6348)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13588 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-10 23:57:23 +00:00
Florian Fainelli 2c6cedf116 Add support for Sagem F@ST2404 (#4332)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13583 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-10 16:13:41 +00:00
Florian Fainelli f561c967a9 Add support for bcm96348gw10 (Netgear DG834GT) (#4319)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13540 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-12-07 20:34:48 +00:00
Florian Fainelli 234a100d23 Generate valid images for the bcm96348gw board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13298 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-20 21:22:45 +00:00
Florian Fainelli 1064d5a460 This patch is for broadcom 96348GW-11 boards, to get USB and Ethernet working. Also it patches mtd map driver for bcm96xx boards to be sure that CFE1CFE1 code is detected when booting from CFE. (#4201)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13213 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-15 11:30:22 +00:00
Florian Fainelli 5274d927c6 Add definitions for bcm96350vw, add back bcm63xx mtd driver, be careful when testing with 8MB devices
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13015 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-20 12:55:28 +00:00
Felix Fietkau 55b97a49ed bcm963xx: image generation using image tagger
This adds CFE tagged image generation in the BCM963xx target image Makefile.
It has to generate its own LZMA compressed kernel because CFE is a LZMA nazi.
It also seems that the Broadcom image tagger as well as CFE use AdvanceCOMP,
which is based on a slightly older LZMA SDK. Anyways, some of the code is
GPL, some of it is LGPL, so it might be that Broadcom owes some sources.
Also, LZMA has a bug which causes it to generate different output when you
are using stdin / stdout compared to plain files. I've just worked around
the issue by using plain files.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11171 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-18 17:30:04 +00:00
Felix Fietkau 72192c48c5 bcm963xx: fix load address / kernel entry
Current kernels have the same kernel entry as load address, so just set them
like this. Also, the BCM963xx uses 0x80010000 as its load address, so use this
too.

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


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11169 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-18 17:29:39 +00:00
Nicolas Thill 60ef52b3f1 enable proper PCI & USB support detection at config-time by disabling CONFIG_PCI & CONFIG_USB entries in generic/config and enabling them on targets where appropriate
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11097 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-09 17:08:51 +00:00
Florian Fainelli 25e156e1cf brcm63xx image generation cleanups (#3169)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10703 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-01 21:10:47 +00:00
Felix Fietkau 62ccdcedae make the image filenames a bit shorter
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9533 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-11-10 23:08:11 +00:00
Felix Fietkau 92558d67a4 strip the kernel version suffix from target directories, except for brcm-2.4 (the -2.4 will be included in the board name here). CONFIG_LINUX_<ver>_<board> becomes CONFIG_TARGET_<board>, same for profiles.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8653 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-06 16:27:37 +00:00