Rafał Miłecki
c6f9582116
brcm47xx: image: use "-" separator for device version
...
This makes legacy subtarget follow two other.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45319
2015-04-09 05:40:37 +00:00
Rafał Miłecki
a8b0e75291
brcm47xx: verify also standard TRX images during sysupgrade
...
It allows detecting data corruption for plain TRX as well.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45318
2015-04-09 05:36:16 +00:00
Rafał Miłecki
3fad95446a
brcm47xx: fix WRT300N devices magics for sysupgrade check
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45317
2015-04-09 05:22:10 +00:00
Rafał Miłecki
44b128b0aa
brcm47xx: 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: 45316
2015-04-09 05:22:04 +00:00
Rafał Miłecki
80971cd0f9
brcm47xx: image: use new (& fixed) FILESYSTEM variable for trx command
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45313
2015-04-08 09:50:57 +00:00
Rafał Miłecki
705651884d
brcm47xx: update legacy subtarget description
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45310
2015-04-08 05:55:32 +00:00
Rafał Miłecki
7798074429
brcm47xx: add fix "Data bus error" on CardBus ssb SoCs
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45308
2015-04-08 05:09:42 +00:00
Rafał Miłecki
1d2abb6f16
brcm47xx: reverse 2 LEDs polarity on WRT320N v1
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45307
2015-04-08 04:46:27 +00:00
Rafał Miłecki
95f7fb8f49
brcm47xx: define rest of LEDs & buttons for WRT320N
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45304
2015-04-07 21:31:36 +00:00
Rafał Miłecki
503d845522
brcm47xx: drop old patch disabling cardbus mode on Netgear WNR834B
...
First of all this patch was affecting other devices, not just Netgear
WNR834B. E.g. Linksys WRT300N v1 also has boardtype 0x0472.
This was breaking PCI on WRT300N, ssb couldn't detect core working in
hostmode (due to mips_busprobe32 failing).
Secondly this patch should not be needed for years now. From the analyze
of #8861 it seems it was needed just to make devices at slots other than
0 discoverable. Setting cardbus to 0 was simply making ssb allow access
to PCI config for devices other than bridge.
With the upstream commit a6c8462 (ssb: fix cardbus slot in hostmode) we
allow accessing device at slot 1 which should be enough for CardBus.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45293
2015-04-07 15:40:51 +00:00
Rafał Miłecki
e2b59e4dbc
brcm47xx: detect Linksys WRT320N v1
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45289
2015-04-07 13:08:17 +00:00
Rafał Miłecki
9f740ddc0d
brcm47xx: backport MIPS BCM47XX patches queued for 4.1
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45288
2015-04-07 12:54:23 +00:00
Rafał Miłecki
3fa00eeda2
brcm47xx: group MIPS BCM47XX backported patches by source kernel
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45287
2015-04-07 11:54:18 +00:00
Rafał Miłecki
aefcd2b84c
brcm47xx: backport two MIPS nvram.c patches
...
Also replace SPROM patch with (the same) mainlined version.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45227
2015-04-01 20:23:37 +00:00
Rafał Miłecki
9c5aa7c528
brcm47xx: image: share function checking TRX in provided firmware
...
This will allow us to calculate crc32 in a shared code.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45202
2015-03-31 21:16:19 +00:00
Rafał Miłecki
090a510576
brcm47xx: image: convert legacy Linksys & Netgear devices
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45184
2015-03-31 12:44:31 +00:00
Rafał Miłecki
4faba3cc2e
brcm47xx: image: convert generic subtarget to the new images system
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45183
2015-03-31 12:17:08 +00:00
Rafał Miłecki
3d481d31ed
brcm47xx: image: convert all mips74k images to the new building system
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45181
2015-03-31 11:26:50 +00:00
Rafał Miłecki
184c0af4e2
brcm47xx: image: add helpers for defining devices
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45180
2015-03-31 11:26:45 +00:00
Rafał Miłecki
6c1852cb26
brcm47xx: image: use standard KERNEL_IMAGE to avoid warnings
...
KERNEL_IMAGE is used as target rule so reusing the same name causes:
Makefile:326: warning: overriding recipe for target `bin/brcm47xx/vmlinux.lzma'
Makefile:326: warning: ignoring old recipe for target `bin/brcm47xx/vmlinux.lzma'
Makefile:326: warning: overriding recipe for target `build_dir/target-mipsel_74kc+dsp2_uClibc-0.9.33.2/linux-brcm47xx_mips74k/vmlinux.lzma'
Makefile:326: warning: ignoring old recipe for target `build_dir/target-mipsel_74kc+dsp2_uClibc-0.9.33.2/linux-brcm47xx_mips74k/vmlinux.lzma'
Unfortunately this will cause copying vmlinux.lzma over and over like:
cp vmlinux.lzma FOO-kernel.bin
which is redundant on brcm47xx where we never modify kernel image.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45178
2015-03-31 08:56:08 +00:00
Rafał Miłecki
8ec31f25e3
brcm47xx: fix checking cross-vendors firmware images
...
This change won't allow installing e.g. Netgear firmware on Linksys
device.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45174
2015-03-31 07:26:30 +00:00
Rafał Miłecki
463a449f84
brcm47xx: update Linksys firmwares (add new E2500 versions)
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45173
2015-03-31 07:26:22 +00:00
Rafał Miłecki
a445846305
brcm47xx: display all errors (not just the 1st one) when checking image
...
This way people forcing upgrade will know what may go wrong.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45172
2015-03-31 06:05:35 +00:00
Rafał Miłecki
44dfe17576
brcm47xx: recognize more device specific firmwares
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45171
2015-03-31 05:39:33 +00:00
Rafał Miłecki
b34040f990
brcm47xx: compare provided firmware magic with device magic
...
This makes sysupgrade reject firmware images for different devices.
Right now only support for 2 sample devices is implemented.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45170
2015-03-30 22:06:11 +00:00
Rafał Miłecki
1751676c8b
brcm47xx: convert Netgear WNDR3700 V3 to the new image building system
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45144
2015-03-29 19:53:11 +00:00
Rafał Miłecki
8e4b74b9fe
brcm47xx: convert Linksys E1200 V2 to the new image building system
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45143
2015-03-29 18:15:38 +00:00
Rafał Miłecki
8fdd0fb07c
kernel: backport rest of bcma patches
...
This backports
bcma: allow disabling (not building) PCI driver
Revert "bcma: Kconfig: Let it depend on PCI"
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 44970
2015-03-24 10:39:10 +00:00
Rafał Miłecki
76811de003
brcm47xx: support SPROM/NVRAM prefixes
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 44855
2015-03-17 07:07:17 +00:00
Rafał Miłecki
917fb76321
brcm47xx: rename (and refresh) MTD patch for safety "nvram" partition
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 44854
2015-03-17 07:07:00 +00:00
Rafał Miłecki
8f63c1405f
brcm47xx: switch to 3.18
...
Tested on BCM5357B0, BCM47186B0 and BCM4706.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 44853
2015-03-16 23:05:43 +00:00
John Crispin
d15ac306fa
kernel: move KERNFS to generic config
...
KERNFS symbol is selected by SYSFS, so place it in generic config.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44615
2015-03-06 07:56:47 +00:00
John Crispin
f04a268a04
kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLED
...
Disable ARCH_NEEDS_CPU_IDLE_COUPLED by-default in generic config, since
only one platfrom (omap) needs them.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44614
2015-03-06 07:56:34 +00:00
John Crispin
7886cced18
kernel: remove GENERIC_NET_UTILS from platform configs
...
CONFIG_GENERIC_NET_UTILS is selected by CONFIG_NET and already enabled
in generic config, so we don't need this symbol in platform specific
configurations.
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
SVN-Revision: 44611
2015-03-06 07:55:57 +00:00
Jonas Gorski
3069934e37
brcm47xx, brcm63xx: disable CONFIG_MIPS_O32_FP64_SUPPORT
...
The flag is experimental and requires toolchain support, which we don't
provide. Also neither target has an FPU so it becomes meaningless
without the FPU emulator enabled.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 44584
2015-03-01 11:37:18 +00:00
Rafał Miłecki
6296b8ca9f
kernel: backport queued bcm47xxpart changes
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 44156
2015-01-27 22:08:14 +00:00
Rafał Miłecki
3bdf05441a
brcm47xx: backport BCM47XX arch patches (clean NVRAM code, later init)
...
SVN-Revision: 43979
2015-01-16 12:48:27 +00:00
Rafał Miłecki
81b8d95f2c
brcm47xx: support for flashing CHK and CyberTAN images
...
This will allow simple sysupgrade-s including simpler reverting to the
original firmware.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43799
2014-12-30 17:19:36 +00:00
Rafał Miłecki
cca3990b16
brcm47xx: verify if CHK/CyberTAN contains valid TRX
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43798
2014-12-30 17:19:02 +00:00
Rafał Miłecki
c3e9796cd5
brcm47xx: extract magics from specific upgrade images (and still reject them)
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43718
2014-12-15 11:09:14 +00:00
John Crispin
019ea725aa
add "preinit_regular" diag.sh set_state argument
...
This new argument is used right after starting regular preinit (which
happens if failsafe wasn't triggered). The main purpose of "preinit"
argument is to indicate that failsafe can be triggered, however we were
missing a way to inform user that we don't wait for a trigger anymore.
With this change it's clear when failsafe mode can be triggered.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43715
2014-12-15 10:37:00 +00:00
Rafał Miłecki
a5b6b7e419
brcm47xx: detect (and still reject for now) CyberTAN fw format
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43714
2014-12-15 09:59:44 +00:00
Rafał Miłecki
b5b4bdc066
brcm47xx: use separated function in upgrade to detect file type
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43708
2014-12-15 08:51:14 +00:00
Rafał Miłecki
73237c0c9b
brcm47xx: add WNDR3400 V3 buttons
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43579
2014-12-08 17:02:28 +00:00
Felix Fietkau
9a495f6bbb
kernel: refresh patches
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43564
2014-12-08 12:04:25 +00:00
Hauke Mehrtens
563f963b1b
kernel: refresh patches for kernel 3.18
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43536
2014-12-07 16:12:44 +00:00
Hauke Mehrtens
8e738da02c
brcm47xx: remove kernel 3.10
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
SVN-Revision: 43535
2014-12-07 15:34:28 +00:00
Rafał Miłecki
1020b84266
brcm47xx: add early support for WNDR3400 V3
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43532
2014-12-07 00:58:40 +00:00
Rafał Miłecki
c84fe94b0d
brcm47xx: add support for Netgear WGR614 V10
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43336
2014-11-20 22:15:21 +00:00
Rafał Miłecki
ac7e0e69bb
brcm47xx: mtd: bcm47xxpart: lower minimal blocksize to 4Ki (from 64Ki)
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 43322
2014-11-19 17:35:24 +00:00