Adding OpenWrt Support for Zyxel NAS5xx?

Hi @ all

I got my fingers on a software-bricked NAS540, managed to get it back to operating state with the original firmware - and get thinking of...

It announces itself on the serial console as Mindspeed C2000, with 256 MB Flash, 1G Ram, dual 1gig ethernet, three USB3-Ports - but it has a NXP LS1024A dual-core 1,2 GHz-CPU, which I can't find in the 5.4 kernel tree. There exisit an OMV-Port for it based on a 3.2 kernel, the original zyxel firmware is based on a 3.2.54 one. NXP sells a SDK based on OpenWRT for it - for 25.000$ p. a., dunno how outdated their kernel resources are due to the price tag... There is an attempt to port the 5.x kernel tree to that CPU on github, so it isn't completely hopeless to get it working. But maybe for me, I can't program, only some shell programming... But I have a testbed and am willing to mess around with it, I have in that state no use of it... The NAS520 and the NAS542 have the same boards in it according to some internet research, so it'd cover thrree devices if that info is correct. Is somebody interested in porting OpenWRT to that hardware besides me? With skills that'd probably lead to success?

Best regards
Peter

It's sure supported since quite some time.

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/ls1021a-qds.dts?h=v5.4.184

Those layerscape devices are sure already supported in OpenWrt.

1 Like

Well... Sometimes somebody needs to put me in the right direction... Thank you.
But: The original kernel says in the boot output:

[    0.090847] CPU: Testing write buffer coherency: ok
[    0.091011] CPU0: thread -1, cpu 0, socket 9, mpidr 80000900
[    0.091039] Calibrating local timer... 299.83MHz.
[    0.150068] hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
[    0.151160] CPU1 powered up
[    0.151759] CPU1: Booted secondary processor
[    0.190038] CPU1: thread -1, cpu 1, socket 9, mpidr 80000901
[    0.190092] Brought up 2 CPUs

Is Cortex-A9 compatible to Cortex-A7?

Work for the next time to test it out if the board attempts to boot anyway...

Best regards
Peter

Well, at least both are ARMv7.

I really don't have any layerscape experience so far. While I once also auctioned one of those for real cheap it seems to be death as not even JTAG having helped me...

I guess just try tftp-booting some such initramfs image for a start.

https://downloads.openwrt.org/snapshots/targets/layerscape/armv7/

Hm, looks like for those targets there aren't any such built by default. So happy building your own. Good luck!