Support for Zyxel NSA326?

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

Re: Support for Zyxel NSA326?

Postby musv » Wed Apr 27, 2016 3:33 pm

Not sure, if it helps:

Armada-380.dtsi
Armada-38x.dtsi
musv
 
Posts: 24
Joined: Thu Sep 12, 2013 9:00 pm

Re: Support for Zyxel NSA326?

Postby musv » Thu May 12, 2016 5:47 pm

musv
 
Posts: 24
Joined: Thu Sep 12, 2013 9:00 pm

Re: Support for Zyxel NSA326?

Postby musv » Wed Jul 20, 2016 8:43 pm

WarheadsSE:

Still here?

What's the state of this device support? Can I help somehow, that we get a running package for that thing?
musv
 
Posts: 24
Joined: Thu Sep 12, 2013 9:00 pm

Re: Support for Zyxel NSA326?

Postby WarheadsSE » Thu Jul 21, 2016 2:24 am

AFAIK, no ALARM developer has one of these boxes.
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 » Sat Jul 23, 2016 3:40 pm

Hm, maybe I get this thing installed by myself.

My first problem: I don't get direct access to the U-Boot loader. With the serial converter connected the NSA326 doesn't start. If I plug the converter after some seconds while the NSA is booting, I get access to the system. fw_printenv etc. works.

So my first plan is to copy the original firmware to a harddisk and change to U-Boot load to extload to be able to boot the whole system from a harddisk instead of the NAND flash.

Copying the filesystem isn't the problem. But the kernel partition is a raw partition, which I didn't manage to mount.

$this->bbcode_second_pass_code('', 'cat /proc/mtd
mtd0: 00200000 00020000 "U-Boot"
mtd1: 00200000 00020000 "U-Boot env"
mtd2: 00a00000 00020000 "Config"
mtd3: 00f00000 00020000 "Kernel-1"
mtd4: 06a00000 00020000 "RootFS-1"
mtd5: 00f00000 00020000 "Kernel-2"
mtd6: 06a00000 00020000 "RootFS-2"')

Mounted is after starting the system:
$this->bbcode_second_pass_code('', 'Filesystem Size Used Available Use% Mounted on
ubi4:ubi_rootfs1 88.1M 44.5M 43.7M 50% /firmware/mnt/nand
/dev/loop0 137.5M 119.9M 17.6M 87% /ram_bin
/dev/loop0 137.5M 119.9M 17.6M 87% /usr
/dev/loop0 137.5M 119.9M 17.6M 87% /lib/security
/dev/loop0 137.5M 119.9M 17.6M 87% /lib/modules
/dev/loop0 137.5M 119.9M 17.6M 87% /lib/locale
/dev/ram0 5.0M 4.0K 5.0M 0% /tmp/tmpfs
/dev/ram0 5.0M 4.0K 5.0M 0% /usr/local/etc
ubi2:ubi_config 2.2M 68.0K 2.0M 3% /etc/zyxel')

So, how do get the kernel out of the raw partition to copy it to my harddisk? Sorry for the basic answers. But I'm still a beginner in the embedded stuff.
musv
 
Posts: 24
Joined: Thu Sep 12, 2013 9:00 pm

Re: Support for Zyxel NSA326?

Postby summers » Sun Jul 24, 2016 12:23 pm

you should be able to copy the original nand partitions with commands like:

$this->bbcode_second_pass_code('', 'dd if=/dev/mtd0 of=mdt0.bit')

That will copy mtd0 into the file mtd0.bit - so you can do the same with the others.

Easiest way of getting arch onto the machine, is first to access uboot via serial. Then you can direct it to your own OS, e.g. arch.

Place to starts is probably

$this->bbcode_second_pass_code('', 'fw_printenv')

and then understand how the machine boots so far. e.g. with minor changes can you get it to boot from tftp or from the HDD.
summers
 
Posts: 984
Joined: Sat Sep 06, 2014 12:56 pm

Previous

Return to Marvell

Who is online

Users browsing this forum: No registered users and 5 guests