forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specifications: SOC: Atheros AR9344 @ 560MHz RAM: 2x Winbond W9751G6KB-25 (128 MiB) FLASH: Hynix H27U1G8F2BTR (128 MiB) WIFI1: Atheros AR9340 5.0GHz (SoC) WIFI2: Atheros AR9280 2.4GHz SWITCH: Atheros AR8236 (5x Gigabit (1x WAN, 4x LAN) LED: 1x Power-LED, 1 x RGB Tricolor-LED INPUT: One Reset Button USB: One USB 2.0 Port UART: JP1 on PCB (Labeled UART), 3.3v-Level, 115200n8 (GND, TX, RX, VCC - GND is next to the UART silk screen) Flashing Instructions: Since this device is brought over from an old AR71xx, there's already a wiki-page with detailed instructions: <https://openwrt.org/toh/meraki/z1> The gist: 1. Get a root-shell on the device (see wiki). (needs UART access) 2. make a backup (to a PC/safe location) of the existing Meraki firmware. 3. copy over the OpenWrt initramfs kernel for the Z1. This gets written into the kernel NAND partition. (Verify that written image is complete!) After the following reboot and successfull boot of the staging OpenWrt initramfs image: 4. copy over the sysupgrade.bin for the router and use sysupgrade to make the installation permanent. Signed-off-by: Christian Lamparter <[email protected]>
- Loading branch information
Showing
5 changed files
with
219 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
#include "ar9344.dtsi" | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/input/input.h> | ||
|
||
/ { | ||
compatible = "meraki,z1", "qca,ar9344"; | ||
model = "Cisco Meraki Z1"; | ||
|
||
aliases { | ||
led-boot = &led_power_orange; | ||
led-failsafe = &led_power_orange; | ||
led-upgrade = &led_power_orange; | ||
label-mac-device = ð0; | ||
}; | ||
|
||
chosen { | ||
bootargs = "console=ttyS0,115200n8"; | ||
}; | ||
|
||
keys { | ||
compatible = "gpio-keys"; | ||
|
||
reset { | ||
label = "Reset button"; | ||
linux,code = <KEY_RESTART>; | ||
gpios = <&gpio 12 GPIO_ACTIVE_LOW>; | ||
debounce-interval = <60>; | ||
}; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
led_power_orange: power_orange { | ||
label = "orange:power"; | ||
gpios = <&gpio 17 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
}; | ||
|
||
&ref { | ||
clock-frequency = <40000000>; | ||
}; | ||
|
||
&gpio { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&jtag_disable_pins>; | ||
|
||
gpio_ext_lna0 { | ||
gpio-hog; | ||
gpios = <18 0>; | ||
output-low; | ||
line-name = "z1:ext:lna0"; | ||
}; | ||
|
||
gpio_ext_lna1 { | ||
gpio-hog; | ||
gpios = <19 0>; | ||
output-low; | ||
line-name = "z1:ext:lna1"; | ||
}; | ||
}; | ||
|
||
&usb { | ||
status = "okay"; | ||
}; | ||
|
||
&usb_phy { | ||
status = "okay"; | ||
}; | ||
|
||
&pcie { | ||
status = "okay"; | ||
|
||
ath9k: wifi@0,0 { | ||
compatible = "pci168c,002a"; /* check the pciid - AR9283 */ | ||
reg = <0x0000 0 0 0 0>; | ||
qca,no-eeprom; | ||
}; | ||
}; | ||
|
||
&wmac { | ||
status = "okay"; | ||
}; | ||
|
||
&nand { | ||
status = "okay"; | ||
|
||
nand-ecc-mode = "soft"; | ||
nand-ecc-algo = "bch"; | ||
nand-is-boot-medium; | ||
|
||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
partition@0 { | ||
label = "loader1"; | ||
reg = <0x0 0x20000>; | ||
read-only; | ||
}; | ||
|
||
partition@20000 { | ||
label = "kernel"; | ||
reg = <0x20000 0x7e0000>; | ||
}; | ||
|
||
partition@800000 { | ||
label = "loader2"; | ||
reg = <0x800000 0x20000>; | ||
read-only; | ||
}; | ||
|
||
partition@820000 { | ||
label = "recovery"; | ||
reg = <0x820000 0x7e0000>; | ||
}; | ||
|
||
partition@1000000 { | ||
label = "ubi"; | ||
reg = <0x1000000 0x6fe0000>; | ||
}; | ||
|
||
partition@7fe0000 { | ||
label = "origcaldata"; | ||
reg = <0x7fe0000 0x20000>; | ||
read-only; | ||
}; | ||
}; | ||
}; | ||
|
||
&mdio0 { | ||
status = "okay"; | ||
|
||
phy0: ethernet-phy@0 { | ||
reg = <0>; | ||
phy-mode = "rgmii"; | ||
|
||
qca,ar8327-initvals = < | ||
0x04 0x07600000 /* PORT0 PAD MODE CTRL */ | ||
0x7c 0x0000007e /* PORT0_STATUS */ | ||
>; | ||
}; | ||
}; | ||
|
||
ð0 { | ||
status = "okay"; | ||
|
||
pll-data = <0x06000000 0x00000101 0x00001313>; | ||
phy-mode = "rgmii-id"; | ||
|
||
fixed-link { | ||
speed = <1000>; | ||
full-duplex; | ||
}; | ||
|
||
gmac-config { | ||
device = <&gmac>; | ||
rgmii-gmac0 = <1>; | ||
switch-only-mode = <1>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters