ZyXEL NSA320 booted from USB...once!

Install Arch Linux ARM on other devices.

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

Postby lulo » Wed May 08, 2013 9:07 am

Question:

1)
$this->bbcode_second_pass_quote('papedog', '
')...
script will be fixed.
...


When ? This only md5sum and arcNumberi is bad ?

2)
$this->bbcode_second_pass_quote('papedog', '
')Maybe do fdisk, format, mount, tar xf step. Do as root. Sync before umount.

I'am use syc, more sync, pleas read this post:
viewtopic.php?p=31144#p31144
Any idea so above must by wrong ? Can fix this situations using my real log uploading to http://pastebin.com/KP8Mg1Av ?
How to use manualy using serial cable ? (pleas step by step - to more very stupid users, that like me )
:D

3)
Can first time start arch (when script prepared disk,etc and reboot orginal system) identical situations:
for orginal config default kernel (1.1.10-16) not support to r8186+/lib/firmware/rtl_nic/*1.fw *2.fw = ethernet not working, network not working...big caca use this machine for normal using - not developers...only local from comp to use serial console (USB/RS232)
When linux and linux-kirkwood fixed generaly this problem for NSA310 users ?

4) Meaby sun http://archlinuxarm.org/platforms/armv5/zyxel-nsa310 ?????
Meaby...
Last edited by lulo on Wed May 08, 2013 9:25 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 pepedog » Wed May 08, 2013 9:24 am

3/ the kernel I made has firmware/rtl_nic inside it.

You know how to set fw env in uboot, and correct arcNumber
If you have another Linux machine you know how to create drive, do as root
Maybe before making drive, install parted and run this
parted /dev/sdX mklabel msdos
X is drive

Grab kernel i posted, put on mounted first partition (bottom of tree), extract with
tar xf linux-kirkwood*
Copy boot/uImage to first partition and replace exisiting uImage
sync, umount and try
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 9:45 am

$this->bbcode_second_pass_quote('pepedog', '
')...
Maybe before making drive, install parted and run this
parted /dev/sdX mklabel msdos
X is drive
...

Parted installed all actual linux distribution is default - no need to install (I'am use last ubuntu x86_64). This drive created (partition table) and formated (/dev/sdx1(ext2) and /dev/sdx2(ext4) properly. Of course is msdos type partition table (only 250 GB).
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am
Top

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

Postby pepedog » Wed May 08, 2013 9:48 am

parted /dev/sdX mklabel msdos
That command wipes drive and resets MBR block
No partitions will be on drive after that
I needed to do that to get my drive working
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 10:12 am

ok. question parted, fdisk, format, etc is fixed.
Whot next ? - use manual method - srcipt not fixed - my determinates is very big !
:D
Pleas help next - i'am like child...very small and very stupid boy
:D
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

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

Postby pepedog » Wed May 08, 2013 11:42 am

Did you resetenv on uboot? If not and/or you ran script and corrected arc number, good
Did you extract rootfs (as user root to second partition) to that drive, and copy uImage to partition 1? Good
Put the 2 pkgs on the drive
sync
umount
Boot zyxel with drive
If OK, use pacman -U pkg names to install new kernel on running zyxel
Hopefully network will work
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 3:08 pm

Manualy using command for this script (step by step) and:
Zyxel not present all katalogues identical can used this script:
ec. /dev/sdb1 on /e-data/C96D-6C40 (USB) not /mnt/parnerkey/ (finaly script must by mount /dev/sdb1 /mnt/sdb1
This very important bug this script - never finaly uncompressing/copy any bits to NSA310
From /mnt only ram1 sdb* sda* (not mounted).
I'am use front USB.
This time instalation is success and boot ( http://pastebin.com/LBECjP7b ), login and:
$this->bbcode_second_pass_code('', '
[root@alarm ~]# ls -la
total 20900
drwxr-x--- 2 root root 4096 May 8 09:59 .
drwxr-xr-x 19 root root 4096 May 8 09:28 ..
-rwxr-xr-x 1 root root 5950624 May 8 09:59 linux-headers-kirkwood-3.8.11-2-arm.pkg.tar.xz
-rwxr-xr-x 1 root root 15440340 May 8 09:59 linux-kirkwood-3.8.11-2-arm.pkg.tar.xz
[root@alarm ~]# pacman -U linux*
loading packages...
resolving dependencies...
looking for inter-conflicts...
:: linux-headers-kirkwood and linux-headers are in conflict (kernel26-headers). Remove linux-headers? [y/N] y
:: linux-kirkwood and linux are in conflict. Remove linux? [y/N] y

Targets (4): linux-3.1.10-16 [removal] linux-headers-3.1.10-16 [removal]
linux-headers-kirkwood-3.8.11-2 linux-kirkwood-3.8.11-2

Total Installed Size: 53.65 MiB
Net Upgrade Size: -4.44 MiB

Proceed with installation? [Y/n]
(2/2) checking package integrity [######################] 100%
(2/2) loading package files [######################] 100%
(2/2) checking for file conflicts [######################] 100%
(4/4) checking available disk space [######################] 100%
(1/2) removing linux-headers [######################] 100%
(2/2) removing linux [######################] 100%
(1/2) installing linux-headers-kirkwood [######################] 100%
(2/2) installing linux-kirkwood [######################] 100%
>>> Updating module dependencies. Please wait ...
**********************************************************************
WARNING! This kernel requires a newer U-Boot than many devices such as
the Dockstar and Pogoplug v2 originally came with. If you do
not have an updated version, your system WILL NOT BOOT.
**********************************************************************
Optional dependencies for linux-kirkwood
crda: to set the correct wireless channels of your country
')

More log for this reboot/boot can use new kernel http://pastebin.com/PNJGVSvd:

Generally - ethernet still not working, eth0 not produced...caca

ups - only 1 fix ( hehe ):
copy /boot/uImage /dev/sda1(LABEL=boot...mount the ec. /mnt) - reboot again and...nothing..still not eth0

$this->bbcode_second_pass_code('', '
[root@alarm ~]# lsmod
Module Size Used by
ipv6 264107 10
mv_cesa 10696 0
nsa3xx_hwmon 2276 0
hwmon 1043 1 nsa3xx_hwmon
autofs4 22333 2
[root@alarm ~]#
')

Modules and modinfo -p identical can use previously bad rootfs.
Actual corectly boot and use corectly uImage:
http://pastebin.com/h6GsH0tS
How to test is /lib/firmware/rtl_nic/*.fw is loaded and working ?
:D
***** !!!
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:27 pm

poweroff, unplug electric for 10 seconds and try again
Search logs for 8169
Then I have run out of ideas, it looks like module and fimware rtl don't load as hardware not detected
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

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

Postby pepedog » Thu May 09, 2013 8:31 am

I have seen in 2 places now that mac address has to be set
https://github.com/peeter123/NSA310-320-debian
http://linuxwiki.de/ZYXEL%20NSA-310
Which I guess means
/etc/udev/rules.d/70-persistent-net.rules
$this->bbcode_second_pass_code('', '# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:00:00:00:00:30", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"')
(set your mac address)
What does ifconfig -a say?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

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

Postby lulo » Thu May 09, 2013 9:09 am

MAC => egiga0 or egiga1 or ethaddr or eth1addr or mvNetConfig=mv_net_config=* ? (u-boot conf)
set this mac to creates file /etc/udev/rules.d/70-persistent-net.rules
or set mac use ec. ifconfig ?

ATTR{address}=="00:00:00:00:00:30" => this mac can eth0 "sleep" ?

can add this file and reboot:
$this->bbcode_second_pass_code('', '
[root@alarm ~]# ifconfig -a
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 36 bytes 2564 (2.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 36 bytes 2564 (2.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

[root@alarm ~]# ls /sys/class/net
lo
[root@alarm ~]#
')

Not any log to r816*.
This file /etc/udev/rules.d/70-persistent-net.rules not automaticaly generated.
lulo
 
Posts: 90
Joined: Mon Nov 28, 2011 1:19 am

PreviousNext

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 2 guests