Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Aug 17, 2018 8:28 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 364 posts ]  Go to page Previous 119 20 21 22 2325 Next
Author Message
PostPosted: Wed Jan 30, 2008 6:58 am 
Offline
Newbie

Joined: Fri Jan 19, 2007 4:33 am
Posts: 53
@duncan_h

My Linkstaion Pro File system is the follwong:
Code:
# /etc/fstab: static file system information.
# <file system> <mount point>   <type>  <options>               <dump>  <pass>
proc            /proc      proc    defaults                            0 0
none            /dev/pts   devpts  gid=5,mode=20                       0 0
tmpfs           /tmp       tmpfs   size=10M,mode=1777                  0 0
/dev/sda5       swap       swap    defaults                            0 0
/dev/sda1       /boot      ext3    defaults,noatime,errors=remount-ro  0 1
/dev/sda6       /mnt/disk1 xfs,acl defaults,noatime,nodiratime         0 0


The dir /boot is still using ext3.
um... I mean I never resize/change the partition, when I bought it.
I only moved /home, /var , /usr to /dev/sda6(xfs) and used symoblic link to make it work.

I am thinking, the oabi doesn't work to me. It is because I moved the /home, /var , /etc to a xfs partition.
When the oabi kernel boot up and it can't mount that drive - /dev/sda6 :?:

I will try your oabi_dh_v3 kernel. When dmik make it available! :twisted:
I hope I will not get into another nightmare! :evil:


Last edited by smallkeung on Wed Jan 30, 2008 2:50 pm, edited 1 time in total.

Top
   
PostPosted: Wed Jan 30, 2008 9:28 am 
Offline
Regular Member

Joined: Mon Oct 15, 2007 5:21 am
Posts: 144
@smallkeung

/dev/sda2 is the rootfs (root filesystem partition) /
That comes formatted as xfs when you get the linkstation.

Its not listed in your fstab.
It probably shows up as /dev/rootfs when you run "df"


I converted mine to ext3, but that can only be done (1)
in EM mode, when the initrd virtual file system is used as the rootfs or (2)
by mounting the disk on a pc, mounting /dev/sda2,
making a tar archive of its contents on a different partition
unmounting it, reformatting it with mkfs.ext3 , then remounting it and restoring
the files from the the tar archive.

I suspect none of my oabi kernels will boot when the rootfs
is xfs. I'll try to find the time to test them, but i DONT recommend
you try them if the other ones did not boot. You will most likely
have the same "NIGHTMARE" .....



Hmmm. did you say you moved /etc to a different partition
with a symbolic link? that sounds dangerous. /etc/belongs on the root partition.
/home and /var can be moved without problems


Top
   
PostPosted: Wed Jan 30, 2008 10:28 am 
Offline
Newbie

Joined: Thu Oct 05, 2006 11:05 am
Posts: 41
smallkeung and all,
oabi_v6 is ready for downloading.

Regarding symbolic links. Theoretically it can make problems for programs that resolve your symbolic /etc to its real path but assume the result will still remain /etc. I think it's safer to use the bind mount option (as it was suggested somewhere on this forum back then) -- at least it solves the potential problems with symlinks. Here is what I have in addition to the stock /etc/fstab:
Code:
# directories moved to the big partition
/mnt/disk1/usr  /usr    none    bind
/mnt/disk1/var  /var    none    bind
/mnt/disk1/home /home   none    bind

I didn't try duncan's oabi with it though (no time yet).


Top
   
PostPosted: Wed Jan 30, 2008 10:43 am 
Offline
Newbie

Joined: Thu Oct 05, 2006 11:05 am
Posts: 41
duncan_h
I just noticed that the size of oabi_v6 is 1 MB smaller than oabi_v2. Comparing the archives shows that most files are just smaller (different optimization options? stripped debug info?). Also, a lot of drivers from /lib/modules/.../kernel/drivers are missing (e.g. bluetooth, media, net/irda, video) and new ones are added too. Was it intentional?


Top
   
PostPosted: Wed Jan 30, 2008 11:52 am 
Offline
Regular Member

Joined: Mon Oct 15, 2007 5:21 am
Posts: 144
@dmik
oabi-dh_v6 is a rebuild using colchaodemola's config, with a few added modules that I needed. It doesn't segfault on the test for Openssh in /etc/init.d/ssh.
My oabi-dh_v[1,2,3] all have that segfault problem. My intention was to gradually add back
the rest of the modules to see when the segfaulting came back.


I use a rootfs (/dev/sda2) which is ext3 not xfs. I just tested with an xfs rootfs,
and confimed that oabi-dh_v6 doesnt boot when the rootfs is xfs (and even corrupts it)
(This is what smallkeung was seeing with previous oabi modules)

I dont seem to have problems with non-rootfs xfs file systems (e.g. .dev/sda6, the large
file system for sharing).

It seems that you MUST first convert your root file system /dev/sda2 from xfs (which is
how the linkstations come) to ext3 if you want to use the oabi kernels to use iptables.

has anyone (colchaodemola?) managed to boot an oabi kernel while still using an xfs file
system on /dev/sda2? Or have all the success stories been on non-xfs rootfs?


(@smallkeung, I'm not talking about the boot partition /dev/sda1 which is always ext3)


Top
   
PostPosted: Wed Jan 30, 2008 2:50 pm 
Offline
Newbie

Joined: Fri Jan 19, 2007 4:33 am
Posts: 53
@duncan_h

Thank your for you to take me back into the heaven.
I think I will try it when I change the partition type to ext3. But I have no idea to change it, because I am a new-bie in Linux.
I just learnt it when get the Linkstation pro~~
Beside "tar" someone tell me use the command "cp -r -p" to copy all files. Does it work?

@dmik
I typed wrong again. Not the /etc used the symbolic link, it should be /usr :roll:


Top
   
PostPosted: Wed Jan 30, 2008 5:41 pm 
Offline
Regular Member

Joined: Mon Oct 15, 2007 5:21 am
Posts: 144
@smallkeung (and others)

There is NO reason to use the oabi kernels unless you NEED to use iptables.
The Buffalo documentation (that they supply with Kurobox Pro) states that
native compilation of the kernel "does not work at this time".

Colchaodemola found that he could natively compile apparently-working (oabi) kernels, and I have
repeated that. But it is quite possible they dont work 100%. I dont know why
they seem to fail to boot when the root file system is xfs, but work when it is
ext3. There are issues with the xfs file systems reporting errors when checked
using xfs tools. Perhaps xfs fiesystems created usng an eabi kernel are not
quite compatible with oabi kernels? I dont know, and wont have the time to
study this - I don't need iptables to work. Clearly cross-compiled eabi kernels
are much better tested. There is also the segfault I sometimes see (25% of the time)
when a simple test in /etc/init,d/ssh runs.


Someone who NEEDS iptables will need to spend time investigating this, maybe.

The immediate workaround is to switch to an ext3 root file system. You can do this
if you can get into EM mode, or by mounting the SATA harddrive on a linux pc.
The procedure either way is
mount /dev/sda2
make a tar archive of its files on some other partition
unmount /dev/sda2
reformat /dev/sda2 as ext3
mount it again (now as ext3)
restore its files
change the /dev/sda2 entry in /etc/fstab to ext3 (if there is such an entry, there may not be)
you may also need to edit /boot/boot_options if it exists.
(/boot is on /dev/sda1, which you may need to mount)

All this is IN PRINCIPLE simple, but its easy to forget some small detail, which may be
different on different systems, depending in the precise recipe used to install
freelink......

The other way to go for IPTABLES would be to install a debian-armel (EABI)
distribution, but that is also not quite ready for easy installation yet.

The good news is that, unless you mess with the u-boot bootloader in flash memory,
all errors can be fixed by mounting the harddrive on another computer, and restoring or
replacing its contents.


Top
   
PostPosted: Wed Jan 30, 2008 10:18 pm 
Offline
Newbie

Joined: Wed Mar 21, 2007 7:49 pm
Posts: 17
Hello,

I would like to use a USB wifi dongle on my LSPRO (ARM LSPROv1, FREELINK Version 2.6.16.57-arm5).

I would like to connect on a access point with WEP Key

My wifi dongle use zd1211 chipset

But i don't understand how i can compile the kernel to include these capabilities.

Thanks for your work and your help.
Excuse for my English


Top
   
PostPosted: Thu Jan 31, 2008 3:58 am 
Offline
Regular Member

Joined: Mon Oct 15, 2007 5:21 am
Posts: 144
@ploug If you will use an EABI (non-native) kernel, I added the usb wireless drivers to
the kernel in the tar archive
kernel-2.6.16.57-lsp_eabi-dh_v4.tar.gz that I uploaded to dmik's site
ftp.dmik.org.

You can get it once he has made it available.

(I'm still having problems with correctly building the oabi (native) versions needed
for IPTABLES support, and wont post those unless I can fix them.)

I think the module you need is there:
/lib/modules/2.6.16.57-lsp_eabi-dh_v4/kernel/drivers/usb/net/zd1201.ko


Actually, you need the zd1211 driver, which is only in the mainline kernel since 2.6.18
You will need to find a backport to 2.6.16 kernels for the moment. Probably easier to find a dongle
that is supported in 2.6.16


Top
   
PostPosted: Thu Jan 31, 2008 5:15 pm 
Offline
Regular Member
User avatar

Joined: Tue Oct 09, 2007 9:01 am
Posts: 117
duncan_h wrote:
@smallkeung (and others)
The other way to go for IPTABLES would be to install a debian-armel (EABI)
distribution, but that is also not quite ready for easy installation yet.


Which means getting the Debian Installer to work (which does work according to viewtopic.php?f=18&t=5241)


Top
   
PostPosted: Fri Feb 01, 2008 7:31 pm 
Offline
Newbie

Joined: Fri Jan 19, 2007 4:33 am
Posts: 53
@duncan_h

I have tried "apt-get update" couple of days. But everytime stop here.
Anyone can succuessfully update after used the 2.6.16.57?

*I have tried to use ftp to connect, but it doesn't seems any problem

Code:
apt-get update
Get:1 http://security.debian.org etch/updates Release.gpg [189B]
Hit http://security.debian.org etch/updates Release
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://security.debian.org etch/updates/non-free Packages/DiffIndex
Ign http://security.debian.org etch/updates/main Sources/DiffIndex
Hit http://security.debian.org etch/updates/main Packages
Hit http://security.debian.org etch/updates/contrib Packages
Hit http://security.debian.org etch/updates/non-free Packages
Hit http://security.debian.org etch/updates/main Sources
Get:2 http://mirrors.kernel.org etch Release.gpg [378B]
Hit http://mirrors.kernel.org etch Release
Ign http://mirrors.kernel.org etch/main Packages/DiffIndex
Ign http://mirrors.kernel.org etch/contrib Packages/DiffIndex
Ign http://mirrors.kernel.org etch/non-free Packages/DiffIndex
Hit http://mirrors.kernel.org etch/main Packages
Hit http://mirrors.kernel.org etch/contrib Packages
Hit http://mirrors.kernel.org etch/non-free Packages
Get:3 ftp://ftp.uk.debian.org etch Release.gpg [378B]
Err ftp://ftp.uk.debian.org etch Release.gpg
  Could not connect data socket, connection timed out
Get:4 ftp://ftp.uk.debian.org etch Release [58.2kB]
Ign ftp://ftp.uk.debian.org etch Release
Get:5 ftp://ftp.uk.debian.org etch/contrib Packages/DiffIndex
Ign ftp://ftp.uk.debian.org etch/contrib Packages/DiffIndex
Get:6 ftp://ftp.uk.debian.org etch/main Packages/DiffIndex
Ign ftp://ftp.uk.debian.org etch/main Packages/DiffIndex
Get:7 ftp://ftp.uk.debian.org etch/non-free Packages/DiffIndex
Ign ftp://ftp.uk.debian.org etch/non-free Packages/DiffIndex
Hit ftp://ftp.uk.debian.org etch/contrib Packages
Hit ftp://ftp.uk.debian.org etch/main Packages
Hit ftp://ftp.uk.debian.org etch/non-free Packages
Fetched 2B in 10m13s (0B/s)
Failed to fetch ftp://ftp.uk.debian.org/debian/dists/etch/Release.gpg  Could not connect data socket, connection timed out
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.


Top
   
PostPosted: Fri Feb 01, 2008 9:15 pm 
Offline
Regular Member

Joined: Mon Oct 15, 2007 5:21 am
Posts: 144
@smallkeung

I've noticed it was slow, but it eventually got everything (there were no updates).
I assumed this is a debian server problem, but I suppose the various networking options
that have been turned on in the recompiled kernels could cause some problem.

If you suspect a problem, just take the initiative and set the symbolic link
/boot/uImage.buffalo to point to an older uImage you know works, make sure you made a good
new symbolic link, and reboot to see if apt-get update behaves differently.

Edit: apt-get update from Debian repository is hanging even with
a stock buffalo kernel:
Linux Version 2.6.16.16-arm1
Compiled #19 Thu Aug 23 09:02:55 JST 2007

Quote:
Get:3 ftp://ftp.uk.debian.org etch Release.gpg [378B]
Ign http://mirrors.kernel.org etch/main Packages/DiffIndex
Ign http://mirrors.kernel.org etch/contrib Packages/DiffIndex
Ign http://mirrors.kernel.org etch/non-free Packages/DiffIndex
Hit http://mirrors.kernel.org etch/main Packages
Hit http://mirrors.kernel.org etch/contrib Packages
Hit http://mirrors.kernel.org etch/non-free Packages
99% [3 Release.gpg 0/378B 0%]
Err ftp://ftp.uk.debian.org etch Release.gpg
Could not connect data socket, connection timed out
Get:4 ftp://ftp.uk.debian.org etch Release [58.2kB]
62% [4 Release 0/58.2kB 0%]



Top
   
PostPosted: Sat Feb 02, 2008 12:49 pm 
Offline
Newbie

Joined: Wed Dec 26, 2007 4:44 pm
Posts: 8
Hello,

my apt-get update operations also time out on the uk server. I am on an unmodified freelink platform.....
I guess it is not caused by the kernel..

Kris


Top
   
PostPosted: Sat Feb 02, 2008 1:11 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
Why don't you just remove the string "uk." from your sources in /etc/apt/sources.list and run "apt-get update".


Top
   
PostPosted: Sat Feb 02, 2008 5:11 pm 
Offline
Regular Member

Joined: Mon Oct 15, 2007 5:21 am
Posts: 144
yes, changing
deb ftp://ftp.uk.debian.org/

in /etc/apt/sources.list to

deb ftp://ftp.us.debian.org/
or
deb http://http.us.debian.org/
fixed it for me.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 364 posts ]  Go to page Previous 119 20 21 22 2325 Next

All times are UTC+01:00


Who is online

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