Hi, since the adoption of the Linux kernel 4.9 there are available drivers for
NAND flash in the brcm63xx target. However these drivers only support brcm NAND
versions 4.0 and and up, giving support only for BCM6362 and BCM63268 SoCs
I've made a patch for including the versions present in BCM63
- DGND3700v1: fix port numbers, they're in reverse order
- FaST2704n: there is no WAN port identified as such, only 4 LAN
- AD1018: configure the "FIBRE" port as WAN
Signed-off-by: Daniel Gonzalez Cabanelas
---
target/linux/brcm63xx/base-files/etc/board.d/02_network | 10 +++
The WAN port on the Netgear WNDR4300 router has two LEDs,
amber and green. Use the switch LED trigger to behave as the
rest of the LAN HW controlled LEDs
- Green: 1 Gbps
- Amber: 100/10 Mbps
Signed-off-by: Daniel Gonzalez Cabanelas
---
target/linux/ar71xx/base-files/etc/board.d/01_leds | 3
ng to let
the user choose a NOR chip of any size (8, 16 or 32 MB).
Signed-off-by: Daniel Gonzalez Cabanelas
---
Change in v2:
- rename the board at dts for indicating this is a firmware for SPI NOR
flash chips, and minor changes
- add USB LED
---
.../linux/brcm63xx/base-files/etc/board.d/01
h SPI flash chips. Therefore
hardware modding for soldering a new SPI flash chip is required
to make the board work with LEDE (tested and working OK).
Signed-off-by: Daniel Gonzalez Cabanelas
---
.../linux/brcm63xx/base-files/etc/board.d/01_leds | 3 +
.../brcm63xx/base-files/etc/board.d/02_ne
Add support for the Comtrend AR-5315u router
This a BCM6318 based board, 64 MB RAM, 16 MB SPI flash,
with an onboard BCM43217 wifi, 4 ethernet ports and 1
USB host port
Signed-off-by: Daniel Gonzalez Cabanelas
---
Change in v2:
- add missing comtrend compatible brand for DTS
Change in v3
USB doesn't work in some danube boards because otg_cap
is missing since previous changes made on the USB-dwc2
lantiq driver. Fix it.
Tested on the ARV7518PW router.
Signed-off-by: Daniel Gonzalez Cabanelas
---
...ke-the-lantiq-settings-match-vendor-drive.patch
Add support for the Comtrend AR-5315u router
This a BCM6318 based board, 64 MB RAM, 16 MB SPI flash,
with an onboard BCM43217 wifi, 4 ethernet ports and 1
USB host port
Signed-off-by: Daniel Gonzalez Cabanelas
---
Change in v2:
- add missing comtrend compatible brand for DTS
.../linux
Add BCM6318 to GPIO_MODE internal switch port leds setup.
As with BCM6368 the pinmux for the switch LEDs in BCM6318
is also lost when LEDE initializes the peripherals. Fix it.
Signed-off-by: Daniel Gonzalez Cabanelas
---
...rcm63xx-setup-pinctrl-for-internal-switch-leds-on-b.patch | 12
Add support for the Comtrend AR-5315u router
This a BCM6318 based board, 64 MB RAM, 16 MB SPI flash,
with an onboard BCM43217 wifi, 4 ethernet ports and 1
USB host port
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git a/target/linux/brcm63xx/base-files/etc/board.d/01_leds
b/target/linux
> Fetching the entire port stats only to look up two fields seems rather
> excessive. Please make a function instead that will look up the register
> number and fetch only the relevant registers.
> The lookup can be further simplified by adding an enum for the mib_stats
> array index.
>
> - Felix
Currently the switch LED trigger only shows link status, but not traffic
activity by blinking
the LEDs on the AR8316/AR8327 switch. It turns out that the get_port_stats is
missing.
I've made this patch, which works ok. But I'm not sure if there is any reason
to not implement this
function. And
/100 Mbps link. 4Hz for 100Mbps, 2Hz for 10Mbps
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c
b/target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c
index 2884c6c..2a00a0e 100644
--- a/target/linux/ar71xx/files/arch/mips
The Netgear WNDR4300 has the VLAN IDs flipped in LuCi, fix it.
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network
b/target/linux/ar71xx/base-files/etc/board.d/02_network
index e08d7dd..a55e50a 100755
--- a/target/linux/ar71xx/base-files
Add SPROM wifi to the kernel board data.
After this fix, the wifi won't work anyway due the lack
of RAM memory (16 MB). It will throw a kernel panic
when loading the b43 drivers.
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git a/target/linux/brcm63xx/patches-4.4/519_board_CPVA502plus.
Fix board name typo, fix network configuration and add a led trigger.
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git a/target/linux/brcm63xx/base-files/etc/board.d/01_leds
b/target/linux/brcm63xx/base-files/etc/board.d/01_leds
index 7d208cc..61f685e 100755
--- a/target/linux/brcm63xx/base
Fix typo, erase pointless option and allow to build the image.
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git a/target/linux/brcm63xx/image/bcm63xx.mk
b/target/linux/brcm63xx/image/bcm63xx.mk
index 0749c29..969d75f 100644
--- a/target/linux/brcm63xx/image/bcm63xx.mk
+++ b/target/linux
Leds are wrong and a button is missing, fix them.
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git a/target/linux/brcm63xx/dts/cpva502plus.dts
b/target/linux/brcm63xx/dts/cpva502plus.dts
index 6d9b5d3..3ddc459 100644
--- a/target/linux/brcm63xx/dts/cpva502plus.dts
+++ b/target/linux/brcm63xx
Fix the register for configuring rising/falling edge
Rising should be sense=1, and falling sense=0.
The old driver used these values, but the new one have
them flipped.
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git
a/target/linux/brcm63xx/patches-4.4/321-irqchip-add-support-for-bcm6345
on is adopted. The intention is to integrate
the patch into the stable release 17.01
Patch tested in an AR7240 based board.
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git a/target/linux/ar71xx/config-4.4 b/target/linux/ar71xx/config-4.4
index 4b2f736..d3ecf4d 100644
--- a/target/linux/ar71xx/c
The internal phy is using wrong registers for the config interrupt function,
causing incorrect behavior when detecting the link activity. Fix it.
We cannot use the bcm_phy_config_intr function from the bcm-phy-lib.c
because it uses different registers from brcm63xx. The old function was
right, so
function, which matches with the one used by the
"Broadcom PHY driver" (brcm_fet_config_intr at broadcom.c).
brcm63xx internal phy uses the same registers as the ones defined in
brcmphy.h for fast ethernet, use them instead.
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git
a/ta
ff-by: Daniel Gonzalez Cabanelas
diff --git a/target/linux/brcm63xx/base-files/etc/board.d/02_network
b/target/linux/brcm63xx/base-files/etc/board.d/02_network
index c20caf9..c83aa62 100755
--- a/target/linux/brcm63xx/base-files/etc/board.d/02_network
+++ b/target/linux/brcm63xx/base-files/etc/bo
erase those bits to let the LEDs blink with LAN activity.
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git
a/target/linux/brcm63xx/patches-4.4/805-bcm6368-dont_erase_ephy_ledmux.patch
b/target/linux/brcm63xx/patches-4.4/805-bcm6368-dont_erase_ephy_ledmux.patch
new file mode 100644
index 00
h all BCM6368 based boards (known bug, GPIO LAN-LED mux
is lost at boot time).
The wifi chip is an onboard Broadcom BCM43222.
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git a/target/linux/brcm63xx/base-files/etc/board.d/02_network
b/target/linux/brcm63xx/base-files/etc/board.d/02_network
Fix Image generation for the Livebox 1
- missing "relocate-kernel", wrong "LOADADDR", fix it
Signed-off-by: Daniel Gonzalez Cabanelas
---
change in v2:
Split changes in DTS file
---
diff --git a/target/linux/brcm63xx/image/Makefile
b/target/linux/brcm63xx/image/Makefile
in
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
---
change in v2:
Split changes in DTS file
---
diff --git a/target/linux/brcm63xx/base-files
Fix the DTS file for the Livebox 1 routers:
- no failsafe button, use button 1 for this purpose
Signed-off-by: Daniel Gonzalez Cabanelas
---
change in v2:
Split changes in DTS file
Tune button labels
---
diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts
b/target/linux/brcm63xx/dts
Fix the DTS file for the Livebox 1 routers:
- part probe wrong, it should be RedBoot (uppercase matters)
Signed-off-by: Daniel Gonzalez Cabanelas
---
change in v2:
Split changes in DTS file
---
diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts
b/target/linux/brcm63xx/dts/livebox-blue
Fix the DTS file for the Livebox 1 routers:
- leds are totally wrong, fix them.
Signed-off-by: Daniel Gonzalez Cabanelas
---
change in v2:
Split changes in DTS file
---
diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts
b/target/linux/brcm63xx/dts/livebox-blue-5g.dts
index 0df5fa8
e GPIO line.
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git
a/target/linux/brcm63xx/patches-4.4/374-gpio-add-a-simple-GPIO-driver-for-bcm63xx.patch
b/target/linux/brcm63xx/patches-4.4/374-gpio-add-a-simple-GPIO-driver-for-bcm63xx.patch
index 92b0e71..0d6f8ce 100644
---
a/target/linux/brcm
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
diff --git a/target/linux/brcm63xx/base-files/etc/board.d/01_leds
b/target/linux/brcm63xx
Fix Image generation for the Livebox 1
- missing "relocate-kernel", wrong "LOADADDR", fix it
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git a/target/linux/brcm63xx/image/Makefile
b/target/linux/brcm63xx/image/Makefile
index f5de673..beed8e9 100644
--- a/target/linux/brc
Fix the DTS file for the Livebox 1 routers:
- leds are totally wrong, fix them.
- no failsafe button, use button 1 for this purpose
- part probe wrong, it should be RedBoot (uppercase matters)
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts
b
e RedBoot (uppercase matters). It still
don't work
(bad partition offsets and sizes detected) so disable it.
- Add status led
- Set eth0 as the LAN port, for coherence with RedBoot and comfortability.
- Add led triggers
Signed-off-by: Daniel Gonzalez Cabanelas
diff --git a/target/linu
35 matches
Mail list logo