Welcome! Log In Create A New Profile

Advanced

Debian on NSA325 V1/V2

Posted by Buttzy10169 
Re: NSA 325 V2 Debian Is Possible!
September 03, 2015 09:47AM
Hi davidedg,

i've have hdparmed all three devices

/dev/sdc:
 Timing cached reads:   578 MB in  2.01 seconds = 287.89 MB/sec
 Timing buffered disk reads: 228 MB in  3.01 seconds =  75.72 MB/sec
root@datacenter:~# hdparm -tT /dev/sdb
=> USB3

/dev/sdb:
 Timing cached reads:   602 MB in  2.00 seconds = 300.74 MB/sec
 Timing buffered disk reads: 428 MB in  3.00 seconds = 142.50 MB/sec
root@datacenter:~# hdparm -tT /dev/sda
=> 4TB HDD

/dev/sda:
 Timing cached reads:   596 MB in  2.00 seconds = 297.80 MB/sec
 Timing buffered disk reads: 462 MB in  3.01 seconds = 153.40 MB/sec
=> 128GB SSD

Now copy data (tried >4GB mkv) fromt the HDD to the USB3 Device and M(idnight)C(ommander) shows me only speed up to 1,5mb/s.

Anything i can check?
Re: NSA 325 V2 Debian Is Possible!
September 03, 2015 02:25PM
addy75,

> Now copy data (tried >4GB mkv) fromt the HDD to
> the USB3 Device and M(idnight)C(ommander) shows me
> only speed up to 1,5mb/s.
>
> Anything i can check?

What file systems are on these disks? (ext2,3,4,ntfs,...) they are relevant.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA 325 V2 Debian Is Possible!
September 04, 2015 07:49AM
Hi bodhi,

FS on the internal disks (SSD / HDD) ist ext4, USB3 HDD is ntfs.
Datatransfer via network is about 30mb/s
Re: NSA 325 V2 Debian Is Possible!
September 04, 2015 09:58AM
addy75 Wrote:
-------------------------------------------------------

> FS on the internal disks (SSD / HDD) ist ext4, USB3 HDD is ntfs.

I'd point to this first - try with another format
For example - you may attach the ntfs disk to Windows7+ and shrink it a little bit to carve out space for another partition, which you will format in ext4 on the NAS and try again the tests.
If it is still slow, then it may be related to usb3 (or even not, since hdparm is fast), otherwise it's more likely the ntfs linux driver (btw, which one are you using?)

--
DavideDG
My NAS userspace configs
My Zyxel NSA325 mod
My D-Link DNS325 mod
My Lacie NS2MAX mod



Edited 2 time(s). Last edit at 09/04/2015 10:00AM by davidedg.
Re: NSA 325 V2 Debian Is Possible!
September 04, 2015 02:10PM
I've installed NTFS-3G.

I hope i've configured it the right way ^-^
Re: NSA 325 V2 Debian Is Possible!
September 04, 2015 03:11PM
Yes :) I agree with davidedg, it is suspected that NTFS is the cause. Please get output of
mount

And as davidedg said, try Ext3 or Ext4 first on USB 3.0 drive.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 09/04/2015 03:12PM by bodhi.
Re: NSA 325 V2 Debian Is Possible!
October 11, 2015 01:16AM
Guys, how may I switch off or dim leds on the front?
Is this possible?
Re: NSA 325 V2 Debian Is Possible!
October 11, 2015 01:11PM
See the content:

cat /sys/class/leds/nsa325\:green\:sys/trigger
none kbd-scrollock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock nand-disk usb-gadget usb-host timer oneshot ide-disk1 ide-disk2 heartbeat gpio [default-on]

Turn off
echo none > /sys/class/leds/nsa325\:green\:sys/trigger

Turn on
echo default-on > /sys/class/leds/nsa325\:green\:sys/trigger

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA 325 V2 Debian Is Possible!
December 07, 2015 03:41PM
Can I go from uboot 2014.07 to stock uboot 1.1.4?
Re: NSA 325 V2 Debian Is Possible!
December 07, 2015 04:37PM
cratsil1979 Wrote:
-------------------------------------------------------
> Can I go from uboot 2014.07 to stock uboot 1.1.4?

See answer below.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 12/07/2015 04:38PM by bodhi.
Re: NSA 325 V2 Debian Is Possible!
December 15, 2015 01:24PM
I don't have any mtd0 backup file to write back to NAND. Can i download it?
Re: NSA 325 V2 Debian Is Possible!
December 18, 2015 03:19PM
cratsil1979 Wrote:
-------------------------------------------------------
> I don't have any mtd0 backup file to write back
> to NAND. Can i download it?

I don't think Zyxel provide this. So only yes if somebody has uploaded a backup stock mtd0.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA 325 V2 Debian Is Possible!
December 25, 2015 05:37AM
Hello,

i've got a "noobish" question.
Is it possible to upgrade von debian7 to debian8?
Is there any andvantage turning to debian8?

Thx and happy christmas
Re: NSA 325 V2 Debian Is Possible!
December 25, 2015 03:15PM
addy75 Wrote:
> Is it possible to upgrade von debian7 to debian8?
> Is there any andvantage turning to debian8?

Yes, it is possible (just do like you would do it for any other Debian install).

Debian 7 (Wheezy) won't get update after (roughly) April next year so at some point you should update (maybe the Debian LTS project can extend this time for some years, let's see). But also you get newer software versions (e.g. a newer Samba) and you can use systemd (optional).

If your device works right now and you don't feel any limitations: Why bother upgrading now?
Re: NSA 325 V2 Debian Is Possible!
December 25, 2015 03:38PM
addy75 Wrote:
-------------------------------------------------------
> Hello,
>
> i've got a "noobish" question.
> Is it possible to upgrade von debian7 to debian8?
> Is there any andvantage turning to debian8?
>
> Thx and happy christmas

Definitely. Backup your rootfs and then

- Change /etc/apt/sources.list to jessie, for example
deb http://ftp.us.debian.org/debian jessie main
deb http://security.debian.org/ jessie/updates main contrib non-free

- And then upgrade:
apt-get update
apt-get dist-upgrade
After reboot, you will be running systemd. If you like to stay with sysvinit then make it the default init system:
apt-get install sysvinit-core sysvinit sysvinit-utils

Note: after apt-get dist-upgrade, your initramfs is likely to change, so remember to regenerate uInitrd.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 12/25/2015 03:43PM by bodhi.
Piter
Re: NSA 325 V2 Debian Is Possible!
January 27, 2016 07:45AM
Hi there.
Is there possible to mount hdd partition. I hade 2TB disk: sda1 500MB ext2 boot , sda2 100GB ext4 rootfs and rest of spase to 2TB data labeled partition. I don't have rights to mount data partition :

- mount /dev/sda3 /data -> mount: only root can do that (effective UID is 1000) .
uname -a -> Linux server 3.14.0-kirkwood-tld-1 #1 PREEMPT Tue Apr 1 22:54:58 PDT 2014 armv5tel GNU/Linux. Whats wrong with this box? Thanks Pit
Re: NSA 325 V2 Debian Is Possible!
January 27, 2016 11:35AM
Piter,

> - mount /dev/sda3 /data -> mount: only root can do
> that (effective UID is 1000) .
> uname -a -> Linux server 3.14.0-kirkwood-tld-1 #1
> PREEMPT Tue Apr 1 22:54:58 PDT 2014 armv5tel
> GNU/Linux. Whats wrong with this box? Thanks Pit

Nothing wrong, probably just permission settings. When you mount some partition under / as a regular user, you need to change permission of the mount folder first (log in as root to do this).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Piter
Re: NSA 325 V2 Debian Is Possible!
January 28, 2016 06:40AM
Hi Bodhi. thanks for fast replay and thank U so much for your work under this project. I will try change permisions. Piter
Piter
Re: NSA 325 V2 Debian Is Possible!
January 28, 2016 07:03AM
Hi. I tried change permision, i tried mount with root account. The same thing. Everything what i do, do with root permision. The same problem is also with mounting under webmin and openmediavault. I tried also change fstab. Nothink helped. Thanks. pit
Re: NSA 325 V2 Debian Is Possible!
January 28, 2016 07:12AM
Piter Wrote:
-------------------------------------------------------
> Hi. I tried change permision, i tried mount with
> root account. The same thing. Everything what i
> do, do with root permision. The same problem is
> also with mounting under webmin and
> openmediavault. I tried also change fstab. Nothink
> helped. Thanks. pit

As root, try this

rmdir /data
mkdir -p /media/data
chmod 777 media
chmod 777 data

then mount
mount /dev/sda3 /media/data

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 01/28/2016 07:48AM by bodhi.
Piter
Re: NSA 325 V2 Debian Is Possible!
January 28, 2016 12:37PM
Thanks Bodhi. Everythink is ok.
Re: NSA 325 V2 Debian Is Possible!
January 28, 2016 01:07PM
Piter Wrote:
-------------------------------------------------------
> Thanks Bodhi. Everythink is ok.

Great!. Now remember to change permission to the /media/data to an appropriate values, because it is wide open to everybody. You could

- Log in root

rmdir /media/data
mkdir /media/data


and look at the permission of /media/data. It should have default permission of the root user.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA 325 V2 Debian Is Possible!
July 09, 2016 01:58PM
hope this is the correct place to post...

i am running

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:48:40 -0700)
ZyXEL NSA325 2-Bay Power Media Server

Linux-4.6.0-kirkwood-tld-1

Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi

and i got two problems i am not able to solve:

1) wol is not working for me:
i updated the variable ethaddr to the stockvalue (also written on the sticker on the box).
when shutdown, the led on the interface is on and is blinking when i send a ip packet (magic paket) to the box' address (MAC/IP level).

is there something twisted with the interrupts for the wol event? or is the mac address somehow not the number i dumped from stock firmware?

2) the power button has no functionality if the box is powered on.


i really appreciate any help for me again. by the way: you do a great job with your development to free some good (and cheap) hardware.



Edited 2 time(s). Last edit at 07/09/2016 01:59PM by dr_dave.
Re: NSA 325 V2 Debian Is Possible!
July 09, 2016 02:40PM
Dave,

> when shutdown, the led on the interface is on and
> is blinking when i send a ip packet (magic paket)
> to the box' address (MAC/IP level).
>
> is there something twisted with the interrupts for
> the wol event? or is the mac address somehow not
> the number i dumped from stock firmware?

There are 2 MAC addresses, a Marvell and a Zyxel. The Marvell one should work. But in some of the NSA325 boxes with newer stock FW, the Zyxel MAC is working, So I would try both, if you can find these (post the 1st 3 character pair xx:xx:xx if you are not sure which is which).

You can use ethtool to list the eth0 settings to verify that WOL is on
ethtool eth0


>
> 2) the power button has no functionality if the
> box is powered on.

This is normal. The power button must be hooked up in Debian to be usable. Somewhere in this thread or others in this forum, I've posted how this can be controlled using esekeyd daemon (which executes a script when the push/release event occurred). Search for that post.

Update:

Here is the found post:
http://forum.doozan.com/read.php?2,26391,26478#msg-26478

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 07/09/2016 02:45PM by bodhi.
Re: NSA 325 V2 Debian Is Possible!
July 09, 2016 03:09PM
here is the dump from the stock u-boot (addresses slightly changed)

Marvell>> printenv
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernt
bootcmd=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000
bootdelay=2
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
nandEcc=1bit
MODEL_ID=AE03
PRODUCT_NAME=NSA-325v2
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=MitraStar Technology Corp.
run_diag=yes
ethaddr=4C:9E:FF:BF:54:22
stdin=serial
stdout=serial
stderr=serial
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
ethprime=egiga0
netbsd_en=no
vxworks_en=no
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
disaMvPnp=no
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
enaAutoRecovery=yes
kernel_addr=0x4640000
pcieTune=no
pcieTune1=no
ethact=egiga0

Environment size: 1565/131068 bytes

can i find the second address here?

the dump shows the following stock versions:
U-Boot 1.1.4 (Jul 18 2013 - 10:47:29) Marvell version: 3.5.9

with Linux built at Tue Jan 26 18:49:28 CST 2016.

The ethtool shows wake on (g) as required.
Re: NSA 325 V2 Debian Is Possible!
July 09, 2016 10:46PM
ethaddr=4C:9E:FF:BF:54:22

It's a Zyxel MAC address.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA 325 V2 Debian Is Possible!
July 11, 2016 11:11AM
well, but how to find the marvell one, as the zyxel seems not to work?
Re: NSA 325 V2 Debian Is Possible!
July 11, 2016 11:47AM
dr_dave Wrote:
-------------------------------------------------------
> well, but how to find the marvell one, as the
> zyxel seems not to work?

Either on the box sticker, or in the stock boot log.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: NSA 325 V2 Debian Is Possible!
July 11, 2016 12:04PM
the box sticker shows the zyxel digits. i am going to try a stock boot ...
Re: NSA 325 V2 Debian Is Possible!
October 08, 2016 06:11AM
How is it possible to boot back to stock? If I unplug the usb stick, the device stuck at "Bad magic number" like described at the guide, but I have read, that normally if there is no usb device, the NAS will boot to stock...

Edit:

I have tried it with "setenv bootcmd 'run to_stock', but the system is not booting with ## "Error: "bootcmd_stock" not defined"

Any Ideas?



Edited 1 time(s). Last edit at 10/08/2016 08:06AM by Unknown532.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: