diff options
author | Pawel Dembicki <paweldembicki@gmail.com> | 2021-08-16 17:42:56 +0200 |
---|---|---|
committer | Sungbo Eo <mans0n@gorani.run> | 2021-12-04 09:39:11 +0900 |
commit | 3843c641d83b621e07f03753a5617ab27e55e262 (patch) | |
tree | a9eddab944632ce972c08cde020786e22d5dd22c /target/linux/kirkwood/base-files/sbin | |
parent | e22c91e144d63ccbd7b76b370a53652c48db1d6f (diff) | |
download | upstream-3843c641d83b621e07f03753a5617ab27e55e262.tar.gz upstream-3843c641d83b621e07f03753a5617ab27e55e262.tar.bz2 upstream-3843c641d83b621e07f03753a5617ab27e55e262.zip |
kirkwood: add support for Ctera C200 V1 NAS
2-Bay NAS - maximum two 3.5" Harddisks
Hardware:
- SoC: Marvell 88F6281-A1 ARMv5TE Processor 1.2GHz
- Ram: 512MB (4x Nanya NT5TU128M8GE-AC)
- NAND Flash: 256MB (Samsung 216 K9F2G08U0C)
- Lan: 1x GBE (Marvell 88E1116R-NNC1)
- Storage: 2x SATA HDD 3.5" Slot
- USB: 2x USB 2.0 port
- Console: Internal J3 connector (1: Vcc, 2: Rx, 3: Tx, 4: GND)
- LEDs: 13x GPIO controlled
- Buttons: 2x GPIO controlled
Known issues:
- Buzzer is unused due lack of proper driver
Installation:
- Apply factory initramfs image via stock web-gui.
- Do sysupgrade to make installation complete.
Back to stock:
- OpenWrt rootfs partition use unused space after stock firmware.
- Full revert is possible.
- Login via ssh and run: ctera_c200-v1_back_to_factory
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Reviewed-by: Sungbo Eo <mans0n@gorani.run>
[apply sorting to device recipe]
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Diffstat (limited to 'target/linux/kirkwood/base-files/sbin')
-rwxr-xr-x | target/linux/kirkwood/base-files/sbin/ctera_c200-v1_back_to_factory | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/kirkwood/base-files/sbin/ctera_c200-v1_back_to_factory b/target/linux/kirkwood/base-files/sbin/ctera_c200-v1_back_to_factory new file mode 100755 index 0000000000..bb922d4d75 --- /dev/null +++ b/target/linux/kirkwood/base-files/sbin/ctera_c200-v1_back_to_factory @@ -0,0 +1,28 @@ +#!/bin/sh + +. /lib/functions.sh + +case $(board_name) in +ctera,c200-v1) + part=$(find_mtd_part "active_bank") + + if [ -n "$part" ]; then + active_bank="$(strings $part | grep bank)" + + if [ $active_bank = "bank1" ]; then + echo "bank2" > /tmp/change_bank + else + echo "bank1" > /tmp/change_bank + fi + + mtd write /tmp/change_bank active_bank + reboot + else + echo "active_bank partition missed!" + return 1 + fi + ;; +*) + echo "Unsupported hardware." + ;; +esac |