Support for Zyxel NSA326?

This forum is for supported devices using an ARMv7 Marvell SoC.

Support for Zyxel NSA326?

Postby musv » Tue Apr 19, 2016 7:28 pm

Good evening!

I've used for 3 years a Zyxel NSA325 and was quite satisfied with this device. It served me as a 24/7 server with a lot of services. Unfortunately yesterday it seemed to gone away forever. There was no hard drive activity anymore, no ping and no access with a tinybreakout.

Ok, after a short period of mourning I've found a successor of this device:

Zyxel NSA326. The heart of the NSA325 was a Marvell Kirkwood ARMv5tel. The NSA 326 is some kind different:


I've found support for this SoC architecture at the Clear Fog package. Now the interesting question is, if this package supports also the Zyxel NSA 326. Should I risk it or better buy a NSA325v2?
musv
 
Posts: 24
Joined: Thu Sep 12, 2013 9:00 pm

Re: Support for Zyxel NSA326?

Postby WarheadsSE » Tue Apr 19, 2016 7:55 pm

In theory, it should be possible. But without a DTS, I can't speak to the situation.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Support for Zyxel NSA326?

Postby musv » Tue Apr 19, 2016 8:21 pm

Hi WarheadsSE. I remember, you helped me a lot with the NSA325 three years ago. A big thank you again.

Regarding the NSA326, it seems almost impossible to get a list of the used components. Unfortunately the "official spec" is only non-technical bla bla.

When I buy such a thing, I'm quite sure to be able to access it via tinybreakout at the serial console.
musv
 
Posts: 24
Joined: Thu Sep 12, 2013 9:00 pm

Re: Support for Zyxel NSA326?

Postby WarheadsSE » Tue Apr 19, 2016 8:43 pm

By DTS I mean a device tree file. AKA, we may have to make one from the vendor GPL tarball including the sources.

Or, the device might already be using a new-enough kernel that we can just pick it out. No idea.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Support for Zyxel NSA326?

Postby musv » Tue Apr 19, 2016 9:03 pm

Got a hint in another forum:
http://forum.doozan.com/read.php?2,27108
musv
 
Posts: 24
Joined: Thu Sep 12, 2013 9:00 pm

Re: Support for Zyxel NSA326?

Postby musv » Wed Apr 20, 2016 12:21 pm

WarheadsSE:

According to Kernel.org the CPU is supported. About DTS I don't have any clue.

If I buy such a thing. Do we have a chance to get this thing working together?
musv
 
Posts: 24
Joined: Thu Sep 12, 2013 9:00 pm

Re: Support for Zyxel NSA326?

Postby WarheadsSE » Wed Apr 20, 2016 12:36 pm

Thats a possibility.

A DTS is for device-tree, and is compiled down to a Device Tree blob (dtb), and use in conjunction with a zImage.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Support for Zyxel NSA326?

Postby musv » Mon Apr 25, 2016 8:30 pm

Ok, I got this thing. The first steps were a little bit nasty. The box doesn't start, if the tinybreakout is already connected at start. So I don't know yet, how to enter the uboot screen and/or access the boot variables.

But at least I were able to collect some boot and shutdown information:

Boot process
Shutdown process

In the clear fog package I found the dtb file. How do we create this thing for the NSA326?

I'll experiment tomorrow some more time. Maybe I get somehow the access to the uboot.

[update]
Found fw_printenv:
Uboot Environment variables
Last edited by musv on Tue Apr 26, 2016 3:03 pm, edited 1 time in total.
musv
 
Posts: 24
Joined: Thu Sep 12, 2013 9:00 pm

Re: Support for Zyxel NSA326?

Postby rr4m » Mon Apr 25, 2016 10:03 pm

Hiya! Got my ZyXEL NAS326 yesterday, managed to connect to it via usb-serial (3.3v, LV-TTL).
As far as I see, uboot reads and boots kernel and ramdisk from nand flash, but it supports booting from USB/sata disk too.
But, by default, USB power is disabled (so uboot won't see a flash drive if you insert it into front usb socket).

I've just found a way to enable usb power in uboot experimentally:

$this->bbcode_second_pass_code('', '
Marvell>> mw.l f1018140 003c8800
Marvell>> usb reset
(Re)start USB...
USB0: Port (usbActive) : 0 Interface (usbType = 2) : USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
scanning usb for ethernet devices... 0 Ethernet Device(s) found
Marvell>> ext2ls usb 0:1
<DIR> 4096 .
<DIR> 4096 ..
<DIR> 16384 lost+found
13 1.txt
')

If you need explanations - read ARMADA370-FunctionalSpec-datasheet, page 1067 (I know, our box is build on Armada380, but it's data sheet isn't publicly available). Simply - f1018100 is address of GPIO0, f1018140 - address of GPIO1. USB power control sits on GPIO1 bit 11 (as far as my experiments show).

Next step is to put appropriate uImage/zImage kernel + initrd/rootfs for arch/debian/ubuntu. I'm gonna experiment with ubuntu xenial xerus netboot for armhf.

Will be trying to boot as it's written here.

Hope this info was useful.
rr4m
 
Posts: 1
Joined: Mon Apr 25, 2016 9:28 pm

Re: Support for Zyxel NSA326?

Postby musv » Tue Apr 26, 2016 2:59 pm

rr4m:

The kernel for the armada 380x series has been built for the clear fog package.

I have only basic knowledge about ARM SoCs. But with this package at least the CPU should work.
musv
 
Posts: 24
Joined: Thu Sep 12, 2013 9:00 pm

Next

Return to Marvell

Who is online

Users browsing this forum: No registered users and 1 guest