Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sun May 27, 2018 9:06 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 57 posts ]  Go to page Previous 1 2 3 4 Next
Author Message
PostPosted: Sun Jun 13, 2010 3:27 am 
Offline
Regular Member
User avatar

Joined: Fri Jul 25, 2008 3:23 pm
Posts: 160
Location: Kobe, Japan
ash87 wrote:
One final thing - file read speed is relatively slow for me

Check if you have write caching disabled. hdparm can do that.


Top
   
PostPosted: Sun Jun 13, 2010 4:08 am 
Offline
Newbie

Joined: Mon Aug 25, 2008 6:50 am
Posts: 42
Thanks a lot for the kernel and the patch :up:


Top
   
PostPosted: Sun Jun 13, 2010 7:48 pm 
Offline
Newbie

Joined: Fri Jan 23, 2009 11:36 pm
Posts: 25
any chance for a build with XFS ?

Quote:
sda: sda1 sda2 sda4 < sda5 sda6 >
sd 0:0:0:0: [sda] Attached SCSI disk
ata2: SATA link down (SStatus 0 SControl 300)
List of all partitions:
1f00 256 mtdblock0 (driver?)
0800 1465137527 sda driver: sd
0801 214812 sda1
0802 566406 sda2
0804 1 sda4
0805 222780 sda5
0806 1464131938 sda6
No filesystem could mount root, tried: ext3 ext2 cramfs vfat msdos ntfs fuseblk jfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,2)
Rebooting in 5 seconds..Orion1 CPU = Low



Top
   
PostPosted: Wed Jun 16, 2010 1:50 pm 
Offline
Newbie

Joined: Mon Aug 25, 2008 6:50 am
Posts: 42
You could try to compile the modules yoursself or send me a PN and I will send it to you.

@ash87: Try to send your patch to the kernel maintainers if it is working fine - so the next kernel may include your patch already :up:


Top
   
PostPosted: Wed Jun 16, 2010 4:25 pm 
Offline
Newbie

Joined: Fri Jan 23, 2009 11:36 pm
Posts: 25
A. i don't have a build env. set up.

B. I'm not sure a module will be enough, as this happens when the lspro boots (are modules even loaded at that point ?)

Checking DATA BUS
Checking ADDRESS BUS

> Checking hardware info ...
=== CPU-ID : 0x00005182 ===
=== Strap status : 0x01000030 ===
=== H/W boardId : 0x43 ===
=== boardId : 0x1e ===
=== micon_support: off ===
> OK.
=== BUFFALO LS-CL/CHL U-Boot. ===
** LOADER **
** BUFFALO BOARD: BUFFALO_BOARD_LS_CL LE (CFG_ENV_ADDR=fffff000)


U-Boot 1.1.1 (Sep 16 2008 - 14:54:32) Marvell version: 1.12.1 - TINY
Buffalo Version: 1.22-1.00

DRAM CS[0] base 0x00000000 size 128MB
DRAM Total size 128MB
[256kB@fffc0000] Flash: 256 kB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done

Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 400Mhz
--------------------------- init_board_info(0)
Orion 1 streaming disabled
SysClock = 200Mhz , TClock = 166Mhz


USB 0: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 33000000
Net: egiga0 [PRIME]
Using 88E1118 phy
buffalo_change_power_status > Read 0x3a
buffalo_IsStopAtUbootStatus > MagicKey=0x3a
buffalo_change_power_status > Read 0x3a
buffalo_change_power_status > Read 0x3a
buffalo_change_power_status > Writing 0x5c

Please Press HDD power button to continue ...
buffalo_change_power_status > Read 0x5c
buffalo_change_power_status > Writing 0x3a

Marvell Serial ATA Adapter
Integrated Sata device found
Device 0: OK
Model: ST31500541AS Firm: CC32 Ser#: 6XW03C37
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1430798.3 MB = 1397.2 GB (-1364692241 x 512)

Using device ide0, partition 1

Loading from block device ide device 0, partition 1: Name: hda1
Type: U-Boot File:/uImage.buffalo

2490440 bytes read
Image Name: linux
Created: 2010-06-11 13:59:00 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2490376 Bytes = 2.4 MB
Load Address: 00008000
Entry Point: 00008000
Using device ide0, partition 1

Loading from block device ide device 0, partition 1: Name: hda1
Type: U-Boot File:/initrd.buffalo

5403188 bytes read
Image Name: initrd
Created: 2009-01-13 19:45:39 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5403124 Bytes = 5.2 MB
Load Address: 00000000
Entry Point: 00000000
Using device ide1, partition 1
** Bad partition 1 **
serch_boot_drv (194)>No kernel_file 1
Using device ide1, partition 1
** Bad partition 1 **
serch_boot_drv (249)>No init_file 1
Booting from Device 0
hit any key to switch tftp boot.
Hit any key to stop autoboot: 0
Hit any key to stop autoboot: 0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
Device 0: OK
Model: ST31500541AS Firm: CC32 Ser#: 6XW03C37
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1430798.3 MB = 1397.2 GB (-1364692241 x 512)

Using device ide0, partition 1

Loading from block device ide device 0, partition 1: Name: hda1
Type: U-Boot File:/uImage.buffalo

2490440 bytes read
Using device ide1, partition 1
** Bad partition 1 **
## Booting image at 00100000 ...
Image Name: linux
Created: 2010-06-11 13:59:00 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2490376 Bytes = 2.4 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00800000 ...
Image Name: initrd
Created: 2009-01-13 19:45:39 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5403124 Bytes = 5.2 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK

Starting kernel ...

arg:console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 func=0 BOOTVER=1.22
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.34 (ash@ash-laptop) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-68) ) #2 PREEMPT Fri Jun 11 14:58:31 BST 2010
CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a0053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Buffalo Linkstation LiveV3 (LS-CHL)
Clearing invalid memory bank 0KB@0xffffffff
Clearing invalid memory bank 0KB@0xffffffff
Clearing invalid memory bank 0KB@0xffffffff
Ignoring unrecognised tag 0x00000000
Ignoring unrecognised tag 0x00000000
Ignoring unrecognised tag 0x00000000
Ignoring unrecognised tag 0x41000403
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 func=0 BOOTVER=1.22
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 124700k/124700k available, 6372k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
vmalloc : 0xc8800000 - 0xfd800000 ( 848 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc0026000 ( 120 kB)
.text : 0xc0026000 - 0xc0491000 (4524 kB)
.data : 0xc04dc000 - 0xc0501ae0 ( 151 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:64
Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Orion ID: MV88F5182-A2. TCLK=166666667.
lschl_init: finished
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource orion_clocksource
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
NTFS driver 2.1.29 [Flags: R/W].
JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
fuse init (API version 7.13)
JFS: nTxBlock = 974, nTxLock = 7793
msgmni has been set to 243
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 3) is a 16550A
console [ttyS0] enabled
loop: module loaded
sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 29
ata2: SATA max UDMA/133 irq 29
physmap platform flash device: 00040000 at f4000000
Found: SST 39LF020
physmap-flash.0: Found 1 x8 devices at 0x0 in 8-bit bank
number of JEDEC chips: 1
RedBoot partition parsing not available
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:1d:73:a4:66:22
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 17, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
orion-ehci orion-ehci.1: Marvell Orion EHCI
orion-ehci orion-ehci.1: new USB bus registered, assigned bus number 2
orion-ehci orion-ehci.1: irq 12, io mem 0xf10a0000
orion-ehci orion-ehci.1: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
input: gpio-keys as /class/input/input0
i2c /dev entries driver
rtc-rs5c372 0-0032: clock needs to be set
rtc-rs5c372 0-0032: rs5c372a found, 24hr, driver version 0.6
rtc-rs5c372 0-0032: rtc core: registered rtc-rs5c372 as rtc0
cpuidle: using governor ladder
cpuidle: using governor menu
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
VFP support v0.3: not present
rtc-rs5c372 0-0032: hctosys: unable to read the hardware clock
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: HPA detected: current 2930275055, native 2930277168
ata1.00: ATA-8: ST31500541AS, CC32, max UDMA/133
ata1.00: 2930275055 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access ATA ST31500541AS CC32 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 2930275055 512-byte logical blocks: (1.50 TB/1.36 TiB)
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda4 < sda5 sda6 >
sd 0:0:0:0: [sda] Attached SCSI disk
ata2: SATA link down (SStatus 0 SControl 300)
List of all partitions:
1f00 256 mtdblock0 (driver?)
0800 1465137527 sda driver: sd
0801 214812 sda1
0802 566406 sda2
0804 1 sda4
0805 222780 sda5
0806 1464131938 sda6
No filesystem could mount root, tried: ext3 ext2 cramfs vfat msdos ntfs fuseblk jfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,2)
Rebooting in 5 seconds..Orion1 CPU = Low


Top
   
PostPosted: Wed Jun 16, 2010 5:53 pm 
Offline
Newbie

Joined: Sun Mar 28, 2010 6:09 pm
Posts: 17
ido: you're right, a module isn't enough, but unless you reformatted it, your root partition should be ext2? I changed mine to ext3 and changed my data partition to jfs as xfs kept corrupting on me. It would be good to get a build env. set up, I think, so you can play with kernel options to suit yourself. Saying that, I'll post a binary with xfs at some point, not that I'd recommend it.

*edit* here, obviously, rename the file to 'uImage.buffalo':

http://rapidshare.com/files/399723295/u ... fs.buffalo

balou1974: I am going to submit it when I when I've solved my slow file transfer speed issue. LaitrKelows' hint didn't help, unfortunately. If you're using it and are getting decent transfer speeds then it's not a kernel issue and I've just done something wrong elsewhere... if you could let me know that would be ace :D


Top
   
PostPosted: Thu Jun 17, 2010 3:43 pm 
Offline
Newbie

Joined: Fri Jan 23, 2009 11:36 pm
Posts: 25
wait, this kernel build kept corrupting your xfs partition ? cus i'm not into trashing my 1.5 gb drive.

# 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/sda1 on /boot type ext3 (rw,data=ordered)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/disk1_6 on /mnt/disk1 type xfs (rw,noatime,usrquota,grpquota)
/dev/disk1_6 on /opt type xfs (rw,noatime,usrquota,grpquota)


edit:
A. reads very slow, around 2mb/s
B. I'll check stability too
C. which initrd.buffalo / hddrootfs.buffalo.updated.done are you using ? (or are you using debian)

edit2:
seems i had daemonwatch running /etc/init.d/kernelmon.sh which was polling a non-existent /proc/buffalo/kernevnt (because of the different kernel).

I killed it, and now reads are around 4mb/s over smb (is that considered an ok speed ?)


Top
   
PostPosted: Wed Jun 23, 2010 4:56 am 
Offline
Newbie

Joined: Sat Oct 24, 2009 1:46 pm
Posts: 48
Hi ash, ido...

Thanks for sharings..... :biglol: :biglol: :biglol:

May I ask ... this kernel is used for CHLv1? Not CHLv2? I also tried to rebuild the kernel from 2.6.34 kernel.org and I got the uImage with different size in comparison with ash87's one (I used "make uImage" so I don't need the devio ??? Native compile with XHL 2.6.31)

Second question...

Have any chance we can compile the kernel for CHLv2/XHL? I tried and got the CHLv2/XHL reboots endlessly with 2.6.34 (from kernel.org).

I use the patch from here:

http://translate.googleusercontent.com/ ... d6ZLTweWeg

(Except for the last line regarding mach_type, I have to patch manually).

What I did...

1. Get kernel from kernel.org
2. make kirkwood_defconfig
3. make menuconfig then make some changes:

Code:
#"General Setup" → "Initial RAM filesytem .." check
# System Type→Marvell Kirkwood Implementations」→Buffalo LS--XHL Series."System Type" → "Marvell Kirkwood Implementations" → "Buffalo LS - XHL Series." Checks
# File systems」→XFS filesystem support"File systems" → "XFS filesystem support" check
# 「File systems」→「Partition Types」→「Advanced partition selection」「EFI GUID Partition support
# File systems" → "Partition Types" → "Advanced partition selection" of the class is checked + "EFI GUID Partition support" check


Moreover, since I'm noob to this, may I ask how I can force to rebuild all modules in new kernel, everytime I perform this

Code:
make INSTALL_MOD_PATH=/to/my/new/location modules_install


It just rebuilds the required modules and install them (the modules that don't exist in current system @ /lib/modules, I'm using native compile so it just compiled some modules, not all). How can I re-enforce to have them all re-built and install to /to/my/new/location so I can implement into another system?

Sorry for many questions as well as my English, English is not my native languae.... :down:


Top
   
PostPosted: Wed Jun 23, 2010 3:36 pm 
Offline
Newbie

Joined: Fri Jan 23, 2009 11:36 pm
Posts: 25
xhl is a different platform, not with an orion chip. try to ask here: viewforum.php?f=73


Top
   
PostPosted: Thu Jun 24, 2010 11:09 am 
Offline
Newbie

Joined: Sat Oct 24, 2009 1:46 pm
Posts: 48
Hi ido, thanks for your replies, one more question, see that you got Serial access to CL/CHL with UBoot booting? May I ask how you did that? I can not find any article about this? Could you share me how to got serial access on CL/CHL? I tried the method from here but it didn't work....

http://translate.googleusercontent.com/ ... SpICcoTAPg

Just tried to compile the kernel for CHL with ash87's patch, it works !!! :biglol:


Top
   
PostPosted: Thu Jun 24, 2010 5:08 pm 
Offline
Newbie

Joined: Mon Aug 25, 2008 6:50 am
Posts: 42
I am trying to write a little daemon, but I dont't know how to check the switches normally it should be like /sys/class/input/input0 or something like that but I tried much and found no solution. Any ideas????


Top
   
PostPosted: Thu Jun 24, 2010 8:05 pm 
Offline
Newbie

Joined: Sun Mar 28, 2010 6:09 pm
Posts: 17
@ido, 4MB/s is what I'm getting now too, although with stock firmware etc I was getting tens of MB/s, on a gigabit ethernet, so something is still up.

@balou, I started a little daemon thingy for this - the basics work but it was sort of thrown together, so you know, feel free to make it less rubbish :)

Also, this was a little while ago so I can't remember what state I left the SVN in. My priority right now, between living, is putting the drive to sleep to save power, life and heat!

https://sourceforge.net/projects/inputmond/


Top
   
PostPosted: Thu Jul 22, 2010 5:13 pm 
Offline
Newbie

Joined: Mon Aug 25, 2008 6:50 am
Posts: 42
Well, I wrote a very small daemon which is checking power- and reset-button for my dns323 already. Maybe it would be quite easy to prepare it for ls-chl? I just wonder how to check the needed gpio's for the daemon....


Top
   
PostPosted: Sat Sep 11, 2010 2:36 pm 
Offline
Newbie

Joined: Sun Jan 11, 2009 10:52 pm
Posts: 14
Just to point you all at a utility called blstools:

https://sourceforge.net/projects/blstools/

Tools for a plain Debian installation on Buffalo's LS-CHL. Once you've installed Debian Lenny on Buffalo's LS-CHL you can use this tools to control some hardware-specific capabilities of LS-CHL such as the unit leds, fans, switch-on and switch-off.

I have this running on my LS-CHL (V1/V3 128meg Ram) running a bootstrapped install of Debian Lenny. I thought it might be of interest.

I stumbled on this thread as I'm looking to upgrade my kernel from the stock Lenny armel 2.6.22 that I have to get support for EXT4 on my main data partition.

I'm pretty new to kernel compilation, so I'll be having a good read about it first.

If anyone is interested in a how I bootstrapped my Debian install this thread covers it:

viewtopic.php?f=39&t=14696

What are you guys running on your LS-CHLs.

_________________
Linkstation Live V3 AKA LS-CHL.v1 - running a bootstrapped Debian Lenny.


Top
   
PostPosted: Sun Sep 12, 2010 2:16 am 
Offline
Newbie

Joined: Mon Aug 25, 2008 6:50 am
Posts: 42
Currently I am running Debian Lenny with Kernel 2.6.36-rc3-git2 with the postet Patch. I wanted to write an own Daemon but if this tool works fine, why write a new tool?

regards Balou

Ps. you can find my selfmade Kernel here but you need to register to download http://linkstation.agrimm.de/
if you like send me a pm

The tool will only work with the original buffalo kernel! The patched Debian-kernel uses a different interface to access the gpio's maybe you contact the maintainer of the tool and ask him to patch his tool to work with the Debian-Kernel?! I can give
a little information where to find the needed things?!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 57 posts ]  Go to page Previous 1 2 3 4 Next

All times are UTC+01:00


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:
Powered by phpBB® Forum Software © phpBB Limited