Quantcast
Channel: Debian on NSA325 V1/V2
Viewing all 359 articles
Browse latest View live

Re: NSA 325 V2 Debian Is Possible!

$
0
0
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.

Re: NSA 325 V2 Debian Is Possible!

$
0
0
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!

$
0
0
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!

$
0
0
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.

Re: NSA 325 V2 Debian Is Possible!

$
0
0
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!

$
0
0
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).

Re: NSA 325 V2 Debian Is Possible!

$
0
0
Hi Bodhi. thanks for fast replay and thank U so much for your work under this project. I will try change permisions. Piter

Re: NSA 325 V2 Debian Is Possible!

$
0
0
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!

$
0
0
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

Re: NSA 325 V2 Debian Is Possible!

Re: NSA 325 V2 Debian Is Possible!

$
0
0
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.

Re: NSA 325 V2 Debian Is Possible!

$
0
0
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.

Re: NSA 325 V2 Debian Is Possible!

$
0
0
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

Re: NSA 325 V2 Debian Is Possible!

$
0
0
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!

$
0
0
ethaddr=4C:9E:FF:BF:54:22

It's a Zyxel MAC address.

Re: NSA 325 V2 Debian Is Possible!

$
0
0
well, but how to find the marvell one, as the zyxel seems not to work?

Re: NSA 325 V2 Debian Is Possible!

$
0
0
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.

Re: NSA 325 V2 Debian Is Possible!

$
0
0
the box sticker shows the zyxel digits. i am going to try a stock boot ...

Re: NSA 325 V2 Debian Is Possible!

$
0
0
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?

Re: NSA 325 V2 Debian Is Possible!

$
0
0
Unknown532 Wrote:
-------------------------------------------------------
> 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?

If you are still running stock u-boot then yes, it possible to boot into stock.

If you have installed the new u-boot then no, it won't boot into stock again (not yet). This is something on my TODO list, but low priority.
Viewing all 359 articles
Browse latest View live