ZyXEL NSA320 booted from USB...once!

Install Arch Linux ARM on other devices.

Re: ZyXEL NSA320 booted from USB...once!

Postby pepedog » Wed May 22, 2013 9:11 am

I wonder...
on the raspberry pi you can set mac address on bootparams (cmdline.txt for pi)
smsc95xx.macaddr=08:00:28:00:60:01

This is something to try, obviously change smsc95xx
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ZyXEL NSA320 booted from USB...once!

Postby lulo » Sat May 25, 2013 11:41 am

How to actually using power-resume.sh to NSA310 from =>linux-3.1.10-20 or =>linux-kirkwood-3.9.2-2 ?
Maybe patch and/or .config to NSA310 is wrong ?
probably missing someone patch and/or new files to/from source ie. linux-xxx:

ledtrig-sata-disk, rw/rr => LED green/red to leds HDD, etc.:

linux-xxx/drivers/ata/sata_mv.c
linux-xxx/drivers/leds/Kconfig
linux-xxx/drivers/leds/ledtrig-netdev.c
linux-xxx/drivers/leds/ledtrig-sata-disk.c
linux-xxx/drivers/leds/Makefile
linux-xxx/include/linux/leds.h


and maybe (alternatively):
cpufreq:

linux-xxx/arch/arm/mach-kirkwood/Makefile
( obj-$(CONFIG_ARM_KIRKWOOD_CPUFREQ) += cpufreq.o )
linux-xxx/arch/arm/mach-kirkwood/cpufreq.c
linux-xxx/drivers/cpufreq/Kconfig.arm


and maybe other (ie. mcu.c and alternativerly nsa3xx-hwmon.h)
- not exactly the same leds and not working identical like this oryginal from peeter123 https://github.com/peeter123/NSA310-320 ... sa310.diff

