Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Thu Apr 24, 2014 10:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: Thu Jan 14, 2010 12:23 am 
Offline
Newbie
User avatar

Joined: Thu Jan 14, 2010 12:08 am
Posts: 5
I've been playing with mine for a little while now - and I've got questions about this thing, but I don't see anyone else on here using it. Can we get a forum setup for this model so I can start posting what I've found, and ask others for help?

Its a quick little unit - I'd venture to say its the fastest NAS in its pricerange.

Here's where I bought it: http://www.newegg.com/Product/Product.aspx?Item=N82E16822165172

I've managed to get root access to mine, here's my cpuinfo:
Code:
root@TS-WXLBEF:~# cat /proc/cpuinfo   
Processor   : ARM926EJ-S rev 0 (v5l)
BogoMIPS   : 956.82
Features   : swp half thumb fastmult vfp edsp
CPU implementer   : 0x41
CPU architecture: 5TE
CPU variant   : 0x1
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      : 4
I line length   : 32
I sets      : 256
D size      : 32768
D assoc      : 4
D line length   : 32
D sets      : 256

Hardware   : Feroceon-MV78XX0
Revision   : 0000
Serial      : 0000000000000000


And here's a snippet from the top of my dmesg:
Code:
root@TS-WXLBEF:~# dmesg
Linux version 2.6.22.18 (root@build2.dd-hot24.nas.buffalo.local) (gcc version 4.2.0 20070413 (prerelease)) #749 Wed Sep 30 21:38:05 JST 2009
CPU: ARM926EJ-S [41159260] revision 0 (ARMv5TE), cr=00053977
Machine: Feroceon-MV78XX0
Using UBoot passing parameters structure
u.mv_uboot.env_addr is 0xfff80000. Using tag's value.
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 131072
  DMA zone: 1024 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 130048 pages, LIFO batch:31
  Normal zone: 0 pages used for memmap
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
Built 1 zonelists.  Total pages: 130048
Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00900040,15M panic=5 BOOTVER=2.06
PID hash table entries: 2048 (order: 11, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB 0MB 0MB 0MB = 512MB total
Memory: 499584KB available (4192K code, 321K data, 128K init)
Calibrating delay loop... 956.82 BogoMIPS (lpj=4784128)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16

CPU 0, CPU Interface
-------------
SDRAM_CS0.... ....base 00000000, size 512MB
SDRAM_CS1.... ....disable
SDRAM_CS2.... ....disable
SDRAM_CS3.... ....disable
DEVICE_CS0... ....base f8000000, size  32MB
DEVICE_CS1... ....base fe000000, size   1MB
DEVICE_CS2... ....base fc000000, size   1MB
DEVICE_CS3... ....no such
DEV_BOOCS.... ....base fff00000, size 512KB
DEVICE_SPI... ....base fff00000, size 512KB
PEX0_IO...... ....base f2000000, size   8MB
PEX0_MEM0.... ....base c8000000, size  64MB
PEX1_IO...... ....base f3000000, size   8MB
PEX1_MEM0.... ....base cc000000, size  64MB
PEX2_IO...... ....no such
PEX2_MEM0.... ....no such
PEX3_IO...... ....base f5000000, size   8MB
PEX3_MEM0.... ....base d4000000, size  64MB
PEX4_IO...... ....base f6000000, size   8MB
PEX4_MEM0.... ....base d8000000, size  64MB
PEX5_IO...... ....no such
PEX5_MEM0.... ....no such
PEX6_IO...... ....no such
PEX6_MEM0.... ....no such
PEX7_IO...... ....no such
PEX7_MEM0.... ....no such
CRYPT_ENG..... ....base f7000000, size   2MB
INTER_REGS... ....base f1000000, size   1MB

  Marvell Development Board (LSP Version 2.0.2_MV78XX0)-- DB-MV78100-A-BP-BUFFALO  Soc: MV78100 A0 LE

 Detected Tclk 166666667 and SysClk 400000000
Marvell USB EHCI Host controller #0: 808fd600
Marvell USB EHCI Host controller #1: 808fd400
Marvell USB EHCI Host controller #2: 808fd200
PEX0 interface detected no Link.
PEX4 interface detected no Link.
SCSI subsystem initialized
NET: Registered protocol family 2
Time: orion_clocksource clocksource has been installed.
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 15360K
RTC registered.
MICON ctrl (C) BUFFALO INC. V.1.00 installed.
Buffalo Gpio Control Driver (C) BUFFALO INC. Ver.0.02 installed.
>BuffaloCpuInterrupts_init
Buffalo CPU Inerupts Driver (C) BUFFALO INC. Ver.0.01 alpha1 installed.
MICON V2 (C) BUFFALO INC. V.1.00 installed.
UPSDRV (C) BUFFALO INC. V.1.00 installed.
  OMRON contact type ups shutdown support enabled!
Kernel event proc (C) BUFFALO INC. V.1.00 installed.
Buffalo RTC Driver (C) BUFFALO INC. Ver.1.00 (RS5C372) installed.
Buffalo GPIO SATA Hotplug Event Driver (C) BUFFALO INC. Ver.1.00 installed.
Use the XOR engines (acceleration) for enhancing the following functions:
  o RAID 5 Xor calculation
  o kernel memcpy
  o kenrel memzero
Number of XOR engines to use: 2
cesadev_init(8001237c)
mvCesaInit: sessions=640, queue=64, pSram=f7000000
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
SGI XFS with ACLs, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
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.0: ttyS0 at MMIO 0xf1012000 (irq = 12) is a 16550A
serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 13) is a 16550A
serial8250.2: ttyS2 at MMIO 0xf1012200 (irq = 14) is a 16550A
RAMDISK driver initialized: 3 RAM disks of 32768K size 1024 blocksize
loop: module loaded
Load Marvell Ethernet Driver
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload enabled
  o Receive checksum offload enabled
  o Transmit checksum offload enabled
  o Network Fast Processing (Routing) supported
  o Proc tool API enabled
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface:
eth0 eth1
Network Fast Processing Disabled
mvFpRuleDb (809e0000): 16384 entries, 65536 bytes
Integrated Sata device found
mvSataInitAdapter : regVal changed(0x00000010)
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] **
scsi 0:0:0:0: Direct-Access     SAMSUNG  HD502HI          1AG0 PQ: 0 ANSI: 5
Linux IAL (ERROR) [0 0 0]: set device max sectors to 2048
scsi 1:0:0:0: Direct-Access     SAMSUNG  HD502HI          1AG0 PQ: 0 ANSI: 5


