Commit Graph

76 Commits (94a45be66b607414e59cdb94ca5d4fb49a31cfcb)

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
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 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 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 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 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 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 287a0efd68 be SMP safe even with gpiolib
SVN-Revision: 16331
2009-06-04 10:02:23 +00:00
Florian Fainelli 9013e936ed cache gpio values in gpio_set
SVN-Revision: 16330
2009-06-04 10:01:55 +00:00
Florian Fainelli 1208ffaedb use the correct number of GPIOs for bcm6358
SVN-Revision: 16329
2009-06-04 10:01:03 +00:00
Florian Fainelli c95420f06d register gpiochip earlier, allowing gpio-based runtime detection to be performed in board_init callback
SVN-Revision: 16328
2009-06-04 09:59:28 +00:00
Florian Fainelli 9485c3e834 register gpiodev
SVN-Revision: 15509
2009-04-30 14:09:01 +00:00
Florian Fainelli 501ebb4f74 enable all blocks on 6338 and uart clock on 6345
SVN-Revision: 14957
2009-03-21 10:50:44 +00:00
Florian Fainelli 0972ee5331 add support for bcm6345 SoC, needs testing
SVN-Revision: 14953
2009-03-20 15:08:02 +00:00
Florian Fainelli 32c29f1aaf fix SPI register switch and prepare for UDC, thanks to Henk Vergonet (#4783)
SVN-Revision: 14914
2009-03-17 11:28:54 +00:00
Florian Fainelli 6495fa36ea add support for AGPF-S0 (Pirelli Alice Gate VoIP 2 Plus Wi-Fi) #4366
SVN-Revision: 14850
2009-03-12 08:54:04 +00:00
Florian Fainelli 8065eb4a55 do not duplicate fifo_size, since RX and TX fifo sizes are the same, request_mem_region on the registers
SVN-Revision: 14848
2009-03-11 10:32:44 +00:00