Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Mon Oct 20, 2014 10:41 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 743 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 50  Next
Author Message
PostPosted: Fri Mar 14, 2008 8:30 am 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
Will be posted soon. I have been very busy, sorry.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
PostPosted: Fri Mar 14, 2008 10:03 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
lb_worm wrote:
Will be posted soon. I have been very busy, sorry.


as always :D .....it would be strange if you had too much free time ;)

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
 Profile  
 
PostPosted: Fri Mar 14, 2008 10:19 am 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
touchce. I expect that you do not have not much spare time either especially with your college work too.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
PostPosted: Tue Mar 18, 2008 6:17 pm 
Offline
Regular Member

Joined: Sun Nov 25, 2007 11:32 am
Posts: 109
One suggestion.
when packing this up it could be really good to have a version of initrd that set up the raid stuff on TS boxe's so we can skip all the buffalo stuff. This would proberly workj for the new duo boxes as well.


Top
 Profile  
 
PostPosted: Wed Mar 19, 2008 6:21 pm 
Offline
Site Admin
User avatar

Joined: Tue Jul 12, 2005 11:26 am
Posts: 3701
Location: JAPAN
I will get around to uploading this ARMel Debian distro. I have been busy on micro_evtd and work and lots of other things. It will happen soon.

_________________
LS used as PVR and streaming source


Top
 Profile  
 
PostPosted: Fri Mar 28, 2008 11:28 am 
Offline
Newbie
User avatar

Joined: Sun Oct 07, 2007 11:29 pm
Posts: 27
Location: Germany
Just to get this straight for me:
The next goal is to have a Freelink release which is a Debian Lenny system incl. the Lenny kernel.
With additional packages for the Buffalo-specific stuff (modules, etc.).

Is my understanding correct?

Thanks
Maddes

_________________
http://www.maddes.net/
Linkstation Live V2 (HS-DHGL)(LSL2) with Debian Lenny incl. 2.6.26-2 kernel.


Top
 Profile  
 
PostPosted: Fri Mar 28, 2008 5:35 pm 
Offline
Newbie

Joined: Wed Feb 27, 2008 12:42 am
Posts: 66
Quote:
ARMel Debian distro

I finally found a nice dell precision 340 with 1Gig of RAM. Finish installing Ubuntu on it (what a breeze). maybe I can learn how to compile from tgz. Where can I get the source for this Debian Little Indian? Maybe I can help produce the firmware and help test for bugs. I was confused with the flavors and I don't know what "kernel" to chose . I know linux is linux but in order for this new firmware to be mainline (popular/standard) - it has to be good, fast and featureful. Unlike the very limited stock firmware.

My ultimate goal was to learn Debian on a low powered high performance NAS (500Mhz) and at the same time Host a website back by a database. And maybe a second NAS for mail gateway that collect logs in front of an Exch07.

______________________
This is a cisco router running on 270MHz CPU and still on production - VERY VERY expensive.
R7000 CPU at 270Mhz, Implementation 39, Rev 2.1, 256KB L2, 2048KB L3 Cache
uptime is 3 years, 26 weeks, 1 day, 23 hours, 26 minutes
uptime since becoming master is 3 years, 26 weeks, 1 day, 23 hours, 26 minutes


Top
 Profile  
 
PostPosted: Thu May 01, 2008 10:34 am 
Offline
Regular Member

Joined: Sun Nov 25, 2007 11:32 am
Posts: 109
Does anyone by chance have an armel/lenny based initrd image file? - or can tell my how to make one - thx
(I really would like to skip my old ugly hacked stock buffalo one...)


Top
 Profile  
 
PostPosted: Thu May 08, 2008 1:00 pm 
Offline
Regular Member

Joined: Tue Nov 27, 2007 3:19 pm
Posts: 217
Location: Dresden, Germany
Any news?

_________________
LS Pro v1:
  • Freelink (Debian etch), kernel: 2.6.16.57-lsp_eabi-dh_v3, gigabit network (9k jumbo frames)
  • running: mt-daapd (aka firefly), smb, amule, vsftpd, mysql, rsnapshot, micro_evtd testing ;)
  • upcoming: ampache (+ coherence), aria2, slimrat, apache, streamripper (record what my soundbridge is playing)...


Top
 Profile  
 
PostPosted: Thu May 08, 2008 6:39 pm 
Offline
Newbie

Joined: Wed Feb 27, 2008 12:42 am
Posts: 66
What is causing the delay? :cry:


Top
 Profile  
 
PostPosted: Thu May 08, 2008 7:00 pm 
Offline
Newbie

Joined: Sun Jul 29, 2007 8:53 pm
Posts: 74
Location: Victoria, BC, Canada
I believe the wait is for Debian to release a kernel package in Lenny that boots on these boxes, and package lb_worm's micro_evtd in Debian. Then we can install a pure Debian image on our Linkstations - kernel and all - with no hackery needed.

_________________
Saving the world, one kilobyte at a time.


Top
 Profile  
 
PostPosted: Fri May 09, 2008 9:17 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7702
Location: Austria, Vienna
thats exactly what i think as well.

Additionally to that lb_worm makes good progress with micro_evtd and custom initrds.....which then feature the standby feature with WOL functionallity. looks like as if the fixed timed wakeup again lately:
viewtopic.php?f=7&t=4490&start=225

if he now enables avr_evtd style expressions for standby/wakeup then we have a massive increase in functionality.

as soon as it reaches more or less final state it will be added in Freelink/foonas....it might be a reason to add it in jtymod as well as long as there is no foonas release.

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
 Profile  
 
PostPosted: Sun Jun 01, 2008 8:57 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Image
Lenny-armel*-Debian rootfs image for use/testing available... features:
=====================================================================
    enough Debian to get you up and running, with ssh access and scp for easy file tranfer in & out of the box
    2.6.29.1 kernel w/ a wide variety of over 500 modules ( audio, vid4linux, iptables, VPN,etc.) - kernel and module upgrade available-ONLY for previous installations like 0.3.2b - see below
    built-in kernel support for ext2/3/4
    micro_evtd (fan & temperature control, LED's, buttons)
    u-boot utils (fw_{print|set}env)
    a custom EM (foonas-em) with a full set of utilities, and the "parted" partition editor
    an easy-to-use bootswitcher (fooboot) that allows one to easily switch between rootfs-hdd mode, EM-from-hdd mode, and EM-tftp mode

This is the outcome of a few weeks of off-and-on work of my own, with a debt of gratitude to the following individuals, without these folks I either couldn't have or wouldn't have done this:
- tarpman : help w/ this nice debootstrap-howto a micro_evtd problem, & u-boot utils
- ramuk: - ideas,help & suggestions, bugs squashed! - thanks ramuk!
- timtimred & bbradley : made the kernel & modules available to us. Also foonas-em was used to chroot into the stage 1 image.
- lb_worm: w/ micro_evtd to control the fan, temp
- goauld - posted his rootfs which got us going

Downloads:

====================================================================
Images:


Lenny-armel image 0.3.2 - Newest image 4-7-09 (75MB)
Lenny-armel image 0.3.1b old image - July 2008
Lenny-armel image 0.3 - old image - tested late June


Kernel/Module Packages-only needed if you are upgrading kernel+modules:

Note : Don't forget to run depmod if changing modules.
Newest w/ updated features - 500+ modules + some things not included in Debian's package: Newest 2.6.29.1 kernel & 600+ modules -ext4 & btrfs support, iptables, OpenVPN, sound, dvb, etc. - partially tested
Current Package Info :
For KuroPro (these are untested but should be OK to replace the LSPro Kernel/modules that come in the standard tarball) - with the same modules/support that the LSPro has:
kernel_and_modules_for_debian-armel-kuropro-2.6.25.6.tar.gz


Installation Instructions for LSPro/Live :Kuro is the same, but requires separate kernel package shown above:
===================================================================================

0. Do your reading and research before attempting this. Read through to the bottom of this post - if you are not familiar with things mentioned here, Google the terms or phrase before posting a new question. No warranty is either expressed nor implied. It works great for me, but hey... If you depart from this guide or if you have bad luck, you will need to be able to figure some, much or all of the fixes out yourself. Look before you leap, make sure you can see the other side. Read the the directions second time.

If you choose to install, follow the directions to the letter - as closely as possible. Nearly every difficulty users have experienced has come from them departing from what the directions show. If you want success, follow the directions to the letter ... copy and paste the commands and take your time to read the details. It should pay off. The directions have been walked through about 10 times now, and they always lead to a successful install - if followed correctly. ;)


Before powering up your LSPro/KuroPro for installing this image, disconnect any USB storage devices - USB hdd, flash drives, etc. Also, if you have modded your box to add a 2nd SATA port, make sure only the drive you want to install on is attached.

-----------------------------
1. Get either serial or netconsole access with UBoot. Make sure you are familiar with how to control the boot process w/ U-Boot. Make sure you understand how to read, set, control and use U-Boot env vars.
-----------------------------
2. Start by tftp-booting this uImage - a special version of foonas-EM built for this setup. Once it plays its "welcome chime", log into foonas-em using telnet (you may have to scan your network for the correct IP):
Code:
 davygravy@bitbaker-i686:~$telnet 192.168.11.104
 lspro login: root
 Password: hydr0g3n

-----------------------------
3. Then get to work setting up your hard drive space. Use fdisk (fdisk session transcript-quickstart guide) to set up at least these three partitions shown ... sizes are approximate/flexible within reason. These three partitions agree w/ the /etc/fstab in the image you will install - they are the essential ones.
Code:
partition#       type        size
sda1              ext2       1GB
sda2              ext3       10GB
sda5              swap       512MB

Further partitions can be made to your liking - perhaps as shown. Do whatever you like w/ partition #3. We suggest the following for speed and some flexibility. Note that jfs cannot shrink, only grow. That is the reason to have a extra wiggle room on sda6. Note: You can now use ext4 partitions. Unfortunately, these are not yet supported in the EM mode, so you would have to run [b]mkfs.ext4 __after__ rebooting in regular hddrootfs mode.[/b]
Code:
sda6              ext3       <5-10GB>
sda7              jfs        <remaining_space>


-----------------------------

4. Once you are done w/ making partitions, create the filesystems on them. We will assume you created exactly the partition above. Do the following:
Code:
 mkfs.ext2 /dev/sda1
 mkfs.ext3 /dev/sda2
 mkswap /dev/sda5
 mkfs.ext3 /dev/sda6
 mkfs.jfs /dev/sda7


-----------------------------

5. Now mount the 1st two partitions, download & untar the image on sda2, and copy the kernels to sda1:
Code:
cd /
 mkdir sda1
 mkdir sda2
 mount -t ext2 /dev/sda1 /sda1
 mount -t ext3 /dev/sda2 /sda2
 cd /sda2
 wget http://buffalo.nas-central.org/download/Users/davy_gravy/armel_images/armel-lenny-for-lspro-dgv0.3.2.tgz
tar zxvf armel-lenny-for-lspro-dgv0.3.2.tgz
 cp /sda2/boot/* /sda1/


If you do just what has been shown, you will get this in /sda1 and /sda2 (sizes approximate) :

Code:
foonas-em$ ls -ln /sda1
-rw-r--r--    1 0        0           54874 Aug  2 05:43 config-2.6.29.1
-rw-r--r--    1 0        0         2322728 Aug  2 05:43 initrd.buffalo
-rw-r--r--    1 0        0              29 Aug  2 05:43 rootfs_ok
-rw-r--r--    1 0        0         2288708 Aug  2 05:43 uImage
-rw-r--r--    1 0        0         2288708 Aug  2 05:43 uImage-2.6.29.1
-rw-r--r--    1 0        0         5407280 Aug  2 05:43 uImage_em


Code:
foonas-em$ ls -ln /sda2
-rw-r--r--    1 0        0        80504133 Aug  2 05:41 armel-lenny-for-lspro-dgv0.3.2.tgz
drwxr-xr-x    2 0        0            4096 Aug  2 05:42 bin
drwxr-xr-x    2 0        0            4096 Aug  2 05:42 boot
drwxr-xr-x    4 0        0            4096 Aug  2 05:42 dev
drwxr-xr-x   43 0        0            4096 Aug  2 05:42 etc
drwxr-xr-x    2 0        0            4096 Mar 11 11:20 home
drwxr-xr-x   11 0        0            4096 Aug  2 05:42 lib
drwxr-xr-x    2 0        0            4096 May 30 03:02 media
drwxr-xr-x    3 0        0            4096 Mar 11 11:20 mnt
drwxr-xr-x    2 0        0            4096 May 30 03:02 opt
drwxr-xr-x    2 0        0            4096 Mar 11 11:20 proc
drwxr-xr-x    3 0        0            4096 Aug  2 05:42 root
drwxr-xr-x    2 0        0            4096 Aug  2 05:42 sbin
drwxr-xr-x    2 0        0            4096 May 30 03:02 srv
drwxr-xr-x    2 0        0            4096 Apr 12 09:06 sys
drwxrwxrwt    5 0        0            4096 Aug  2 05:42 tmp
drwxr-xr-x   11 0        0            4096 May 30 04:00 usr
drwxr-xr-x   13 0        0            4096 May 30 03:02 var
drwxr-xr-x    2 0        0            4096 Jun  1 19:29 www



-----------------------------

6. If necessary, use the vi editor to adjust /sda2/etc/network/interfaces to your network and your needs, either static or dhcp. By default, it is set for a 192.168.11.0 network, with an IP of 192.168.11.50. It currently reads as follows:
Code:
# we always want the loopback interface
#
auto lo
iface lo inet loopback
# default dynamic setup (no adjustment necessary)
#
#
# auto eth0
# iface eth0 inet dhcp
#      hostname `hostname`
#
# default static setup (adjust to your network settings)
#
auto eth0
iface eth0 inet static
        address 192.168.11.50
        netmask 255.255.255.0
        broadcast 192.168.255.255
        network 192.168.11.0
        gateway 192.168.11.1
You may also need to check your /sda2/etc/resolv.conf contents and adjust them to your network and ISP.



-----------------------------

7. Run fooboot and choose the hddrootfs mode option. This will change the UBoot env vars so that the box will boot into the Lenny-Armel system by default.
Code:
 fooboot -h

It is important to see what fooboot does, so just type
Code:
 fooboot
and observe the output. It is experimental, but has been tested for about 6 months. If you do not want to manipulate uboot's envs manually, then this is a good way to handle things. It will not work as predictably if you choose a different partition scheme, as the settings are hardcoded into the foonas-em images.

Also run :
Code:
foonas-em$ fooboot -s

If you have a LSPro/Live V1, you will see this:
Code:
foonas-em$ fooboot -s
 The SCSI Adapter (Host) Number is 1, so this box is an LSPro/LiveV1.

If you have a LSPro/Live V2, you will see this:
Code:
foonas-em$ fooboot -s
 The SCSI Adapter (Host) Number is 0, so this box is an LSPro/LiveV2, or a KuroPro.



If not, you may have left a USB device attached to your box.

Now, run
Code:
fooboot -h
 fooboot -n
, and observe the very last line of output:
If you have a V1 it should say:
Code:
bootcmd=ide reset; ext2load ide 1:1 0x00100000 /uImage; setenv bootargs console=ttyS0,115200 root=/dev/sda2 rw ; bootm 0x00100000

If you have a V2 it should say:
Code:
bootcmd=ide reset; ext2load ide 0:1 0x00100000 /uImage; setenv bootargs console=ttyS0,115200 root=/dev/sda2 rw ; bootm 0x00100000
.

If these are what you expect, then you are ready to reboot.
Code:
 
 reboot


-----------------------------

8. After the LSPro reboots and the LED lights stabilize, log in by ssh:
Code:
 davygravy@bitbaker-i686:~$ ssh root@192.168.11.50

Image
Code:
root@192.168.11.50's password: armel
Last login: Sun Jun 22 03:55:21 2008 from 192.168.11.149
Linux LS-GL 2.6.29.1 #1 PREEMPT Sat Jun 14 09:47:31 CDT 2008 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
LS-GL:~#





Notes & minutiae:
=====================================================================
A. U-Boot (any stock Buffalo U-Boot or derivative thereof) needs to find a nontrivial file it identifies as the initrd - it automatically scans for it just after initializing. Even though this distro doesn't use an initrd, UBoot will whine if it doesn't find it, so fool we it. This is why there is a file in /boot called initrd.buffalo, even though it isn't used.

B. If you want some other setup, do so, but remember to adjust your fstab, and anything else that matters.

C. Users of v0.1 and v0.2: Install v0.3 ASAP to fix a typo in /etc/networking/interfaces. Or hand edit it.

D. Kernel has netcat/nc capability, so you can monitor part of the boot process that way without needing any serial connection. Also excellent with netconsole-enabled u-boot.

E. Use caution in changing uboot env vars. If you adjust your uboot env vars by hand, like for the default hdd setup your bootcmd should look something like:
Code:
bootcmd=ide reset; ext2load ide 0:1 0x00100000 /uImage; setenv bootargs console=ttyS0,115200 root=/dev/sda2 rw ; bootm 0x00100000

to get this execute the following:
Code:
setenv bootcmd 'ide reset; ext2load ide 0:1 0x00100000 /uImage; setenv bootargs console=ttyS0,115200 root=/dev/sda2 rw ; bootm 0x00100000'

then
Code:
saveenv
to save the new values in ROM. Normally fooboot will do this for you automatically, but if you have a custom setup this may be useful. See this article for reference: http://buffalo.nas-central.org/index.ph ... and_Values

F. The root password is "armel" - change it if you want security!

G If you upgrade your kernel, then don't forget to run depmod after cd-ing to the appropriate directory, so that any new modules are recognized.

H. Filesharing Tips: There are two quick-start configs at /etc/exports-quickstart and /etc/samba/smb.conf-quickstart. Use them, after modifying them slightly and deleting the "-quickstart" from their filenames. Don't forget to keep backups of the original configs. Note: If you are installing samba, also install cups. As this is Lenny, there are some quirks. One of them is that networking can become clogged and nonfunctional if samba doesn't have cups installed along side it. This is not a problem with the image, but rather a transient problem w/ Lenny, and it will subside by the time Lenny moves up.

I. Problems? This is not a supported distro - just a test run. If you see problems and can relay a solution back, that would be great. If you see problems but can't give a fix, that's appreciated also.


History/Changes/Roadmap
================================================================
Tested and Working:
pretty much everything ... post back if you find something that doesn't work
nfs exports - read/write at around 10MB/sec
samba shares - on a Gb network (without jumbo frames read and write 12-15MB/sec


Tested and Broken:
all known issues fixed in 0.3.2

Tested and Needs Tweaking/Next Things To Do:
for 0.3.5, rebuild the uImage_em kernel to have ext4 support, clear apt cache to save space, install *ext4 utils.

    ...


Fixed and Tested/Done
moved to 2.6.29.1 kernel to take advantage of higher speeds do to ethdriver bugfix in vanilla kernel - done in V0.3.2
fixed banner issue so that ascii art is sent only after login - done in V0.3.2
add in fuller/fullest set of modules - standard Debian + netconsole - this will include ip tables - done in V0.3.1
make sure tun/tap module is included to support OpenVPN done in V0.3.1
fix fooboot -h to work correctly when a USB or other scsi-emulating drive is attached done in V0.3.1
add /etc/environment - done in V0.3.1
fix typo in /etc/network/interfaces -done in V3
check to see if any old dummy file for the initrd.buffalo will work... is there a lower limit for size? (already know it must be nonzero) -done in V3 (seems to have a high minimum size requirement)
tweak fooboot settings in image to match fooboot setting in foonas-em, along w/ different tftp-hpa client command syntax -done in V3
roll custom foonas-em images w/ the correct fooboot config for default and variant, also include "parted" -done in V3
remember to run depmod when upgrading kernel/module package -done in V3
upgrade kernel to 2.6.25.6 - done in V2
make ext3 the default fs types for sda1 and sda2 - done in V2
add in linux-logo package, edit /etc/ssh/sshd_config for Debian ssh banner - done in V2
add foonas-em to /boot - done in V2
add in fooboot & adjust tftp to match non-busybox tftp (tftp-hpa) client - done in V2
fix samba speeds, provide quickstart exports and smb.conf - done in V2
remove /etc/udev/rules.d/z25_persisent_rules - done in V2
change /etc/network/interfaces -done in V2
add in usb-sound and alsa in kernel -done in V2
turn off rtc_debug and i2c_debug - done in V2

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Last edited by davy_gravy on Sat Aug 02, 2008 8:30 am, edited 90 times in total.

Top
 Profile  
 
PostPosted: Mon Jun 02, 2008 5:41 am 
Offline
Regular Member

Joined: Sun Nov 25, 2007 11:32 am
Posts: 109
waaau!
I actually backed up my TS pro II yesterday to reinstall Lenny as I needed different partitions after all. With a blank TS Pro II I ought to give this a try!

One question - have you replaced the ininrd as well?


Top
 Profile  
 
PostPosted: Mon Jun 02, 2008 6:17 am 
Offline
Moderator
User avatar

Joined: Thu Apr 06, 2006 1:33 pm
Posts: 1082
Location: United States of America
the network issue (created by udev?) still exists I think
Code:
/etc/udev/rules.d/z25_persistent-net.rule


would need fixing, (or deleting?) in the tarball

also DHCP works but you need to add the right stuff to /etc/network/interfaces
perhaps you could just comment out the dhcp parts if you wanted to use a static IP
like the following?

Code:
# we always want the loopback interface
#
auto lo
iface lo inet loopback
#
# default dynamic setup (no adjustment necessary)
#
# auto eth0
# iface eth0 inet dhcp
#      hostname `hostname`
#
# davygravy's static setup (adjust to your network settings)
#
auto eth0
iface eth0 inet static
     address 192.168.11.50
     network 192.168.11.0
     netmask 255.255.255.0
     broadcast 192.168.11.255


these are such minor things I think though, It's otherwise very a really nice clean job.

_________________
-Ramuk

LinkStation HG *250 Uboot - Foonas-EM - Freelink
Kuro HG *750 Uboot - Foonas-EM - Debian Squeeze
Kuro HD *60 Uboot - Foonas-EM - Debian Squeeze (For Sale)
KuroPro *2TB Debian Lenny Armel- Kernel 2.6.26
KuroPro *1TB Debian Lenny Armel- Kernel 2.6.25.6


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 743 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 50  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 8 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