Commit graph

1050 commits

Author SHA1 Message Date
Jonas Gorski
94bbd1f057 brcm63xx: fix external interrupts on BCM6318
Setting the clear bit for an interrupt seems to cause interrupts to be
deasserted again immediately. So unset the bit for BCM6318 to allow
subsequent interrupts to still work.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2017-02-09 14:30:43 +01:00
Jo-Philipp Wich
770ac77cce brcm63xx: board.d: request untagged switch config where applicable
In order to prepare support for generating tagged switch configurations by
default, explicitely request untagged configs for boards which do not already
request tagging to retain default behaviour.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-02-02 00:13:49 +01:00
Felix Fietkau
1708644f19 kernel: backport MIPS changes introducing a separate IRQ stack
Prevents crashes when IRQs arrive when the current kernel stack context
already contains deeply nested function calls, e.g. when stacking lots
of network devices on top of each other

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2017-01-15 18:25:54 +01:00
Victor Shyba
d6c831e0e5 generic: mtd: backport SPI_NOR_HAS_LOCK
This flag was added to 4.9 with upstream commit
76a4707de5e18dc32d9cb4e990686140c5664a15.

Signed-off-by: Victor Shyba <victor1984@riseup.net>
[refresh and adjust platform patches, fix commit message]
Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-01-03 19:58:00 +01:00
Jo-Philipp Wich
fc6ed9521d brcm63xx: image: trim revision code used for --rsa-signature
The imagetag RSA signature field may not exceed 20 characters, so trim the
Git hash portion from the REVISION variable in order to ensure that the
resulting string fits within this field.

The current revision values may be longer than 20 chars, especially when
building within a dirty tree. In this case, the revision will look like
"r2435+75-b4aa3c8" which, combined with the "LEDE-" prefix, is 21 chars long.

Fixes the following error spotted by the buildbots:

    Error: RSA Signature (rsa_signature,r) too long.
    make[4]: *** [.../lede-brcm63xx-generic-NEUFBOX6-squashfs-cfe.bin] Error 1

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-12-14 18:39:14 +01:00
Daniel Gonzalez Cabanelas
d2b79e4d80 brcm63xx: Livebox 1: add userspace board support
Fix configuration files for the Livebox 1 routers.
- Add status led
- Set eth0 as the LAN port, for coherence with RedBoot and comfortability.
- Add led triggers

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-11-21 18:40:15 +01:00
Daniel Gonzalez Cabanelas
aedca3ce43 brcm63xx: Livebox 1: relocate the kernel to fix boot
Fix Image generation for the Livebox 1
- missing "relocate-kernel", wrong "LOADADDR", fix it

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-11-21 18:40:15 +01:00
Daniel Gonzalez Cabanelas
422ba32c71 brcm63xx: Livebox 1: fix part probe name
Fix the DTS file for the Livebox 1 routers:
- part probe wrong, it should be RedBoot (uppercase matters)

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-11-21 18:40:15 +01:00
Daniel Gonzalez Cabanelas
768595c9f1 brcm63xx: Livebox 1: fix led naming
Fix the DTS file for the Livebox 1 routers:
- leds are totally wrong, fix them.

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-11-21 18:40:15 +01:00
Daniel Gonzalez Cabanelas
727ebf3a70 brcm63xx: Livebox 1: use button 1 as failsafe button
Fix the DTS file for the Livebox 1 routers:
- no failsafe button, use button 1 for this purpose

Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-11-21 18:40:15 +01:00
Mathias Kresin
2b55c83e68 treewide: dts: use keycode defines from input dt-binding
All compiled device tree files not mentioned are binary identical to the
former ones.

Fix the obvious decimal/hex confusion for the power key of ramips/M2M.dts.

Due to the include of the input binding header, the BTN_* node names in:

  - ramips/GL-MT300A.dts
  - ramips/GL-MT300N.dts
  - ramips/GL-MT750.dts
  - ramips/Timecloud.dts

will be changed by the compiler to the numerical equivalent.

Move the binding include of lantiq boards to the file where they are
used the first time to hint the user where the values do come from.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-11-13 07:07:58 +01:00
Mathias Kresin
de40d45363 treewide: dts: fix dtc compiler warnings
Fixes invalid device tree parameters.

Drop the mvsw61xx node used in mvebu device tree source files. It looks
like some kind of ethernet switch cargo cult. Neither the
marvell,88e6352 nor the marvell,88e6172 compatible strings can be found
in any LEDE file or in the kernel sources.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-11-12 21:04:15 +01:00
Stijn Segers
2f2ea7b44c kernel: update kernel 4.4 to version 4.4.30
This patch bumps the 4.4 kernel from .28 to .30 and refreshes the patches.
Compile-tested on ar71xx, x86/64, ramips/mt7621, brcm47xx and kirkwood.

Run-tested on ar71xx & ramips/mt7621, brcm47xx and kirkwood (last two confirmed
by P. Wassi).

Signed-off-by: Stijn Segers <francesco.borromini@inventati.org>
2016-11-02 10:25:44 +01:00
Rafał Miłecki
0658527e1e switch to the new usbport LED trigger
This makes init.d script handle existing UCI entries using the new
trigger. It also switches all targets to use its package.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2016-10-19 12:09:45 +02:00
Álvaro Fernández Rojas
d14c28fc80 kernel: update kernel 4.4 to version 4.4.20
Refresh patches for all targets that support kernel 4.4.
Compile-tested on brcm2708 only.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-09-15 08:10:55 +02:00
Daniel Gimpelevich
993ad29359 kernel: Backport pending appended DTB handling patches
Backport patches from upstream Linux kernel which are making the
kernel stores the appended dtb not in the same resisters as defined in
the UHI specification, use a separate variable on MIPS.

Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
[some modifications]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-09-12 22:36:55 +02:00
Mathias Kresin
85fefcdb61 kernel: mtd: backport Macronix sector size fix
Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-09-03 09:27:09 +02:00
Felix Fietkau
aa53f78038 build: fix subtarget descriptions
Move Target/Description above the target.mk include

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-09-04 13:35:11 +02:00
Jonas Gorski
cf8da98e94 brcm63xx: switch to board based failsafe networking
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-08-13 15:50:23 +02:00
Jonas Gorski
0ddae04c22 brcm63xx: backport mtd of node changes from upstream
Should fix parser data containing uninitialized values for of probed
physmap flashes, which could break e.g. the redboot parser.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-08-13 15:49:35 +02:00
Daniel Gonzalez
4ab33a3002 brcm63xx: fix CT-536p/CT-5621T support
Fix support for the Comtrend  CT-536+, CT-5361 and CT-5621T routers support.

