Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Jun 24, 2017 2:54 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Wed Sep 16, 2009 6:12 pm 
Offline
Newbie

Joined: Tue Sep 01, 2009 5:53 pm
Posts: 15
Location: Glasgow
Hi,

I posted a comment on this thread, basically getting the same Illegal Instruction message when trying to create a subversion repository. I thought it would be better to put my question to the LS Live forum.

viewtopic.php?f=66&t=20696

Basic issue is I get the following message when trying to create a subversion repository:

Code:
root@LS-CHL9AA:~# svnadmin create repos
Illegal instruction
root@LS-CHL9AA:~#


I am using optware feed: http://ipkg.nslu2-linux.org/feeds/optwa ... -5_arm.xsh

My hardware details:

Code:
root@LS-CHL9AA:~# uname -a
Linux LS-CHL9AA 2.6.22.18 #182 Thu May 7 13:35:58 JST 2009 armv5tejl unknown
root@LS-CHL9AA:~# cat /proc/cpuinfo
Processor       : ARM926EJ-S rev 1 (v5l)
BogoMIPS        : 599.65
Features        : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant     : 0x2
CPU part        : 0x131
CPU revision    : 1
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 16384
I assoc         : 4
I line length   : 32
I sets          : 128
D size          : 16384
D assoc         : 4
D line length   : 32
D sets          : 128

Hardware        : Feroceon-KW
Revision        : 0000
Serial          : 0000000000000000


As it's a relatively new version of Linkstation Live, the LS-CH1.OTLv2, could this be the issue?

How would I request a new build of Optware for this version of the Linkstation? Alternatively, is it possible to build subversion on the stock linux distro?

Thanks,
Eoan


Top
   
PostPosted: Wed Sep 16, 2009 6:56 pm 
Offline
Regular Member

Joined: Mon Oct 01, 2007 11:29 pm
Posts: 79
What is the output of /lib/libc.so.6?


Top
   
PostPosted: Wed Sep 16, 2009 9:46 pm 
Offline
Newbie

Joined: Tue Sep 01, 2009 5:53 pm
Posts: 15
Location: Glasgow
Which command should I run to get the info you need? I don't seem to have a copy of the "file" program.


Top
   
PostPosted: Wed Sep 16, 2009 9:49 pm 
Offline
Regular Member

Joined: Mon Oct 01, 2007 11:29 pm
Posts: 79
just run "/lib/libc.so.6", it's executable.


Top
   
PostPosted: Wed Sep 16, 2009 9:54 pm 
Offline
Newbie

Joined: Tue Sep 01, 2009 5:53 pm
Posts: 15
Location: Glasgow
bzhou wrote:
just run "/lib/libc.so.6", it's executable.


Ah, I tried that but wasn't sure that's what you wanted. Here it is.

Code:
root@LS-CHL9AA:/var/svn# /lib/libc.so.6
GNU C Library stable release version 2.5, by Roland McGrath et al.
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.2.0 20070413 (prerelease).
Compiled on a Linux >>2.6.17-12-generic<< system on 2007-10-15.
Available extensions:
        crypt add-on version 2.1 by Michael Glad and others
        GNU Libidn by Simon Josefsson
        GNU libio by Per Bothner
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
        Native POSIX Threads Library by Ulrich Drepper et al
        Support for some architectures added on, not maintained in glibc core.
        BIND-8.2.3-T5B
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
root@LS-CHL9AA:/var/svn#


Oh and thanks for your prompt reply. :) I can provide other input if you require.


Top
   
PostPosted: Wed Sep 16, 2009 10:20 pm 
Offline
Regular Member

Joined: Mon Oct 01, 2007 11:29 pm
Posts: 79
Looks like it's using libc-2.5. And optware/cs08q1armel is a feed matches it better.

First, stop/kill all optware programs, umount /opt, rm -rf /opt

If your big disk mounts at /mnt/disk1, you can try
use http://ipkg.nslu2-linux.org/feeds/optwa ... -5_arm.xsh to bootstrap optware

