ZyXEL NSA320 booted from USB...once!

Install Arch Linux ARM on other devices.

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

Postby lulo » Tue May 07, 2013 6:12 pm

$this->bbcode_second_pass_code('', '
[root@alarm-nsa310 r8168-dkms-8.035.00]# cat log.txt
-------------------------------
wto, 7 maj 2013, 20:07:10 CEST
make -C src/ clean
make[1]: Wej�ie do katalogu `/usr/src/r8168-dkms-8.035.00/src'
make -C /lib/modules/3.8.11-1-ARCH/build SUBDIRS=/usr/src/r8168-dkms-8.035.00/sn
make[2]: Wej�ie do katalogu `/usr/src/linux-3.8.11-1-ARCH'
make[2]: Opuszczenie katalogu `/usr/src/linux-3.8.11-1-ARCH'
make[1]: Opuszczenie katalogu `/usr/src/r8168-dkms-8.035.00/src'
make -C src/ modules
make[1]: Wej�ie do katalogu `/usr/src/r8168-dkms-8.035.00/src'
make -C /lib/modules/3.8.11-1-ARCH/build SUBDIRS=/usr/src/r8168-dkms-8.035.00/ss
make[2]: Wej�ie do katalogu `/usr/src/linux-3.8.11-1-ARCH'
CC [M] /usr/src/r8168-dkms-8.035.00/src/r8168_n.o
make[2]: Opuszczenie katalogu `/usr/src/linux-3.8.11-1-ARCH'
make[1]: Opuszczenie katalogu `/usr/src/r8168-dkms-8.035.00/src'
[root@alarm-nsa310 r8168-dkms-8.035.00]#
')
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby lulo » Tue May 07, 2013 6:16 pm

$this->bbcode_second_pass_quote('pepedog', 'H')ow old? Give date please

How to give the date ?

hmmm...sorry...my error for this builds method... :roll:
building again, this time properly:
$this->bbcode_second_pass_code('', '
[root@alarm-nsa310 src]# dkms autoinstall r8168-dkms

Kernel preparation unnecessary for this kernel. Skipping...
applying patch linux-3.8.patch...patching file src/r8168_n.c


Building module:
cleaning build area......
'make' clean BASEDIR=/usr/lib/modules/3.8.11-1-ARCH EXTRA_CFLAGS='-DCONFIG_R8168...
.......................
cleaning build area.....

DKMS: build completed.

r8168.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /usr/lib/modules/3.8.11-1-ARCH/kernel/drivers/net/ethernet/realtek/

depmod.....

DKMS: install completed.
[root@alarm-nsa310 src]# cd /usr/lib/modules/3.8.11-1-ARCH/kernel/drivers/net/ethernet/realtek/
[root@alarm-nsa310 realtek]# ls
r8168.ko r8169.ko.gz
[root@alarm-nsa310 realtek]# modprobe r8186
[root@alarm-nsa310 realtek]# lsmod
Module Size Used by
r8168 240286 0
ipv6 264107 10
rt73usb 22172 0
rt2x00usb 7686 1 rt73usb
rt2x00lib 31889 2 rt73usb,rt2x00usb
mac80211 369949 2 rt2x00lib,rt2x00usb
nfs 118760 0
cfg80211 378366 2 mac80211,rt2x00lib
lockd 58581 1 nfs
rfkill 15276 1 cfg80211
crc_itu_t 1105 1 rt73usb
mv_cesa 10696 0
nsa3xx_hwmon 2276 0
hwmon 1043 1 nsa3xx_hwmon
sunrpc 172964 2 nfs,lockd
[root@alarm-nsa310 realtek]# ls /sys/class/net
lo wlan0
[root@alarm-nsa310 realtek]#
')
Last edited by lulo on Tue May 07, 2013 6:48 pm, edited 4 times in total.
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby pepedog » Tue May 07, 2013 6:28 pm

$this->bbcode_second_pass_quote('lulo', '')$this->bbcode_second_pass_quote('pepedog', 'H')ow old? Give date please

How to give the date ?

You tell me approximate date you downloaded.

This is a mess, if you don't have systemd then how do you start dkms.
Did you install made package?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK
Top

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

Postby lulo » Tue May 07, 2013 6:33 pm

$this->bbcode_second_pass_code('', '
[root@alarm-nsa310 realtek]# systemctl -a
Failed to get D-Bus connection: No connection to service manager.
[root@alarm-nsa310 realtek]#
')

meaby systemd bad working and not full properly.
download date ? - i'am not soure - 2012.12*. Actualy reinstall base-devel - everything again.

modinfo is loaded moule r8168:
$this->bbcode_second_pass_code('', '
[root@alarm-nsa310 realtek]# modinfo -p r8168
eee_enable: (int)
speed:force phy operation. Deprecated by ethtool (8). (ushort)
duplex:force phy operation. Deprecated by ethtool (8). (int)
autoneg:force phy operation. Deprecated by ethtool (8). (int)
aspm:Enable ASPM. (int)
rx_copybreak:Copy breakpoint for copy-only-tiny-frames (int)
use_dac:Enable PCI DAC. Unsafe on 32 bit PCI slot. (int)
debug:Debug verbosity level (0=none, ..., 16=all) (int)
[root@alarm-nsa310 realtek]#
')

r8168 or r8169 <=> still nothing... - eth0 not produced and ethernet not working - *****...

My last chance - reinstall all system - everything again and test for new build/install/uses this r8168 driver...no any new idea.
Whot is wrong ?
Last edited by lulo on Tue May 07, 2013 6:53 pm, edited 1 time in total.
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby WarheadsSE » Tue May 07, 2013 6:53 pm

First, you should have systemd. Problem number one.
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 pepedog » Tue May 07, 2013 8:15 pm

Try this on new rootfs
http://myplugbox.com/lulo/
Don't do it on one with dkms
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

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

Postby lulo » Wed May 08, 2013 1:18 am

Ok. unplug disk, remove all partition and wipe (dd if=/dev/zero of=/dev/sdx, sync, sync) from my computer, partitioning manualy /dev/sdx1(ext2)=~20 MB and /dev/sdx2 (ext4) rest MB, copy (using root) downloading *last, full rootfs (2013.3) to /dev/sdx2, unpaking (tar zxvf <this rootfs>), sync, copy /dev/sdx2(LABEL=rootfs)//boot/uImage to /dev/sdx1(LABEL=boot)//, sync, umount,unplug and plug too NSA310 (this operation using only default rootfs and kernel=3.1.10-16*), plug cord power, USB<=>RS232-ver. 3.3v, start minicom and click "power" (if can not "click" nsa310 not starting automaticaly) to NSA310, and...

$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)


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.
...
...
...
...(its to big log - copy to http://pastebin.com/KP8Mg1Av )
...
...
...
[ 44.682798] systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start.
[ 44.708380] systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start.
[ 44.733391] systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start.
[ 44.758305] systemd[1]: syslog-ng.service start request repeated too quickly, refusing to start.
...
...
...
')

*****... :evil:

Any chance start Arch*last*gz ?
Last edited by lulo on Wed May 08, 2013 9:32 am, edited 1 time in total.
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby WarheadsSE » Wed May 08, 2013 2:49 am

Check the bootargs don't have "ro"
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 » Wed May 08, 2013 5:14 am

This actual boot option from u-boot:
viewtopic.php?p=31032#p31032

Whot this wrong ? How to fix ? How to start archlinux for this machine ?

Ok. Read this config again:
$this->bbcode_second_pass_code('', '
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 rw
rootwait loglevel=8
')

"ro" is bad ? "rw" is bad ?
I'am previously using orginal script to http://os.archlinuxarm.org/os/nsa3x0/ns ... arm.tar.gz

usb_key_func.sh.2:
$this->bbcode_second_pass_code('', '
#!/bin/sh

#####
# Created By: Jason Plum <jplum@archlinuxarm.org>
# Prepared for: Arch Linux ARM
# ----------
# Automation to convert NSA-310 to Arch Linux ARM on /dev/sda
# : /dev/sda is sata port 1, left side of enclosure.
#####
echo "Automatic Installation of Arch Linux ARM"

###
# setup u-boot environment
echo "- set bootloader"
fw_setenv arcNumber 4402
fw_setenv mainlineLinux yes
fw_setenv 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'
fw_setenv 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 rw rootwait loglevel=8'
fw_setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /uImage; bootm $(loadaddr)'
fw_setenv bootcmd_stock 'setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr)'
fw_setenv to_stock "setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; reset"
fw_setenv to_linux "setenv mainlineLinux yes; setenv bootcmd \'run bootcmd_linux\'; saveenv; reset"

###
# setup the partitions on the disk (sda)
# : 16M 1st partition, ext2/3
echo "- parition sda"
fdisk /dev/sda <<EOF
o
n
p
1

+16M

n
p
2


p
w

EOF
echo " * pause for ioctl to re-sync partitions"
sleep 5
###
# make filesystems
echo "- make filesystems"
# ext2 makes u-boot happy.
mkfs.ext2 -L "boot" /dev/sda1
# stock does not know how to make ext4!
mkfs.ext4 -L "rootfs" /dev/sda2

###
# make dirs & mount
echo "- mount destination"
mkdir -p /tmp/boot
mount -t ext2 /dev/sda1 /tmp/boot
mkdir -p /tmp/rootfs
mount -t ext4 /dev/sda2 /tmp/rootfs

###
# prepare the system
# extract the rootfs
echo "- extract rootfs"
tar xzf /mnt/parnerkey/rootfs.tgz -C /tmp/rootfs/

# copy the uImage to the boot partition
echo "- prepare boot partition"
cp -aR /tmp/rootfs/boot/* /tmp/boot/

# always make sure you're sync'd!
sync

###
# prepare for first boot
# set the bootcmd to run the steps to convert.
fw_setenv bootcmd 'run to_linux'
###
# we're done here
echo "- REBOOTING!"
sync
reboot
')

salted_md5sum_3x0:
$this->bbcode_second_pass_code('', '
0f11d8efe42e8cde6023aa00920c5b82 -
')

Notabene "fw_setenv arcNumber 4402" is wrong.
Generaly this script not working for real situation (md5sum is wrong and not copy anything to partition, only create partition and upgrade u-boot options).

resetenv and orginal printenv produce this log:
$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),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/ini
t
bootcmd=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000
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
stdin=serial
stdout=serial
stderr=serial
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
mainlineLinux=no
CASset=min
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
ethprime=egiga1
netbsd_en=no
vxworks_en=no
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81: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;
disaMvPnp=no
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
hddPowerCtrl=no
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
enaAutoRecovery=yes
kernel_addr=0x4640000
pcieTune=no
ethact=egiga1

Environment size: 1558/131068 bytes
')

So what next? Any idea ???
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby pepedog » Wed May 08, 2013 8:28 am

If ro then remount /dev/root required in fstab
You have rw, good
We don't have an NSA310, rely on you.
Once all confirmed as now working, script will be fixed.

It looked to me from pastebin things were going fine.
Maybe do fdisk, format, mount, tar xf step. Do as root. Sync before umount.

I have NSA320, I think it's the best arm I got, so good to get 310 working too.
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 30 guests