aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/base-files/etc
diff options
context:
space:
mode:
authorPawel Dembicki <paweldembicki@gmail.com>2021-08-16 17:42:56 +0200
committerSungbo Eo <mans0n@gorani.run>2021-12-04 09:39:11 +0900
commit3843c641d83b621e07f03753a5617ab27e55e262 (patch)
treea9eddab944632ce972c08cde020786e22d5dd22c /target/linux/kirkwood/base-files/etc
parente22c91e144d63ccbd7b76b370a53652c48db1d6f (diff)
downloadupstream-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/etc')
-rw-r--r--target/linux/kirkwood/base-files/etc/board.d/02_network1
-rwxr-xr-xtarget/linux/kirkwood/base-files/etc/init.d/hwmon_fancontrol7
2 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/kirkwood/base-files/etc/board.d/02_network b/target/linux/kirkwood/base-files/etc/board.d/02_network
index 694bcaecce..c98e30adcb 100644
--- a/target/linux/kirkwood/base-files/etc/board.d/02_network
+++ b/target/linux/kirkwood/base-files/etc/board.d/02_network
@@ -18,6 +18,7 @@ cisco,on100)
;;
cloudengines,pogoe02|\
cloudengines,pogoplugv4|\
+ctera,c200-v1|\
globalscale,sheevaplug|\
iom,iconnect-1.1|\
iom,ix2-200|\
diff --git a/target/linux/kirkwood/base-files/etc/init.d/hwmon_fancontrol b/target/linux/kirkwood/base-files/etc/init.d/hwmon_fancontrol
index 334a2a08ef..ec85b56ca1 100755
--- a/target/linux/kirkwood/base-files/etc/init.d/hwmon_fancontrol
+++ b/target/linux/kirkwood/base-files/etc/init.d/hwmon_fancontrol
@@ -7,6 +7,13 @@ boot() {
# for more information, please read https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface
case $(board_name) in
+ ctera,c200-v1)
+ path_to_hwmon='/sys/devices/platform/ocp@f1000000/f1011000.i2c/i2c-0/0-004c/hwmon/hwmon0'
+
+ # It should be related to hdd temerature instead lm63 temp
+ echo 1 > "$path_to_hwmon/pwm1_enable"
+ echo 128 > "$path_to_hwmon/pwm1"
+ ;;
iom,ix2-200)
path_to_hwmon='/sys/class/hwmon/hwmon0'
echo 2 > "$path_to_hwmon/pwm1_enable" # fan is on pwm1