Otherwise, follow http://www.nslu2-linux.org/wiki/Optware/HomePage "Manually setup optware on a device".

Good luck.


Top
   
PostPosted: Wed Sep 16, 2009 10:31 pm 
Offline
Newbie

Joined: Tue Sep 01, 2009 5:53 pm
Posts: 15
Location: Glasgow
bzhou wrote:
Looks like it's using libc-2.5. And optware/cs08q1armel is a feed matches it better.

First, stop/kill all optware programs, umount /opt, rm -rf /opt

If your big disk mounts at /mnt/disk1, you can try
use http://ipkg.nslu2-linux.org/feeds/optwa ... -5_arm.xsh to bootstrap optware

Otherwise, follow http://www.nslu2-linux.org/wiki/Optware/HomePage "Manually setup optware on a device".

Good luck.


I'll give it a go just now. Thanks bzhou!

Ah, forgot I updated ssh to a newer version supplied by optware! Bummer. I suppose I can use telnet in the meantime.


Top
   
PostPosted: Wed Sep 16, 2009 10:42 pm 
Offline
Newbie

Joined: Tue Sep 01, 2009 5:53 pm
Posts: 15
Location: Glasgow
eoan wrote:
bzhou wrote:
Looks like it's using libc-2.5. And optware/cs08q1armel is a feed matches it better.

First, stop/kill all optware programs, umount /opt, rm -rf /opt

If your big disk mounts at /mnt/disk1, you can try
use http://ipkg.nslu2-linux.org/feeds/optwa ... -5_arm.xsh to bootstrap optware

Otherwise, follow http://www.nslu2-linux.org/wiki/Optware/HomePage "Manually setup optware on a device".

Good luck.


I'll give it a go just now. Thanks bzhou!

Ah, forgot I updated ssh to a newer version supplied by optware! Bummer. I suppose I can use telnet in the meantime.


Hitting a snag when umount /opt
Code:
root@LS-CHL9AA:/# umount /opt
umount: cannot umount /opt: Device or resource busy


Can't see any processes that are using /opt programs. Any ideas? I actually expected to see /opt as a logical link, but looks like a normal directory instead?

Code:
root@LS-CHL9AA:/# ls -l | grep opt
drwxr-xr-x   12 root     root          117 Sep 16 22:35 opt


Top
   
PostPosted: Wed Sep 16, 2009 10:57 pm 
Offline
Regular Member

Joined: Mon Oct 01, 2007 11:29 pm
Posts: 79
Edit /etc/init.d/rcS to remove anything related to Optware, and reboot.

After reboot, you should be able to telnet in, "rm -rf /opt", and start the new bootstrap.


Top
   
PostPosted: Wed Sep 16, 2009 11:25 pm 
Offline
Newbie

Joined: Tue Sep 01, 2009 5:53 pm
Posts: 15
Location: Glasgow
Ok, so I did the following:

Tidied up the current optware install

Code:
cd /mnt/disk1
mkdir tmp
cd tmp
wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/ls-mvkw-bootstrap_1.2-5_arm.xsh
cd /
umount /opt "won't work"

edit /opt/init.d/rcS and removed the lines that startup optware

reboot

umount /opt "still won't work"
rm -rf /opt
rm -rf /mnt/disk1/.optware

reboot



Installed the new optware via the new boostrap

Code:
cd /mnt/disk1/tmp

root@LS-CHL9AA:/mnt/disk1/tmp# ./ls-mvkw-bootstrap_1.2-5_arm.xsh
Optware Bootstrap for ls-mvkw.
Extracting archive... please wait
bootstrap/
1084+1 records in
1084+1 records out
bootstrap/bootstrap.sh
bootstrap/ipkg-opt.ipk
bootstrap/ipkg.sh
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
Creating temporary ipkg repository...
Installing optware-bootstrap package...
Unpacking optware-bootstrap.ipk...Done.
Configuring optware-bootstrap.ipk...Setting up ipkg arch-file
Modifying /etc/init.d/rcS
Done.
Installing ipkg...
Unpacking ipkg-opt.ipk...Done.
Configuring ipkg-opt.ipk...Done.
Removing temporary ipkg repository...
Installing wget...
Installing wget (1.11.4-1) to root...
Configuring wget
Successfully terminated.
Creating /opt/etc/ipkg/cross-feed.conf...
Setup complete.

root@LS-CHL9AA:/mnt/disk1/tmp# cd /opt
root@LS-CHL9AA:/opt# ls
bin    etc    lib    man    share  tmp    var

root@LS-CHL9AA:/opt# ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/P
ackages.gz
Inflating http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/Pac
kages.gz
Updated list of available packages in /opt/lib/ipkg/lists/cross
Successfully terminated.

root@LS-CHL9AA:/opt# ipkg upgrade
Nothing to be done
Successfully terminated.


Installed subversion via ipkg

Code:
root@LS-CHL9AA:/opt# ipkg install svn
Installing svn (1.6.5-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/s
vn_1.6.5-1_arm.ipk
package apr-util suggests installing sqlite
package apr-util suggests installing openldap-libs
Installing neon (0.28.4-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/n
eon_0.28.4-1_arm.ipk
Installing openssl (0.9.8k-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/o
penssl_0.9.8k-1_arm.ipk
Installing zlib (1.2.3-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/z
lib_1.2.3-3_arm.ipk
Installing libxml2 (2.7.3-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/l
ibxml2_2.7.3-1_arm.ipk
Installing apr (1.3.8-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/a
pr_1.3.8-1_arm.ipk
Installing apr-util (1.3.9-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/a
pr-util_1.3.9-1_arm.ipk
Installing e2fslibs (1.41.9-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/e
2fslibs_1.41.9-1_arm.ipk
Installing expat (2.0.1-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/e
xpat_2.0.1-1_arm.ipk
Installing gdbm (1.8.3-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/g
dbm_1.8.3-2_arm.ipk
Installing libdb (4.2.52-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/l
ibdb_4.2.52-3_arm.ipk
Installing cyrus-sasl-libs (2.1.22-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/c
yrus-sasl-libs_2.1.22-2_arm.ipk
Installing sqlite (3.6.16-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/s
qlite_3.6.16-1_arm.ipk
Installing readline (6.0-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/r
eadline_6.0-1_arm.ipk
Installing ncurses (5.7-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/n
curses_5.7-1_arm.ipk
Installing openldap-libs (2.3.43-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/o
penldap-libs_2.3.43-1_arm.ipk
Configuring apr
Configuring apr-util
Configuring cyrus-sasl-libs
Configuring e2fslibs
Configuring expat
Configuring gdbm
Configuring libdb
Configuring libxml2
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Configuring neon
Configuring openldap-libs
Configuring openssl
Configuring readline
Configuring sqlite
Configuring svn
Configuring zlib
Successfully terminated.



Started the svnserve process

Code:
root@LS-CHL9AA:/opt/bin# svnserve -d -r /var/svn
root@LS-CHL9AA:/opt/bin# ps -ef | grep svn
root      7161     1  0 23:21 ?        00:00:00 svnserve -d -r /var/svn
root      7214  2499  0 23:21 pts/0    00:00:00 grep svn


Create a new subversion repository

Code:
root@LS-CHL9AA:/opt/bin# cd /var/svn
root@LS-CHL9AA:/var/svn# svnadmin create repos
root@LS-CHL9AA:/var/svn# ls -la
drwxr-xr-x    3 root     root           35 Sep 16 23:22 .
drwxr-xr-x   12 root     root          141 Sep 16 15:09 ..
drwxr-xr-x    6 root     root           80 Sep 16 23:22 repos

root@LS-CHL9AA:/var/svn# cd repos/
root@LS-CHL9AA:/var/svn/repos# ls
README.txt  conf        db          format      hooks       locks


Magic :) We have succesful creation of the new repository.

Now I can reinstall the ssh version and get back to where I was trying to be before subversion didn't work earlier today.

Thanks for your help sir, much appreciated.
Eoan


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

All times are UTC+01:00


Who is online

Users browsing this forum: Yahoo [Bot] and 13 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