mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
209c5918b5
1. Add leds and configs 2. Add network configs 3. Add script to clear partial boot flag 4. Hack to use port 5 as cpu port as port 8 connected to eth2 wont pass any frames 5. Enable EA9500 image generation Hardware Info: - Processor - Broadcom BCM4709C0KFEBG dual-core @ 1.4 GHz - Switch - BCM53012 in BCM4709C0KFEBG & external BCM53125 - DDR3 RAM - 256 MB - Flash - 128 MB (Toshiba TC58BVG0S3HTA00) - 2.4GHz - BCM4366 4×4 2.4/5G single chip 802.11ac SoC - Power Amp - Skyworks SE2623L 2.4 GHz power amp (x4) - 5GHz x 2 - BCM4366 4×4 2.4/5G single chip 802.11ac SoC - Power Amp - PLX Technology PEX8603 3-lane, 3-port PCIe switch - Ports - 8 Ports, 1 WAN Ports - Antennas - 8 Antennas - Serial Port - @j6 [GND,TX,RX] (VCC NC) 115200 8n1 Flashing Instructions: 1. Connect a USB-TTL table to J6 on the router as well as a ethernet cable to a lan port and your PC. 2. Power-on the router. 3. Use putty or a serial port program to view the terminal. Hit Ctrl+C and interrupt the CFE terminal terminal. 4. Setup a TFTP server on your local machine at setup you local IP to 192.168.1.2 5. Start the TFTP Server 6. Run following commands at the CFE terminal flash -noheader 192.168.1.2:/openwrt.trx nflash0.trx flash -noheader 192.168.1.2:/openwrt.trx nflash0.trx2 nvram set bootpartition=0 && nvram set partialboots=0 && nvram commit 7. Reboot router to be presented by OpenWrt Note: Only installation method via serial cable is supported at the moment. The trx firmware has to be flashed to both the partitions using following commands from CFE prompt. This will cover US and Non-US variants. Signed-off-by: Vivek Unune <npcomplete13@gmail.com> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
54 lines
1.7 KiB
Diff
54 lines
1.7 KiB
Diff
From 4abdde3ad6bc0b3b157c4bf6ec0bf139d11d07e8 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
|
|
Date: Wed, 13 May 2015 14:13:28 +0200
|
|
Subject: [PATCH] b53: add hacky CPU port fixes for devices not using port 5
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
|
|
---
|
|
drivers/net/phy/b53/b53_common.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- a/drivers/net/phy/b53/b53_common.c
|
|
+++ b/drivers/net/phy/b53/b53_common.c
|
|
@@ -28,6 +28,7 @@
|
|
#include <linux/of.h>
|
|
#include <linux/of_net.h>
|
|
#include <linux/platform_data/b53.h>
|
|
+#include <linux/of.h>
|
|
|
|
#include "b53_regs.h"
|
|
#include "b53_priv.h"
|
|
@@ -1587,6 +1588,29 @@ static int b53_switch_init(struct b53_de
|
|
return ret;
|
|
}
|
|
|
|
+ /* Set correct CPU port */
|
|
+ if (of_machine_is_compatible("asus,rt-ac87u"))
|
|
+ sw_dev->cpu_port = 7;
|
|
+ else if (of_machine_is_compatible("netgear,r7900"))
|
|
+ sw_dev->cpu_port = 8;
|
|
+ else if (of_machine_is_compatible("netgear,r8000"))
|
|
+ sw_dev->cpu_port = 8;
|
|
+ else if (of_machine_is_compatible("netgear,r8500"))
|
|
+ sw_dev->cpu_port = 8;
|
|
+
|
|
+ /* Enable extra ports */
|
|
+ if (of_machine_is_compatible("tenda,ac9"))
|
|
+ dev->enabled_ports |= BIT(5);
|
|
+
|
|
+ /*
|
|
+ * Workaround for devices using port 8 (connected to the 3rd iface).
|
|
+ * For some reason it doesn't work (no packets on eth2).
|
|
+ */
|
|
+ if (of_machine_is_compatible("netgear,r7900") ||
|
|
+ of_machine_is_compatible("netgear,r8000") ||
|
|
+ (of_machine_is_compatible("linksys,panamera") && dev->chip_id == BCM53012_DEVICE_ID))
|
|
+ sw_dev->cpu_port = 5;
|
|
+
|
|
dev->enabled_ports |= BIT(sw_dev->cpu_port);
|
|
sw_dev->ports = fls(dev->enabled_ports);
|
|
|