If the forum is interested - I can post a little howto on how I got access...


Last edited by brighton36 on Thu Feb 04, 2010 5:03 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Jan 23, 2010 2:53 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
brighton36 wrote:
If the forum is interested - I can post a little howto on how I got access...

Yes, please! :up:


Top
 Profile  
 
PostPosted: Sat Jan 23, 2010 7:30 am 
Offline
Moderator

Joined: Fri Jun 29, 2007 10:39 am
Posts: 2538
Maybe this belongs to the forum "TS-XL"? There are already some guys waiting for
someone to tell them how to get telnet access to the box.

_________________
Please do not use private mail (PN/M) to ask questions. Use the proper forum instead. (me)

If there is no verified backup of a dataset, the dataset, by definition, is unimportant. (c't 2012)

RAID (no matter which level) never ever substitutes a backup. (me)


Top
 Profile  
 
PostPosted: Wed Feb 03, 2010 10:00 am 
Offline
Regular Member

Joined: Fri Sep 28, 2007 8:49 am
Posts: 294
What speed processor? Its a Kirkwood and I guess its 800mhz but BogoMIPs says 950MHz and it says 400Mhz for the LS1 which is a 400MHz CPU.

Have you tried ACP_Commander to open it?

_________________
Geeky blog at http://www.methanoid.blogspot.com :D


Top
 Profile  
 
PostPosted: Thu Feb 04, 2010 2:53 am 
Offline
Newbie
User avatar

Joined: Thu Jan 14, 2010 12:08 am
Posts: 5
I just back around to checking this thread - sorry for taking a while. I don't get much in the 'cleverness' department, but this is pretty much all there was to getting root access:

TS-WX1.0TL/R1 ? SSH-enable Howto

1. Connected both of the Terrastation's SATA drives to my desktop computer (Not to boot off of! Just as secondary drives...)

2. Once I booted into my Karmic Ubuntu, I ran a:
Quote:
cderose@cderose-desktop:~$ sudo /sbin/mdadm --assemble --scan /dev/sdb2 /dev/sdc2


3. Then I mounted the assembled array:
Code:
cderose@cderose-desktop:~$ sudo mount /dev/md1 /mnt/md1/


2. I replaced the root's /mnt/md1/etc/shadow password with my own hash. I used 'password' (w/o the quotes), which ended up making the root line look like:
Code:
root:$1$fBm0xdXO$t0qWkV9H0jg4ZZZbxxe831:14644:0:99999:7:::


3. Add 'PermitRootLogin yes' to /mnt/md1/etc/sshd_config
4. Add 'UsePrivilegeSeparation no' to /mnt/md1/etc/sshd_config
5. Commented out "auth requisite pam_securetty.so" in /mnt/md1/etc/pam.d/login
6. Comment out "auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed" in /mnt/md1/etc/pam.d/sshd

And that was basically it. Put the drives back into the terrasation, and you're good to login.

I tried the ACP Commander without any luck. Someone with a bit more time than I could probably grep /www for 'system' or 'exec' and see if they can cleaverly inject some commands into the web-frontend that will run all the above steps. I'm pretty sure that all the administration scripts run as root ....

Here's a little bonus that ended up being super-easy:

Optware Install mini-Howto!
Once you've logged into your Terrastation through SSH, perform the following commands:
1. mkdir -p /mnt/array1/tmp
2. cd /mnt/array1/tmp
3. wget http://ipkg.nslu2-linux.org/feeds/optwa ... -7_arm.xsh
4. sh ./lspro-bootstrap_1.2-7_arm.xsh
5. ipkg update

Next up - I need to figure out how to compile and add a kernel module or two to this thing . That seems like a *much* harder problem... Any suggestions?


Top
 Profile  
 
PostPosted: Thu Feb 04, 2010 3:15 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
brighton36 wrote:
Next up - I need to figure out how to compile and add a kernel module or two to this thing . That seems like a *much* harder problem... Any suggestions?


Check if there are Buffalo sources available, if so it will give you two choices:
1. Compile needed modules using stock kernel config and sources as they are;
2. Add support for the device to the mainline kernel:
http://www.nas-central.org/orion-nas-customisation

Also, how do you think about adding this nice HOWTO to the wiki?


Top
 Profile  
 
PostPosted: Thu Feb 04, 2010 5:02 am 
Offline
Newbie
User avatar

Joined: Thu Jan 14, 2010 12:08 am
Posts: 5
Much harder problem ? ... Not so hard!

Here we go for another howto-installment:

HOWTO compile kernel modules for your stock-firmware TS-WX1.0TL on Karmic Ubuntu

1. Download the following toolchain:
http://downloads.buffalo.nas-central.or ... nu.tar.bz2

2. Download the kernel source from buffalo:
http://buffalo.jp/php/los.php?to=gpl/st ... .2.tar.bz2

(I put both of them in ~/src/buffalo-nas myself)

3. Extract!
Code:
tar -xjvf ../linux-2.6.22.18_mv78lsp2.0.2.tar.bz2 && tar -xjvf arm-2007q1-21-arm-none-eabi-i686-pc-linux-gnu.tar.bz2


4. in your "linux-2.6.22.18_mv78lsp2.0.2" directory, run a :
Code:
wget http://linkstationwiki.svn.sourceforge.net/viewvc/linkstationwiki/kernel_arm9/trunk/configs/linux-2.6.22-config?revision=282 -O .config


5. Now Edit the "linux-2.6.22.18_mv78lsp2.0.2/Makefile". Set CROSS_COMPILE to look something like:
Code:
CROSS_COMPILE ?= /home/cderose/src/buffalo-nas/arm-2007q1/bin/arm-none-eabi-


6. run a :
Code:
make menuconfig

and choose your modules...

7. Now run:
Code:
make dep && make modules


Whoo hoo! scp those freshly compiled modules over to your terastation and insmod 'em . You're done! As for our suggestion @LaitrKeiows - yea I'm done for tonite, but I'll put these on the wiki. I already added the http://buffalo.nas-central.org/wiki/TS-WX1.0TL/R1 page , might as well clean it up and add some more...

Does anyone know for sure if this is Orion or Kirkwood based? I see references to "Marvell Orion EHCI" in the dmesg - and no mention of Kirkwood. But - I see a thread on this model in the Kirkwood forum as well...


Top
 Profile  
 
PostPosted: Thu Feb 04, 2010 5:08 am 
Offline
Newbie
User avatar

Joined: Thu Jan 14, 2010 12:08 am
Posts: 5
@kenatonline :
Quote:
Maybe this belongs to the forum "TS-XL"? There are already some guys waiting for
someone to tell them how to get telnet access to the box.


FWIW, this unit I'm working appears to be a WXL - and I think its a relatively distinct model:
Code:
root@TS-WXLBEF:~# cat /proc/buffalo/firmware
SERIES=TeraStation
PRODUCTNAME=TS-WXL(tsukuba)
VERSION=0.16
SUBVERSION=FLASH 0.00
PRODUCTID=0x0000200C
BUILDDATE=2009/09/30 21:36:47
BOOTVER=2.06

But it wouldn't surprise me if these instructions work verbatim for TS-XL/R5, TS-WXL/R1, TS-WXL/1D, & TS-RXL/R5 series.


Top
 Profile  
 
PostPosted: Thu Feb 04, 2010 9:15 am 
Offline
Newbie

Joined: Thu Aug 20, 2009 9:39 pm
Posts: 25
I you can't get root access, it's maybe because you have firmware 1.10.
Shutdown the Nas, remove the disks, let it boot in EM mode and get it's IP through
the DHCP server.


Code:
 acp_commander -t ... -pw ... -ip ... -o


then replug the disk (HOT PLUG)
and the enter the following:

Code:
echo "- - -" > /sys/scsi_host/host0/scan
echo "- - -" > /sys/scsi_host/host1/scan
mdadm -A /dev/md0 /dev/sda1 /dev/sdb1
and so on for the rest of the partitions.

finally:

mount /dev/md0 /mnt/array1


And voila !


For those who want to install a debian on it:
http://www.kolios.dk/2009/09/07/howto-i ... ion-duo-2/


If you want to compile the stock kernel, don't forget to activate MV78XX0, then the "BUFFALO_ENV".
The code is so dirty that some options depend on anothers but it is not mentionned in the menuconfig.




Enjoy


Top
 Profile  
 
PostPosted: Thu Feb 04, 2010 9:18 am 
Offline
Newbie

Joined: Thu Aug 20, 2009 9:39 pm
Posts: 25
Oh yeah, and I forgot to mention, the CPU is MV781X0 type.

I can see in the vanilla kernel that the plat-mv78XX0 exists but is different from
the Kirkwood or Orion plateform. Any specialist who could point me to some
references to add the support of the WXL to the kernel ?

I already have the MPP lines and soon, butI am a bit confused with the MV78XX0 plateform thing.


ideas?


Top
 Profile  
 
PostPosted: Fri Feb 05, 2010 12:04 pm 
Offline
Newbie

Joined: Thu Aug 20, 2009 9:39 pm
Posts: 25
Great news guys,


I fainlly got a kernel to boot on the machine.

I have re-written the mpp and patched a bit here and there to get it working.

It's a Vanilla kernel 2.6.32 :-)


Code:
Uncompressing Linux................................................................................................................................. done.
Linux version 2.6.32 (root@debian) (gcc version 4.2.0 20070413 (prerelease) (CodeSourcery Sourcery G++ Lite 2007q1-21)) #6 PREEMPT Thu Feb 4 12:02:43 EST0
CPU: Feroceon [41159260] revision 0 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Buffalo Nas WXL
Ignoring unrecognised tag 0x41000403
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00900040,15M panic=5 BOOTVER=2.06
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)



The code is at an early stage but ... it's a start.


Top
 Profile  
 
PostPosted: Fri Feb 05, 2010 7:15 pm 
Offline
Newbie

Joined: Thu Aug 20, 2009 9:39 pm
Posts: 25
I created a new thread for that kernel,

you can view it here. I think it should work for the TS3 also.



http://forum.buffalo.nas-central.org/viewtopic.php?f=70&t=21485&start=0


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Protected by Anti-Spam ACP
Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group