2009-01-21 10:49:16 ....A 97099621 97129241 LS-WTGL-V3_FwUp_309/hddrootfs.img 2009-01-21 10:49:16 ....A 5227472 5229067 LS-WTGL-V3_FwUp_309/initrd.img 2009-01-21 10:53:20 ....A 235 157 LS-WTGL-V3_FwUp_309/linkstation_version.txt 2008-12-04 09:18:34 ....A 374064 196336 LS-WTGL-V3_FwUp_309/LSUpdater.exe 2009-01-21 10:49:18 ....A 186 156 LS-WTGL-V3_FwUp_309/LSUpdater.ini 2009-01-22 13:55:02 ....A 172 141 LS-WTGL-V3_FwUp_309/LSWTGL-3.09release_note.txt 2009-01-21 09:32:00 ....A 245776 120470 LS-WTGL-V3_FwUp_309/u-boot.buffalo.updated 2009-01-21 10:49:16 ....A 1758812 1737796 LS-WTGL-V3_FwUp_309/uImage.buffalo
LinkStation Name LS-WTGL490 Model Name LS-WTGL/R1-V3 F/W 3.07 root@LS-WTGL490:~# cat /proc/buffalo/firmware SERIES=LinkStation PRODUCTNAME=LS-WTGL/R1-V3(SEIMU) VERSION=0.16 SUBVERSION=FLASH 0.00 PRODUCTID=0x00003004 BUILDDATE=2008/07/23 09:49:56 BOOTVER=1.13 root@LS-WTGL490:~# cat /proc/version Linux version 2.6.16.16-arm1 (root@I.You) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #325 Wed Jul 23 09:49:58 JST 2008
Starting Nmap 4.62 ( http://nmap.org ) at 2008-11-15 14:27 CET PORT STATE SERVICE VERSION 80/tcp open http Apache httpd 1.3.34 ((Unix)) 139/tcp open netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP) 445/tcp open netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP) 515/tcp open printer 873/tcp open rsync (protocol version 29) 3689/tcp open http mt-daapd httpd 0.2.4 8873/tcp open ssl/unknown 9050/tcp open tor-socks? 22939/tcp open ssl/unknown 59822/tcp open unknown 59824/tcp open unknown
Latest one : http://www.buffalo-technology.com/support/getfile/?LS-WTGL-V3_FwUp_309.zip
RAID Partition: http://buffalo.nas-central.org/forums/viewtopic.php?f=50&t=6636
One button Copy :
cat /proc/buffalo/board_info BoardId=1b BoardName=BUFFALO_BOARD_LS_WTGL_R1_V3 BoardStrap=3d
cat /proc/buffalo/firmware SERIES=LinkStation PRODUCTNAME=LS-WTGL/R1-V3(SEIMU) VERSION=0.16 SUBVERSION=FLASH 0.00 PRODUCTID=0x00003004 BUILDDATE=2008/07/23 09:49:56 BOOTVER=1.13
setup your desktop :
grep nas /etc/hosts* /etc/hosts:192.168.1.77 nas # 192.168.11.150 # em ip
There is 2 usb slot
Just pluged a memup hardisk seems to mount automagickly and BitRate is near to 3MBps, will have to try if my imac keyboard will works as a hub …
rsync from USB3 drive to upper slot : 3.26MB/s
$ dmesg SCSI device sdd: 488397168 512-byte hdwr sectors (250059 MB) sdd: Write Protect is off sdd: Mode Sense: 53 00 00 08 sdd: assuming drive cache: write through sdd: sdd1 sdd2 sdd3 sdd4 < sdd5 sdd6 > sd 3:0:0:0: Attached scsi disk sdd sd 3:0:0:0: Attached scsi generic sg2 type 0 usb-storage: device scan complete FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! FAT: invalid media value (0x06) VFS: Can't find a valid FAT filesystem on dev sdd. FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! FAT: invalid media value (0x06) VFS: Can't find a valid FAT filesystem on dev sdd. FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
Trick : MounT
MAC_HOST=00:1D:73:5B:B4:90 while [ true ] ; do wakeonlan ${MAC_HOST} ; echo $? ;sleep 100 done
http://en.wikipedia.org/wiki/Wake-on-LAN#Magic_Packet
"NAS Navigator software" for linux ?
http://sourceforge.net/projects/nascontrol
http://www.buffalo-technology.com/support/getfile/?NASNavi2.11.zip
file *.xml_ NASDrivePreference.xml_: MS Compress archive data NASNaviPreference.xml_: MS Compress archive data
/opt/cxoffice/bin/wine /opt/NASNavi2/Inst.exe /opt/cxoffice/bin/wine /opt/NASNavi2/NasNavi2.exe
Admin :
File browser :
Ftp:
Just plug it in a network
nmap 139/tcp open netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP) 445/tcp open netbios-ssn Samba smbd 3.X (workgroup: WORKGROUP) smbtree -N WORKGROUP \\LS-WTGL490 LinkStation \\LS-WTGL490\lp Network Printer for Windows \\LS-WTGL490\info LinkStation Utilities \\LS-WTGL490\share LinkStation folder \\LS-WTGL490\tmp recovered \\LS-WTGL490\IPC$ IPC Service (LinkStation) smbmount //nas/share ~/mnt/smb/ fusesmb ~/mnt/fusesmb/ # WARNING: no network interfaces found grep -v '^;' ~/.smb/fusesmb.conf interfaces= eth0:0 timeout = 10 interval = 10 ls ~/mnt/fusesmb/WORKGROUP/LS-WTGL490/share/local/debian/ # works until too much trafic : ls: cannot open directory .: Transport endpoint is not connected smbmount -o username=admin,password=password //192.168.0.90/local /tmp/mnt/smb/ mkdir -p /tmp/mnt/smb/local/var/lib mkdir: cannot create directory `/tmp/mnt/smb/local/var/lib': Permission denied
Original FirmWare contain a Server :
mt-daapd: 0.2.4
cat /etc/mt-daapd.conf
Client:
rhythm-box nas:3689
@tag: JukeBox see this page for xmbc daap UPNP etc http://en.wikipedia.org/wiki/Digital_Audio_Access_Protocol
@tag: NFS
ssh -CY root@nas ipkg update && ipkg install unfs3 cat /etc/exports && exportfs -ra -v /mnt/array1 192.168.1.0/255.255.255.0(rw,sync,no_root_squash) mkdir -p /mnt/nfs rpcinfo -p nas ; showmount nas sudo mount nas:/mnt/array1 /mnt/nfs
Errors:
mount.nfs: mount to NFS server 'nas' failed: timed out, retrying sudo iptables -F
mount.nfs: access denied by server while mounting nas:/mnt/array1 exportfs -ra -v
"Stale NFS file handle"
Solution :
killall unfsd #| unfsd: no process found unfsd -b -d #| UNFS3 unfsd 0.9.18 (C) 2006, Pascal Schmidt <unfs3-server@ewetel.net> #| Warning: unknown exports option `sync' ignored #| Warning: unknown exports option `no_subtree_check' ignored #| /mnt/array1: ip 192.168.0.0 mask 255.255.0.0 options 5
This seems to be fixed in later version :
Solution: use debian one : unfs3 0.9.21+dfsg-1
mv /opt/sbin/unfsd /opt/sbin/unfsd.orig ln -fs /local/debian/usr/sbin/unfsd /opt/sbin/unfsd.mine ln -fs unfsd.mine /opt/sbin/unfsd
ToDo: http://trac.nslu2-linux.org/optware/report
see http://buffalo.nas-central.org/forums/viewtopic.php?f=19&t=4075
grep nas /etc/hosts 192.168.1.77 nas
wget -O- http://buffalo.nas-central.org/download/TOOLS/ALL_LS_KB_ARM9/ACP_COMMANDER/README wget http://buffalo.nas-central.org/download/TOOLS/ALL_LS_KB_ARM9/ACP_COMMANDER/acp_commander.jar h=nas ping -c 1 $h && java -jar acp_commander.jar -t $h -o && telnet $h # root
# telnet nas Trying 192.168.1.77... Connected to nas. Escape character is '^]'. BUFFALO INC. LinkStation series LS-WTGL490 login: root root@LS-WTGL490:~# cat /proc/version Linux version 2.6.16.16-arm1 (root@I.You) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #325 Wed Jul 23 09:49:58 JST 2008 root@LS-WTGL490:~# cat /etc/linkstation_release VERSION=3.07 SUBVERSION=HDD 0.00 PRODUCTID=0x00003004 BUILDDATE=2008/07/23 09:50:57 root@LS-WTGL490:~# mount rootfs on / type rootfs (rw) /dev/root on / type xfs (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw) /dev/ram1 on /mnt/ram type tmpfs (rw) /dev/md0 on /boot type ext3 (rw,data=ordered) usbfs on /proc/bus/usb type usbfs (rw) /dev/md2 on /mnt/array1 type xfs (rw,noatime,sunit=128,swidth=256)
Model: Samsung HD502IJ
@tag: HardDisk Samsung HD502IJ
model: HE502IJ aka Spinpoint F1 RAID Class capacity : 500GB interface : SATA 3.0Gbps buffer memory : 16MB speed: 7200rpm ?
cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: SAMSUNG Model: HD502IJ Rev: 1AA0 Type: Direct-Access ANSI SCSI revision: 03 Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: SAMSUNG Model: HD502IJ Rev: 1AA0 Type: Direct-Access ANSI SCSI revision: 03 hdparm -i /dev/sda /dev/sda: hdparm: operation not supported on SCSI disks time smartctl -a /dev/sda | tee /root/sda.txt smartctl version 5.37 [armv5tejl-unknown-linux-gnu] Copyright (C) 2002-6 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === <code> Device Model: SAMSUNG HD502IJ Serial Number: S1GVJ1CQ801422 Firmware Version: 1AA01114 User Capacity: 500,107,862,016 bytes Device is: In smartctl database [for details use: -P show] ATA Version is: 7 ATA Standard is: Not recognized. Minor revision code: 0x52 Local Time is: Fri Nov 2 07:50:36 2007 JST ... SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 100 100 051 Pre-fail Always - 0 3 Spin_Up_Time 0x0007 087 087 011 Pre-fail Always - 4870 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 20 5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 253 253 051 Pre-fail Always - 0 8 Seek_Time_Performance 0x0025 100 100 015 Pre-fail Offline - 0 9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 28 10 Spin_Retry_Count 0x0033 100 100 051 Pre-fail Always - 0 11 Calibration_Retry_Count 0x0012 100 100 000 Old_age Always - 0 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 20 13 Read_Soft_Error_Rate 0x000e 100 100 000 Old_age Always - 0 183 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0 184 Unknown_Attribute 0x0033 100 100 099 Pre-fail Always - 0 187 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0 188 Unknown_Attribute 0x0032 100 100 000 Old_age Always - 0 190 Temperature_Celsius 0x0022 072 072 000 Old_age Always - 471597084 194 Temperature_Celsius 0x0022 071 071 000 Old_age Always - 29 (Lifetime Min/Max 0/7452) 195 Hardware_ECC_Recovered 0x001a 100 100 000 Old_age Always - 13000 196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0 197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x003e 100 100 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x000a 100 100 000 Old_age Always - 0 201 Soft_Read_Error_Rate 0x000a 253 253 000 Old_age Always - 0 fdisk -lu /dev/sda # same for sdb Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Device Boot Start End Blocks Id System /dev/sda1 63 2008124 1004031 83 Linux /dev/sda2 2008125 12016619 5004247+ 83 Linux /dev/sda4 12016620 976768064 482375722+ 5 Extended /dev/sda5 12016683 14024744 1004031 82 Linux swap /dev/sda6 14024808 974984849 480480021 83 Linux
Check :
fdisk -lu /dev/sda # same for sdb Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Device Boot Start End Blocks Id System /dev/sda1 63 2008124 1004031 83 Linux /dev/sda2 2008125 12016619 5004247+ 83 Linux /dev/sda4 12016620 976768064 482375722+ 5 Extended /dev/sda5 12016683 14024744 1004031 82 Linux swap /dev/sda6 14024808 974984849 480480021 83 Linux
Recover disks ?
mount: unknown filesystem type 'linux_raid_member'
https://raid.wiki.kernel.org/index.php/RAID_setup#RAID-0
http://www.wikihow.com/Convert-a-Linux-RAID-0-Disk-Array-to-a-RAID-1
http://xfs.org/index.php/XFS_FAQ#Q:_Does_the_filesystem_have_an_undelete_capability.3F
http://www.ufsexplorer.com/rdr_xfs.php
aptitude install mdadm testdisk xfsprogs hxutils mdadm -v --scan mdadm --examine --brief --scan ARRAY /dev/md125 level=raid1 num-devices=2 UUID=fc841c6a:88c5adc6:8d0b1491:69757863 ARRAY /dev/md1 level=raid1 num-devices=2 UUID=02bb2b5b:9e8ba539:b50270d1:1c24357b ARRAY /dev/md126 level=raid1 num-devices=2 UUID=b92fbdad:da18a7e3:6b4fe4da:dc250789 ARRAY /dev/md2 level=raid0 num-devices=2 UUID=6946f8dd:1d034364:ff2842d2:0baabf69 mdadm -v --assemble /dev/md6 /dev/sda6 /dev/sdb6 mdadm: /dev/md6 has been started with 2 drives. ARRAY /dev/md0 UUID=fc841c6a:88c5adc6:8d0b1491:69757863 ARRAY /dev/md1 UUID=02bb2b5b:9e8ba539:b50270d1:1c24357b ARRAY /dev/md10 UUID=b92fbdad:da18a7e3:6b4fe4da:dc250789 ARRAY /dev/md2 UUID=6946f8dd:1d034364:ff2842d2:0baabf69 mdadm --detail --scan ARRAY /dev/md6 level=raid0 num-devices=2 UUID=6946f8dd:1d034364:ff2842d2:0baabf69 cat /proc/mdstat Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] md6 : active raid0 sda6[0] sdb6[1] 960959872 blocks 64k chunks unused devices: <none> mount /dev/md6 /mnt/md6/
root@LS-WTGL490:~# /usr/local/sbin/miconapl -a fan_set_speed fast root@LS-WTGL490:~# /usr/local/sbin/miconapl -a fan_set_speed slow root@LS-WTGL490:~# /usr/local/sbin/miconapl -a fan_set_speed stoped cat /proc/buffalo/gpio/fan/control stop smartctl -a /dev/sda | grep -i '194 Temperature_Celsius' | cut -b81-90 29 sh-2.05b# find /sys/ -iname "*temp*" sudo aptitude install hddtemp Starting disk temperature monitoring daemon: hddtemp: no disks with monitoring capability were found.. nc localhost 7634
@tag: MV-88fxx81
cat /proc/cpuinfo Processor : ARM926EJ-Sid(wb) rev 0 (v5l) BogoMIPS : 266.24 Features : swp half thumb fastmult edsp java CPU implementer : 0x41 CPU architecture: 5TEJ CPU variant : 0x0 CPU part : 0x926 CPU revision : 0 Cache type : write-back Cache clean : cp15 c7 ops Cache lockdown : format C Cache format : Harvard I size : 32768 I assoc : 1 I line length : 32 I sets : 1024 D size : 32768 D assoc : 1 D line length : 32 D sets : 1024 Hardware : MV-88fxx81 Revision : 0000 Serial : 0000000000000000
root@LS-WTGL490:~# cat /proc/meminfo MemTotal: 126232 kB MemFree: 19528 kB Buffers: 208 kB Cached: 70796 kB SwapCached: 0 kB Active: 39292 kB Inactive: 45348 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 126232 kB LowFree: 19528 kB SwapTotal: 1003896 kB SwapFree: 1003896 kB Dirty: 20 kB Writeback: 0 kB Mapped: 19820 kB Slab: 18704 kB CommitLimit: 1067012 kB Committed_AS: 70700 kB PageTables: 672 kB VmallocTotal: 385024 kB VmallocUsed: 1040 kB VmallocChunk: 383984 kB
dmesg can help for later
dmesg ersion 1.7.8_NAS)-- BUFFALO_BOARD_LS_WTGL_R1_V3 Detected Tclk 166664740 and SysClk 250000000 Marvell USB EHCI Host controller #0: c16f5e00 Marvell USB EHCI Host controller #1: c16f5c00 pexBarOverlapDetect: winNum 2 overlap current 0 mvPexInit:Warning :Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI: bus0: Fast back to back transfers enabled PCI: bus1: Fast back to back transfers enabled SCSI subsystem initialized use IDMA acceleration in copy to/from user buffers. used channels 2 and 3 Done. cesadev_init(c0011d34) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. SGI XFS with large block numbers, no debug enabled Initializing Cryptographic API io scheduler noop registered (default) io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A serial8250: ttyS1 at MMIO 0x0 (irq = 4) is a 16550A RAMDISK driver initialized: 3 RAM disks of 16384K size 1024 blocksize loop: loaded (max 8 devices) Marvell Gigabit Ethernet Driver 'egiga': o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface ** egiga_init_module (0) 'eth0' Intergrated Sata device found scsi0 : Marvell SCSI to SATA adapter scsi1 : Marvell SCSI to SATA adapter ** BUFFALO Disable Command Queuing Function [0 0] ** ** BUFFALO Disable Command Queuing Function [0 1] ** Vendor: SAMSUNG Model: HD502IJ Rev: 1AA0 Type: Direct-Access ANSI SCSI revision: 03 Vendor: SAMSUNG Model: HD502IJ Rev: 1AA0 Type: Direct-Access ANSI SCSI revision: 03 Linux IAL (ERROR) : retry command host=1, bus=1 SCpnt = c1448ba0 SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB) sdb: Write Protect is off sdb: Mode Sense: 23 00 00 00 SCSI device sdb: drive cache: write back SCSI device sdb: 976773168 512-byte hdwr sectors (500108 MB) sdb: Write Protect is off sdb: Mode Sense: 23 00 00 00 SCSI device sdb: drive cache: write back sdb: sdb1 sdb2 sdb4 < sdb5 sdb6 > sd 1:0:0:0: Attached scsi disk sdb sd 0:0:0:0: Attached scsi generic sg0 type 0 sd 1:0:0:0: Attached scsi generic sg1 type 0 physmap flash device: 40000 at ff800000 CFI: Found no phys_mapped_flash device at location zero >jedec_probe Found: SST 39LF020 phys_mapped_flash: Found 1 x8 devices at 0x0 in 8-bit bank number of JEDEC chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepart partition parsing not available RedBoot partition parsing not available mice: PS/2 mouse device common for all mice md: raid0 personality registered for level 0 md: raid1 personality registered for level 1 md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27 md: bitmap version 4.39 Kernel event proc (C) BUFFALO INC. V.1.00 installed. MICON ctrl (C) BUFFALO INC. V.1.00 installed. mvGppValueSet: Err. An attempt to set output value to GPP 8 in input mode. Buffalo CPU Inerupts Driver (C) BUFFALO INC. Ver.0.01 alpha1 installed. mvGppValueSet: Err. An attempt to set output value to GPP 2 in input mode. Buffalo Gpio Control Driver (C) BUFFALO INC. Ver.0.02 installed. NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 3, 32768 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 filesystem). md: md10 stopped. md: md1 stopped. md: md0 stopped. md: bind<sdb1> md: bind<sda1> raid1: raid set md0 active with 2 out of 2 mirrors kjournald starting. Commit interval 5 seconds EXT3 FS on md0, internal journal EXT3-fs: mounted filesystem with ordered data mode. md: md10 stopped. md: bind<sdb5> md: bind<sda5> raid1: raid set md10 active with 2 out of 2 mirrors md: md1 stopped. md: bind<sdb2> md: bind<sda2> raid1: raid set md1 active with 2 out of 2 mirrors XFS mounting filesystem md1 Ending clean XFS mount for filesystem: md1 XFS mounting filesystem md1 Ending clean XFS mount for filesystem: md1 VFS: Mounted root (xfs filesystem). Trying to move old root to /initrd ... okay Freeing init memory: 116K Adding 1003896k swap on /dev/md10. Priority:-1 extents:1 across:1003896k kjournald starting. Commit interval 5 seconds EXT3 FS on md0, internal journal EXT3-fs: mounted filesystem with ordered data mode. usbcore: registered new driver usbfs usbcore: registered new driver hub ehci_platform ehci_platform.4523: EHCI Platform Host Controller ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1 ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000 ehci_platform ehci_platform.4523: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: configuration #1 chosen from 1 choice ...
Now have fun :
passwd #1234 cd / #cd /mnt/array1/share wget http://buffalo.nas-central.org/download/Uploads/LSPro/Binaries/addons.tar && tar xvf addons.tar #d=/mnt/array1/tmp #mkdir -p "$d" && cd "$d" u=http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/teraprov2-bootstrap_1.2-7_arm.xsh wget "$u" sh teraprov2-bootstrap_*_arm.xsh # Optware Bootstrap for teraprov2. # Extracting archive... please wait # bootstrap/ # bootstrap/bootstrap.sh # ... # Creating /opt/etc/ipkg/cross-feed.conf... # Setup complete. cat /opt/etc/ipkg/cross-feed.conf src/gz cross http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/unstable ipkg update && ipkg install openssh screen # unfsd netcat mc zile mg reboot
TODO: add user's feed : /opt/etc/ipkg.conf ie :
# src $USER http://$USER.homelinux.org/~$USER/volatile/ipkg/
debian:
/usr/bin/vlc --sout-standard-dst=212.27.38.253:1234 --sout-ts-pid-video=68 --sout-ts-pid-audio=69 --sout-ts-pid-spu=70 --sout-standard-access=udp --sout-standard-mux=ts --sout=#std --sout-ts-pcr=80 --sout-ts-dts-delay=400 --sout-transcode-maxwidth=720 --sout-transcode-maxheight=576 --extraintf=http --http-host=:8080 --http-src=/usr/share/freeplayer/http-fbx/ --m3u-extvlcopt --play-and-stop --no-play-and-stop --loop --browse-dir=$(pwd) VLC media player 0.8.6h Janus [00000283] main interface: creating httpd [00000292] skins2 interface error: Cannot open display [00000292] skins2 interface error: cannot initialize OSFactory Remote control interface initialized. Type `help' for help. status change: ( new input: /home/rzr/tmp/Blackfire - Woody Guthrie.mp3 ) status change: ( audio volume: 256 ) status change: ( play state: 1 ) [00000298] stream_out_transcode private error: no audio filter found (fi32->s16l) [00000298] stream_out_transcode private error: cannot create audio chain [00000360] main packetizer error: cannot create packetizer output (mpga) vlc-nox: /usr/lib/vlc/audio_filter/libfixed32tos16_plugin.so
http://packages.qa.debian.org/v/vlc.html
https://forum.videolan.org/viewtopic.php?f=2&t=46046
http://www.nslu2-info.de/forum/showthread.php?t=6354
optware:
ipkg update && ipkg install vlc libvorbis libogg lame x264 xvid libdvbpsi faad2 libdvb libdvdnav libmad libmpeg2 libmpcdec liba52 libdvdread libshout
adduser tmp su tmp
wget http://ia300124.us.archive.org/3/items/TrustedComputing/TrustedComputing_LAFKON_HIGH_mpeg1.mpg
killall vlc dbus-launch
dbus-launch /opt/bin/vlc -vvv \ --sout=#std --sout-standard-dst=212.27.38.253:1234 \ --sout-standard-access=udp \ --sout-standard-mux=ts \ --sout-ts-pid-video=68 --sout-ts-pid-audio=69 --sout-ts-pid-spu=70 \ --sout-ts-pcr=80 --sout-ts-dts-delay=400 \ --sout-transcode-maxwidth=720 --sout-transcode-maxheight=576 \ --extraintf=http --http-host=:8080 \ --http-src=/usr/share/freeplayer/http-fbx --http-charset=ISO-8859-1 \ --play-and-stop --no-play-and-stop --loop \ *.mpg
# play # stats
Makes gliches pop and crack not music :(
freebox : http://www.nas-forum.com/forum/index.php?&showtopic=907&pid=32062&st=60&#entry32062
@more: vlc
ipkg update && ipkg install aria2 sqlite aria2 http://download.blender.org/peach/bigbuckbunny_production.torrent
wget 'http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/unstable/Packages' -O- 2> /dev/null | grep -e "^Package:" | cut -f2 -d: ipkg update && ipkg install screen aria2 sqllite portmap unfs3 qemacs mc
OpenSource: http://buffalo.nas-central.org/forums/viewtopic.php?f=50&t=5931&st=0&sk=t&sd=a&start=15
http://buffalo.jp/php/los.php?to=gpl/storage/ls-wtgl/303/linux-2.6.16.7_lswtgl_100.tar.bz2
head linux-2.6.16_lsp.1.7.8/Makefile VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 16 EXTRAVERSION = .16-arm1
Custom kernel may be booted w/ TFTP ? :
Rebuild it :
wget http://downloads.nas-central.org/ALL_ARM9/DevelopmentTools/CrossToolchains/codesourcery-toolchains-setup.sh
grep BOOTVER /proc/buffalo/firmware BOOTVER=1.13
for i in $(seq 0 16 ) ; do hexdump -C /dev/mtdchar$i | head ; done 00000000 12 00 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 |................| 00000010 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 |................| 00000020 60 01 f1 00 c0 01 f1 00 20 02 f1 00 80 02 f1 00 |`....... .......| 00000030 e0 02 f1 00 40 03 f1 00 a0 03 f1 00 ef be ad de |....@...........| 00000040 00 00 f1 00 00 00 f1 00 10 c0 f4 00 dc 40 f5 00 |.............@..| 00000050 00 00 0f e1 1f 00 c0 e3 d3 00 80 e3 00 f0 29 e1 |..............).| 00000060 18 00 00 eb 6c 00 4f e2 30 10 1f e5 01 00 50 e1 |....l.O.0.....P.| 00000070 07 00 00 0a 38 20 1f e5 38 30 1f e5 02 20 43 e0 |....8 ..80... C.| 00000080 02 20 80 e0 f8 07 b0 e8 f8 07 a1 e8 02 00 50 e1 |. ............P.| 00000090 fb ff ff da 5c 00 1f e5 80 00 40 e2 0c d0 40 e2 |....\.....@...@.| sh-2.05b# cat /proc/cmdline console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 func=0 BOOTVER=1.13
How to log in ? with a Serial link ?
@more: ARMv5
It's possible to install it in a chroot :
For this I untarred a Nslu2 FS filesystem, and then :
tar xvfj ../debian-lenny-armel-nslu.tar.bz2 l="/sys /proc /dev /tmp /dev" for t in $l; do sudo mount --bind $t ./$t ; done chroot . aptitude install sudo freeplayer mythstream boinc mldonkey-server # or other software not yet in optware
aptitude remove \ linux-image-2.6-ixp4xx linux-image-2.6.26-1-ixp4xx oss-compat
sudo aptitude install sudo aptitude vlc freeplayer libqt4-core libqt4-gui wget -c http://http.us.debian.org/debian/pool/main/f/freeplayer/fbx-playlist_20070531+dfsg.1-1_armel.deb wget -c http://http.us.debian.org/debian/pool/main/f/freeplayer/freeplayer_20070531+dfsg.1-1_all.deb sudo dpkg -i *.deb
More stuff in install page
login debian:
ssh root@nas /local/chroot.sh /local/debian invoke-rc.d *-server force-start
Contact me if you want my scripts
ToDo:
PATH=/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
ln -fs /local/debian/root/debchroot.sh /etc/init.d/
tail /etc/init.d/rcS # debian sleep 100 t=/etc/init.d/debchroot.sh [ -x $t ] && $t start 2>&1 > /tmp/debchroot.log
Misc:
you can still 'open stock firmware' and install optware on that for additional apps
LS-W1.0TGL/R1 V3
Will untarring :
Message from syslogd@LS-WTGL490 at Fri Nov 2 09:19:15 2007 ... LS-WTGL490 clientUtil_server[1502]: ap_serv_exit() exit ap_servd. code=15
fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 125 1004031 83 Linux /dev/sda2 126 748 5004247+ 83 Linux /dev/sda4 749 60801 482375722+ 5 Extended /dev/sda5 749 873 1004031 82 Linux swap /dev/sda6 874 60690 480480021 83 Linux Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 125 1004031 83 Linux /dev/sdb2 126 748 5004247+ 83 Linux /dev/sdb4 749 60801 482375722+ 5 Extended /dev/sdb5 749 873 1004031 82 Linux swap /dev/sdb6 874 60690 480480021 83 Linux ### /dev/sda1 988088 116196 871892 12% /mnt/tmp/dev/sda1 /dev/sda2 4993920 501844 4492076 10% /mnt/tmp/dev/sda2 /dev/sdb1 988088 116196 871892 12% /mnt/tmp/dev/sdb1
xfs_irecover
# debian: hxtools 0.0.0-0~rzr2 (apt)
Latest one :
http://www.buffalo-technology.com/support/downloads/
http://www.buffalo-technology.com/support/getfile/?LS-WTGL_fw3.09.zip
http://www.buffalo-technology.com/support/getfile/?LS-WTGL-V3_FwUp_309.zip
ftp://24.153.165.234/array1/share/LS%20Pro%20Duo/2%20usb%20model/LSWTGL-309.zip
I did put a pair of 1TB hdd ( samsung HD103UJ ) :
(if u keep to 192.168.11.* LSUpdater “fail to formating. (0xF…E)” … 6 blinks on reboot, so restart the procedure on next boot)
LinkStation Name LS-WTGL490
LinkStation Description LinkStation
Model Name LS-WTGL/R1-V3
Firmware Version 3.09
root@LS-WTGL490:~# cat /proc/version Linux version 2.6.16.16-arm1 (root@I.You) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #1 Wed Jan 21 10:23:54 JST 2009 root@LS-WTGL490:~# cat /etc/linkstation_release VERSION=3.09 SUBVERSION=HDD 0.02 PRODUCTID=0x00003004 BUILDDATE=2009/01/21 10:25:21 root@LS-WTGL490:~# cat /proc/buffalo/firmware SERIES=LinkStation PRODUCTNAME=LS-WTGL/R1-V3(SEIMU) VERSION=0.16 SUBVERSION=FLASH 0.00 PRODUCTID=0x00003004 BUILDDATE=2009/01/21 10:23:16 BOOTVER=1.13
LS-WTGL-V3_FwUp_309/linkstation_version.txt LS-WTGL-V3_FwUp_309/hddrootfs.img LS-WTGL-V3_FwUp_309/u-boot.buffalo.updated LS-WTGL-V3_FwUp_309/uImage.buffalo LS-WTGL-V3_FwUp_309/LSUpdater.ini LS-WTGL-V3_FwUp_309/LSUpdater.exe LS-WTGL-V3_FwUp_309/LSWTGL-3.09release_note.txt LS-WTGL-V3_FwUp_309/initrd.img
wine LSUpdater.exe /? #| "LS-WTGL/R1-V3 that needs updating wasn't found". #| "Couldn't get an information of LS-WTGL/R1-3V that is specified on Combo-box. updating aborted"
Go to debug mode :
Force upgrade :
TFTP :
ftp://24.153.165.234/array1/share/nas-recovery/TFTP%20Boot%20Recovery%20LS-WTGL-v3%203.08.exe
# TFTP Boot Recovery# sudo wine 'TFTP Boot.exe' Preparing to write TFTP configuration settings. TFTP Configuration settings have been written. TFTP Server Multithreaded Version 1.4 Windows Built 1.400 192.168.11.1 Port 69, bind failed No listening Interfaces available, stopping... # netstat -taupeN | grep :69
http://forum.buffalo.nas-central.org/viewtopic.php?f=50&t=21369
http://forums.buffalotech.com/t5/Storage/TFTP-on-a-linksation-LS-500GL/td-p/21917
On Linux : ToDo
sudo aptitude install atftpd ls /srv/tftp busybox tftp -g -l /tmp/uImage.buffalo -r uImage.buffalo 192.168.11.1
On win :
Preparing to write TFTP configuration settings. TFTP Configuration settings have been written. TFTP Server Multithreaded Version 1.4 Windows Built 1.400 Starting TFTP... alias / is mapped to D:\local\TFTP Boot Recovery\ listening On: 192.168.0.52:69 listening On: 192.168.11.1:69 listening On: 127.0.0.1:69 permitted clients: all server port range: all max blksize: 65464 defult blksize: 512 default interval: 3 overwrite existing files: No thread pool size: 1 accepting requests.. Client 192.168.11.150:4060 D:\local\TFTP Boot Recovery\uImage.buffalo, 3436 Bloc ks Served Client 192.168.11.150:1629 D:\local\TFTP Boot Recovery\initrd.buffalo, 10265 Blo cks Served
"Failed to formatting. (ACP_STATE_FAILURE) Updating is aborted."
Attached one drive
And set ip back to 169.254.67.142
acpcommander -cb
"Failed to formatting (0xFFFFFFFE) Updating is aborted"
Said it requiere 2 disks …
will try later…
Step by Step Notes :
I had to change the procedure for bootp :
On issue:
/bin/sh /usr/local/bin/hdd_format.sh /dev/disk2 /mnt/disk2 ext3 Stopping :/etc/init.d/twonky.sh ... [Success.] Stopping :/etc/init.d/itunes.sh ... [Success.] Stopping :/etc/init.d/ftpd.sh ... [Failed. ] Stopping :/etc/init.d/atalk.sh ... [Success.] Stopping :/etc/init.d/smb.sh ... [Failed. ] Stopping :/etc/init.d/lprng.sh ... [Success.] ******umount****** ******success****** GetDisknameFromDevname(/dev/disk2) ******create partition (/dev/sdb) ****** remove drive /dev/sdb from md mdadm: set /dev/sdb1 faulty in /dev/md0 mdadm: set /dev/sdb2 faulty in /dev/md1 mdadm: cannot get array info for /dev/md2 mdadm: set /dev/sdb5 faulty in /dev/md10 mdadm: hot removed /dev/sdb1 mdadm: hot removed /dev/sdb2 mdadm: cannot get array info for /dev/md2 mdadm: hot removed /dev/sdb5 100+0 records in 100+0 records out 100+0 records in 100+0 records out 100+0 records in 100+0 records out 100+0 records in 100+0 records out Personalities : [raid0] [raid1] md1 : active raid1 sda2[0] 5004160 blocks [2/1] [U_] md10 : active raid1 sda5[0] 1003904 blocks [2/1] [U_] md0 : active raid1 sda1[0] 1003904 blocks [2/1] [U_] unused devices: <none> /dev/sdb total sectors=976762584 bytes=1000204886016 931[GB} The number of cylinders for this disk is set to 121601. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) 1024+0 records in 1024+0 records out sectors=1953525168 1000[GB] 0 Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 121601. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) usersize=992[GB]mdadm: re-added /dev/sdb1 mdadm: re-added /dev/sdb2 mdadm: re-added /dev/sdb5 1000+0 records in 1000+0 records out meta-data=/dev/disk2_6 isize=256 agcount=231, agsize=1048576 blks = sectsz=512 data = bsize=4096 blocks=242189907, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=32768, version=1 = sectsz=512 sunit=0 blks realtime =none extsz=65536 blocks=0, rtextents=0 wait for finish sys resync ... wait for finish sys resync ... wait for finish sys resync ... wait for finish sys resync ... wait for finish sys resync ... wait for finish sys resync ... wait for finish sys resync ... wait for finish sys resync ...
For some reason i lost it on sda6 ,so I reformated sdb6 to get superblock addresses :
h-2.05b# time /sbin/mkfs.ext3 -j -m 0 -L p6d1tb /dev/sdb6 | tee /root/sdb6.txt mke2fs 1.27 (8-Mar-2002) Filesystem label=p6d1tb OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 121110528 inodes, 242189907 blocks 0 blocks (0.00%) reserved for the super user First data block=0 7392 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 32 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. # real 13m49.172s
sudo mdadm --examine --brief --scan ARRAY /dev/md125 UUID=7ef42410:c5f71be4:3533a13e:8efafe1b ARRAY /dev/md126 UUID=b95b8791:39a534ac:c34c5fc1:767a0cc6 ARRAY /dev/md127 UUID=cd35430f:3afee620:16834a25:bc664cc4 root@duo:/# LANG=C parted -l -s p unit chs p unit b p /dev/sdb Model: ATA ST380011A (scsi) Disk /dev/sda: 80.0GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.8kB 1000MB 1000MB primary fat32 lba 2 1000MB 9000MB 8000MB primary ext4 boot 3 9000MB 10.0GB 1000MB primary linux-swap(v1) 4 10.0GB 80.0GB 70.0GB extended lba 5 10.0GB 72.0GB 62.0GB logical ext4 6 72.0GB 80.0GB 8003MB logical ext3 Model: ATA SAMSUNG HD103UJ (scsi) Disk /dev/sdb: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 1028MB 1028MB primary ext3 2 1028MB 6153MB 5124MB primary xfs 4 6153MB 1000GB 994GB extended 5 6153MB 7181MB 1028MB logical linux-swap(v1) 6 7181MB 999GB 992GB logical xfs Model: ATA SAMSUNG HD103UJ (scsi) Disk /dev/sdc: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 1028MB 1028MB primary ext3 2 1028MB 6153MB 5124MB primary xfs 4 6153MB 1000GB 994GB extended 5 6153MB 7181MB 1028MB logical linux-swap(v1) 6 7181MB 999GB 992GB logical xfs Model: Linux Software RAID Array (md) Disk /dev/md127: 1028MB Sector size (logical/physical): 512B/512B Partition Table: loop Number Start End Size File system Flags 1 0.00B 1028MB 1028MB linux-swap(v1) Model: Linux Software RAID Array (md) Disk /dev/md126: 5124MB Sector size (logical/physical): 512B/512B Partition Table: loop Number Start End Size File system Flags 1 0.00B 5124MB 5124MB xfs Model: Linux Software RAID Array (md) Disk /dev/md125: 1028MB Sector size (logical/physical): 512B/512B Partition Table: loop Number Start End Size File system Flags 1 0.00B 1028MB 1028MB ext3 root@duo:/# LANG=C parted -l -s p unit chs p unit b p /dev/sdc Model: ATA ST380011A (scsi) Disk /dev/sda: 80.0GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.8kB 1000MB 1000MB primary fat32 lba 2 1000MB 9000MB 8000MB primary ext4 boot 3 9000MB 10.0GB 1000MB primary linux-swap(v1) 4 10.0GB 80.0GB 70.0GB extended lba 5 10.0GB 72.0GB 62.0GB logical ext4 6 72.0GB 80.0GB 8003MB logical ext3 Model: ATA SAMSUNG HD103UJ (scsi) Disk /dev/sdb: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 1028MB 1028MB primary ext3 2 1028MB 6153MB 5124MB primary xfs 4 6153MB 1000GB 994GB extended 5 6153MB 7181MB 1028MB logical linux-swap(v1) 6 7181MB 999GB 992GB logical xfs Model: ATA SAMSUNG HD103UJ (scsi) Disk /dev/sdc: 1000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 1028MB 1028MB primary ext3 2 1028MB 6153MB 5124MB primary xfs 4 6153MB 1000GB 994GB extended 5 6153MB 7181MB 1028MB logical linux-swap(v1) 6 7181MB 999GB 992GB logical xfs Model: Linux Software RAID Array (md) Disk /dev/md127: 1028MB Sector size (logical/physical): 512B/512B Partition Table: loop Number Start End Size File system Flags 1 0.00B 1028MB 1028MB linux-swap(v1) Model: Linux Software RAID Array (md) Disk /dev/md126: 5124MB Sector size (logical/physical): 512B/512B Partition Table: loop Number Start End Size File system Flags 1 0.00B 5124MB 5124MB xfs Model: Linux Software RAID Array (md) Disk /dev/md125: 1028MB Sector size (logical/physical): 512B/512B Partition Table: loop Number Start End Size File system Flags 1 0.00B 1028MB 1028MB ext3 /dev/sda5 57G 41G 14G 75% /home /dev/sdc6 924G 13G 912G 2% /mnt/sdc6 /dev/sdb6 924G 22G 903G 3% /mnt/sdb6 /dev/md125 965M 117M 849M 13% /mnt/dev/md125 /dev/md126 4,8G 1,8G 3,1G 37% /mnt/dev/md126
To what I understood :
7 blink LED red :
It happend with a 40GB debian image on controler one while it works on 2d sata wire
Changing disk ?
If not working try again with
sudo ssh -f -L 139:localhost:139 username@ipaddress sleep 10; mkdir /Volumes/Share; mount_smbfs //username@localhost/Share /Volumes/Share