Commit Graph

884 Commits (5a8e9846af689be7bc3b1fb4a356c3e3c711b94a)

Author SHA1 Message Date
Rafał Miłecki bda4c3d5e5 brcm47xx: apply serial flash size trick to Netgear WNR1000 V3
It also uses different block size just like WGR614 V10.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46810
9 years ago
Rafał Miłecki d2a9c35af0 brcm47xx: fix reading WGT634U CFE variables with 4.1
This ports fix from r46584 to the 4.1.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46806
9 years ago
Rafał Miłecki da2178eb7e brcm47xx: add Netgear WNR1000 V3 support in the Linux arch code
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46805
9 years ago
Jonas Gorski 7d6cff4882 kernel: update 3.18 to 3.18.21
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.21

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46768
9 years ago
Jonas Gorski f5601a97a2 brcm47xx: disable the openwrt commandline hack
We don't make use of it, so no need to have it enabled.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46756
9 years ago
Rafał Miłecki a9559efe43 brcm47xx: fix Linksys E1200 V2 image filename
Drop unwanted suffix (copy & paste mistake).

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46742
9 years ago
Jonas Gorski 2d379e796f kernel: update 4.1 to 4.1.6
Changelog:
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.6

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46713
9 years ago
Jonas Gorski 6be2305da8 kernel: update 4.1 to 4.1.5
Changelog:
 * https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.5

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46598
9 years ago
Jonas Gorski 4ecae78c16 image.mk: replace all Build/netgear-chk with a generic implementation
Instead of letting each target define it themselves, create on in
include/image.mk and let the targets use it.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46596
9 years ago
Jonas Gorski bee065262a brcm47xx: prefix netgear specific device variables with NETGEAR_
Rename BOARD_ID to NETGEAR_BOARD_ID and REGION to NETGEAR_REGION.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46594
9 years ago
Rafał Miłecki 4561cc2cca brcm47xx: fix reading WGT634U CFE variables
We got check for nvram_len placed too early and the code never tried
reading CFE variables used on WGT634U. This is a regression introduced
in r45942 and reported in #20291.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46584
9 years ago
Hauke Mehrtens b5b630ae38 brcm47xx: add support for kernel 4.1
This adds support for kernel 4.1 and removes kernel 4.0.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 46166
9 years ago
Jonas Gorski 0f5b1a3eca kernel: update 4.0 to 4.0.5
Changelog:
* https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.0.5

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46063
9 years ago
Jonas Gorski 9a59b350b7 kernel: update 3.18 to 3.18.16
Changelogs:

* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.15
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.16

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46011
9 years ago
Rafał Miłecki b273bb1896 brcm47xx: backport BCM47XX patches (NVRAM & BCMA_HOST_PCI)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45942
9 years ago
Rafał Miłecki bd150495bb brcm47xx: refresh kernel config
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45921
9 years ago
Rafał Miłecki 46bc3ed25a brcm47xx: sysupgrade: drop useless shift in platform.sh
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45913
9 years ago
Rafał Miłecki fc0776f2c7 brcm47xx: backport MIPS BCM47XX changes queued for 4.2
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45906
9 years ago
John Crispin 0da6f8a52b brcm47xx: extract TRX from image on the fly
Extracting TRX to separated file in /tmp/ requires extra RAM which may
not be available on some chepaer devices. Instead of that lets pass a
proper extracting command to the default_do_upgrade.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45901
9 years ago
Rafał Miłecki 6bc9e00e94 kernel: backport ssb fix for WRT350N v1 (BCM4705) reboots
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45865
9 years ago
Rafał Miłecki 92ebd6fdbe brcm47xx: image: fix typo in Asus WL-500gP v2 fw file name
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45811
9 years ago
Rafał Miłecki ebd651ad99 brcm47xx: add LEDs/buttos for Asus N10U
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45797
9 years ago
Rafał Miłecki a5000c0af6 brcm47xx: drop 4.0 patch that is in 4.0.4
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45796
9 years ago
Rafał Miłecki 69aefc771f brcm47xx: build images for Asus devices
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45789
9 years ago
Jo-Philipp Wich 048f46a075 brcm47xx: use common image prefix
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 45779
9 years ago
Rafał Miłecki f08a10f2b9 brcm47xx: build image for Asus RT-N66U
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45774
9 years ago
Jonas Gorski 76d079204d kernel: update 3.18 to 3.18.14
Changelogs:

* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.12
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.13
* https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.14

