kirkwood: add support for Netgear Stora (MS2000/2110) NAS
authorZoltan HERPAI <wigyori@uid0.hu>
Thu, 5 May 2022 06:47:27 +0000 (08:47 +0200)
committerZoltan HERPAI <wigyori@uid0.hu>
Sat, 2 Sep 2023 07:55:47 +0000 (09:55 +0200)
commit557f1437db75843aae99e11cda65754c8ef9f304
tree4878a9979cb1f35cb24e7c8f621b2f68d0317ff0
parent183a3ae7a5d4d70194671cf9f7938fbb130c9281
kirkwood: add support for Netgear Stora (MS2000/2110) NAS

Dual-slot NAS based on Marvell Kirkwood.

Specifications:
 - Marvell 88F6281 @1GHz
 - 128Mb RAM
 - 256Mb NAND
 - 1x GbE LAN (Marvell 88E1116)
 - 1x USB 2.0
 - 2x SATA
 - PCF8563 RTC
 - LM75 sensor
 - TC654 PWM fan controller
 - Serial on J2 (115200,8n1)
 - Newer bootROM so kwboot-ing via serial is possible

Installation:

1. Serial console
 - Connect your levelshifter to the serial console
   on J2 (refer to the wiki page for pinout)
2. Update u-boot
 - Download the u-boot.kwb image for the device
 - Powercycle the NAS
 - Run "kwboot -b ./u-boot.kwb /dev/ttyUSB0 -p"
 - Connect to the serial console with minicom
 - tftp 0x0800000 netgear_stora-u-boot.kwb
 - nand erase 0x0 100000
 - nand write 0x0800000 0x0 0x100000
 - reset
3. Install OpenWrt
 - Boot up the initramfs image
 - tftpboot 0x800000 openwrt-kirkwood-netgear_stora-initramfs-uImage; bootm 0x800000
 - Download the sysupgrade image and perform sysupgrade

The fan is controlled in 3 stages by a script running every minute
from cron, measuring the CPU temperature.

Snippets taken from bodhi <mibodhi@gmail.com>

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
package/boot/uboot-kirkwood/Makefile
package/boot/uboot-kirkwood/patches/180-netgear-stora.patch [new file with mode: 0644]
target/linux/kirkwood/base-files/etc/board.d/02_network
target/linux/kirkwood/base-files/etc/uci-defaults/04_storafan [new file with mode: 0644]
target/linux/kirkwood/base-files/sbin/fan_ctrl.sh [new file with mode: 0755]
target/linux/kirkwood/files/arch/arm/boot/dts/kirkwood-stora.dts [new file with mode: 0644]
target/linux/kirkwood/image/Makefile
target/linux/kirkwood/patches-5.15/117-netgear_stora.patch [new file with mode: 0644]