ZyXEL NSA320 booted from USB...once!

Install Arch Linux ARM on other devices.

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

Postby moonman » Sat May 18, 2013 6:39 am

Warheads, it doesn't compile. I think .atag_offset = 0x100, should be .boot_params = 0x00000100, but i didn't look any further than that. I tried porting your board file to 3.9.2 and I got stuck with uninitialized function problem. It may be easier to just add pci-init stuff instead of trying to adapt the whole patch? I'll look into it some more later.
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 WarheadsSE » Sat May 18, 2013 7:42 am

Yeah, diff the thing, and it will show which pieces I botched.
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 booted from USB...once!

Postby moonman » Sat May 18, 2013 8:12 am

I think I'm past that problem. Apparantly some header got separated into orion-gpio.h so had to include that as well. Will see if that compiles.

EDIT: I meant 3.1 doesn't compile (fixed already). 3.9 has different problems :)
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 lulo » Sat May 18, 2013 9:05 am

Sorry guys - i'ts exist slight chance to new kernel ? Add full support (properly patch) to NSA310 (properly pci, gpio, r8169, lm85, leds, apm/power/sleep<???>) ?
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby moonman » Sat May 18, 2013 9:23 am

We are working on it.

EDIT: Don't know about apm stuff, but everything else should be working when kernels 3.1.10-20 and 3.9.2-2 are built
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 WarheadsSE » Sat May 18, 2013 1:49 pm

Does the 310 even have PCI exposed?
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 booted from USB...once!

Postby lulo » Sat May 18, 2013 7:24 pm

Install last linux-kirkwood-3.9.2-2 , set arcNumber to 4022, reboot and:

full boot proces: http://pastebin.com/2kNYYqpg
after delete old /etc/udev/rules.d/70-* , again reboot and:
$this->bbcode_second_pass_code('', '
alarm login: root
Has�ło:
Ostatnie logowanie: Sat May 18 21:04:13 na ttyS0
[root@alarm ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::219:cbff:fe00:5181 prefixlen 64 scopeid 0x20<link>
ether 00:19:cb:00:51:81 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10 bytes 1348 (1.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 11

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 52 bytes 3684 (3.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 52 bytes 3684 (3.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@alarm ~]# lspci -vv
00:00.0 Host bridge: Marvell Technology Group Ltd. 88F6281 [Kirkwood] ARM SoC (rev 03)
Subsystem: Marvell Technology Group Ltd. Device 11ab
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 9
Region 0: Memory at <ignored> (64-bit, prefetchable)
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Address: 0000000000000000 Data: 0000
Capabilities: [60] Express (v1) Root Port (Slot-), MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <256ns, L1 <1us
ExtTag- RBE+ FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <256ns, L1 unlimited
ClockPM+ Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- Retrain- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna- CRSVisible-
RootCap: CRSVisible-
RootSta: PME ReqID 0000, PMEStatus- PMEPending-
Capabilities: [100 v1] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
AERCap: First Error Pointer: 00, GenCap- CGenEn- ChkCap- ChkEn-

00:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 03)
Subsystem: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 9
Region 0: I/O ports at 1000 [size=256]
Region 2: Memory at e0014000 (64-bit, prefetchable) [size=4K]
Region 4: Memory at e0010000 (64-bit, prefetchable) [size=16K]
[virtual] Expansion ROM at e0000000 [disabled] [size=64K]
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Address: 0000000000000000 Data: 0000
Capabilities: [70] Express (v2) Endpoint, MSI 01
DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <512ns, L1 <64us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <512ns, L1 <64us
ClockPM+ Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Not Supported, TimeoutDis+, LTR-, OBFF Not Supported
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1-
EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
Capabilities: [ac] MSI-X: Enable- Count=4 Masked-
Vector table: BAR=4 offset=00000000
PBA: BAR=4 offset=00000800
Capabilities: [cc] Vital Product Data
Unknown small resource type 00, will not decode more.
Capabilities: [100 v1] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
AERCap: First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
Capabilities: [140 v1] Virtual Channel
Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
Arb: Fixed- WRR32- WRR64- WRR128-
Ctrl: ArbSelect=Fixed
Status: InProgress-
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
Status: NegoPending- InProgress-
Capabilities: [160 v1] Device Serial Number 00-00-00-00-00-00-00-00
Kernel driver in use: r8169

[root@alarm ~]# dhcpcd eth0
dhcpcd[172]: version 5.6.8 starting
dhcpcd[172]: eth0: sending IPv6 Router Solicitation
dhcpcd[172]: eth0: broadcasting for a lease
dhcpcd[172]: eth0: sending IPv6 Router Solicitation
dhcpcd[172]: eth0: sending IPv6 Router Solicitation
dhcpcd[172]: eth0: sending IPv6 Router Solicitation
dhcpcd[172]: eth0: no IPv6 Routers available
dhcpcd[172]: timed out
[root@alarm ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::219:cbff:fe00:5181 prefixlen 64 scopeid 0x20<link>
ether 00:19:cb:00:51:81 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 3108 (3.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 11

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 68 bytes 4804 (4.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 68 bytes 4804 (4.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@alarm ~]# dhcpcd eth1
dhcpcd[184]: version 5.6.8 starting
[ 229.372591] r8169 0000:00:01.0 eth1: link down
[ 229.377073] r8169 0000:00:01.0 eth1: link down
[ 229.385550] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
dhcpcd[184]: eth1: waiting for carrier
[ 231.478406] r8169 0000:00:01.0 eth1: link up
[ 231.484652] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
dhcpcd[184]: eth1: carrier acquired
dhcpcd[184]: eth1: sending IPv6 Router Solicitation
dhcpcd[184]: eth1: sendmsg: Cannot assign requested address
dhcpcd[184]: eth1: broadcasting for a lease
dhcpcd[184]: eth1: offered xxx.xxx.1.205 from xxx.xxx.1.1
dhcpcd[184]: eth1: acknowledged xxx.xxx.1.205 from 113.114.1.1
dhcpcd[184]: eth1: checking for xxx.xxx.1.205
dhcpcd[184]: eth1: sending IPv6 Router Solicitation
dhcpcd[184]: eth1: leased xxx.xxx.1.205 for 43200 seconds
dhcpcd[184]: forked to background, child pid 215
[root@alarm ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::219:cbff:fe00:5181 prefixlen 64 scopeid 0x20<link>
ether 00:19:cb:00:51:81 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 3108 (3.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 11

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet xxx.xxx.1.205 netmask 255.255.255.0 broadcast 113.114.1.255
inet6 fe80::200:ff:fe00:30 prefixlen 64 scopeid 0x20<link>
ether 00:00:00:00:00:30 txqueuelen 1000 (Ethernet)
RX packets 3 bytes 748 (748.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 16 bytes 1640 (1.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 68 bytes 4804 (4.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 68 bytes 4804 (4.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@alarm ~]# ls /sys/class/net
eth0 eth1 lo
[root@alarm ~]# cat /sys/class/net/eth1/address
00:00:00:00:00:30
[root@alarm ~]# cat /sys/class/net/eth0/address
00:19:cb:00:51:81
[root@alarm ~]#
')

ethtool:
$this->bbcode_second_pass_code('', '
[root@alarm ~]# ethtool eth1
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
[root@alarm ~]# ethtool eth0
Settings for eth0:
Supported ports: [ MII ]
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: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Link detected: yes
[root@alarm ~]#
')

fw_printenv:
$this->bbcode_second_pass_code('', '
[root@alarm ~]# fw_printenv
Too few good blocks within range
[root@alarm ~]#
[root@alarm ~]# cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# MTD device name Device offset Env. size Flash sector size
#/dev/mtd2 0x0000 0x20000 0x20000

# segate dockstar:
#/dev/mtd0 0xc0000 0x20000 0x20000

# iomega iconnect
# /dev/mtd0 0xa0000 0x20000 0x20000

# CuBox
# /dev/mtd0 0xc0000 0x10000 0x10000

# NSA310
/dev/mtd1 0x0000 0x20000 0x20000

[root@alarm ~]#
')
can use /dev/mtd0{mtd1,mtd2} its identical bad log.
:cry:
printenv from u-boot to RS232:
$this->bbcode_second_pass_code('', '
NSA310>> printenv
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0
x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init
bootdelay=2
baudrate=115200
loads_echo=0
ethaddr=00:19:CB:00:51:81
eth1addr=00:19:CB:00:51:82
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
nandEcc=1bit
MODEL_ID=A203
PRODUCT_NAME=NSA-310
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=ZyXEL Communications Corp.
run_diag=yes
bootargs_stock=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kerne
l_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(kerne
l_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/sda2 rw 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)
CASset=min
ethprime=egiga1
bootargs_root=root=/dev/nfs rw
bootargs_end=:::orion: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;
ethmtu=1500
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
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
bootcmd='run bootcmd_linux'
MALLOC_len=3
arcNumber=4022
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=100000
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
hddPowerCtrl=no
enaAutoRecovery=yes
kernel_addr=0x4640000
pcieTune=no
ethact=egiga1

Environment size: 2455/131068 bytes
')
led HDD not worknig, led SYSTEM blink green

Internet (ethernet) only working to sleepeng MAC: 00:00:00:00:00:30

:D
Wake on LAN working (default sleeping address MAC is good)
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby pepedog » Sat May 18, 2013 8:56 pm

That was expected to happen. Debian does that too.
Edit your netcfg profile for that interface in /etc/netcfg/
Add line
$this->bbcode_second_pass_code('', 'PRE_UP="/sbin/ifconfig eth1 hw ether XX:XX:XX:XX:XX:XX"')
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 18, 2013 9:58 pm

Im not this patch /etc/netcfg/ , only /etc/network.d and /etc/netconfig (empty)..using this file /etc/network.d/wired-eth0:

XX:XX:XX:XX:XX:XX = 00:00:00:00:00:30 or (for my) 00:19:CB:00:51:81 or... ???

other question:
a) fragment error from boot proces ( full = http://pastebin.com/2kNYYqpg ) :
$this->bbcode_second_pass_code('', '
...
...
[ 16.944723] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[ 16.957004] Scanning device for bad blocks
[ 16.961163] Bad eraseblock 0 at 0x000000000000
[ 16.965687] Bad eraseblock 1 at 0x000000020000
[ 16.970190] Bad eraseblock 2 at 0x000000040000
[ 16.974721] Bad eraseblock 3 at 0x000000060000
[ 16.979224] Bad eraseblock 4 at 0x000000080000
[ 16.983739] Bad eraseblock 5 at 0x0000000a0000
[ 16.988240] Bad eraseblock 6 at 0x0000000c0000
...
...
...
')

Whot this ? This is bad ?

b) leds:
$this->bbcode_second_pass_code('', '
[slawek@alarm ~]$ ls /sys/class/leds
nsa310:green:Copy nsa310:green:SATA2 nsa310:green:USB nsa310:red:SATA1 nsa310:red:System
nsa310:green:SATA1 nsa310:green:System nsa310:red:Copy nsa310:red:SATA2
[slawek@alarm ~]$
')

How to properly power-resume.sh ?
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby pepedog » Sat May 18, 2013 10:43 pm

Sorry, file in /etc/network.d/
Which is built in ethernet? That one. I might be eth1, or not.
Shall I go buy a nsa310, find out exactly which rootfs, ask you exactly how you configured network, and tell you how to correct?
You added a second usb nic, it probably isn't that. Moonman and whse have spent much time on this, me too.

As to nand error, just probably wrong addresses set, do you need to get to nand from arch?
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 1 guest