Readynas RN104 build?

Hi,

So I have a Netgear ReadyNAS RN104. There are a few guides that show how to chance the OS to Debian. The original os is pretty much EOL. I wonder how difficult it would be to make a custom version of Openwrt for it? From what I understand, there are other units using the mvebu target, and with 128mb flash (pxa3xx_nand-0 / Hynix H27U1G8F2BTR-BC), 512mb ram, resource limits should be pretty okay. I know NANDs can be a bit problematic, but there are other units using this in Openwrt (like the Meraki MR18).

Flash layout:

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00180000 00020000 "u-boot"
mtd1: 00080000 00020000 "u-boot-env"
mtd2: 00600000 00020000 "uImage"
mtd3: 00400000 00020000 "minirootfs"
mtd4: 07400000 00020000 "ubifs"

CPU

# cat /proc/cpuinfo
processor	: 0
model name	: ARMv7 Processor rev 1 (v7l)
BogoMIPS	: 34.37
Features	: half thumb fastmult vfp edsp vfpv3 vfpv3d16 tls idivt
CPU implementer	: 0x56
CPU architecture: 7
CPU variant	: 0x1
CPU part	: 0x581
CPU revision	: 1

Hardware	: Marvell Armada 370/XP (Device Tree)
Revision	: 0000
Serial		: 0000000000000000

Memory

# cat /proc/meminfo
MemTotal:         508636 kB
MemFree:           56012 kB
MemAvailable:     376464 kB
Buffers:           67724 kB
Cached:           297324 kB
SwapCached:            0 kB
Active:           200576 kB
Inactive:         215172 kB
Active(anon):      11132 kB
Inactive(anon):    45448 kB
Active(file):     189444 kB
Inactive(file):   169724 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:             0 kB
HighFree:              0 kB
LowTotal:         508636 kB
LowFree:           56012 kB
SwapTotal:        523260 kB
SwapFree:         523260 kB
Dirty:               104 kB
Writeback:             0 kB
AnonPages:         50728 kB
Mapped:            32100 kB
Shmem:              5880 kB
Slab:              24084 kB
SReclaimable:      13188 kB
SUnreclaim:        10896 kB
KernelStack:        1360 kB
PageTables:         2128 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      777576 kB
Committed_AS:     306736 kB
VmallocTotal:     507904 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB

The network card seems to use the mvneta driver and the sata controller seems to be using sata_mv.

All in all, it seems like most of this hardware is pretty well supported. Would this just be a question of compiling a suitable kernel/initramfs?

It should be relatively simple to add support for this device to OpenWrt as there is already an available DTS in upstream Linux (/arch/arm/boot/dts/marvell/armada-370-netgear-rn104.dts). You could look at the following pull requests for similar devices for inspiration LinkStation LS421DE and Ctera C200-V2 which also both use NAND flash.

1 Like