Rafał Miłecki
5828113986
bcm53xx: backport BCM5301X/BCM53573 dts commits from 4.19+
...
This includes Linksys EA9500 support, BCM53573 timer fix and
upstream-ready partitions patch that replaces two downstream hacks.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit a07730472c
)
2018-07-31 10:14:48 +02:00
Rafał Miłecki
3267ce750e
bcm53xx: use iflag=skip_bytes for dd command during sysupgrade
...
Since BusyBox 1.25.0 dd command supports iflag=skip_bytes which allows
skipping requested amount of bytes without reducing blocksize. Thanks to
this we can leave default blocksize and let dd work more efficiently.
On Netgear R6250 "dd skip=58 iflag=skip_bytes" can be 5 times faster
than "dd bs=58 skip=1" when extracting TRX out of CHK.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2017-12-29 23:18:45 +01:00
Mathias Kresin
f12a32630f
treewide: use the generic board_name function
...
Use the generic function instead ot the target specific ones.
Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-07-15 23:13:34 +02:00
Matthias Schiffer
438dcbfe74
base-files: automatically handle paths and symlinks for RAMFS_COPY_BIN
...
Depending on busybox applet selection, paths of basic utiilties may differ,
and may not work as symlinks to busybox. Simply using whatever binary is
found in PATH and detecting symlinks automatically is more robust and
easier to maintain.
The list of binaries is also slightly cleaned up and duplicates are
removed.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-07-11 17:26:32 +02:00
Matthias Schiffer
73f675415c
bcm53xx: upgrade: fix RAMFS_COPY_*
...
Fixes: 30f61a34b4
"base-files: always use staged sysupgrade"
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2017-07-11 17:19:23 +02:00
Felix Fietkau
727e244fae
bcm53xx: suppress osafeloader info error messages during flashing
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2017-01-30 13:00:11 +01:00
Rafał Miłecki
5e339a48aa
bcm53xx: build image for TP-LINK Archer C9 v1
...
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2016-11-19 07:58:26 +01:00
Rafał Miłecki
2d61c26f02
bcm53xx: support SafeLoader format in sysupgrade
...
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2016-11-19 07:58:26 +01:00
Rafał Miłecki
776b24d9aa
bcm53xx: properly support sysupgrade using Seama on NAND devices
...
It updates kernel and then formats UBI without loosing erase counters.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
2016-06-20 08:02:32 +02:00
Rafał Miłecki
cb0de9a68e
bcm53xx: sysupgrade: move TRX specific code to separated function
...
This will allow adding support for other formats (e.g. Seama) in a clean
way.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
2016-06-13 22:52:04 +02:00
Rafał Miłecki
997a3cb41c
bcm53xx: add basic support for Netgear R7900
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 49122
2016-04-09 09:59:21 +00:00
Rafał Miłecki
9a69e00baa
bcm53xx: support Netgear R8500 in sysupgrade
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48572
2016-01-30 16:57:35 +00:00
Rafał Miłecki
926c8dfc7b
bcm53xx: specify magic expected in sysupgrade for D-Link DIR-885L
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48553
2016-01-29 22:31:43 +00:00
Rafał Miłecki
c0edf30bdc
bcm53xx: basic support for Seama format in sysupgrade
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48535
2016-01-28 22:38:37 +00:00
Rafał Miłecki
1dfa8f37db
bcm53xx: detect Seama sysupgrade format
...
It's used e.g. by D-Link devices. We don't support it yet.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48509
2016-01-27 10:40:58 +00:00
Rafał Miłecki
f87990840d
bcm53xx: support sysupgrade with Netgear R7000 original firmware
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 46732
2015-08-26 15:21:14 +00:00
Rafał Miłecki
46a25c6e8a
bcm53xx: fallback to default_do_upgrade if NAND upgrade fails
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45915
2015-06-06 17:52:53 +00:00
Rafał Miłecki
3d4f163df1
bcm53xx: sysupgrade: drop useless shift in platform.sh
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45914
2015-06-06 17:26:05 +00:00
Rafał Miłecki
54fb91f0cf
bcm53xx: extract TRX from image on the fly
...
Extracting TRX to separated file in /tmp/ just wastes some RAM while we
can just pass a proper extracting command to the default_do_upgrade.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45912
2015-06-06 17:23:03 +00:00
Rafał Miłecki
5e90144aec
bcm53xx: sysupgrade: extract TRX partitions directly from vendor image
...
Extracting full TRX out of vendor format is not needed as otrx supports
passing TRX offset. This saves some RAM during sysupgrade.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45911
2015-06-06 17:05:31 +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
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
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
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
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
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
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
d1a28cfbb2
bcm53xx: support flashing CHK and CyberTAN images
...
SVN-Revision: 43800
2014-12-30 17:45:53 +00:00
Rafał Miłecki
dd9ca05249
bcm53xx: sysupgrade support for devices with serial flash
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43719
2014-12-15 15:43:46 +00:00