Re: Debian on NSA310S?
June 29, 2015 06:14PM
sounds like an issue like there was on NSA320, you had to write stuff to GPIO to have the ethernet come up again after a reboot.

like described here about powering up the ethernet and/or WOL http://forum.doozan.com/read.php?2,12096,13404#msg-13404

In your case it may not be the same GPIO, I don't know how to check what it might be.
Re: Debian on NSA310S?
June 29, 2015 06:22PM
No problems with NSA310s and NSA320 here (kernel 3.14, 3,15.3, 3,18.5, 4.0.0)
Re: Debian on NSA310S?
June 29, 2015 06:23PM
root@debian:~# dmesg | grep mv643xx_eth
[    2.040733] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.124478] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 5c:f4:ab:df:07:11
root@debian:~#

and

root@NSA310S:/zyxel/sbin# ./fw_printenv | grep ethaddr
ethaddr=5C:F4:AB:DF:07:11

How is it possible, we both running almost the same setups, same NAS and you have no problems and i do. Strange.



Edited 1 time(s). Last edit at 06/29/2015 06:24PM by JohnnyUSA.
Re: Debian on NSA310S?
June 29, 2015 06:25PM
are there any problems earlier in the boot log?
Re: Debian on NSA310S?
June 29, 2015 06:31PM
Here is the full bootlog: http://pastebin.com/pAyj62Eb
Re: Debian on NSA310S?
June 29, 2015 06:32PM
@pengu,

Thanks! I see. Same SoC and everything. I think that cover all bases, except 2 items:

- memory: the NSA320S has 256MB RAM, I thought the NSA310S also has 256MB?
- The number of SATA ports needs to be defined as 1 port for NSA310S. This is not that important, but should be corrected nevertheless.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on NSA310S?
June 29, 2015 06:34PM
bodhi Wrote:
-------------------------------------------------------
> @pengu,
>
> Thanks! I see. Same SoC and everything. I think
> that cover all bases, except 2 items:
>
> - memory: the NSA320S has 256MB RAM, I thought the
> NSA310S also has 256MB?
> - The number of SATA ports needs to be defined as
> 1 port for NSA310S. This is not that important,
> but should be corrected nevertheless.

Yes, it does. It has 256MB, at least from checking my boot log.
Re: Debian on NSA310S?
June 29, 2015 06:36PM
JohnnyUSA Wrote:
-------------------------------------------------------
> Here is the full bootlog:
> http://pastebin.com/pAyj62Eb

Johnny,

You should regenerate the uInitrd. You are running with older version of the initramfs. Your kernel is 4.0

## Booting image at 00800000 ...
  Image Name:   Linux-4.0.0-kirkwood-tld-2
  Created:      2015-06-26   8:47:53 UTC
  Image Type:   ARM Linux Kernel Image (uncompressed)
  Data Size:    3061529 Bytes =  2.9 MB
  Load Address: 00008000
  Entry Point:  00008000
  Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
  Image Name:   initramfs-3.18.5-kirkwood-tld-1
  Created:      2015-06-26   8:48:36 UTC
  Image Type:   ARM Linux RAMDisk Image (gzip compressed)
  Data Size:    8464061 Bytes =  8.1 MB
  Load Address: 00000000
  Entry Point:  00000000
  Verifying Checksum ... OK

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on NSA310S?
June 29, 2015 06:41PM
bodhi Wrote:
-------------------------------------------------------

> - memory: the NSA320S has 256MB RAM, I thought the
> NSA310S also has 256MB?


some sites say that the NSA320S has 1,2 GHz and 512 MB RAM

correct me if I'm wrong zyxel doesn't say anything about this so I have to use specification published by others.



Edited 3 time(s). Last edit at 06/29/2015 07:03PM by pengu.
Re: Debian on NSA310S?
June 29, 2015 06:49PM
bodhi Wrote:
-------------------------------------------------------
> JohnnyUSA Wrote:
> --------------------------------------------------
> -----
> > Here is the full bootlog:
> > http://pastebin.com/pAyj62Eb
>
> Johnny,
>
> You should regenerate the uInitrd. You are running
> with older version of the initramfs. Your kernel
> is 4.0

Problem is, i didn't find "initramfs-4.0.0-kirkwood-tld-1 or initramfs-4.0.0-kirkwood-tld-2" in your archive. Maybe i'm stupid or just tired but i can't see them.



Edited 1 time(s). Last edit at 06/29/2015 06:50PM by JohnnyUSA.
Re: Debian on NSA310S?
June 29, 2015 06:57PM
@pengu,

The NSA320S has only 256MB and also 1.0 GHz. That's why you can run your NSA310S correctly. Otherwise you would have seen 512MB RAM.

See:
ftp://ftp2.zyxel.com/NSA320S/datasheet/NSA320S_2.pdf

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on NSA310S?
June 29, 2015 06:59PM
@JohnnyUSA
you have to change all tld-1 stuff to tld-2



Edited 1 time(s). Last edit at 06/29/2015 06:59PM by pengu.
Re: Debian on NSA310S?
June 29, 2015 07:03PM
Johnny,

It's not in the archive. When you install kernel 4.0 with
dpkg -i linux-image-4.0.0-kirkwood-tld-1_1_armel.deb
it will be generated automatically along with other kernel files.

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



Edited 1 time(s). Last edit at 06/29/2015 07:04PM by bodhi.
Re: Debian on NSA310S?
June 29, 2015 07:05PM
Thanks bodhi,
they only publish it in that file and others use wrong specifications, perhaps they think its the same like NSA320
I have reportet this and I hope they will change it.



Edited 1 time(s). Last edit at 06/29/2015 07:15PM by pengu.
Re: Debian on NSA310S?
June 29, 2015 07:17PM
You are correct @bodhi, i've regenerated the file, same output, no network. I think i'll give up for today, too tired. But thanks for your assistance guys.

http://pastebin.com/0VZKRSbF
Re: Debian on NSA310S?
June 29, 2015 07:21PM
pengu,

> perhaps they think its the
> same like NSA320

Yes, I think you're right. It seems so.

I think we're ready to add it to the support list in kernel 4.1 (released in a day or two).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on NSA310S?
June 29, 2015 07:29PM
@JohnnyUSA

could you configure the network manually?

https://wiki.debian.org/NetworkConfiguration#Setting_up_an_Ethernet_Interface

my kirkwood kernel builds
my oxnas kernel builds
Tvheadend Kirkwood Debian packages

my kirkwood devices:
- 1x hp t5325 (1,2 GHz, 88F6281 / 512 MB / 4x USB)

my oxnas devices
- 2x pogoplug

my dove devices
- 2x Chip PC LXD8541 (800 MHz, 88F510 / 1024 MB / 6x USB)
- 1x Wyse T50 (1,0 GHz, 88F510 / 1024 MB / 4x USB)

my amlogic devices
- several s905x / s912 devices
Re: Debian on NSA310S?
June 29, 2015 07:30PM
pengu Wrote:
-------------------------------------------------------
> @JohnnyUSA
>
> could you configure the network manually?
>
> https://wiki.debian.org/NetworkConfiguration#Setti
> ng_up_an_Ethernet_Interface

tried that 2hrs ago, no luck, gonna do everything from scratch tomorrow and let you guys know. Have a good night for now.

LE: If i unplug the power cord for like 2-3 minutes and plug it back in, the NAS starts and i have ethernet link on Debian. It's driving me crazy really.



Edited 1 time(s). Last edit at 06/29/2015 07:38PM by JohnnyUSA.
Re: Debian on NSA310S?
June 30, 2015 03:29AM
Another day.. :)

I've managed to replicate 100% accuracy the way things work on my NAS.

So, if i HALT/shutdown -s now when i'm logged into Debian, on PowerON i have no ethernet link, to fix that without booting into ZyXEL OS and then restart, i need to unplug the ethernet cable and power cable from my NAS and then reconnect them. That way, ethernet works again on Debian. Maybe this is a hint that can help you guys since you're more experienced than me.

Now, if needed, here's a paste bin from u-Boot with all my envs, maybe there's something wrong there:

http://pastebin.com/XHNMvR5A
Re: Debian on NSA310S?
June 30, 2015 04:17AM
Johnny,

Try
shutdown -h now

See if it comes up OK. If it does not, try assign a static IP.

Example:
#iface eth0 inet dhcp
iface eth0 inet static
        address 192.168.0.220
        netmask 255.255.255.0
        gateway 192.168.0.1

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on NSA310S?
June 30, 2015 04:44AM
@ Johnny did you try what I said in post here http://forum.doozan.com/read.php?2,22241,22436#msg-22436

pengu Wrote:
-------------------------------------------------------

>
> some sites say that the NSA320S has 1,2 GHz and
> 512 MB RAM
>

The oldest trick in the world, make devices with similar name but crappier hardware. Shops will keep using old description and will lie for you, for free.
Gigabyte does this all the time.

