ZyXEL NSA320 booted from USB...once!

Install Arch Linux ARM on other devices.

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

Postby lulo » Mon Dec 24, 2012 7:23 pm

Soory for my this post...how to install archlinuxarm for NSA310 ???
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby WarheadsSE » Mon Dec 24, 2012 7:50 pm

I have added a 310-appropriate tarball to the nsa3x0 folder.

I suggest having a serial ready, in case anything wonk happens.
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 prokrypt » Mon Jan 14, 2013 6:50 pm

$this->bbcode_second_pass_quote('WarheadsSE', 'I') can actually repeatable cause it now. The OOM killer however, doesn't make sense why it is triggering, but it all seems to be down to that happening. The uImage load is down to what appears to be a fault with writing to the disk or a memory issue.


Perhaps it's because the root filesystem is tmpfs (i have no clue, i'm computer illiterate! :roll:), and when the supposedly newly created partition doesn't mount, tar still goes ahead and extracts stuff onto the tmpfs, making the system run out of memory?
prokrypt
 
Posts: 31
Joined: Thu Dec 27, 2012 4:45 am

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

Postby lulo » Mon May 06, 2013 8:38 am

$this->bbcode_second_pass_quote('WarheadsSE', 'I') have added a 310-appropriate tarball to the nsa3x0 folder.

I suggest having a serial ready, in case anything wonk happens.

not working:
- md5sum not correct - not run this script automaticaly - i run this script manualy (sh usb_key_func.sh) and not uncompressing rootfs.tgz
- poweroff nsa310 || unplug disk || plug to computer || manualy extract rootfs.tgz to sda2 and extract uImage to sda1
- can plug this manualy prepare disk to NSA310 => poweron and boot :

$this->bbcode_second_pass_quote('', '
') __ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Jun 8 2011 - 18:48:37) 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 Total size 256MB 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)
Kernel address is 0x4640000.

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Net: egiga0, egiga1 [PRIME]
Hit any key to stop autoboot: 0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
Device 0 @ 0 0:
Model: ST9250315AS Firm: 0001SDM1 Ser#: 5VCK0T4C
Type: Hard Disk
Supports 48-bit addressing
Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)


2869736 bytes read
## Booting image at 02000000 ...
Image Name: Linux-3.1.10-16-ARCH
Created: 2013-02-12 1:17:35 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2869672 Bytes = 2.7 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00001132).

Available machine support:

ID (hex) NAME
00000690 Marvell DB-88F6281-BP Development Board
00000691 Marvell RD-88F6192-NAS Development Board
00000692 Marvell RD-88F6281 Reference Board
0000078c Marvell 88F6281 GTW GE Board
00000a76 Marvell eSATA SheevaPlug Reference Board
00000831 Marvell SheevaPlug Reference Board
00000a63 Marvell GuruPlug Reference Board
00000bb6 Seagate FreeAgent DockStar
00000c11 Seagate GoFlex Net
00000d0a Seagate GoFlex Home
00000b36 Iomega iConnect Wireless
00000f78 Pogoplug V4
00000dd6 Pogoplug E02
00000c20 RaidSonic ICY BOX IB-NAS6210
00001005 USI Topkick
00001058 Ionics Plug Computer Plus - Stratus
0000085b QNAP TS-119/TS-219
000009c6 QNAP TS-41x
00000b44 Marvell OpenRD Ultimate Board
00000939 Marvell OpenRD Client Board
00000915 Marvell OpenRD Base Board
0000089a LaCie Network Space Max v2
000008a0 LaCie Internet Space v2
00000899 LaCie Network Space v2
0000089b LaCie d2 Network v2
0000089e LaCie 5Big Network v2
0000089c LaCie 2Big Network v2
00000b1e HP t5325 Thin Client
00000fb6 ZyXEL NSA310 1-Bay Power Media Server
00000f74 ZyXEL NSA320 2-Bay Power Media Server

Please check your kernel config and/or bootloader.


my actualy printenv (core zyxel fw 4.51):

$this->bbcode_second_pass_quote('', '
')bootdelay=2
baudrate=115200
loads_echo=0
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
ethaddr=C8:6C:87:0A:F3:B1
arcNumber=4402
bootargs_stock=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernt
bootargs_linux=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kern8
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);;
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
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),8
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: 2465/131068 bytes


How to fix machine ID ? Whot is wrong ?
It this possible is bad arcNumber=4402 ? (4022 - boot and login for RS232 properly...hmmm...not drivers to ethernet)
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am
Top

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

Postby moonman » Mon May 06, 2013 6:43 pm

That is a wrong arcNumber that you are using:
https://github.com/archlinuxarm/PKGBUIL ... mach-types

$this->bbcode_second_pass_code('', 'mx535_sdcr MACH_MX535_SDCR MX535_SDCR 4402')

$this->bbcode_second_pass_code('', 'nsa320 MACH_NSA320 NSA320 3956')

3956 is what it has to be.
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 pepedog » Mon May 06, 2013 7:04 pm

Or he has an nsa 310
$this->bbcode_second_pass_code('', 'nsa310 MACH_NSA310 NSA310 4022')
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 7:49 pm

Ok. can next boot using standard command from u-boot:

$this->bbcode_second_pass_code('', '
setenv arcNumber 4022
saveenv
reset
')

and next boot - archlinux run and working ;
hehe - copy from pendrive all system working for my iconnect and actual linux-kirkwood, minmal modyfication, ec. /etc/fstab
...working to NSA310...only:

howto up eth0 ? where is eth0 ? where is driver to eth0 ? ... posible up eth0 for loaded drivers pch_gbe ?

$this->bbcode_second_pass_code('', '
__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Jun 8 2011 - 18:48:37) 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 Total size 256MB 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)
Kernel address is 0x4640000.

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Net: egiga0, egiga1 [PRIME]
Hit any key to stop autoboot: 0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
Device 0 @ 0 0:
Model: ST9250315AS Firm: 0001SDM1 Ser#: 5VCK0T4C
Type: Hard Disk
Supports 48-bit addressing
Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)


3250256 bytes read
## Booting image at 02000000 ...
Image Name: Linux-3.8.10-1-ARCH
Created: 2013-04-27 22:44:32 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3250192 Bytes = 3.1 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.8.10-1-ARCH (nobody@panda1) (gcc version 4.7.2 (GCC) ) #1 PREEMPT Sat Apr 27 22:44:03 UTC 2013
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: ZyXEL NSA310 1-Bay Power Media Server
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] free_area_init_node: node 0, pgdat c065f95c, node_mem_map c0731000
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65024 pages, LIFO batch:15
[ 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: 65024
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA0008
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 252492k/252492k available, 9652k 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] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc05ee7b4 (6042 kB)
[ 0.000000] .init : 0xc05ef000 - 0xc061bdd4 ( 180 kB)
[ 0.000000] .data : 0xc061c000 - 0xc0663cf8 ( 288 kB)
[ 0.000000] .bss : 0xc0663cf8 - 0xc07305e0 ( 819 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 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.613472] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[ 15.703370] pid_max: default: 32768 minimum: 301
[ 15.703477] Security Framework initialized
[ 15.703498] AppArmor: AppArmor disabled by boot time parameter
[ 15.703556] Mount-cache hash table entries: 512
[ 15.704051] Initializing cgroup subsys cpuacct
[ 15.704069] Initializing cgroup subsys devices
[ 15.704079] Initializing cgroup subsys freezer
[ 15.704088] Initializing cgroup subsys net_cls
[ 15.704096] Initializing cgroup subsys blkio
[ 15.704104] Initializing cgroup subsys perf_event
[ 15.704120] Initializing cgroup subsys bfqio
[ 15.704204] CPU: Testing write buffer coherency: ok
[ 15.704523] Setting up static identity map for 0x461890 - 0x4618cc
[ 15.705836] devtmpfs: initialized
[ 15.707734] pinctrl core: initialized pinctrl subsystem
[ 15.708018] NET: Registered protocol family 16
[ 15.709048] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 15.709688] Kirkwood: MV88F6281-A1, TCLK=200000000.
[ 15.709705] Feroceon L2: Enabling L2
[ 15.709739] Feroceon L2: Cache support initialised.
[ 15.710104] initial MPP regs: 21111111 01003311 33331100 33003333 00000533 20202000 00000000
[ 15.710137] final MPP regs: 01111111 00003311 00001100 00000000 00000000 00000000 00000000
[ 15.715134] bio: create slab <bio-0> at 0
[ 15.715500] vgaarb: loaded
[ 15.715744] SCSI subsystem initialized
[ 15.715888] libata version 3.00 loaded.
[ 15.716084] usbcore: registered new interface driver usbfs
[ 15.716142] usbcore: registered new interface driver hub
[ 15.716238] usbcore: registered new device driver usb
[ 15.716341] pps_core: LinuxPPS API ver. 1 registered
[ 15.716350] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 15.716373] PTP clock support registered
[ 15.716993] Switching to clocksource orion_clocksource
[ 15.728642] FS-Cache: Loaded
[ 15.737672] NET: Registered protocol family 2
[ 15.738158] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 15.738214] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 15.738244] TCP: Hash tables configured (established 2048 bind 2048)
[ 15.738300] TCP: reno registered
[ 15.738313] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 15.738334] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 15.738533] NET: Registered protocol family 1
[ 15.738567] PCI: CLS 0 bytes, default 32
[ 15.739465] audit: initializing netlink socket (disabled)
[ 15.739501] type=2000 audit(0.120:1): initialized
[ 15.827756] VFS: Disk quotas dquot_6.5.2
[ 15.827946] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 15.830025] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[ 15.830890] aufs 3.8-20130311
[ 15.830912] msgmni has been set to 493
[ 15.832390] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 15.832402] io scheduler noop registered
[ 15.832410] io scheduler deadline registered
[ 15.832566] io scheduler cfq registered
[ 15.832595] io scheduler bfq registered (default)
[ 15.832710] mv_xor mv_xor.0: Marvell XOR driver
[ 15.867076] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 15.907072] mv_xor mv_xor.0: Marvell XOR: ( xor fill cpy )
[ 15.907197] mv_xor mv_xor.1: Marvell XOR driver
[ 15.947070] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[ 15.987069] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 15.991035] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 16.011709] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[ 16.561864] console [ttyS0] enabled
[ 16.571299] brd: module loaded
[ 16.577322] loop: module loaded
[ 16.580692] sata_mv sata_mv.0: version 1.28
[ 16.584952] sata_mv sata_mv.0: cannot get optional clkdev
[ 16.590485] sata_mv sata_mv.0: slots 32 ports 2
[ 16.597626] scsi0 : sata_mv
[ 16.600772] scsi1 : sata_mv
[ 16.603793] ata1: SATA max UDMA/133 irq 21
[ 16.607945] ata2: SATA max UDMA/133 irq 21
[ 16.612807] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[ 16.625090] Scanning device for bad blocks
[ 16.701993] Bad eraseblock 693 at 0x0000056a0000
[ 16.730299] Bad eraseblock 919 at 0x0000072e0000
[ 16.737935] Bad eraseblock 948 at 0x000007680000
[ 16.750774] Creating 9 MTD partitions on "orion_nand":
[ 16.755937] 0x000000000000-0x000000100000 : "uboot"
[ 16.761193] 0x000000100000-0x000000180000 : "uboot_env"
[ 16.766703] 0x000000180000-0x000000200000 : "key_store"
[ 16.772222] 0x000000200000-0x000000280000 : "info"
[ 16.777308] 0x000000280000-0x000000c80000 : "etc"
[ 16.782294] 0x000000c80000-0x000001680000 : "kernel_1"
[ 16.787743] 0x000001680000-0x000004640000 : "rootfs1"
[ 16.793141] 0x000004640000-0x000005040000 : "kernel_2"
[ 16.798593] 0x000005040000-0x000008000000 : "rootfs2"
[ 16.804379] pch_gbe: EG20T PCH Gigabit Ethernet Driver - version 1.01
[ 16.810931] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 16.817556] orion-ehci orion-ehci.0: Marvell Orion EHCI
[ 16.822824] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 16.830563] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 16.847061] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 16.853543] hub 1-0:1.0: USB hub found
[ 16.857350] hub 1-0:1.0: 1 port detected
[ 16.861567] ehci-pci: EHCI PCI platform driver
[ 16.866138] Initializing USB Mass Storage driver...
[ 16.871163] usbcore: registered new interface driver usb-storage
[ 16.877207] USB Mass Storage support registered.
[ 16.882145] mousedev: PS/2 mouse device common for all mice
[ 16.888030] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[ 16.894270] orion_wdt: Initial timeout 21 sec
[ 16.898783] cpuidle: using governor ladder
[ 16.902983] cpuidle: using governor menu
[ 16.906993] sdhci: Secure Digital Host Controller Interface driver
[ 16.913228] sdhci: Copyright(c) Pierre Ossman
[ 16.917668] sdhci-pltfm: SDHCI platform and OF driver helper
[ 16.923383] leds-gpio leds-gpio: pins are not configured from the driver
[ 16.930155] orion_gpio_is_valid: invalid GPIO 12
[ 16.935812] usbcore: registered new interface driver r8712u
[ 16.941784] gre: GRE over IPv4 demultiplexor driver
[ 16.946796] TCP: cubic registered
[ 16.950169] NET: Registered protocol family 17
[ 16.954722] Key type dns_resolver registered
[ 16.959671] registered taskstats version 1
[ 16.964744] console [netcon0] enabled
[ 16.968517] netconsole: network logging started
[ 16.973361] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 16.980368] rtc-mv rtc-mv: setting system clock to 2013-05-06 19:44:27 UTC (1367869467)
[ 17.127050] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 17.177046] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 17.207079] ata1.00: ATA-8: ST9250315AS, 0001SDM1, max UDMA/133
[ 17.213029] ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[ 17.277083] ata1.00: configured for UDMA/133
[ 17.297344] scsi 0:0:0:0: Direct-Access ATA ST9250315AS 0001 PQ: 0 ANSI: 5
[ 17.305998] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[ 17.313893] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 17.319522] sd 0:0:0:0: [sda] Write Protect is off
[ 17.324353] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 17.329962] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 17.340818] hub 1-1:1.0: USB hub found
[ 17.344947] hub 1-1:1.0: 4 ports detected
[ 17.349107] sda: sda1 sda2
[ 17.353341] sd 0:0:0:0: [sda] Attached SCSI disk
[ 17.677046] ata2: SATA link down (SStatus 0 SControl F300)
[ 17.798407] EXT3-fs (sda2): error: couldn't mount because of unsupported optional features (240)
[ 17.808460] EXT2-fs (sda2): error: couldn't mount because of unsupported optional features (240)
[ 17.943890] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[ 17.951639] VFS: Mounted root (ext4 filesystem) on device 8:2.
[ 17.987670] devtmpfs: mounted
[ 17.991168] Freeing init memory: 176K
INIT: version 2.88 booting
HOSTNAME= is deprecated. See rc.conf(5) and hostname(5) for details.

> Arch Linux ARM

> http://archlinuxarm.org/

------------------------------
:: Mounting root read-only [BUSY] [ 20.197553] EXT4-fs (sda2): re-mounted. Opts: data=ordered
[DONE]
:: Setting hostname: alarm-iconnect [BUSY] [DONE]
HARDWARECLOCK= is deprecated. See rc.conf(5) and hwclock(8) for details.
:: Adjusting system time and setting kernel time zone [BUSY] TIMEZONE= is deprecated. See rc.conf(5) for details.
[DONE]
:: Starting udev daemon [BUSY] 21.143279] systemd-udevd[87]: starting version 202
[1m[DONE]
:: Triggering udev uevents [BUSY] [DONE]
:: Loading user-specified modules [BUSY] [DONE]
:: Waiting for udev uevents to be processed [BUSY] [ 22.014588] nsa3xx-hwmon nsa3xx-hwmon: initialized
[DONE]
:: Configuring virtual consoles [BUSY] G [DONE]
:: Bringing up loopback interface [BUSY] [DONE]
:: Checking filesystems [BUSY] [DONE]
:: Remounting root and API filesystems [ 22.779317] EXT4-fs (sda2): re-mounted. Opts: data=ordered
[BUSY] [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]
NIT: Entering runlevel: 3USY]
:: Starting network [BUSY] [DONE]
:: Mounting network filesystems [BUSY] [DONE]
:: Starting crond daemon [BUSY] [DONE]
:: Starting OpenNTPD [BUSY] [DONE]
:: Starting Secure Shell Daemon [BUSY] [ 41.204445] NET: Registered protocol family 10
[DONE]
:: Starting D-BUS system messagebus [BUSY] [DONE]
:: Starting vsftpd daemon [BUSY] [DONE]

Arch Linux 3.8.10-1-ARCH (ttyS0)

alarm-iconnect login: root
Password:
Last login: Mon May 6 16:41:21 on ttyS0
[root@alarm-iconnect ~]# ifconfig
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 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@alarm-iconnect ~]# lsmod
Module Size Used by
ipv6 263859 10
mv_cesa 10696 0
nsa3xx_hwmon 2276 0
hwmon 1043 1 nsa3xx_hwmon
[root@alarm-iconnect ~]# uname -a
Linux alarm-iconnect 3.8.10-1-ARCH #1 PREEMPT Sat Apr 27 22:44:03 UTC 2013 armv5tel GNU/Linux
[root@alarm-iconnect ~]# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.8.10-1-ARCH (nobody@panda1) (gcc version 4.7.2 (GCC) ) #1 PREEMPT Sat Apr 27 22:44:03 UTC 2013
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: ZyXEL NSA310 1-Bay Power Media Server
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] free_area_init_node: node 0, pgdat c065f95c, node_mem_map c0731000
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65024 pages, LIFO batch:15
[ 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: 65024
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA0008
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 252492k/252492k available, 9652k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc05ee7b4 (6042 kB)
.init : 0xc05ef000 - 0xc061bdd4 ( 180 kB)
.data : 0xc061c000 - 0xc0663cf8 ( 288 kB)
.bss : 0xc0663cf8 - 0xc07305e0 ( 819 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 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.613472] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[ 15.703370] pid_max: default: 32768 minimum: 301
[ 15.703477] Security Framework initialized
[ 15.703498] AppArmor: AppArmor disabled by boot time parameter
[ 15.703556] Mount-cache hash table entries: 512
[ 15.704051] Initializing cgroup subsys cpuacct
[ 15.704069] Initializing cgroup subsys devices
[ 15.704079] Initializing cgroup subsys freezer
[ 15.704088] Initializing cgroup subsys net_cls
[ 15.704096] Initializing cgroup subsys blkio
[ 15.704104] Initializing cgroup subsys perf_event
[ 15.704120] Initializing cgroup subsys bfqio
[ 15.704204] CPU: Testing write buffer coherency: ok
[ 15.704523] Setting up static identity map for 0x461890 - 0x4618cc
[ 15.705836] devtmpfs: initialized
[ 15.707734] pinctrl core: initialized pinctrl subsystem
[ 15.708018] NET: Registered protocol family 16
[ 15.709048] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 15.709688] Kirkwood: MV88F6281-A1, TCLK=200000000.
[ 15.709705] Feroceon L2: Enabling L2
[ 15.709739] Feroceon L2: Cache support initialised.
[ 15.710104] initial MPP regs: 21111111 01003311 33331100 33003333 00000533 20202000 00000000
[ 15.710137] final MPP regs: 01111111 00003311 00001100 00000000 00000000 00000000 00000000
[ 15.715134] bio: create slab <bio-0> at 0
[ 15.715500] vgaarb: loaded
[ 15.715744] SCSI subsystem initialized
[ 15.715888] libata version 3.00 loaded.
[ 15.716084] usbcore: registered new interface driver usbfs
[ 15.716142] usbcore: registered new interface driver hub
[ 15.716238] usbcore: registered new device driver usb
[ 15.716341] pps_core: LinuxPPS API ver. 1 registered
[ 15.716350] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 15.716373] PTP clock support registered
[ 15.716993] Switching to clocksource orion_clocksource
[ 15.728642] FS-Cache: Loaded
[ 15.737672] NET: Registered protocol family 2
[ 15.738158] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 15.738214] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 15.738244] TCP: Hash tables configured (established 2048 bind 2048)
[ 15.738300] TCP: reno registered
[ 15.738313] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 15.738334] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 15.738533] NET: Registered protocol family 1
[ 15.738567] PCI: CLS 0 bytes, default 32
[ 15.739465] audit: initializing netlink socket (disabled)
[ 15.739501] type=2000 audit(0.120:1): initialized
[ 15.827756] VFS: Disk quotas dquot_6.5.2
[ 15.827946] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 15.830025] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[ 15.830890] aufs 3.8-20130311
[ 15.830912] msgmni has been set to 493
[ 15.832390] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 15.832402] io scheduler noop registered
[ 15.832410] io scheduler deadline registered
[ 15.832566] io scheduler cfq registered
[ 15.832595] io scheduler bfq registered (default)
[ 15.832710] mv_xor mv_xor.0: Marvell XOR driver
[ 15.867076] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 15.907072] mv_xor mv_xor.0: Marvell XOR: ( xor fill cpy )
[ 15.907197] mv_xor mv_xor.1: Marvell XOR driver
[ 15.947070] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[ 15.987069] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[ 15.991035] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 16.011709] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[ 16.561864] console [ttyS0] enabled
[ 16.571299] brd: module loaded
[ 16.577322] loop: module loaded
[ 16.580692] sata_mv sata_mv.0: version 1.28
[ 16.584952] sata_mv sata_mv.0: cannot get optional clkdev
[ 16.590485] sata_mv sata_mv.0: slots 32 ports 2
[ 16.597626] scsi0 : sata_mv
[ 16.600772] scsi1 : sata_mv
[ 16.603793] ata1: SATA max UDMA/133 irq 21
[ 16.607945] ata2: SATA max UDMA/133 irq 21
[ 16.612807] NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[ 16.625090] Scanning device for bad blocks
[ 16.701993] Bad eraseblock 693 at 0x0000056a0000
[ 16.730299] Bad eraseblock 919 at 0x0000072e0000
[ 16.737935] Bad eraseblock 948 at 0x000007680000
[ 16.750774] Creating 9 MTD partitions on "orion_nand":
[ 16.755937] 0x000000000000-0x000000100000 : "uboot"
[ 16.761193] 0x000000100000-0x000000180000 : "uboot_env"
[ 16.766703] 0x000000180000-0x000000200000 : "key_store"
[ 16.772222] 0x000000200000-0x000000280000 : "info"
[ 16.777308] 0x000000280000-0x000000c80000 : "etc"
[ 16.782294] 0x000000c80000-0x000001680000 : "kernel_1"
[ 16.787743] 0x000001680000-0x000004640000 : "rootfs1"
[ 16.793141] 0x000004640000-0x000005040000 : "kernel_2"
[ 16.798593] 0x000005040000-0x000008000000 : "rootfs2"
[ 16.804379] pch_gbe: EG20T PCH Gigabit Ethernet Driver - version 1.01
[ 16.810931] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 16.817556] orion-ehci orion-ehci.0: Marvell Orion EHCI
[ 16.822824] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 16.830563] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 16.847061] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 16.853543] hub 1-0:1.0: USB hub found
[ 16.857350] hub 1-0:1.0: 1 port detected
[ 16.861567] ehci-pci: EHCI PCI platform driver
[ 16.866138] Initializing USB Mass Storage driver...
[ 16.871163] usbcore: registered new interface driver usb-storage
[ 16.877207] USB Mass Storage support registered.
[ 16.882145] mousedev: PS/2 mouse device common for all mice
[ 16.888030] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[ 16.894270] orion_wdt: Initial timeout 21 sec
[ 16.898783] cpuidle: using governor ladder
[ 16.902983] cpuidle: using governor menu
[ 16.906993] sdhci: Secure Digital Host Controller Interface driver
[ 16.913228] sdhci: Copyright(c) Pierre Ossman
[ 16.917668] sdhci-pltfm: SDHCI platform and OF driver helper
[ 16.923383] leds-gpio leds-gpio: pins are not configured from the driver
[ 16.930155] orion_gpio_is_valid: invalid GPIO 12
[ 16.935812] usbcore: registered new interface driver r8712u
[ 16.941784] gre: GRE over IPv4 demultiplexor driver
[ 16.946796] TCP: cubic registered
[ 16.950169] NET: Registered protocol family 17
[ 16.954722] Key type dns_resolver registered
[ 16.959671] registered taskstats version 1
[ 16.964744] console [netcon0] enabled
[ 16.968517] netconsole: network logging started
[ 16.973361] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 16.980368] rtc-mv rtc-mv: setting system clock to 2013-05-06 19:44:27 UTC (1367869467)
[ 17.127050] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 17.177046] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 17.207079] ata1.00: ATA-8: ST9250315AS, 0001SDM1, max UDMA/133
[ 17.213029] ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[ 17.277083] ata1.00: configured for UDMA/133
[ 17.297344] scsi 0:0:0:0: Direct-Access ATA ST9250315AS 0001 PQ: 0 ANSI: 5
[ 17.305998] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[ 17.313893] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 17.319522] sd 0:0:0:0: [sda] Write Protect is off
[ 17.324353] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 17.329962] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 17.340818] hub 1-1:1.0: USB hub found
[ 17.344947] hub 1-1:1.0: 4 ports detected
[ 17.349107] sda: sda1 sda2
[ 17.353341] sd 0:0:0:0: [sda] Attached SCSI disk
[ 17.677046] ata2: SATA link down (SStatus 0 SControl F300)
[ 17.798407] EXT3-fs (sda2): error: couldn't mount because of unsupported optional features (240)
[ 17.808460] EXT2-fs (sda2): error: couldn't mount because of unsupported optional features (240)
[ 17.943890] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[ 17.951639] VFS: Mounted root (ext4 filesystem) on device 8:2.
[ 17.987670] devtmpfs: mounted
[ 17.991168] Freeing init memory: 176K
[ 20.197553] EXT4-fs (sda2): re-mounted. Opts: data=ordered
[ 21.143279] systemd-udevd[87]: starting version 202
[ 22.014588] nsa3xx-hwmon nsa3xx-hwmon: initialized
[ 22.779317] EXT4-fs (sda2): re-mounted. Opts: data=ordered
[ 41.204445] NET: Registered protocol family 10
[root@alarm-iconnect ~]# blkid
/dev/sda1: LABEL="boot" UUID="d2a768c6-6dae-43ab-8996-0ec522523f75" TYPE="ext2"
/dev/sda2: LABEL="rootfs" UUID="a6923ef7-d45b-442a-b8a4-7120aa27adb7" TYPE="ext4"
[root@alarm-iconnect ~]#
')

pleas help !
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby pepedog » Mon May 06, 2013 8:14 pm

Bear in mind I have an NSA320
I have a script that runs on boot
$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/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
')
You have to run it once (or every boot), then poweroff.
Unplug completly from mains for 10 seconds, and try again
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 8:36 pm

hmmm...This is NSA310 - not NSA320
$this->bbcode_second_pass_quote('', '
')/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
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am
Top

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

Postby pepedog » Mon May 06, 2013 8:44 pm

That part is for hard drive led activity, ignore an try the rest, maybe manually with tab complete
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