Currently the firmware is broken for these routers, because there is a missing
bar in the code at the DTS file avoiding to match with DTS stuff at the kernel. This
causes the router boots without ethernet connectivity. The status led also has a typo.

Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-08-01 10:12:15 +02:00
Felix Fietkau
df68d6eb15 brcm63xx: fix build with per-device rootfs
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-31 13:17:51 +02:00
Felix Fietkau
63b525dd6b image: add a helper variable for getting kernel/rootfs from within image Build/* templates
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-31 12:25:25 +02:00
dani
cea917c30b brcm63xx: fix HG556a C button
One button of the HG556a-C has the wrong GPIO pin defined in the dts file,
fix it

Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>
2016-07-24 06:38:30 +02:00
Felix Fietkau
8e2764ce9b image.mk: clean up redundant code related to DEVICE_DTS
It is used by a core build template, so the variable should be
initialized and added to DEVICE_VARS in the core.
Same for DEVICE_DTS_DIR

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-15 14:14:11 +02:00
Hauke Mehrtens
efa1960abb kernel: update kernel 4.4 to version 4.4.15
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-07-13 15:39:15 +02:00
Jonas Gorski
eae812ddb6 brcm63xx: fix image generation with offsets/blocksizes != 64K
Defer the CFE_EXTRAs evaluation to allow overriden BLOCK_SIZE and
IMAGE_OFFSET take effect, and replace the unused IMAGE_SIZE with
IMAGE_OFFSET in DEVICE_VARS.

This fixes image generation for targets using different offsets or
blocksizes.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-07-09 13:41:53 +02:00
Jonas Gorski
0bed85bbca brcm63xx: fix CVG834G compatible string
The CVG834G claimed to be a BCM6348, but is actually BCM3368. Since we
don't test against it, this was harmless.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-07-09 13:41:50 +02:00
Ben Whitten
b7baaaf782 kernel: Move append-dtb to common image-commands
This build step is used by various targets, move it to a common section.

Signed-off-by: Ben Whitten <ben.whitten@gmail.com>
2016-06-22 19:32:06 +02:00
Álvaro Fernández Rojas
a95d64a269 brcm63xx: simplify block size and image offset options
Instead of having CFE_EXTRAS for every device that need specific block sizes
and image offset, let's define a couple of vars which can be customized for
each device.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-21 16:42:47 +02:00
Álvaro Fernández Rojas
13253fbcbd brcm63xx: add sysupgrade images
Some devices require padded images in order to prevent CFE from flashing them
to the wrong offset.
For small flashes (4/8) this is no big deal, but for larger flashes (16/32) this
implies 8 and 16 MB images, which is way too large and some devices aren't
capable of flashing them through sysupgrade.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-21 16:42:44 +02:00
Jonas Gorski
d61d82e3d3 brcm63xx: merge DSL-274X-F1 profiles
The only difference is a field in the image tag header, so just define
two images for it instead of treating them as separate devices.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-06-21 09:23:22 +02:00
Jonas Gorski
a89f5e795a brcm63xx: move the bootargs into the dtb files
Instead of using a fixed commandline, allow one per device.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-06-21 09:23:22 +02:00
Jonas Gorski
80403e4558 brcm63xx: use upstreamed compatible name for the periph intc
This makes the eventual migration to bmips easier, as dts files
will require less changes.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-06-21 09:23:22 +02:00
Daniel Gonzalez
29444e4754 brcm63xx: fix external IRQs
External IRQs are currently broken, fix the BCM6345_EXT_IRQ driver.

Since the adoption of the new driver irq-bcm6345-ext, in Chaos Calmer,
external IRQs don't work. It seems there were some minor errors at the initial
development of the driver.

This patch fixes the ticket https://dev.openwrt.org/ticket/21613

Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-06-21 09:23:21 +02:00
Álvaro Fernández Rojas
6b5f6d6601 brcm63xx: fix single profile selection
Fixes commit c6990347.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-06-21 09:23:21 +02:00
Rafał Miłecki
cf6d9d97fb kernel: rename B53 symbols to avoid upstream kernel conflict
In kernel 4.7 there is upstreamed b53 driver using (mostly?) the same
symbols as our b53 does. Change our symbols so both drivers can coexist
in kernel tree.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-06-20 08:00:14 +02:00
Álvaro Fernández Rojas
98d418e05f brcm63xx: improve image/Makefile
- Use KERNEL_INITRAMFS_SUFFIX for customizing initramfs name.
- Modifying $(PROFILES) is no longer needed.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-08 09:16:37 +02:00
Álvaro Fernández Rojas
a0ea3eab63 brcm63xx: fix typo image/Makefile
This typo was introduced in c6990347

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-05 15:42:27 +02:00
Graham Fairweather
532c3f3218 brcm63xx: add initial support for Netgear EVG2000
This patch adds support for the Netgear EVG2000 VoIP Gateway to the
bcm63xx targets.

This device was not sold to the general public, but rather is/was
provided by telcos to customers in Sweden, Australia, Singapore and
other parts of asia.

Known issues:
 - Unable to detect 53115 switch. This appear to be a problem with
probing for the PHY using MDIO and results in error 5. Doesn't seem to
be a problem with the configuration, and could use someone with
experience to have a look at it.
 - Uses the b43 driver as using the OpenWRT/LEDE broadcom-wl driver
fails to load the firmware for the 4322, so 802.11n is not supported.

More info on the device and the research can be found at:
https://wiki.openwrt.org/toh/netgear/evg2000
https://wikidevi.com/wiki/Netgear_EVG2000
https://github.com/Xotic750/mirror-lede/tree/evg2000
https://forum.openwrt.org/viewtopic.php?id=63950

Signed-off-by: Graham Fairweather <xotic750@gmail.com>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-03 16:45:08 +02:00
Álvaro Fernández Rojas
a529b41cff brcm63xx: set DSL-274XB-F1 ath9k LED as active high
D-Link DSL-274XB rev F1 has an active high ath9k LED.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-03 16:40:51 +02:00
Álvaro Fernández Rojas
85a0a908e3 brcm63xx: set HG556a A/B ath9k LED as active high
Huawei HG556a has an active high ath9k LED.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-03 16:36:23 +02:00
Álvaro Fernández Rojas
7807c7e867 brcm63xx: add support for inverting ath9k LED polarity
Some devices with ath9k WiFi require changing the default active low
polarity to high in order to correctly operate the WiFi status LEDs.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-03 16:35:46 +02:00
Álvaro Fernández Rojas
ec95509af4 brcm63xx: remove obsolote preinit scripts and fix preinit iface script
These scripts were causing ip issues in the latest version of LEDE:
https://gist.github.com/Noltari/6d20d8bcbe236caf516c0a73f5477d00

Fixes preinit iface script by making eth0 the default ifname and only changing
it to eth1 for the devices that specifically need it.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-03 16:30:06 +02:00
Álvaro Fernández Rojas
c69903473b brcm63xx: move profiles definitions to image/Makefile
This switches brcm63xx to the new profile definition system in image/Makefile

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-03 16:27:48 +02:00
Álvaro Fernández Rojas
2dc7f99662 brcm63xx: refresh kernel patches and config
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-03 16:25:18 +02:00
Álvaro Fernández Rojas
fd7786159d brcm63xx: drop linux 4.1 support
Switch to linux 4.4 now that it has been enough tested.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-03 16:25:11 +02:00
Álvaro Fernández Rojas
23273044a8 brcm63xx: switch to linux 4.4
Boot tested on AR-5381u, AR-5387un and WAP-5813n

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-03 16:25:04 +02:00
Álvaro Fernández Rojas
794383b801 brcm63xx: fix F@ST2704V2 image generation
This device needs the firmware padded to 4MB.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-06-01 21:47:42 +02:00
Hauke Mehrtens
fcbc97ad78 kernel: update kernel 4.1 to version 4.1.20
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 49035
2016-03-18 23:41:21 +00:00