This shows you the differences between two versions of the page.
— |
armel [2022/04/16 12:22] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | @related: [[ARM]] [[RedBoot]] | ||
+ | |||
+ | [[Wish]] : http://www.priceminister.com/offer/buy/51519369/Linksys-Network-Storage-Link-NSLU2-NAS-Ethernet-10-100-Stockage-reseau.html | ||
+ | |||
+ | * NAS : see [[Armel]] , any ethernet would be fine | ||
+ | ** nslu : http://www.ldlc.com/fiche/PB00023353.html 70 EUR | ||
+ | * http://owfs.org/index.php?page=nslu2 | ||
+ | |||
+ | ==== linksys nslu2 ==== | ||
+ | |||
+ | * http://www.ldlc.com/fiche/PB00023353.html | ||
+ | * http://www.nslu2-linux.org / irc://irc.freenode.net/#nslu2-general | ||
+ | * http://www.cyrius.com/debian/nslu2/index.html | ||
+ | * http://en.wikipedia.org/wiki/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 | ||
+ | * http://svn.debian.org/wsvn/pkg-nslu2-utils/trunk/debian/README.Debian?op=file | ||
+ | |||
+ | Only bootloader can be reached by telnet : | ||
+ | |||
+ | Plug in then | ||
+ | |||
+ | <code> | ||
+ | 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 | ||
+ | </code> | ||
+ | |||
+ | 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 : | ||
+ | |||
+ | * http://www.linksys.com/servlet/Satellite?blobcol=urldata&blobheadername1=Content-Type&blobheadername2=Content-Disposition&blobheadervalue1=application%2Fzip&blobheadervalue2=inline%3B+filename%3DNSLU2_V23R63.zip&blobkey=id&blobtable=MungoBlobs&blobwhere=1193768637523&ssbinary=true&lid=2089509974B02 | ||
+ | |||
+ | 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 : | ||
+ | * x-www-browser http://192.168.1.77/ # admin:admin | ||
+ | |||
+ | 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. | ||
+ | |||
+ | |||
+ | * http://www.cyrius.com/debian/nslu2/ | ||
+ | |||
+ | |||
+ | === 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 | ||
+ | |||
+ | * http://www.lahiette.com/biboobox/?BibooSlug:Optimisations%2FPerf | ||
+ | |||
+ | === redboot === | ||
+ | |||
+ | * http://ecos.sourceware.org/docs-latest/redboot/redboot-guide.html | ||
+ | * http://www.plec.ca/index.php/Entree/NSLU2-Informations#toc4 | ||