@related: ARM RedBoot

Wish : http://www.priceminister.com/offer/buy/51519369/Linksys-Network-Storage-Link-NSLU2-NAS-Ethernet-10-100-Stockage-reseau.html

linksys nslu2

A friend broke is slug :

On boot the status led is orange, and the ethernet one is blinking green, no ping, ssh or http

Only bootloader can be reached by telnet :

Plug in then

while ! ping -W 1 -c 1 192.168.0.1 2>&1 >/dev/null; do true; done && telnet 192.168.0.1 9000
== Executing boot script in 1.560 seconds - enter ^C to abort
^C

RedBoot> version 

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Red Hat certified release, version 1.92 - built 15:16:07, Feb  3 2004

Platform: IXDP425 Development Platform (XScale) 
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x02000000, 0x000723a0-0x01ff3000 available
FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
RedBoot> help
RedBoot> set_npe_mac
NPE eth0 mac: 00:14:bf:63:46:cc
NPE eth1 mac: 00:14:bf:63:46:cd
RedBoot> ip_address
IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
Default server: 0.0.0.0, DNS server IP: 0.0.0.0
ed2k://|file|debian-armel-5.0beta2.zip|4848817|d1e40dbe4999361fdd2afc600cdbd6d9|

Plug off, hold the reset button, power on, wait status led to red, Release reset

sudo apt-get install upslug2
sudo /usr/sbin/upslug2 --target="00:14:bf:63:46:cc" --image=di-nslu2.bin
Upgrading LKG6346CC 00:14:bf:63:46:cc
7fffff+000000 ...VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV

Will reboot, the 3 leds will go alternatively green for a second (redboot is active)

sudo aptitude install
arping 00:14:bf:63:46:cc
ARPING 00:14:bf:63:46:cc
60 bytes from 192.168.0.1 (00:14:bf:63:46:cc): icmp_seq=0 time=6.769 msec

So let's reflash with original fw :

ed2k://|file|NSLU2_V23R63.zip|6586684|caa47a6abb85d04a364f8e412efed244|

Login in Redboot

RedBoot> upgrade

Then start uploading : sudo /usr/sbin/upslug2 –target=“00:14:bf:63:46:cc” –image=NSLU2_V23R63.bin

Wait and ping :

ping -c 1 192.168.1.77 

Nmap:

21/tcp   open  ftp         Linksys NSLU2 ftpd
80/tcp   open  http        Linksys NSLU2 http config
139/tcp  open  netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP)
445/tcp  open  netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP)
6789/tcp open  http        Intel UPnP reference SDK httpd 1.2 (UPnP 1.0, platform Linux 2.4.22-xfs)

If ok then Login :

 Server Name:  	LKG6346CC
 Version: 	V2.3R63
 IP Address: 	192.168.1.77
 USB Port 1:	Not Installed
 USB Port 2: 	Not Installed

Then reflash debian, Make sure to disconnect any DHCP server on a local network

 LC_CTYPE=en_US.UTF-8 xterm -T pass=install -e ssh installer@192.168.1.77 
 # shell; configure network # wget -O- www.debian.org 
 # route add default gw 192.168.1.154 # @C # link to [[Gateway]]
 # ^D
debootstrap --verbose  lenny  /target/

Etc

lsusb

Bus 002 Device 002: ID 054c:02a5 Sony Corp. 

Perfs : Bench

  • rsync : sent 736 bytes received 667773562 bytes 370471.18 bytes/sec
leemass:~# dd if=/dev/zero  of=/dev/null 
1971491+0 records in
1971490+0 records out
1009402880 bytes (1.0 GB) copied, 39.7056 s, 25.4 MB/s
leemass:~# dd if=/media/usb0/incoming/*.mpg  of=/dev/null 
1292275+1 records in
1292275+1 records out
661644944 bytes (662 MB) copied, 68.8588 s, 9.6 MB/s

redboot

armel.txt · Last modified: 2012/11/04 20:58 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki