Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Aug 18, 2018 7:05 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 38 posts ]  Go to page 1 2 3 Next
Author Message
PostPosted: Tue Jan 25, 2011 7:16 am 
Offline
Regular Member
User avatar

Joined: Mon Oct 08, 2007 6:34 am
Posts: 334
Guys,

** Edit: Tarball updated 21/08/2011 **

I have upgraded Dave's Lenny LS-HG/KuroBoxHG tarball to Squeeze I have also built a 2.6.37 Kernel to go with it. you will need at least UBoot 1.2 installed on your box

Many thanks to Dave (davy_gravy) and others for their work on the Lenny tarballs that make this upgrade possible. viewtopic.php?f=9&t=16626 :up:
Also a thank you to krovetz for his pointers here: viewtopic.php?f=41&t=21703 :up:

Tarball
Working great for me! YMMV - please post here if you have any problems or pointers for improvement, I will do my best to solve any issues.
(edit: 30/1/11)
The tarball has been moved to http://downloads.buffalo.nas-central.or ... tonie/PPC/ (Thanks Tim)

NB: It's a bit big because I left the kernel sources in place in case you wish to modify the kernel.
(Any tips on how to otherwise shrink a Debian root partition also appreciated. I removed tarballs, old logs and ran apt-get clean?)


2.6.37 Kernel
Notable items enabled in the kernel:

*ext4
*jfs
*xfs
*usb bulk storage
*Apple Talk
*NTFS support
*IP v6

Software
Items installed on top of Dave's Lenny tarball:

*Installed mlocate
*MOTD now updates from bootlog (not bootmisc)
*Modified /etc/network/interfaces to suit DHCP _then_ fall back to 192.168.11.150
*Installed htop
*Installed pciutils
*Installed samba
*installed ntfs-3g

*created a user for samba "nasuser" enabled public samba share at /home/nasuser

Install

I suggest using foonas-em to setup your box. http://foonas.org/index.php/Foonas-em:TFTPBoot-lsppc

UBoot needs to look for the kernel at: boot/uImage

The fstab only expects a root and swap partition
/dev/sda1 and /dev/sda2 (sda3 is not mounted in fstab)

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>               <dump>  <pass>
/dev/sda1       /                         ext3     defaults,noatime,nodiratime     1 1
proc              /proc                    proc     defaults                               0 0
none             /dev/pts                devpts  gid=5,mode=20                     0 0
/dev/sda2      swap                     swap    defaults                              0 0
#/dev/sda3    /mnt                      ext3     defaults,noatime                   0 2


login
Once you have untared to the root of /dev/sda1, reboot and login with:
Code:
root
hydr0g3n


Wrinkels

- EDIT -
None as of 21 August 2011 - please report any you find here.

;)
Cheers,
Stonie.

_________________
KuroHG - UBoot 1.2, foonas-em & Debian Wheezy - 3.4 Kernel
Kurobox Pro - Dave's Lenny-armel
LS-WVL - opened
LS-XHL - Squeeze Bootstrap
LS-VL - Squeeze Bootstrap


Last edited by stonie on Sun Aug 21, 2011 12:43 pm, edited 5 times in total.

Top
   
PostPosted: Wed Jan 26, 2011 1:40 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
wrinkles:

My limited knowledge, if you run

Code:
dpkg-reconfigure sysv-rc


it will tell you what you need to do in order to migrate.. so you probably have 'stuff' that was installed, but never purged, if so

Code:
dpkg --purge remove <program>


All the rest you will see is the init.d scripts you need to correct by putting the gumph in, i.e:

Code:
### BEGIN INIT INFO
# Provides:          program
# Required-Start:
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: blah
# Description:more blah
#
### END INIT INFO



I think..... :?


Top
   
PostPosted: Thu Jan 27, 2011 10:37 am 
Offline
Regular Member
User avatar

Joined: Mon Oct 08, 2007 6:34 am
Posts: 334
Cheers Bauldrick! thanks for your help.

