ZyXEL NSA320: eth0 "link is not ready"

Install Arch Linux ARM on other devices.

Re: ZyXEL NSA320: eth0 "link is not ready"

Postby CharlesB » Tue Sep 25, 2012 9:54 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'c')onsider trying the linux-kirkwood kernel package
Sure! This system is definitely experiment-grade at this point. And thanks for the excuse to get more familiar with Arch pkg mgt. :-) "dhcpcd eth1" set my USB interface up this time so I didn't have to hack addr/gateway/hosts to reach the server, and I installed it.

It didn't complain about no link$this->bbcode_second_pass_code('', ' __ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Mar 23 2011 - 16:09:39) Marvell version: 3.4.19

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFEE0

Soc: 88F6281 A1 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 256MB
DRAM CS[1] base 0x10000000 size 256MB
DRAM Total size 512MB 16bit width
Addresses 10M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (10M - 7M): Done
NAND:128 MB
Flash: 0 kB

CPU : Marvell Feroceon (Rev 1)
//--- stateButtonBit = 3, recovery ---//
Kernel address is 0xc80000.

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0, egiga1 [PRIME]
Hit any key to stop autoboot: 2 1 0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (5)
Device 0 @ 0 0:
Model: WDC WD3200JD-22KLB0 Firm: 08.05J08 Ser#: WD-WCAMR2238476
Type: Hard Disk
Supports 48-bit addressing
Capacity: 305245.3 MB = 298.0 GB (625142448 x 512)
[0 1 0]: Enable DMA mode (6)
Device 1 @ 0 1:
Model: ST3000DM001-9YN166 Firm: CC9C Ser#: W1F050R8
Type: Hard Disk
Supports 48-bit addressing
Capacity: 764436.4 MB = 746.5 GB (1565565872 x 512)


2856016 bytes read
## Booting image at 02000000 ...
Image Name: Linux-3.1.10-13-ARCH
Created: 2012-08-20 15:46:58 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2855952 Bytes = 2.7 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.1.10-13-ARCH (nobody@fermium) (gcc version 4.7.1 20120721 (prerelease) (GCC) ) #1 PREEMPT Mon Aug 20 15:46:18 UTC 2012
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: ZyXEL NSA320 2-Bay Power Media Server
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat c058c780, node_mem_map c065d000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 130048 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/sda2 ro rootwait loglevel=8
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] allocated 2097152 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] Memory: 512MB = 512MB total
[ 0.000000] Memory: 511192k/511192k available, 13096k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xe0800000 - 0xfe800000 ( 480 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0529b6c (5255 kB)
[ 0.000000] .init : 0xc052a000 - 0xc0555000 ( 172 kB)
[ 0.000000] .data : 0xc0556000 - 0xc058ef70 ( 228 kB)
[ 0.000000] .bss : 0xc058ef94 - 0xc065cb0c ( 823 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:114
[ 0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[ 0.000000] Console: colour dummy device 80x30
[ 15.853252] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[ 15.943189] pid_max: default: 32768 minimum: 301
[ 15.943306] Security Framework initialized
[ 15.943328] AppArmor: AppArmor disabled by boot time parameter
[ 15.943394] Mount-cache hash table entries: 512
[ 15.943753] Initializing cgroup subsys cpuacct
[ 15.943778] Initializing cgroup subsys memory
[ 15.943812] Initializing cgroup subsys devices
[ 15.943823] Initializing cgroup subsys freezer
[ 15.943833] Initializing cgroup subsys net_cls
[ 15.943842] Initializing cgroup subsys blkio
[ 15.943864] Initializing cgroup subsys perf_event
[ 15.943953] CPU: Testing write buffer coherency: ok
[ 15.945098] devtmpfs: initialized
[ 15.946852] NET: Registered protocol family 16
[ 15.947444] Kirkwood: MV88F6281-A1, TCLK=200000000.
[ 15.947457] Feroceon L2: Enabling L2
[ 15.947491] Feroceon L2: Cache support initialised.
[ 15.948002] initial MPP regs: 21111111 01003311 33331100 33003333 00000533 20202000 00000000
[ 15.948038] final MPP regs: 01111111 00003311 00001100 00000000 00000000 00000000 00000000
[ 15.953175] bio: create slab <bio-0> at 0
[ 15.953529] vgaarb: loaded
[ 15.953790] SCSI subsystem initialized
[ 15.953942] libata version 3.00 loaded.
[ 15.954155] usbcore: registered new interface driver usbfs
[ 15.954243] usbcore: registered new interface driver hub
[ 15.954342] usbcore: registered new device driver usb
[ 15.954876] Switching to clocksource orion_clocksource
[ 15.963184] Switched to NOHz mode on CPU #0
[ 15.963421] FS-Cache: Loaded
[ 15.973122] NET: Registered protocol family 2
[ 15.973344] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 15.974045] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 15.974397] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[ 15.974575] TCP: Hash tables configured (established 16384 bind 16384)
[ 15.974585] TCP reno registered
[ 15.974595] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 15.974617] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 15.974845] NET: Registered protocol family 1
[ 15.974879] PCI: CLS 0 bytes, default 32
[ 15.975483] audit: initializing netlink socket (disabled)
[ 15.975515] type=2000 audit(0.120:1): initialized
[ 16.061061] VFS: Disk quotas dquot_6.5.2
[ 16.061322] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 16.063495] JFFS2 version 2.2. (NAND) 2001-2006 Red Hat, Inc.
[ 16.064793] aufs 3.1-20111107
[ 16.064813] msgmni has been set to 998
[ 16.066154] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 16.066169] io scheduler noop registered
[ 16.066177] io scheduler deadline registered
[ 16.066277] io scheduler cfq registered (default)
[ 16.066338] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[ 16.066370] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[ 16.104950] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 16.144959] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 16.184948] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[ 16.224947] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[ 16.229957] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 16.250612] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[ 16.792421] console [ttyS0] enabled
[ 16.801906] brd: module loaded
[ 16.807929] loop: module loaded
[ 16.811371] sata_mv sata_mv.0: version 1.28
[ 16.815722] sata_mv sata_mv.0: slots 32 ports 2
[ 16.821911] scsi0 : sata_mv
[ 16.825139] scsi1 : sata_mv
[ 16.828151] ata1: SATA max UDMA/133 irq 21
[ 16.832267] ata2: SATA max UDMA/133 irq 21
[ 16.837285] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
[ 16.846147] Scanning device for bad blocks
[ 16.880292] Bad eraseblock 286 at 0x0000023c0000
[ 16.894299] Bad eraseblock 376 at 0x000002f00000
[ 16.917226] Bad eraseblock 551 at 0x0000044e0000
[ 16.941808] Bad eraseblock 742 at 0x000005cc0000
[ 16.974035] Bad eraseblock 1006 at 0x000007dc0000
[ 16.980573] Creating 9 MTD partitions on "orion_nand":
[ 16.985751] 0x000000000000-0x000000100000 : "uboot"
[ 16.991587] 0x000000100000-0x000000180000 : "uboot_env"
[ 16.997653] 0x000000180000-0x000000200000 : "key_store"
[ 17.003652] 0x000000200000-0x000000280000 : "info"
[ 17.009272] 0x000000280000-0x000000c80000 : "etc"
[ 17.014801] 0x000000c80000-0x000001680000 : "kernel_1"
[ 17.020815] 0x000001680000-0x000004640000 : "rootfs1"
[ 17.026787] 0x000004640000-0x000005040000 : "kernel_2"
[ 17.032789] 0x000005040000-0x000008000000 : "rootfs2"
[ 17.039566] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 17.046516] mv643xx_eth smi: probed
[ 17.052069] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with MAC address b0:b2:dc:ed:59:3d
[ 17.061028] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 17.067657] orion-ehci orion-ehci.0: Marvell Orion EHCI
[ 17.072957] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 17.104926] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 17.124913] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 17.131384] hub 1-0:1.0: USB hub found
[ 17.135198] hub 1-0:1.0: 1 port detected
[ 17.139603] Initializing USB Mass Storage driver...
[ 17.144582] usbcore: registered new interface driver usb-storage
[ 17.150639] USB Mass Storage support registered.
[ 17.155408] usbcore: registered new interface driver libusual
[ 17.161494] mousedev: PS/2 mouse device common for all mice
[ 17.167345] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[ 17.173337] sdhci: Secure Digital Host Controller Interface driver
[ 17.179585] sdhci: Copyright(c) Pierre Ossman
[ 17.184025] sdhci-pltfm: SDHCI platform and OF driver helper
[ 17.189861] Registered led device: nsa320:green:hdd2
[ 17.195013] Registered led device: nsa320:red:hdd2
[ 17.199907] Registered led device: nsa320:green:usb
[ 17.204884] Registered led device: nsa320:green:sys
[ 17.209882] Registered led device: nsa320:orange:sys
[ 17.214981] Registered led device: nsa320:green:copy
[ 17.220051] Registered led device: nsa320:red:copy
[ 17.224975] Registered led device: nsa320:green:hdd1
[ 17.230048] Registered led device: nsa320:red:hdd1
[ 17.235158] usbcore: registered new interface driver r8712u
[ 17.241631] GRE over IPv4 demultiplexor driver
[ 17.246130] TCP cubic registered
[ 17.249555] NET: Registered protocol family 17
[ 17.254098] lib80211: common routines for IEEE802.11 drivers
[ 17.259805] lib80211_crypt: registered algorithm 'NULL'
[ 17.265072] Registering the dns_resolver key type
[ 17.269822] Gating clock of unused units
[ 17.273758] before: 0x00dfc3dd
[ 17.276839] after: 0x00c7c1c9
[ 17.280410] registered taskstats version 1
[ 17.285170] console [netcon0] enabled
[ 17.288843] netconsole: network logging started
[ 17.293949] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 17.300951] rtc-mv rtc-mv: setting system clock to 2084-11-08 00:54:29 UTC (3624483269)
[ 17.354934] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
[ 17.375135] ata1.00: ATA-6: WDC WD3200JD-22KLB0, 08.05J08, max UDMA/100
[ 17.381786] ata1.00: 625142448 sectors, multi 0: LBA48
[ 17.405140] ata1.00: configured for UDMA/100
[ 17.425215] scsi 0:0:0:0: Direct-Access ATA WDC WD3200JD-22K 08.0 PQ: 0 ANSI: 5
[ 17.433864] sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
[ 17.441709] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 17.447313] sd 0:0:0:0: [sda] Write Protect is off
[ 17.452132] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 17.457669] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 17.466807] usb 1-1: new high speed USB device number 2 using orion-ehci
[ 17.485683] sda: sda1 sda2
[ 17.489619] sd 0:0:0:0: [sda] Attached SCSI disk
[ 17.617089] hub 1-1:1.0: USB hub found
[ 17.621216] hub 1-1:1.0: 4 ports detected
[ 17.905231] usb 1-1.4: new full speed USB device number 3 using orion-ehci
[ 17.964927] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 18.004975] ata2.00: ATA-8: ST3000DM001-9YN166, CC9C, max UDMA/133
[ 18.011188] ata2.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[ 18.074959] ata2.00: configured for UDMA/133
[ 18.095183] scsi 1:0:0:0: Direct-Access ATA ST3000DM001-9YN1 CC9C PQ: 0 ANSI: 5
[ 18.103778] sd 1:0:0:0: [sdb] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[ 18.111875] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 18.117278] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[ 18.122973] sd 1:0:0:0: [sdb] Write Protect is off
[ 18.127815] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 18.132986] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 18.194395] sdb: sdb1
[ 18.197774] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 18.209506] EXT4-fs (sda2): couldn't mount as ext3 due to feature incompatibilities
[ 18.235145] EXT4-fs (sda2): couldn't mount as ext2 due to feature incompatibilities
[ 18.427482] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[ 18.435228] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[ 18.472071] devtmpfs: mounted
[ 18.475575] Freeing init memory: 172K

INIT: version 2.88 booting


> Arch Linux ARM

> http://archlinuxarm.org/

------------------------------
:: Adjusting system time and setting kernel time zone [BUSY] hwclock: settimeofday() failed: Invalid argument

Unable to set system clock.

[FAIL]

:: Starting udev daemon [BUSY] systemd-udevd[93]: starting version 188
[1m[DONE]

:: Triggering udev uevents [BUSY] [DONE]

:: Loading user-specified modules [BUSY] [DONE]

:: Waiting for udev uevents to be processed [BUSY] [DONE]

:: Configuring virtual consoles [BUSY] [DONE]

:: Bringing up loopback interface [BUSY] [DONE]

:: Checking filesystems [BUSY] [DONE]

:: Remounting root and API filesystems [BUSY] [ 20.842512] EXT4-fs (sda2): warning: checktime reached, running e2fsck is recommended
[ 20.850898] EXT4-fs (sda2): re-mounted. Opts: user_xattr,acl,barrier=1,data=ordered
[DONE]

:: Mounting local filesystems [BUSY] [DONE]

:: Activating swap [BUSY] [DONE]

:: Configuring time zone [BUSY] [DONE]

:: Initializing random seed [BUSY] [DONE]

:: Removing leftover files [BUSY] [DONE]

:: Setting hostname: alarm [BUSY] [DONE]

:: Saving dmesg log [BUSY] [DONE]


INIT: Entering runlevel: 3


:: Starting Syslog-NG [BUSY] [DONE]

:: Starting network [BUSY] [DONE]

:: Mounting network filesystems [BUSY] [DONE]

:: Starting crond daemon [BUSY] [DONE]

:: Starting Secure Shell Daemon [BUSY] [DONE]



Arch Linux 3.1.10-13-ARCH (ttyS0)

alarm login: root
') (still no bottom light on Ethernet port, but I still don't know if that's normal or not) and eth0 now shows as "UP", but no IP address. dhcpcd claims to broadcast, but generates no Ethernet traffic; similarly, manually assigning an address and pinging generates no traffic. It looks like it went from no link to...not realizing that it has no link! :o

Additional info:
I also found a "proc"-like directory containing info about the card. Didn't glean a lot of info from it except that it can't negotiate a link (10Mbps, half-duplex?), which we already knew.$this->bbcode_second_pass_code('', '[root@alarm eth0]# pwd
/sys/devices/platform/mv643xx_eth_port.0/net/eth0
[root@alarm eth0]# pwdgrep -H '.*' *
addr_assign_type:0
address:b0:b2:dc:ed:59:3d
addr_len:6
broadcast:ff:ff:ff:ff:ff:ff
carrier:0
grep: device: Is a directory
dev_id:0x0
dormant:0
duplex:half
flags:0x1003
ifindex:2
iflink:2
link_mode:0
mtu:1500
netdev_group:0
operstate:unknown
grep: power: Is a directory
speed:10
grep: statistics: Is a directory
grep: subsystem: Is a directory
tx_queue_len:1000
type:1
uevent:INTERFACE=eth0
uevent:IFINDEX=2
[root@alarm eth0]# ')
I also tried hooking it up directly to another computer. Voila! The bottom light came on! (whatever that means) However, nothing else seemed to be affected; Linux info looked the same, and as usual, lights blink with traffic from other computer, but nothing when this one transmits.


After hooking it up to various devices, I believe that the lower LED on the NSA-320's Ethernet port indicates that it has established a 10/100Mbps connection instead of 1000Mbps.
CharlesB
 
Posts: 34
Joined: Fri Sep 14, 2012 3:53 am

Re: ZyXEL NSA320: eth0 "link is not ready"

Postby Kurlon » Wed Sep 26, 2012 12:18 pm

Seeing as you've got a working alternate connection, if switching to linux-kirkwood doesn't clear it, install mii-tool or eth-tool and see if manually specifying media settings clears it up.
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm

Re: ZyXEL NSA320: eth0 "link is not ready"

Postby WarheadsSE » Wed Sep 26, 2012 5:17 pm

Another instance of edge-case auto-negotiation fail! :geek:
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ZyXEL NSA320: eth0 "link is not ready"

Postby Kurlon » Thu Sep 27, 2012 3:08 pm

I can understand 10/100 autoneg failure as there isn't an official spec for that, autoneg is part of the GigE spec though... how mfgs get that wrong is beyond me.
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm

Re: ZyXEL NSA320: eth0 "link is not ready"

Postby CharlesB » Thu Sep 27, 2012 6:35 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'A')nother instance of edge-case auto-negotiation fail!
Ugh, one device wouldn't surprise me, but the fact that it hasn't worked with 5 different things -- surely, if all the hardware was that bad, their return rate would be crazy! I ordered a 2nd NSA320 (who knows when it will arrive) to see if it behaves the same way as this one (and this time I'm going to verify proper operation with the stock firmware before messing with anything...)

$this->bbcode_second_pass_quote('Kurlon', 'i')nstall mii-tool or eth-tool
Excellent! I was hoping for a tool to make it easy to manipulate it. Seems that the new kernel broke my USB Ethernet device, too (the USB part registers fine, but it never creates a network device), so I just wiped and started fresh. Here's the report from ethtool:
$this->bbcode_second_pass_code('', 'Settings for eth0:
Supported ports: [ TP AUI BNC MII FIBRE ]
Supported link modes: Not reported
Supported pause frame use: No
Supports auto-negotiation: No
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Link detected: no
[root@alarm ~]# ')Not reported, Not reported, No, No...yep, that's how it behaves! :-)

Some attempts to fix:$this->bbcode_second_pass_code('', '[root@alarm ~]# ethtool -s eth0 speed 1000
Cannot advertise speed 1000
')(no diff)$this->bbcode_second_pass_code('', '[root@alarm ~]# ethtool -s eth0 speed 1000 duplex full autoneg off
')(no complaint, but still didn't change displayed parameters).

Any other ideas based on the ethtool output?
CharlesB
 
Posts: 34
Joined: Fri Sep 14, 2012 3:53 am
Top

bootext2

Postby CharlesB » Fri Sep 28, 2012 5:14 pm

I just received a 2nd NSA-320. I allowed it to boot using the factory-installed OS, and it accesses the network fine; the console shows a Gb link, and I turned Wireshark on in time to see NetBIOS registrations.

What I would like to do, now, is, without permanent alteration, manually boot the hard drive with Arch on it.

(side note: for that matter, if the OS on NAND wasn't wiped out, why can't I manually boot to that on the old device? "nboot" just returns "** no boot device **" like "usbboot" did.)

I put the hard drive in; I expect that I can use "bootext2" for the purpose. Here's the full syntax:
bootext2 dev:boot_part1,boot_part2 addr boot_image linux_dev_name
The problem: I don't know what to put in there! I'm guessing that the 1st two are "0:0", and the image is "uImage".

Can someone help me with using the bootext2 command??
CharlesB
 
Posts: 34
Joined: Fri Sep 14, 2012 3:53 am

Re: bootext2

Postby CharlesB » Fri Sep 28, 2012 5:34 pm

$this->bbcode_second_pass_quote('CharlesB', 'C')an someone help me with using the bootext2 command??

Thank you, printenv, that was very thoughtful of you! ;)
Here's a comparison of some original & Arch-modified variables:

$this->bbcode_second_pass_code('', 'ORIGINAL:
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(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootcmd=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
')
$this->bbcode_second_pass_code('', 'MODIFIED:
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(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
...
bootargs_stock=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootargs_linux=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/sda2 ro rootwait loglevel=8
bootcmd_linux=setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /uImage; bootm $(loadaddr)
bootcmd_stock=setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr)
to_stock=setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; reset
to_linux=setenv mainlineLinux yes; setenv bootcmd \'run bootcmd_linux\'; saveenv; reset
console=100000
=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
')
Very informative! Now to try it out...
CharlesB
 
Posts: 34
Joined: Fri Sep 14, 2012 3:53 am
Top

Alternate booting

Postby CharlesB » Fri Sep 28, 2012 7:00 pm

(Writing this while trying to pay some amount of attention to a phone-meeting at work, so hoping it makes sense...)

After messing around with long command-lines on the new device, I finally realized that I didn't even need to be messing around with a new unit -- the env variables added by the Arch "installer" showed exactly how to switch the old device's default boot between stock & Arch with a pair of very simple commands!
    run to_stock
    run to_linux
Each command takes care of setting up all the environment variables, saves the environment, and reboots.

And now I finally know, by typing a single command on my original device, the answer that I bought the 2nd one to answer:

It's not the hardware.

Under the factory-installed OS, the Ethernet port works fine. That means I'm not dealing with a defective unit, a difficult Ethernet environment, etc. It's a software problem, and is indeed therefore fixable through software; I no longer fear that continued effort in this area will be in vain.

So, now that we know it's not [purely] a hardware problem. Yet, neither can it be purely a software problem, if the following assumption is true:

I assume that, with this device now on the "supported" list that there is indeed a live, working device out there. If that is the case (and it didn't take special tweaks beyond the default config to make it work) then there must be a hardware difference between the two environments -- either in the NSA320 itself, or in the devices it's connected to -- or my device (having the same software) would work just as well as the other. However, it's a difference that's subtle enough that it doesn't affect the stock OS, only Arch.

Does anyone claim to have a currently-working NSA-320 in their possession?

Any other thoughts?
CharlesB
 
Posts: 34
Joined: Fri Sep 14, 2012 3:53 am

Re: ZyXEL NSA320: eth0 "link is not ready"

Postby WarheadsSE » Fri Sep 28, 2012 7:08 pm

I do, and I wrote that handy switcher-roo ;) Handy isn't it. You can even fw_setenv bootcmd run to_stock/to_linux from running system ;)

I have mine hookup up to Gigabit switches, either via my Buffalo AirStation router (running DD-WRT) or my NetGear GS108T. Never had a problem with them.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ZyXEL NSA320: eth0 "link is not ready"

Postby CharlesB » Fri Sep 28, 2012 7:49 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'H')andy isn't it.

Indeed it is! Quite slick. Thank you not only for the personal help on this issue, but for your work on this project in general.
$this->bbcode_second_pass_quote('WarheadsSE', 'I') have mine hookup up to Gigabit switches, either via my Buffalo AirStation router (running DD-WRT) or my NetGear GS108T. Never had a problem with them.

Thanks for the confirmation of real-world use, as well as the hardware names. I'll try to dig up some more hardware to try it with. The fact that it works with the stock OS, though... I may be mistaken, but I believe the auto-negotiation itself is handled purely by Ethernet devices themselves, without any intervention of the Linux kernel. If that is true, then it seems that perhaps the problem is not in the negotiation itself, but rather in something that the device is reporting back to the driver that is differing between your hardware and mine, and is handled differently (or ignored) by the driver in the stock OS but causes the Arch driver grief.
CharlesB
 
Posts: 34
Joined: Fri Sep 14, 2012 3:53 am
Top

PreviousNext

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 23 guests