NSA 320

Install Arch Linux ARM on other devices.

Re: NSA 320

Postby WarheadsSE » Thu Jan 10, 2013 2:51 pm

Please get me a `printenv` output from uboot.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: NSA 320

Postby krovetz » Thu Jan 10, 2013 3:44 pm

I too had trouble with a new NSA320. I got one yesterday from buy.com ($89 w/ free shipping).

- I followed the archlinuxarm directions.
- During installation, the usb stick's light was on, all the 320's leds were on, one of the leds was blinking.
- It sat like this for over an hour before I gave up.
- I pulled the disk to have a look: It had been partitioned and sda1 had uImage. sda2 could not be mounted.
- I manually repartitioned and populated following the pattern on usb_key_func.sh.2
- Reinstalled disk and rebooted. All leds are on, nothing else happens (no disk activity, no dhcp requests, etc).

I don't have a serial connection, so I can't tell you what's happening on uboot. I'm just reporting an installation failure that sounds similar to the ones in this thread.
krovetz
 
Posts: 78
Joined: Tue Jun 26, 2012 11:03 pm

Re: NSA 320

Postby WarheadsSE » Thu Jan 10, 2013 3:54 pm

I have a feeling that you've both had a stock rootfs that has format tools that are different.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: NSA 320

Postby Tonkiplis2 » Thu Jan 10, 2013 8:58 pm

So, when I boot, I get :

$this->bbcode_second_pass_code('', '[SERIAL/DIRECT] CONNECTED TO PORT \\.\COM2 (115200-8N1)

þ
__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ 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: 0

NAND read: device 0 offset 0xc80000, size 0xa00000

Reading data from 0x167f800 -- 100% complete.
10485760 bytes read: OK
## Booting image at 02000000 ...
Image Name: Linux-2.6.31.8
Created: 2012-03-02 7:31:47 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5909960 Bytes = 5.6 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux............................................................................................................................................................................................................................................................................... done, booting the kernel.
')

and then I cannot do anything, and if i avoid the boot process, i get:

$this->bbcode_second_pass_code('', '[SERIAL/DIRECT] CONNECTED TO PORT \\.\COM2 (115200-8N1)

þ
__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ 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: 0
NSA320>> printenv
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=DD01
PRODUCT_NAME=NSA-320
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=ZyXEL Communications Corp.
run_diag=yes
ethaddr=B0:B2:DC:22:D8:FD
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
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),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/sda2 ro rootwait loglevel=8
bootcmd='run bootcmd_stock'
arcNumber=3956
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
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=0xc80000
pcieTune=no
ethact=egiga1

Environment size: 2464/131068 bytes
NSA320>>')

So, I think i will try to check the partitioning over the week end on my ubuntu tower...

Out of those booting logs, what would you suggest?

Cheers,

Tonkiplis
Tonkiplis2
 
Posts: 19
Joined: Wed Jan 09, 2013 7:01 am

Re: NSA 320

Postby WarheadsSE » Thu Jan 10, 2013 9:10 pm

I would say, you can make it boot to stock if you want, rather easily, though it looks like you might have tried run bootcmd_stock.
$this->bbcode_second_pass_code('', 'run to_stock')

To shift it to linux
$this->bbcode_second_pass_code('', 'run to_linux')

The likely culprit here is the mixed signals in the uboot & possibly a partitioning issue for /dev/sda2.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: NSA 320

Postby krovetz » Sat Jan 12, 2013 6:11 pm

Any ideas on how to fix?
krovetz
 
Posts: 78
Joined: Tue Jun 26, 2012 11:03 pm

Re: NSA 320

Postby planeteater » Sat Jan 12, 2013 10:38 pm

Your uboot wants to boot the stock kernel included in your firmware:
$this->bbcode_second_pass_code('', '
bootcmd='run bootcmd_stock'
')
but that kernel is incompatible with
$this->bbcode_second_pass_code('', 'mainlineLinux=yes
')
So either set
$this->bbcode_second_pass_code('', 'mainlineLinux=no')
and stick with the stock kernel, or leave the mainlineLinux variable as is, and issue
$this->bbcode_second_pass_code('', 'run to_linux')
once to set up uboot to boot the kernel included with the rootfs.
planeteater
 
Posts: 26
Joined: Sat Dec 29, 2012 2:44 pm

Re: NSA 320

Postby Tonkiplis2 » Thu Jan 17, 2013 9:54 pm

To check the filesystem on my HDD I will need to access it with a linux computer right?

Is such cable (SATA/IDE to USB) :
http://shop.rotronic.ch/de/roline-usb-2-0-zu-sata-ide-konverter/12.02.1057.html?t_Action=SearchSchnell&t_SearchValue=IDE%20sata&t_Sort=&manufacturer=&device=&t_Hier=&t_SubHier=&t_lager=#

mandatory in order to connect them? :idea:

If I open the tower and plug the HDD in, the result should be the same no?

Cheers,

Tonkiplis
Tonkiplis2
 
Posts: 19
Joined: Wed Jan 09, 2013 7:01 am

Re: NSA 320

Postby WarheadsSE » Thu Jan 17, 2013 10:17 pm

It should, though I suggest powering the tower down unless you know it supports hotswap.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: NSA 320

Postby krovetz » Sat Jan 19, 2013 7:58 pm

My network only sometimes works: always when I'm watching via serial, rarely when I have the serial disconnected.

I can install pretty reliably following these steps:
- Set up usb key as per archlinux arm directions, except change ro to rw on the "fw_setenv bootargs_linux" line in the "usb_key_func.sh.2" script.
- Run the installer. It fails because mkfs.ext3 is not in the 320's nand. But it does program uboot correctly.
- Set up hard drive on another computer following the steps shown in "usb_key_func.sh.2".
- Install hard drive into 320's left bay and boot, watching with serial connection.
- In uboot issue "run to_linux"

The 320 now boots into arch wonderfully. Rebooting from this state works too. Looks like everything is setup and working.

My problem is that when I remove the serial cable and then reboot, it sounds like it boots correctly but never is granted a dhcp lease by my router, so is unreachable via ssh. If I put the cable back on and reboot, it boots fine and gets its lease, allowing ssh and serial access. I tried giving it a static address, but same result: can access when serial is connected and can't when serial is disconnected. Rarely, it does get a dhcp lease without the serial connected, but not often or reliably.

Any ideas?
krovetz
 
Posts: 78
Joined: Tue Jun 26, 2012 11:03 pm

PreviousNext

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 3 guests