ZyXEL NSA320 booted from USB...once!

Install Arch Linux ARM on other devices.

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

Postby lulo » Mon May 06, 2013 8:59 pm

ok "...310..." its valid value for this script.
Where put/add this script ? - add to init (/etc/rc.d and add now daemon to /etc/rc.conf) or maybe for /etc/rc.local ?
how add leds esata/usb/copy ? how add switch power/copy ?

How to run/up/etc. eth0 ?

When this machine (NSA310) add support for archlinuxarm.org ?

Really ?? Developers for this long time, can other users produce very,very posts and pleases...nothing...this is samall costs and very excelent machine for home.
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby pepedog » Mon May 06, 2013 10:07 pm

Does the script (plus poweroff and unplug for 10 seconds) work for you?
Not rc scripts, it's systemd now, I plut my script here (make executable)
$this->bbcode_second_pass_code('', '# cat /usr/lib/systemd/scripts/nsa.sh
#!/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/nsa320\:green\:sys/brightness
/bin/echo 0 > /sys/class/leds/nsa320\:orange\:sys/brightness
/bin/echo ide-disk > /sys/class/leds/nsa320\:green\:hdd1/trigger

sleep 5')
I added to my ethernet config file, it may be in /etc/netcfg.d/
$this->bbcode_second_pass_code('', 'ExecUpPost="/usr/lib/systemd/scripts/nsa.sh"')
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

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

Postby lulo » Mon May 06, 2013 11:46 pm

sorry - whot unplug ? - disk ?! or power cable ?
My not /etc/netcfg.d

can run this script work fine:
$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\:sys/brightness
/bin/echo 0 > /sys/class/leds/nsa310\:orange\:sys/brightness
/bin/echo ide-disk > /sys/class/leds/nsa310\:green\:hdd1/trigger

sleep 5
')

whay ? - my not /sys/class/leds/nsa320*

can run command poweroff => again click switch "power" not working => unplug and plug again power cable => poweron to click switch "power" => leds that older values => run this script again (my script) => leds hdd and sys work fine.

can copy yours script to /usr/lib/systemd/scripts/nsa.sh => leds to hdd and sys not working
can copy my modified script to /usr/lib/systemd/scripts/nsa.sh => leds to hdd and sys not working

only manual working (and only my modified script).
generally click swith "power" (ec. poweron/poweroff) not working properly - only once can plug power cable and click switch "power".

generally - NSA310 not the same gpio can NSA320
My systemd not working and working bad.
Only use rc.conf to start/stop/restart/etc. any services like that:
rc.d start/stop/restart/etc. <service>

How to add and where all properly modification (gpio or maybe other) for boot process to my NSA310 (not 320) ???
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby pepedog » Tue May 07, 2013 12:34 am

You unplug power.
Maybe you netcfg, not netctl, so not ExecUpPost= but POSTUP=
This get on my f'ing vodka infused nerves
Go to archlinux.org wiki and look at systemd and netcfg and netctl (netctl new and mutually exclusive with netcfg, which you have)
Unplug power cable for 10 ecstatic seconds, and and almighty revelation will tickle your nether regions. Boing things project in your face and smack both cheeks and make floor slippery
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

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

Postby lulo » Tue May 07, 2013 12:50 am

Iam not any profiles to netcfg/not use this program - only uses rc.conf.
command netctl not found for my system.

Any ideas can boot and working properly (gpio, leds, etc., driver to my ethernet - not to 320...hehe) this system to NSA310 ?
Really developers ? - any sugestion - any ideas - any support ?
...only studies archlinux wiki ?
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby pepedog » Tue May 07, 2013 1:16 am

So you do not have /etc/network.d folder or anything in it?
Does ethernet work now? Subject is NSA320
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

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

Postby lulo » Tue May 07, 2013 1:33 am

I'am have /etc/network.d - not any iterfaces only examples
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby pepedog » Tue May 07, 2013 8:37 am

Please give
$this->bbcode_second_pass_code('', 'ls /etc/systemd/system/multi-user.target.wants/')
The point is that script does not need to be run every boot. Only to prevent possible future happenings, then you do your own thing to run on boot.

Once script run, poweroff, unplug power cord for 10 seconds, plug in again. Ethernet should work.
Don't press power button to turn on, it should start on it's own if script succesful
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

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

Postby lulo » Tue May 07, 2013 8:56 am

My ethernet not working - in general - not produce eth0 - any time, any system configuration (meaby it's, because kernel not internal/module r8169 driver). Not working any ethernet/platform internals/modules drivers from this kernel to NSA310.
If can not run this script => sys and usb leds brightnes red (not stoped). unpluged and pluged cord (after 10 s) it's to nothing change...green leds sys and orange/green to hdd not working - any time...any break plug/unplug.
Fan control and monitor temperature (platform drivers) its the same situations - not working.

$this->bbcode_second_pass_code('', '
ls /sys/class/net
lo
')

Sorry my bad english.
Meaby not the same config to gpio/chips/platform/etc. ?
Last edited by lulo on Tue May 07, 2013 9:11 am, edited 2 times in total.
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby pepedog » Tue May 07, 2013 9:07 am

So you need r8169 driver?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

PreviousNext

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 4 guests