Rafał Miłecki
33e597b241
bcm53xx: sort ports from NVRAM entries before matching them
...
Some devices have unsorted ports which may lead to broken config.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45575
2015-04-24 07:47:25 +00:00
Rafał Miłecki
866fe3895d
bcm53xx: sysupgrade: check if new kernel fits partition size
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45547
2015-04-21 11:21:34 +00:00
Rafał Miłecki
457d9caf4d
bcm53xx: sysupgrade: improve NAND warnings
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45546
2015-04-21 11:04:38 +00:00
Rafał Miłecki
5b9d70c888
bcm53xx: image: prepare for generating serial flash images
...
There are some rare devices without NAND, like Netgear EX6200 or
TP-LINK Archer C8.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45545
2015-04-21 08:42:41 +00:00
Rafał Miłecki
a86e7330dc
bcm53xx: sysupgrade: drop some debugging message
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45544
2015-04-21 08:34:25 +00:00
Rafał Miłecki
688c1d74b9
bcm53xx: sysupgrade: allow flashing NAND devices without --force
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45543
2015-04-21 08:32:59 +00:00
Rafał Miłecki
d263c8e1a9
bcm53xx: sysupgrade: support flashing TRX with UBI image
...
Signed-off-by: Dan Haab <dhaab@luxul.com>
SVN-Revision: 45542
2015-04-21 08:20:06 +00:00
Rafał Miłecki
92875dbd3d
bcm53xx: append only 1 block (with erasing mark) to UBI
...
This is needed as prepare_generic_squashfs generates more data (in our
case 0x40004 B) and it's complex for sysupgrade to extract UBI image out
of TRX.
Signed-off-by: Dan Haab <dhaab@luxul.com>
SVN-Revision: 45541
2015-04-21 08:20:00 +00:00
Rafał Miłecki
ac6879caaa
bcm53xx: always use 4 MiB for TRX kernel partition to simplify upgrades
...
Signed-off-by: Dan Haab <dhaab@luxul.com>
SVN-Revision: 45540
2015-04-21 08:19:53 +00:00
Felix Fietkau
c73adc80a3
bcm53xx: add profiling support
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45480
2015-04-17 18:52:15 +00:00
Rafał Miłecki
9e03c36259
bcm53xx: fix handling absolute paths in sysupgrade (for vendor formats)
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45473
2015-04-17 06:03:00 +00:00
Felix Fietkau
582b20c4e2
kernel: accidentally committed a few patches in the wrong place, move them
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45468
2015-04-16 20:43:11 +00:00
Felix Fietkau
b860db2c63
bcm53xx: add power button for WXR-1900DHP
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45467
2015-04-16 20:09:55 +00:00
Felix Fietkau
f6cbbe1332
bcm53xx: make NAND flash timeouts non-interruptible to fix corruption issues
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45464
2015-04-16 20:09:36 +00:00
Felix Fietkau
d51420eedc
bcm53xx: increate trx maxlen to prevent build failures with bigger images
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45461
2015-04-16 20:09:15 +00:00
Felix Fietkau
f8d499fd3f
bcm53xx: fix WXR-1900DHP power led name and add usb led
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45460
2015-04-16 20:09:08 +00:00
Felix Fietkau
c64fdadea7
bcm53xx: make use of the new board detection layer
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45458
2015-04-16 12:18:34 +00:00
Felix Fietkau
147e005fcf
bcm53xx: add USB 2.0 power control for WXR-1900DHP
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45451
2015-04-15 16:06:20 +00:00
Felix Fietkau
83e31eb7e7
bcm53xx: add USB 2.0 support
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45450
2015-04-15 16:06:14 +00:00
Rafał Miłecki
3edb55143d
bcm53xx: add (disabled) support for upgrading kernel during sysupgrade
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45445
2015-04-14 20:50:59 +00:00
Rafał Miłecki
3cb8bf44e6
otrx: change command line API to start with a mode
...
This will allow adding more modes without options conflict.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45443
2015-04-14 20:50:46 +00:00
Felix Fietkau
923bef1678
bcm53xx: refresh kernel patches
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45426
2015-04-13 22:23:37 +00:00
Felix Fietkau
24e9f52106
bcm53xx: add support for the Buffalo WXR-1900DHP
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45419
2015-04-13 17:32:25 +00:00
Felix Fietkau
1e48a48915
bcm53xx: fix GPIO pins > 16
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45418
2015-04-13 17:32:18 +00:00
Felix Fietkau
1f70f452cc
bcm53xx: add missing l2 cache controller AUXCTL bit
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45416
2015-04-13 17:32:05 +00:00
Felix Fietkau
d24388da44
bcm53xx: add a comment about the gpio base patch
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45408
2015-04-12 22:10:44 +00:00
Rafał Miłecki
77c75e6fa3
bcm53xx: try to handle Netgear R8000 VLANs config
...
It seems to have few ports connected to CPU (only for CPU sending data?)
as part of "SMP dual core 3 GMAC setup" feature.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45403
2015-04-12 20:11:25 +00:00
Felix Fietkau
2dbe131a62
bcm53xx: fix bcma gpio chip base
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45399
2015-04-12 17:22:04 +00:00
Rafał Miłecki
95ef64a779
bcm53xx: allow sysupgrade firmwares without UBI containing rootfs
...
In most cases it allows reverting back to the vendor firmware (as they
usually don't use UBI). If users wants to do that we can't do anything
anyway. Erease counters will be just lost. The only thing we do is warn:
"Flashing firmware without UBI for rootfs. All erase counters will be
lost."
It still requires forcing sysupgrade.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45392
2015-04-12 12:04:13 +00:00
Rafał Miłecki
24d40980b0
bcm53xx: add platform_pre_upgrade to prepare for kernel+UBI sysupgrade
...
We can now detect that provided firmware contains kernel and UBI image
partitions. Flashing it in a sane way (keeping erase counters) still
needs to be implemented.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45391
2015-04-12 11:46:16 +00:00
Rafał Miłecki
a04b71d330
bcm53xx: rework vendor fw handling to don't duplicate upgrade calls
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45389
2015-04-12 10:42:27 +00:00
Rafał Miłecki
503ccc502d
bcm53xx: fix UBI EOF patch to allow sysupgrade after first installation
...
With previous version of patch info about need of erasing blocks was
stored once per boot. It was breaking in following scenario:
1) First boot after installation (erasing blocks after 0xdeadc0de)
2) Doing sysupgrade (with ubidetach & ubiformat)
3) Attaching UBI again (it caused all blocks to be erased)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45387
2015-04-12 10:20:59 +00:00
Rafał Miłecki
9d6e04a4f1
bcm53xx: build image for ASUS RT-AC56U
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45353
2015-04-10 09:58:00 +00:00
Rafał Miłecki
71fcbffc91
bcm53xx: Luxul XWC-1000 has only 128 MiB of RAM
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45352
2015-04-10 09:42:48 +00:00
Rafał Miłecki
2198db252c
bcm53xx: switch to the otrx for verifying TRX images
...
This adds checking CRC32 of provided firmware image.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45320
2015-04-09 06:33:56 +00:00
Rafał Miłecki
4c1ee6f24d
bcm53xx: replace few BCM5301X patches with versions sent upstream
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45311
2015-04-08 09:22:02 +00:00
Rafał Miłecki
b6e8da2e14
bcm53xx: image: share function checking TRX in provided firmware
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45292
2015-04-07 14:14:08 +00:00
Rafał Miłecki
7abd779730
bcm53xx: display all errors (not just the 1st one) when checking image
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45291
2015-04-07 14:14:02 +00:00
Rafał Miłecki
a19b69a717
bcm53xx: compare provided firmware magic with device magic
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45290
2015-04-07 14:13:56 +00:00
Rafał Miłecki
509cce44bd
bcm53xx: sprom: sync with mainline driver
...
The main difference now is bcm53xx registering it as platform (DT)
driver.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45230
2015-04-02 12:02:56 +00:00
Rafał Miłecki
91071e366c
bcm53xx: sprom: simplify reading NVRAM after last backports
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45229
2015-04-02 12:01:56 +00:00
Rafał Miłecki
bf828d3fd0
bcm53xx: use bcm47xx_nvram.c with the latest patches
...
This will be hopefully a mainline version.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45204
2015-04-01 07:21:59 +00:00
Felix Fietkau
414e8ba634
bcm53xx: use the correct kernel image
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45003
2015-03-26 10:42:36 +00:00
Felix Fietkau
48c69e3022
bcm53xx: convert to new image building code
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44996
2015-03-25 17:57:44 +00:00
Felix Fietkau
68ca1f285c
bcm53xx: enable the full-line-of-zero optimization in the cache controller
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44977
2015-03-25 14:30:40 +00:00
Felix Fietkau
0a84da0841
bcm53xx: add missing cache controller errata options
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44947
2015-03-23 10:14:27 +00:00
Felix Fietkau
a6f914d573
bcm53xx: remove linux 3.14 support
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44946
2015-03-23 10:14:20 +00:00
Rafał Miłecki
fb6164a377
bcm53xx: add SMP support
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 44939
2015-03-22 15:07:40 +00:00
Rafał Miłecki
e0155ad7b0
bcm53xx: add support for Asus RT-AC68U
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 44934
2015-03-22 01:57:15 +00:00
Rafał Miłecki
79c152b56b
bcm53xx: fix Asus RT-AC87U magic (even if not used yet)
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 44933
2015-03-22 01:57:10 +00:00