$this->bbcode_second_pass_code('', '
lrwxrwxrwx 1 root root 0 2013-05-25 nsa310:green:Copy -> ../../devices/platform/leds-gpio/leds/nsa310:green:Copy
lrwxrwxrwx 1 root root 0 2013-05-25 nsa310:green:SATA1 -> ../../devices/platform/leds-gpio/leds/nsa310:green:SATA1
lrwxrwxrwx 1 root root 0 2013-05-25 nsa310:green:SATA2 -> ../../devices/platform/leds-gpio/leds/nsa310:green:SATA2
lrwxrwxrwx 1 root root 0 2013-05-25 nsa310:green:System -> ../../devices/platform/leds-gpio/leds/nsa310:green:System
lrwxrwxrwx 1 root root 0 2013-05-25 nsa310:green:USB -> ../../devices/platform/leds-gpio/leds/nsa310:green:USB
lrwxrwxrwx 1 root root 0 2013-05-25 nsa310:red:Copy -> ../../devices/platform/leds-gpio/leds/nsa310:red:Copy
lrwxrwxrwx 1 root root 0 2013-05-25 nsa310:red:SATA1 -> ../../devices/platform/leds-gpio/leds/nsa310:red:SATA1
lrwxrwxrwx 1 root root 0 2013-05-25 nsa310:red:SATA2 -> ../../devices/platform/leds-gpio/leds/nsa310:red:SATA2
lrwxrwxrwx 1 root root 0 2013-05-25 nsa310:red:System -> ../../devices/platform/leds-gpio/leds/nsa310:red:System
[tachamtorki@alarm ~]$
')

this command not working, not this value to this file:
$this->bbcode_second_pass_code('', '
/bin/echo ide-disk > /sys/class/leds/nsa320\:green\:SATA1/trigger
')

deafault value - not use any scripts:
$this->bbcode_second_pass_code('', '
cat /sys/class/leds/nsa320\:green\:SATA1/trigger
[none] nand-disk timer heartbeat default-on
')

from "red" led its the same situations - identical value to "trigger" file

I'am use this script modified for my machine (NSA310):
$this->bbcode_second_pass_code('', '
#!/bin/bash
# power_resume.sh [0/1]
# 0 to disable, 1 to enable.
# enable/disable resume from power loss.

# export both gpios
/bin/echo 47 > /sys/class/gpio/export
/bin/echo 49 > /sys/class/gpio/export

# 49 out, value 1
/bin/echo "out" > /sys/class/gpio/gpio49/direction
/bin/echo 1 > /sys/class/gpio/gpio49/value
# 47 out, value 1
/bin/echo "out" > /sys/class/gpio/gpio47/direction
/bin/echo 1 > /sys/class/gpio/gpio47/value
# set 49 value 0
/bin/echo 0 > /sys/class/gpio/gpio49/value

/bin/echo 255 > /sys/class/leds/nsa310\:green\:System/brightness
#/bin/echo 0 > /sys/class/leds/nsa310\:orange\:System/brightness <=> I'am not this path
/bin/echo ide-disk > /sys/class/leds/nsa310\:green\:SATA1/trigger # not working, not this value

sleep 5
')
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

Re: ZyXEL NSA320 booted from USB...once!

Postby giroberto » Wed Aug 07, 2013 1:50 pm

Hello, I am having this issue, but I don't have yet a rs-232, just bought one from ebay, but it will take weeks to arrive.

What I can do is take the hdd of, put in the computer and edit the files, tried to put the power_resume.sh with value 1 to systemd scripts, but without success.

I did the following
created a fix.service on /etc/systemd/system pointing to /root/power_resume.sh

rebooted multiples times, always without eth0 working.
giroberto
 
Posts: 6
Joined: Wed Aug 07, 2013 1:40 pm

Re: ZyXEL NSA320 booted from USB...once!

Postby pepedog » Wed Aug 07, 2013 3:30 pm

Plug in usb keyboard, login blind
Assuming script executable and no windows newlines, run it. Then run poweroff.
If it does power down, remove power plug for 5 seconds.
If it works, it will come up on reboot
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ZyXEL NSA320 booted from USB...once!

Postby giroberto » Thu Aug 08, 2013 5:06 am

[SOLVED]
Thank you!
I was able to make the NAS get an IP, but now when I try to log in using ssh, it ask from user and password, then nothing happens, but it warn me if I gave wrong passord. I can still log in blindly using usb keyboard.

Already formatted and reinstalled again to see if it fix, but no success

[SOLVED]

Installing a new version of the base system solved this problem.
giroberto
 
Posts: 6
Joined: Wed Aug 07, 2013 1:40 pm

Re: ZyXEL NSA320 booted from USB...once!

Postby giroberto » Wed Aug 14, 2013 5:56 pm

What can we do to have hdd activity leds working? I read about inserting ledtrig_ide_activity(); to sata_mv.c

Source:
http://www.spinics.net/lists/linux-leds/msg00618.html
giroberto
 
Posts: 6
Joined: Wed Aug 07, 2013 1:40 pm

Re: ZyXEL NSA320 booted from USB...once!

Postby pepedog » Wed Aug 14, 2013 7:34 pm

I mentioned here viewtopic.php?f=53&t=5954
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: ZyXEL NSA320 booted from USB...once!

Postby moonman » Wed Aug 14, 2013 8:07 pm

i'm looking into this, but so far i havent come up with a wilorking patch.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: ZyXEL NSA320 booted from USB...once!

Postby giroberto » Thu Aug 15, 2013 5:14 pm

I was able to restore ide-disk option on trigger, but I am not in my home now to check if it's blinking hehehe.
I did the steps I told on the previous message, didn't work because my /boot was not mounted, so I mounted, reinstalled the kernel and the option appeared

[root@NAS nsa320:green:hdd1]# cat trigger
none nand-disk timer [ide-disk] heartbeat default-on


[EDIT]
Lights blinking! Working ok for hdd1, didn't tried the hdd2
giroberto
 
Posts: 6
Joined: Wed Aug 07, 2013 1:40 pm

Re: ZyXEL NSA320 booted from USB...once!

Postby dape » Sun Sep 15, 2013 7:56 am

Hello,
tried on a nsa-310 with both FAT16 and FAT32 formatted stick, nothing happens.
Did the ArchLinux for NSA-310 actually worked for anyone..?
Thanks.
P.S. no serial connected, i just followed http://archlinuxarm.org/platforms/armv5/zyxel-nsa320 but with the nsa310 files.
dape
 
Posts: 1
Joined: Sun Sep 15, 2013 7:55 am

PreviousNext

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 2 guests