Build tested on brcm63xx and ipq806x, runtested on brcm63xx.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 45711
9 years ago
Rafał Miłecki 501da07c5d brcm47xx: fix regression in NVRAM support for WGT634U
We were calculating wrong offset, NVRAM wasn't found and OpenWrt didn't
boot.

Fixes: 9019803 ("brcm47xx: backport BCM47XX arch patches (clean NVRAM code, later init)")
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45618
9 years ago
Rafał Miłecki 8d1580c4bb brcm47xx: add patches for kernel 4.0
SVN-Revision: 45570
9 years ago
Rafał Miłecki 9c02b23a77 brcm47xx: add buttons support for WRT310N v2
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45474
9 years ago
Rafał Miłecki b12e85a451 brcm47xx: fix handling absolute paths in sysupgrade (for vendor formats)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45472
9 years ago
Rafał Miłecki e85294a957 brcm47xx: rework vendor fw handling to don't duplicate upgrade calls
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45470
9 years ago
Rafał Miłecki c8eed9a50a brcm47xx: explicitly select CPU_MIPS32_R2 and CPU_MIPSR2 for mips74k
The mips74k subtarget of brcm47xx configures gcc to compile for mips32r2;
however, the generated kernel config for 3.14 and later kernels ends up
with CPU_MIPS32_R1 and CPU_MIPSR1 selected.  The generated kernel config
for the 3.10 kernel (Barrier Breaker) properly selected CPU_MIPS32_R2 and
CPU_MIPSR2.  Modify the default kernel config for mips74k to explicitly
select CPU_MIPS32_R2 and CPU_MIPSR2.

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
Tested-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45469
9 years ago
Felix Fietkau 83e31eb7e7 bcm53xx: add USB 2.0 support
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45450
9 years ago
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
9 years ago
Luka Perkov b66b0ae632 brcm47xx: drop 3.14
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 45374
9 years ago
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
9 years ago
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
9 years ago
Rafał Miłecki 3fad95446a brcm47xx: fix WRT300N devices magics for sysupgrade check
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45317
9 years ago
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
9 years ago
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
9 years ago
Rafał Miłecki 705651884d brcm47xx: update legacy subtarget description
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45310
9 years ago
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
9 years ago
Rafał Miłecki 1d2abb6f16 brcm47xx: reverse 2 LEDs polarity on WRT320N v1
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45307
9 years ago
Rafał Miłecki 95f7fb8f49 brcm47xx: define rest of LEDs & buttons for WRT320N
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45304
9 years ago
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
9 years ago
Rafał Miłecki e2b59e4dbc brcm47xx: detect Linksys WRT320N v1
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45289
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
Rafał Miłecki 090a510576 brcm47xx: image: convert legacy Linksys & Netgear devices
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45184
9 years ago
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
9 years ago
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
9 years ago
Rafał Miłecki 184c0af4e2 brcm47xx: image: add helpers for defining devices
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45180
9 years ago
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
9 years ago
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
9 years ago
Rafał Miłecki 463a449f84 brcm47xx: update Linksys firmwares (add new E2500 versions)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45173
9 years ago
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
9 years ago
Rafał Miłecki 44dfe17576 brcm47xx: recognize more device specific firmwares
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45171
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
Rafał Miłecki 76811de003 brcm47xx: support SPROM/NVRAM prefixes
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44855
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
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
9 years ago
Rafał Miłecki 6296b8ca9f kernel: backport queued bcm47xxpart changes
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 44156
10 years ago
Rafał Miłecki 3bdf05441a brcm47xx: backport BCM47XX arch patches (clean NVRAM code, later init)
SVN-Revision: 43979
10 years ago
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
10 years ago
Rafał Miłecki cca3990b16 brcm47xx: verify if CHK/CyberTAN contains valid TRX
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43798
10 years ago
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
10 years ago
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
10 years ago
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
10 years ago
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
10 years ago
Rafał Miłecki 73237c0c9b brcm47xx: add WNDR3400 V3 buttons
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43579
10 years ago
Felix Fietkau 9a495f6bbb kernel: refresh patches
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43564
10 years ago
Hauke Mehrtens 563f963b1b kernel: refresh patches for kernel 3.18
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 43536
10 years ago
Hauke Mehrtens 8e738da02c brcm47xx: remove kernel 3.10
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 43535
10 years ago
Rafał Miłecki 1020b84266 brcm47xx: add early support for WNDR3400 V3
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43532
10 years ago
Rafał Miłecki c84fe94b0d brcm47xx: add support for Netgear WGR614 V10
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43336
10 years ago
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
10 years ago
Hauke Mehrtens a69ebe234d kernel: update kernel 3.18 to rc4
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 43229
10 years ago
Hauke Mehrtens e30531cd67 brcm47xx: add config for kernel 3.18
This adds a kernel config for kernel 3.18

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 43140
10 years ago
Rafał Miłecki 0100a8a68e brcm47xx: initial support for kernel 3.18
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 43100
10 years ago
Felix Fietkau c288d2d6d9 kernel: makefiles: make use of new var KERNEL_PATCHVER
replace all occurences of LINUX_VERSION with the cleaner
approach. future kernel upgrades must mostly touch only
one file. the only platform left is netlogic, because it
uses a intermediate kernel 3.14.16

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 43047
10 years ago
John Crispin 20940138ac scripts: fix wrong usage of '==' operator
[base-files] shell-scripting: fix wrong usage of '==' operator

normally the '==' is used for invoking a regex parser and is a bashism.
all of the fixes just want to compare a string. the used busybox-ash
will silently "ignore" this mistake, but make it portable/clean at least.

this patch does not change the behavior/logic of the scripts.

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 42911
10 years ago
Rafał Miłecki 746b80f166 brcm47xx: image: create initramfs TRX nodictionary images
Signed-off-by: Stephen Parry <sgparry@mainscreen.com>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 42889
10 years ago
Luka Perkov 02629d8f87 kernel: update 3.14 to 3.14.18
Targets were build tested and patches are refreshed.

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 42463
10 years ago
Hauke Mehrtens 4a9acacf53 kernel: 3.14: update bcm47xxpart
It it used by brcm47xx and bcm53xx targets, so put patches in generic.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 42212
10 years ago
Hauke Mehrtens 09739f8ba5 brcm47xx: image: build alternative TRX using less optimized LZMA
There is a group of devices that lzma-loader doesn't work with. They
simply hang at "Starting program at 0x80001000" which is really hard to
debug and we didn't find any solution for this for years.

Broadcom doesn't use lzma-loader on these devices anyway. They decided
to drop lzma-loader and use less optimal LZMA compression that can be
handled by CFE itself (it doesn't use dictionary).

So support these devices we will need kernel compressed with different
parameters and trx without a loader.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 42205
10 years ago
Hauke Mehrtens 32b3f9cdc6 brcm47xx/bcm53xx: improve description
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 42204
10 years ago
Hauke Mehrtens ade7d7ba8c brcm47xx: update to kernel 3.14
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 42202
10 years ago
Hauke Mehrtens ba0b904d0b brcm47xx: image: update list of Netgear WNR* firmwares
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 42165
10 years ago
Hauke Mehrtens 254b4df66f brcm47xx: fix brcm47xx.legacy build
we should check for ssb here.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 42164
10 years ago
Hauke Mehrtens 47bab2b654 brcm47xx: fix reboot problem on BCM4705/BCM4785
This adds some code based on code from the Broadcom GPL tar to fix the
reboot problems on BCM4705/BCM4785. I tried rebooting my device for ~10
times and have never seen a problem. This reverts the changes in the
previous commit and adds the real fix as suggested by Rafał.

Setting bit 22 in Reg 22, sel 4 puts the BIU (Bus Interface Unit) into
async mode.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 42088
10 years ago
Hauke Mehrtens 81c2466381 brcm47xx: fix reboot problem on BCM4705/BCM4785
This adds some code based on code from the Broadcom GPL tar to fix the
reboot problems on BCM4705/BCM4785. I tried rebooting my device for ~10
times and have never seen a problem. This reverts the changes in the
previous commit and adds the real fix as suggested by Rafał.

Setting bit 22 in Reg 22, sel 4 puts the BIU (Bus Interface Unit) into
async mode.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 42083
10 years ago
Hauke Mehrtens c371e6de02 brcm47xx: activate high mem for mips74k in the config
It is still not working.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 42054
10 years ago
Hauke Mehrtens 4ec288bfa4 brcm47xx: 3.14: backport MIPS patches for early HIGHMEM support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 42053
10 years ago
Hauke Mehrtens dc38211cff brcm47xx: 3.10: backport MIPS patches for early HIGHMEM support
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 42052
10 years ago
Hauke Mehrtens f7b3b7db7d brcm47xx: 3.14: update MIPS patches with versions sent upstream
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 41911
10 years ago
Hauke Mehrtens 3a82681e4f brcm47xx: 3.10: update MIPS patches with versions sent upstream
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 41910
10 years ago
Hauke Mehrtens 7a3b3b9d73 brcm47xx: don't create named switch_vlan sections
It doesn't seem to be used anywhere, it's incompatible with other
targets and can be confusing. People may think they need to update
section name every time they change VLAN ID (well, even I was doing
that).

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 41835
10 years ago
John Crispin ba63338d3f kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41776
10 years ago
Hauke Mehrtens 7435b628c6 brcm47xx: fix switch detection with kernel 3.14
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41706
10 years ago
Hauke Mehrtens 1636bc6704 brcm47xx: remove kmod-bgmac from profile
bgmac will be compiled into the kernel since r41594.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41667
10 years ago
Hauke Mehrtens f5955c2e6b brcm47xx: fix LEDs on WRT54GL 1.1
Ticket: #17062
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 41666
10 years ago
Hauke Mehrtens 6f417d5b4b brcm47xx: fix special board handling for some devices
Some devices were renamed when converted from diag to in kernel board detection and it was not changed in netconfig. Devices not in the
kernel board detection are removed now.

This should close: #17111, #16968, #13202

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41663
10 years ago
Hauke Mehrtens 7dbea92a9c brcm47xx: improve board detection for some devices
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41662
10 years ago
Hauke Mehrtens ba54356d49 brcm47xx: deactivate ssb and old phy code for new devices
This deactivates ssb and G-PHY code in b43 for the mips74k profile in
brcm47xx.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41594
10 years ago
John Crispin 32e93efc73 target/linux/*: more dead package cleanups
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41571
10 years ago
John Crispin 0f76f8a16e target/linux/*: kmod-fs-ext{2,3} RIP
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41560
10 years ago
Hauke Mehrtens 0a5145e851 brcm47xx: make reboot a more reliable
A reboot is issued by setting the watchdog timer to a low value, when
the value is decreased from 1 to 0 by the hardware the system will
reboot. Setting this value to 1 does not work every time, it is a
little bit more reliable when setting it to 3. This timer runs with
some MHz or KHz so nobody will notice the increased waiting.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41548
10 years ago
Hauke Mehrtens f42c36ea60 brcm47xx: add buttons support for Netgear WNR3500L
Ticket: #14406

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 41547
10 years ago
Hauke Mehrtens 4632347879 brcm47xx: remove unneeded images from generic target
broadcom-wl now builds in the mips74k profile, so remove these chips
from the generic profile.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41546
10 years ago
Hauke Mehrtens 3597b7d456 brcm47xx: image: legacy: take over old devices images
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 41530
10 years ago
Hauke Mehrtens 0eb3c26e7d brcm47xx: image: mips74k: take over some device images
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41529
10 years ago
Hauke Mehrtens c3b3df1da8 brcm47xx: image: prepare for using mips74k subtarget
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 41528
10 years ago
Hauke Mehrtens df8741f92b brcm47xx: fix bcm4705 rebooting when initializing the switch.
When the Ethernet controller is powered down and someone wants to
access the mdio bus like the witch driver (b53) the system crashed if
PCI_D3hot was set before. This patch deactivates this power sawing mode
when a switch driver is in use.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41527
10 years ago
Hauke Mehrtens 356663cdc8 brcm47xx: add LEDs for Netgear WNR3500L
https://dev.openwrt.org/ticket/14406

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41520
10 years ago
Hauke Mehrtens 8e4efd42d9 brcm47xx: make it possible to unregister the adm switch
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41517
10 years ago
Hauke Mehrtens 03e2310a38 brcm47xx: fix LEDs on WRTSL54GS
https://dev.openwrt.org/ticket/16991

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41516
10 years ago
Hauke Mehrtens 77dee19ab4 brcm47xx: increase fallback mac addresses by one
Now the mac address is increased by two for the first fallback mac
address. It could be that the address increased should be used for the
wan port.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41515
10 years ago
Hauke Mehrtens 3fff38f93a brcm47xx: do not use mac addresses with 00:90:4C prefix, prevent mac address collisions.
The address prefix 00:90:4C is used by Broadcom in their initial
configuration. When a mac address with the prefix 00:90:4C is used
all devices from the same series are sharing the same mac address.
To prevent mac address collisions we replace them with a mac address
based on the base address.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41513
10 years ago
Hauke Mehrtens 163fe41c75 brcm47xx: get switch name from swconfig first
Without this patch the switch config for the adm switch did not worked,
because hey are not names eth0.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41512
10 years ago
Hauke Mehrtens 3f64bb8f8f brcm47xx: add LEDs for Asus RT-N15U and update RT-N66U
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 41501
10 years ago
Hauke Mehrtens 9467896172 brcm47xx: migrate basic network settings from old releases
Old OpenWrt releases were using network configs that are not valid
anymore. They were specifying ports tagging in a different way (or were
not tagging CPU at all) and were using VID 0 which is a reserved value.

Modifying network configuration to apply all needed changes would be
pretty tricky. Script /etc/init.d/netconfig that generates new config is
quite complex itself.
So instead let's save the most important settings, regenerate config
from the scratch and restore values. This should work for 99% of users.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 41500
10 years ago
Hauke Mehrtens 5996160a66 brcm47xx: add CONFIG_LEDS_GPIO_REGISTER
CONFIG_LEDS_GPIO_REGISTER is selected by the bcm47xx arch code.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41488
10 years ago
Hauke Mehrtens f95fc5b2d5 brcm47xx: refresh patches
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41487
10 years ago
Hauke Mehrtens ba1b49dbab brcm47xx: backport BCM47XX Linksys WRT54G series patches
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41486
10 years ago
John Crispin 994e5ce2f9 kernel: update 3.10.36->3.10.44
205-fix-headers_install.patch is obseleted by upstream commit 3246a0352e3d58380b9386570f1db1faf7edf8a8

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41351
10 years ago
Felix Fietkau ad97acf46a brcm47xx: merge FEATURES lines in the legacy subtarget
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41053
10 years ago
Felix Fietkau c48140efb8 brcm47xx: fix kmod-usb-brcm47xx build on legacy and mips74k subtargets
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41052
10 years ago
Hauke Mehrtens ed7c73fbef brcm47xx: activate some compiler optimizations for 74K CPUs
With this patch the mips74k subtarget will be compiled with optimized
compiler options to generated smaller and faster code. This currently
breaks broadcom-wl, because the binary blob is only compiled with
mipsr1 support.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41050
10 years ago
Felix Fietkau 4b953aa267 brcm47xx: move the low_mem feature flag to the legacy subtarget
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41049
10 years ago
Hauke Mehrtens 717e8b6f3c brcm47xx: remove old gpio and nvram interfaces
These were only used by broadcom-diag any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41048
10 years ago
Hauke Mehrtens cfa350ca39 brcm47xx: mips74k: optimize kernel config
This saves abount 15 kB of compressed kernel size.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41043
10 years ago
Hauke Mehrtens 9dc5fb9103 bcm47xx: use eth0 for switch name
This fixes some strange problems with tg3. I assume that the Ethernet
driver was not brought up if the switch was named switch0.

This was reported and tested by ernesto (Faulp3lz).

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41042
10 years ago
Felix Fietkau dec0d7f025 brcm47xx: add a "legacy" subtarget that is usable for low-end 802.11g devices like WRT54G
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 41041
10 years ago
Hauke Mehrtens bffd80e3e1 brcm47xx: add mips74k subtarget for newer devices
All new devices (with MIPS 74K CPU) are based on BCMA SoC and have
Ethernet core supported by bgmac. Create a new subtarget to generate
optimized builds.
This is just a beginning, further tweaks (like kernel configuration)
are still possible. This decreases default root.squashfs by ~128 kB.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41025
10 years ago
Hauke Mehrtens b5d42bc111 brcm47xx: move current target to "generic" subtarget
This allows creating more subtargets and optimize builds per family.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 41024
10 years ago
Felix Fietkau ae2c9a815a brcm47xx: enable the low-memory feature flag
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40982
10 years ago
John Crispin f933a741a9 target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC
ARGC is a 'C-ism', but not known/valid in shell-syntax - insert the correct
var $# (=number of args) here. under normal conditions this had no impact,
but we should at least correct it. the error was observable like this:

root@box:~ [ -e "/etc/functions.sh" ] && . /etc/functions.sh
root@box:~ [ -e "/lib/functions.sh" ] && . /lib/functions.sh
root@box:~ . /lib/upgrade/platform.sh
root@box:~ . /lib/upgrade/common.sh
root@box:~ platform_check_image /tmp/myfirmware.bin
ash: bad number
root@box:~ echo $?
0

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>

SVN-Revision: 40915
10 years ago
Felix Fietkau 32d1e0ed2c kernel: add a ssb backport required for a new mac80211 update
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40833
10 years ago
Hauke Mehrtens 16b6db7055 brcm47xx: profiles: fix white spaces (s/ $//)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 40763
10 years ago
Hauke Mehrtens 1d878cabf2 brcm47xx: image: respect device flash block size
We should be more careful and don't generate 128K JFFS2 images for
devices with flashes using 64K blocks (nor the other way).

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 40762
10 years ago