Is it safe to use defaults like your example? or are there dependencies that I should specifically deal with?

the output of dpkg-reconfigure sysv-rc is that the following scripts are "missing LSB tags and overrides"

  • K95avr_evtd
  • S25libdevmapper1.02
  • ibdevmapper1.02
  • apservd
  • ls_servd
  • ppc_uartd
  • avr_evtd_gentoo
  • avr_evtd

does anyone have any pointers here?

Cheers,
Stonie.

_________________
KuroHG - UBoot 1.2, foonas-em & Debian Wheezy - 3.4 Kernel
Kurobox Pro - Dave's Lenny-armel
LS-WVL - opened
LS-XHL - Squeeze Bootstrap
LS-VL - Squeeze Bootstrap


Top
   
PostPosted: Thu Jan 27, 2011 6:36 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
First thing you should do is
Code:
apt-get install avr-evtd

avr_evtd is old and avr-evtd is now in available from repos. Then (make sure avr-evtd is installed first)
Code:
update-rc.d -f avr_evtd remove
update-rc.d -f avr_evtd_gentoo remove
rm /etc/init.d/avr_evtd*

That will clean up avr_evtd references. Don't know about *libdevmapper* did you compile it yourself and add start script? Next is off the top of my head, but, apservd is/was required by the buffalo flasher(?) and doesn't serve a purpose (I don't have it in my /etc/init.d on LS1) so again:
Code:
update-rc.d -f apservd remove
mv /etc/init.d/apservd 'somewhere-until-you're sure-all-is-well'


Again off the top of my head, ppc_uartd is replaced by avr-evtd, so:
Code:
update-rc.d -f ppc_uartd remove
mv /etc/init.d/ppc_uartd 'somewhere-until-you're sure-all-is-well'

Check again
Code:
dpkg-reconfigure sysv-rc

See where you are now etc..

Yes, some things are dependent on start/stop I think, for example avr-evtd says:
Code:
### BEGIN INIT INFO
# Provides:          avr-evtd
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Linkstation/Kurobox AVR watchdog daemon
### END INIT INFO

But you are only going to be left with ibdevmapper1.02, and is that
Code:
libdevmapper1.02.1 - The Linux Kernel Device Mapper userspace library

If so you could just reinstall it I presume?

-EDIT-

Please check all that before doing it though ;)


Top
   
PostPosted: Thu Jan 27, 2011 11:12 pm 
Offline
Regular Member
User avatar

Joined: Mon Oct 08, 2007 6:34 am
Posts: 334
>Please check all that before doing it though ;)

Cheers, I will do some reading and give that a crack tonight.

Thanks again,
Stonie.

_________________
KuroHG - UBoot 1.2, foonas-em & Debian Wheezy - 3.4 Kernel
Kurobox Pro - Dave's Lenny-armel
LS-WVL - opened
LS-XHL - Squeeze Bootstrap
LS-VL - Squeeze Bootstrap


Top
   
PostPosted: Mon Jan 31, 2011 1:23 pm 
Offline
Regular Member
User avatar

Joined: Mon Oct 08, 2007 6:34 am
Posts: 334
Bauldrick, thanks for your help, It would have taken a lot of RTFMing to work all that out!
I had to double check the name difference avr_evtd to avr-evtd, so close that's an easy mistake to make!

After installing avr-evtd I modified
Code:
nano /etc/default/avr-evtd

(To stop the disk led from complaining about sda3 not being mounted)

Code:
apt-get install libdevmapper-dev

Solved the ibdevmapper1.02 issue... as you suggested.
Not sure why it's there, or if needed? it came with Dave's original Lenny tarball? maybe someone knows its details?

ls_servd was missing an LSB header too, looks like its part of the unused Buffalo tools so I removed it as well.
Code:
update-rc.d -f ls_servd remove
mv /etc/init.d/ls_servd /tmp/ls_servd


And the results: success: Enabled dependency based boot system

Code:
LSPPC-Squeeze root ~ # dpkg-reconfigure sysv-rc
info: Checking if it is safe to convert to dependency based boot.
info: Reordering boot system, log to /var/lib/insserv/run-20110131T1026.log
success: Enabled dependency based boot system


Thanks Bauldrick your a champ! new tarball is being uploaded now...

Providing no one else finds anything wrong, I will post a simple guide on the wiki.

;)
Thanks again for your help.

Stonie.

_________________
KuroHG - UBoot 1.2, foonas-em & Debian Wheezy - 3.4 Kernel
Kurobox Pro - Dave's Lenny-armel
LS-WVL - opened
LS-XHL - Squeeze Bootstrap
LS-VL - Squeeze Bootstrap


Top
   
PostPosted: Tue Feb 15, 2011 10:57 pm 
Offline
Newbie

Joined: Thu Jul 12, 2007 10:08 pm
Posts: 24
Hey there

To start, I must thank everyone who contributes to these forums and makes it possible for linux neophytes such as myself to attempt what would otherwise be waaaay out of our reach :up:

I just dug my old Kurobox out of storage and plan to use it as a TimeMachine and TimeCapsule sevice as outlined here. However, my KuroHG is running Debian 4.0 (Etch) and I need to be running Squeeze for best chance of a stable install. Having done some digging, I finally stumbled across this posting (and after half an hour trying to remember my root password), I am now ready to follow the upgrade process. However, my lack of Linux knowledge means that I understand about 70% of the outlined guide, and I would really appreciate clarification of a few of the points listed below. I shall attempt to document my process to help anyone else who comes afterwards, or to help build up a Wiki article. Stonie: did you have time to write one yet, I couldn't find one?.

stonie wrote:
Guys,

I have upgraded Dave's Lenny LS-HG/KuroBoxHG tarball to Squeeze I have also built a 2.6.37 Kernel to go with it. you will need at least UBoot 1.2 installed on your box


It would be great to know how to check for a uBoot version - I'm guessing I don't have it installed?

Code:
KURO-BOX:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00300000 00010000 "mtd_firmimg"
mtd1: 00070000 00010000 "mtd_bootcode"
mtd2: 00010000 00010000 "mtd_status"
mtd3: 00080000 00010000 "mtd_conf"
mtd4: 00400000 00010000 "mtd_allflash"
KURO-BOX:/#

however
Code:
KURO-BOX:/boot# ls
System.map  loader.o  uImage  vmlinux.UBoot  vmlinux.bin
KURO-BOX:/boot#

Does the vmlinux.UBoot file mean I have uBoot installed? Or does this mean that I need to follow this article here in order to install it? The process involves updating flash which is why I am going to confirm the process before I start :p


stonie wrote:
Notable items enabled in the kernel:
*ext4
*jfs
*xfs
*usb bulk storage
*Apple Talk
*NTFS support

Does the inclusion of AppleTalk also include AFP? I understand there is a difference between the two and I need the latter for TimeMachine to be reliable?


stonie wrote:
*Modified /etc/network/interfaces to suit DHCP _then_ fall back to 192.168.11.150

Would be good to outline in a wiki article how to change this to your static IP address of choice.


stonie wrote:
*created a user for annon FTP "annonftpuser" enabled non writable annon ftp root at /home/annonftpuser/

Personally, I would prefer a user called anonftpuser to match the spelling of anonymous, but then I'm a picky s.o.b. :D


stonie wrote:
UBoot needs to look for the kernel at: boot/uImage

In other words, do I need to download the tarball using wget to /boot/uimage/ or I need to rename the tarball to /boot/uimage ? Given the talk of untarring the tarball to sda1, what I am really asking is why is this point mentioned, do I need to do something here?


stonie wrote:
The fstab only expects a root and swap partition
/dev/sda1 and /dev/sda2 (sda3 is not mounted in fstab)

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>               <dump>  <pass>
/dev/sda1       /                         ext3     defaults,noatime,nodiratime     1 1
proc              /proc                    proc     defaults                               0 0
none             /dev/pts                devpts  gid=5,mode=20                     0 0
/dev/sda2      swap                     swap    defaults                              0 0
#/dev/sda3    /mnt                      ext3     defaults,noatime                   0 2

Okay, so I take this to mean that I have to edit my /etc/fstab file to disable the 3rd partition so that I don't lose any data currently stored on it? However, given the instructions below, is this part telling me that the tarball will only refer to two partitions and that I will need to edit /etc/fstab after untarring to reinstate sda3? :?


stonie wrote:
Once you have untared to the root of /dev/sda1, reboot and login with:
Code:
root
hydr0g3n


Okay, well I think I will be able to manage that part, once I have a handle on the rest of the stuff above :up:

Very much appreciate any pointers people can give!
Thx


Top
   
PostPosted: Thu Feb 17, 2011 10:29 am 
Offline
Regular Member
User avatar

Joined: Mon Oct 08, 2007 6:34 am
Posts: 334
Hi!

Thanks for taking the time to post, the short guide above is aimed at developers or experienced users, so hopefully I can fill in the blanks for you (Keep in mind you do anything described here at your own risk)

Quote:
>It would be great to know how to check for a uBoot version - I'm guessing I don't have it installed?

If you didn't flash UBoot yourself it's safe to say that you don't have the required version.
you will require UBoot 1.2 at least (you need support for device tree blobs).

You should follow The UBoot 1.2 guide:

http://buffalo.nas-central.org/wiki/Kur ... .6_kernels
precompilled UBoot for the HG can be found here: http://downloads.buffalo.nas-central.or ... ecompiled/

Quote:
>Does the inclusion of AppleTalk also include AFP? I understand there is a difference between the two and I need the latter for TimeMachine to be reliable?

I'm not a mac user so I can't confirm what is required kernel wise for timemachine?
If you can do the research I can enable what you need in the kernel... or perhaps a mac user reading this can clarify? ;)
Quote:
>Would be good to outline in a wiki article how to change this to your static IP address of choice.

Edit /etc/network/interfaces with nano or vi. Keeping in mind the 192.168.11.150 is also the default for Uboot Netconsole and the buffalo default.

Quote:
>Personally, I would prefer a user called anonftpuser to match the spelling of anonymous, but then I'm a picky s.o.b. :D

Oops that is a typo! I totally agree! next release i will remove the ftp user and revert to the default vsftpd config. I will also remove samba.
The idea being that It's I probably better that users decide if they want those bits and how they should be configured.

Quote:
>Given the talk of untarring the tarball to sda1, what I am really asking is why is this point mentioned, do I need to do something here?

Yes indeed you do... After you have installed UBoot 1.2 you will be able to use netcat to attach to uboot's netconsole and interrupt the boot process. http://buffalo.nas-central.org/wiki/Net ... rk_Utility

Once you have done that you can TFTP Foonas em into RAM on your HG:
http://foonas.org/index.php/Foonas-em:TFTPBoot-lsppc

Foonas em has all the tools you need to partition your disks and extract the tarball to /dev/sda1
(IE: you don't need to adjust fstab it's in the tarball, you just need to create partitions to match it's layout)

If you need help partitioning post back once you have FooNas em up and running.

Good luck!

Regards,
Stonie.

_________________
KuroHG - UBoot 1.2, foonas-em & Debian Wheezy - 3.4 Kernel
Kurobox Pro - Dave's Lenny-armel
LS-WVL - opened
LS-XHL - Squeeze Bootstrap
LS-VL - Squeeze Bootstrap


Top
   
PostPosted: Fri Mar 11, 2011 2:28 pm 
Offline
Newbie

Joined: Wed Mar 02, 2011 4:41 pm
Posts: 9
I've installed the tarball. It's working quite nice! I'm expirimenting with IPv6. How is i possible to use IPv6. Do I need a kernel module? Where can i find this.


Top
   
PostPosted: Fri Mar 11, 2011 9:06 pm 
Offline
Regular Member
User avatar

Joined: Mon Oct 08, 2007 6:34 am
Posts: 334
Hmmm does not look like its available as a module...

Code:
LSPPC-Squeeze root ~ # modprobe ipv6
FATAL: Module ipv6 not found.


So in this case you will need to re-compile the kernel, I left the sources in place to make it easier.
here is the guide: http://buffalo.nas-central.org/wiki/Compile_a_uBoot_Kernel

Cheers,
Stonie.

_________________
KuroHG - UBoot 1.2, foonas-em & Debian Wheezy - 3.4 Kernel
Kurobox Pro - Dave's Lenny-armel
LS-WVL - opened
LS-XHL - Squeeze Bootstrap
LS-VL - Squeeze Bootstrap


Top
   
PostPosted: Sat Mar 12, 2011 7:15 pm 
Offline
Newbie

Joined: Wed Mar 02, 2011 4:41 pm
Posts: 9
Do i have to use the /usr/src/linux or the /usr/src/linux2.6.37

What options do i have to check before compiling the kernel? Do i only have to check the ipv6?


Top
   
PostPosted: Sat Mar 12, 2011 9:50 pm 
Offline
Betatester
User avatar

Joined: Thu Jul 14, 2005 4:38 pm
Posts: 941
Location: England
Code:
ls -al


I'd imagine /usr/src/linux2.6.37 is linked to /usr/src/linux (?)

You should go into /usr/src/linux if thats the case...


Top
   
PostPosted: Sat Mar 12, 2011 10:36 pm 
Offline
Regular Member
User avatar

Joined: Mon Oct 08, 2007 6:34 am
Posts: 334
Quote:
I'd imagine /usr/src/linux2.6.37 is linked to /usr/src/linux (?)

Code:
LSPPC-Squeeze root ~ # ls -al  /usr/src/linux
lrwxrwxrwx 1 root src 12 Jan 24 12:42 /usr/src/linux -> linux-2.6.37

yep, so good to go from /usr/src/linux ;)
Then Once you have run make menuconfig, the option is at
Code:
--- Networking Support
      Networking Options -->
         <>The IPv6 protocol


Unless anyone requests otherwise, I will compile it in as a module for the next build.

;)
Stonie.

_________________
KuroHG - UBoot 1.2, foonas-em & Debian Wheezy - 3.4 Kernel
Kurobox Pro - Dave's Lenny-armel
LS-WVL - opened
LS-XHL - Squeeze Bootstrap
LS-VL - Squeeze Bootstrap


Top
   
PostPosted: Sun Mar 13, 2011 11:03 am 
Offline
Newbie

Joined: Wed Mar 02, 2011 4:41 pm
Posts: 9
Yes i found the IPv6 option in the menu. But are their some other things i have to check before compiling the kernel?

What speed do you reach over FTP? i'm getting around 8-10MB/s


Top
   
PostPosted: Sun Mar 13, 2011 11:42 am 
Offline
Regular Member
User avatar

Joined: Mon Oct 08, 2007 6:34 am
Posts: 334
Quote:
I found the IPv6 option in the menu. But are their some other things i have to check before compiling the kernel?

I think that should do it (I'm running v4 so I can't say for sure) More reading here: shttp://tldp.org/HOWTO/Linux+IPv6-HOWTO/

The speeds you are getting are about right on these older boxes, I'm getting 10-12mb/s,
If you create a xfs for jfs partition you may be able to get higher speeds.

Small net builder has some speed charts of stock boxes for comparison:
http://www.smallnetbuilder.com/index.ph ... =&chart=13

Stonie.

_________________
KuroHG - UBoot 1.2, foonas-em & Debian Wheezy - 3.4 Kernel
Kurobox Pro - Dave's Lenny-armel
LS-WVL - opened
LS-XHL - Squeeze Bootstrap
LS-VL - Squeeze Bootstrap


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

All times are UTC+01:00


Who is online

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