Commit Graph

116 Commits (2cbe76ca08a82ba8d8690da494146b27a5f81264)

Author SHA1 Message Date
Daniel Dickinson f83c5938d2 bcm63xx: Move the OpenWrt rootfs length field
Dual image capable CFEs store an image sequence at the same place as
currently OpenWrt stores the actual rootfs length, so it will get
overwritten when flashing through such a CFE.

To prevent this from happening, move the rootfs length field to the next
four bytes, thus completely using the reserved1 field.

Since the reserved1 field is now completely in use, it does not make sense
to allow it to be set from the imagetag utility, so remove the option.

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

SVN-Revision: 26680
2011-04-15 12:18:25 +00:00
Daniel Dickinson fc3a1d0ba3 Added OpenWRT-specific field to imagetag so that we can record the real root length, so that when the CRC fixup is applied and the root length is recorded as zero we can still calculate the rootfs mtd partition size.
Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net>

SVN-Revision: 24838
2010-12-26 04:18:13 +00:00
Daniel Dickinson fe5d55977e tools/firmware-utils/imagetag: Fixed Pirelli Alice Gate CRC calculation in imagetag (was invalid strings in bcm_tag.h). Closes #7120
SVN-Revision: 20850
2010-04-14 00:45:48 +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
Florian Fainelli b8d99458ff move files to files-2.6.30, to ease newer kernel integration
SVN-Revision: 19471
2010-01-31 21:00:50 +00:00
Daniel Dickinson 022594b0ed brcm63xx: Fix gpio-buttons and add LED and buttons for Tecom IGW6200 and Comtrend CT-5261
SVN-Revision: 19361
2010-01-28 16:54:00 +00:00
Daniel Dickinson f623119680 Fix typo in AGPF_S0 reset button definition
SVN-Revision: 19160
2010-01-16 03:13:56 +00:00
Claudio Mignanti b031e14bf0 bcm63xx: add gpio leds to alice gate
SVN-Revision: 19152
2010-01-15 13:30:46 +00:00
Florian Fainelli 0adbdf6409 add support for the RTA1025W_16 board (#5979)
SVN-Revision: 18476
2009-11-22 14:53:20 +00:00
Florian Fainelli 9a84de9e01 images without tagid now fallback to the untouched partition layout (#6093)
SVN-Revision: 18288
2009-11-03 19:59:04 +00:00
Nicolas Thill f22156bf9e brcm63xx: fix cardbus support with BCM6358 (closes: #5918)
SVN-Revision: 17935
2009-10-05 20:40:05 +00:00
Florian Fainelli b9c0291e32 prevent gpio-buttons registration failure
SVN-Revision: 17542
2009-09-08 15:24:06 +00:00
Florian Fainelli 8ceff55a08 fix typos against the gpio buttons driver (#5804)
SVN-Revision: 17538
2009-09-07 18:17:45 +00:00
Florian Fainelli 65fa1debda add infrastructure to register gpio-input reset button
SVN-Revision: 17526
2009-09-06 13:54:17 +00:00
Florian Fainelli 294ec33e47 fix reboot hang on bcm6345, thanks AndyI
SVN-Revision: 17465
2009-09-02 08:32:00 +00:00
Florian Fainelli 3fd180eb53 add missing patch which fakes a cardbus controller on top of PCI, thanks SGDA
SVN-Revision: 17234
2009-08-12 08:41:47 +00:00
Florian Fainelli 7610c78205 fix typo, INT_MASK is writable, INT_STATUS is not
SVN-Revision: 17229
2009-08-11 18:57:04 +00:00
Florian Fainelli dd8b0f9fb9 more bcm63xx definition fixes, thanks AndyI
SVN-Revision: 17227
2009-08-11 18:50:07 +00:00
Florian Fainelli 85698765da add support for the Pirelli AG226G board (#5337)
SVN-Revision: 17190
2009-08-09 10:19:47 +00:00
Florian Fainelli 2d629e3a01 remove useless hard reset in the SPI controller driver
SVN-Revision: 17189
2009-08-09 10:18:30 +00:00
Florian Fainelli 2437f53f1d fix assignment instead of comparison in the mtd driver (#5649)
SVN-Revision: 17188
2009-08-09 10:08:07 +00:00
Florian Fainelli 5138aa203e bcm6345 fixes from AndyI
SVN-Revision: 17153
2009-08-06 20:33:42 +00:00
Florian Fainelli 48c1634d3e fix off-by-one maximum timeout in the wathchdog default counter for bcm6345, thanks AndyI
SVN-Revision: 17149
2009-08-06 18:53:44 +00:00
Florian Fainelli dd78f746a5 disable watchdog for bcm6345 until it gets fixed
SVN-Revision: 17148
2009-08-06 18:44:20 +00:00
Florian Fainelli 39c22483bd fix printing of offsets
SVN-Revision: 17099
2009-08-02 13:50:39 +00:00
Florian Fainelli e58d0f346d more bcm6345 fixes and definitions, thanks to AndyI
SVN-Revision: 17066
2009-07-31 20:15:43 +00:00
Florian Fainelli 9887dc6100 add experimental support for 2.6.28.10, tested on bcm6338
SVN-Revision: 17054
2009-07-30 21:29:25 +00:00
Florian Fainelli dabf5e71a6 fix typo for the flash start address on bcm6345
SVN-Revision: 17032
2009-07-27 22:31:28 +00:00
Florian Fainelli 5df0606265 fix typos introduced in 16942
SVN-Revision: 16943
2009-07-21 12:22:01 +00:00
Florian Fainelli 8b17c74376 make the ethernet driver compile with newer kernels
SVN-Revision: 16942
2009-07-21 11:48:08 +00:00
Florian Fainelli 43a3f9555a request irq with the platform driver name instead of bus_id which is being removed in newer kernels
SVN-Revision: 16932
2009-07-20 10:52:08 +00:00
Florian Fainelli ecad504c39 register GPIO-connected LEDs for known boards
SVN-Revision: 16887
2009-07-18 00:40:23 +00:00
Florian Fainelli d0fdf2c5ed fix comment only valid for bcm6345
SVN-Revision: 16881
2009-07-17 15:57:09 +00:00
Florian Fainelli 0bda624fc7 add the infrastructure to use a MPI/GPIO connected VoIP DSP
SVN-Revision: 16650
2009-07-01 21:00:41 +00:00
Florian Fainelli 8a8943671a fixes for the bcm6338 clocks, thanks Maxime
SVN-Revision: 16640
2009-07-01 13:49:20 +00:00
Florian Fainelli 5a7c5b2d36 a couple of more fixes to get 6345 booting up to the console handover
SVN-Revision: 16636
2009-06-30 13:45:49 +00:00
Florian Fainelli 8179904540 shared DMA zone is twice smaller on 6338
SVN-Revision: 16608
2009-06-28 20:06:44 +00:00
Florian Fainelli 4096da301d off-by-one gpio numbers for bcm6338
SVN-Revision: 16597
2009-06-28 04:23:11 +00:00
Florian Fainelli 8813961e86 bcm6338 can support PCI since it has MPI
SVN-Revision: 16592
2009-06-27 21:43:55 +00:00
Florian Fainelli ca5de76ed3 more fixes for bcm6338, no need not to prevent reads from MPI registers now that we have it defined correctly
SVN-Revision: 16589
2009-06-27 20:32:43 +00:00
Florian Fainelli d02d75ba02 fix the flash address comment and register the flash device again with its proper physical address on 6338/6345
SVN-Revision: 16587
2009-06-27 18:58:00 +00:00
Florian Fainelli 0bb3a46217 fix a stupid typo preventing the board from being detected
SVN-Revision: 16586
2009-06-27 18:30:45 +00:00
Florian Fainelli bcc1dd7f99 prevent bcm6338 and bcm6345 from crashing very early
SVN-Revision: 16585
2009-06-27 18:23:58 +00:00
Florian Fainelli 7da8855c79 only register fallback sprom and enable PCI if we actually have support for PCI
SVN-Revision: 16581
2009-06-27 16:17:18 +00:00
Florian Fainelli 13a8ed9ca0 more missing register definitions for bcm6338
SVN-Revision: 16579
2009-06-27 15:51:27 +00:00
Florian Fainelli 287a2c0ba9 more bcm6338 and bcm6345 related fixes
SVN-Revision: 16568
2009-06-26 12:34:35 +00:00
Florian Fainelli 8c4137900c define bcm6338 SDRAM base register and make sure that the right CPU id will be used to detect a bcm6338
SVN-Revision: 16567
2009-06-26 11:08:12 +00:00
Florian Fainelli e86e91380a add board definitions for the bcm6338w
SVN-Revision: 16565
2009-06-26 10:27:13 +00:00
Florian Fainelli 1795111337 add imagetag support for BT Voyager 2500V, patch from Daniel Dickinson (#5364)
SVN-Revision: 16506
2009-06-18 15:00:32 +00:00