NSA310s and 320S are basically the same apart from Sata port. They even left out the eSata port...
Re: Debian on NSA310S?
June 30, 2015 07:50AM
@bodhi,

tried the "shutdown -h now", also tried with static IP. I've even installed your latest kernel 4.1. No change.
same sympthom: If i unplug both ethernet cable and power and plug them back everything works after "halt/shutdown -h now". If i don't unplug both of them i have no ethernet link.

@boba,
i'm not entirely sure what you want me to do. Can you be more specific please? I've been on the topic you've directed me to but i don't understand much from it. (my lack of expertise perhaps)

It's like my ethernet gets stuck in.. "something" and the only way to unstuck is to remove cables or boot from stock ZyXEL OS.



Edited 1 time(s). Last edit at 06/30/2015 07:51AM by JohnnyUSA.
Re: Debian on NSA310S?
June 30, 2015 12:11PM
I'm running the latest kernel (4.10) on NSA310s and no problems.

please set a correct IP in U-Boot and try to ping your router
please try another LAN cable
please try to ping your own IP in debian


perhaps some component of the board different?
perhaps the power supply is faulty?
when possible try another power supply



Edited 3 time(s). Last edit at 06/30/2015 12:39PM by pengu.
Re: Debian on NSA310S?
June 30, 2015 01:53PM
What do you mean by set up correct IP on U-Boot?

I've trie another cable, same result. Also i don't believe the power supply is defective, booting/halting on stock ZyXEL goes without problems.

You can't imagine how frustrating it is knowing you have the same NAS and you have no problems because that makes me wonder what's wrong on my side...

One thing tho', we both run OpenWRT on router, i have IPv6 enabled also, what about you?
Re: Debian on NSA310S?
June 30, 2015 02:15PM
IPv6 is enabled and can be used if needed.
Re: Debian on NSA310S?
June 30, 2015 02:19PM
pengu Wrote:
-------------------------------------------------------
> IPv6 is enabled and can be used if needed.

Let's try something else please. When you have time, upload somewhere your rootfs and fat16 partitions, i'll try to run your build. This way we will narrow things.

Even so.. i don't believe we will succeed, i've tried with fresh install this morning, same result...

What bothers me is why stock ZyXEL works... then there's something i'm missing..



Edited 1 time(s). Last edit at 06/30/2015 02:22PM by JohnnyUSA.
Re: Debian on NSA310S?
June 30, 2015 02:42PM
Johnny,

> What bothers me is why stock ZyXEL works... then
> there's something i'm missing..

Let's go back and start troubleshooting the network basics.

Pls post output of:

cat /etc/udev/rules.d/70-persistent-net.rules
cat /lib/udev/rules.d/75-persistent-net-generator.rules | grep -i3 'device name whitelist'

also the serial console boot log when it failed with static IP address (or failed to get dynamic IP)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on NSA310S?
June 30, 2015 02:50PM
Output of cat /etc/udev/rules.d/70-persistent-net.rules:

# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# Unknown net device (/devices/platform/mv643xx_eth_port.0/net/eth0) (mv643xx_eth_port)

# Unknown net device (/devices/platform/mv643xx_eth_port.0/net/eth0) (mv643xx_eth_port)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# Unknown net device (/devices/platform/mv643xx_eth_port.0/net/eth0) (mv643xx_eth_port)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="5c:f4:ab:df:07:2b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Output of cat /lib/udev/rules.d/75-persistent-net-generator.rules | grep -i3 'device name whitelist':
IMPORT{cmdline}="net.ifnames"
ENV{net.ifnames}=="1",                  GOTO="persistent_net_generator_end"

# device name whitelist
KERNEL!="eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
                                        GOTO="persistent_net_generator_end"

Serial console boot log when eth failed:
http://pastebin.com/EGG71BFN

PS: Don't mind the mounting errors in the log, i've had the HDD removed.
PS2: Thanks guys for trying to help me still!
PS3: Meanwhile i'm trying to compile a new version of router firmware just to be sure...



Edited 1 time(s). Last edit at 06/30/2015 02:52PM by JohnnyUSA.
Re: Debian on NSA310S?
June 30, 2015 03:01PM
Johnny,

Log in with serial console and comment out this line. Save, and power down. Power up to test.

# Unknown net device (/devices/platform/mv643xx_eth_port.0/net/eth0) (mv643xx_eth_port)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="5c:f4:ab:df:07:2b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on NSA310S?
June 30, 2015 03:04PM
Also change this,

KERNEL!="Eth*|ath*|Wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
                                        GOTO="persistent_net_generator_end"

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: