Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
OK, I made /dev/random as suggested in the blog, but it did not help. The strace output is the same in either case
The strace output attached to this post from
/mnt/HD_a2 # strace ssh-keygen > strace_ssh-keygen.txt 2>&1
Last edited by sjmac (2008-04-02 10:46:20)
Offline
/mnt/HD_a2 # gdb /opt/bin/ssh-keygen GNU gdb 6.6 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "arm-linux"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) r Starting program: /opt/bin/ssh-keygen Generating public/private rsa key pair. Program received signal SIGSEGV, Segmentation fault. 0x40108038 in ?? () from /opt/lib/libcrypto.so.0.9.7 (gdb) backtrace #0 0x40108038 in ?? () from /opt/lib/libcrypto.so.0.9.7 Cannot access memory at address 0x0 (gdb) l 1053 ssh-keygen.c: No such file or directory. in ssh-keygen.c (gdb) list 1053 in ssh-keygen.c (gdb)
I think that libcrypto is in the openssl package, so I'll remake openssl with -g for debugging and try again later (and try to teach gdb where to find the source code ...)
Last edited by sjmac (2008-04-02 11:38:01)
Offline
OK, patch attached replaces optware/dns323/source/openssl/Configure.path to fix openssl (so openssh, and probably rtorrent and others too ...)
It seems that if optimization is set to -O3 or higher then libcrypto segfaults. -O3 was hard coded in to the Configure script, and superceeded the -O2 supplied by toolchain-dns323.mk because is was later on the command line.
The patch ammends the optware changes to the Configure script to also define the little endian flag just because is seemed to be missing, but it doesn't seem to matter. Probably that's a bit dangerous :-)
bzhou - was there a better way?
Let us all know when a fixed binary is in the feed :-)
Last edited by sjmac (2008-04-03 02:14:31)
Offline
sjmac, I checked in a fix based on your patch,
http://trac.nslu2-linux.org/optware/changeset/8124
This will lower optimization on dns323 only.
The new binary openssl_0.9.7m-4_arm.ipk will be in the feed in an hour or two.
Cheers
[Edit] It's in the feed now.
Last edited by bzhou (2008-04-03 02:48:27)
Offline
bzhou, your build tested and working for me - thanks!
ojve, if you update openssl does rtorrent spring to life?
Offline
YES! Thank you thank you thank you!
//T
Offline
I've tried to install a package but I don't pass the following step:
/ # /opt/bin/ipkg update
/ffp/bin/sh: /opt/bin/ipkg: not found
the first steps are passed without a fault message (but don't know if that also means I wass successfull up to that point..)
# mkdir -p /opt
# mount -o bind /mnt/HD_a2/ipkg/opt /opt
# export PATH=/opt/bin:/opt/sbin:$PATH
#
# ipkg_name=ipkg-opt_0.99.163-9_arm.ipk
# feed=http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable
# wget $feed/$ipkg_name
# tar -xOvzf $ipk_name ./data.tar.gz | tar -C / -xzvf -
Can anybody help?
Offline
Don't know about the rest, but there is an error in that last line that you copied. It's supposed to be "$ipkg_name" not ipk_name.
also before doing the update you need to add the feed to your /opt/etc/ipkg.conf. add this line:
src dns323 http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable/
Offline
Correct it needs to be changed on the website, as it is a direct copy from there, I had already changed that myself, but thanks anyway.
I don't have the /opt/etc/ipkg.conf file. do I make this or should it be there? If i make is can it be empty except for that one line?
Also the dir /opt/bin/ipkg doesn't exist in my dns.....
Offline
You need to make sure that you bind /opt to /mnt/HD_a2/ipkg/opt every time your DNS323 is booted, and do the export PATH=.... stuff every time you telnet to your DNS323.
Peoples suggestions for the best place to put these if integrating with a vanilla Fonz fun_plug (0.4)?
Offline
I had followed the steps in the optware how to so did all those in the same telnet session, however still no succes.
/ # mount -o bind /mnt/HD_a2/ipkg/opt /opt
/ # export -p
export HOME='/'
export PATH='/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin'
export PWD='/'
export SHELL='/bin/sh'
export TERM='vt102'
export USER='root'
/ # export PATH=/opt/bin:/opt/sbin:$PATH
/ # export -p
export HOME='/'
export PATH='/opt/bin:/opt/sbin:/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin'
export PWD='/'
export SHELL='/bin/sh'
export TERM='vt102'
export USER='root'
/ # /opt/bin/ipkg update
/ffp/bin/sh: /opt/bin/ipkg: not found
I am using funplug 0.5 by the way
any other suggestions?
Last edited by pwvandeursen (2008-04-07 18:29:14)
Offline
Where did the result of
tar -xOvzf $ipkg_name ./data.tar.gz | tar -C / -xzvf -
go? It should populate /opt/*
And the next time you bind mount the same directory to /opt, /opt/bin/ipkg should be available.
Offline
strange,
Initially everything got copied except for the parts in the bin dir.....
I tried it again and now I had success! I also so you adapted the line:
tar -xOvzf $ipkg_name ./data.tar.gz | tar -C / -xzvf -
Maybe I didn't do it correctly last time (well actually I think there is a 99% chance that I did something wrong ;-).
well success was partly:
/ # mount -o bind /mnt/HD_a2/ipkg/opt /opt
/ # export PATH=/opt/bin:/opt/sbin:$PATH
/ # ipkg_name=ipkg-opt_0.99.163-9_arm.ipk
/ # feed=http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable
/ # wget $feed/$ipkg_name
Connecting to ipkg.nslu2-linux.org (140.211.169.169:80)
ipkg-opt_0.99.163-9_ 100% |*******************************| 72127 00:00:00 ETA
/ # tar -xOvzf $ipkg_name ./data.tar.gz | tar -C / -xzvf -
./data.tar.gz
./
./opt/
./opt/etc/
./opt/etc/ipkg.conf
./opt/lib/
./opt/lib/libipkg.so
./opt/lib/libipkg.so.0.0.0
./opt/lib/libipkg.so.0
./opt/share/
./opt/share/ipkg/
./opt/share/ipkg/intercept/
./opt/share/ipkg/intercept/ldconfig
./opt/share/ipkg/intercept/depmod
./opt/share/ipkg/intercept/update-modules
./opt/bin/
./opt/bin/update-alternatives
./opt/bin/ipkg
./opt/bin/ipkg-opt
/ # /opt/bin/ipkg update
Successfully terminated.
/ # /opt/bin/ipkg update
Successfully terminated.
/ #
/ # /opt/bin/ipkg list
Successfully terminated.
/ # /opt/bin/ipkg install <foo> <bar>
/ffp/bin/sh: syntax error: redirection unexpected
/ #
/opt/bin/ipkg now exists so up to that point it works....
the last line unfortunately doesn't yet. I'm following the line to the letter on your site, I have absolutely no clue what I'm doing, but am desperately trying to get MySQL working with PHP, and maybe it will work through this method. Any help is thus appriciated, and please forgive me for asking the really stupid questions.....
By the way what does the last line do? does it install all the packages that are in the /opt/bin/ dir? or anly the one that is mentioned in the command? so how would I then eventually install PHP_MySQL (and PHP GD for that matter)?
Last edited by pwvandeursen (2008-04-07 21:08:58)
Offline
<foo> <bar> is like <insert package name here>
write the name of the package you want to install, without the <>
//T
Offline
Ok, getting there...
/ # /opt/bin/ipkg install ipkg-opt_0.99.163-9_arm.ipk
Installing ipkg-opt (0.99.163-9) to root...
Configuring ipkg-opt
Successfully terminated.
I also tried the subsequent steps but get an error there as well:
/ # cd $HOME
/ # svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware
/ffp/bin/sh: svn: not found
Thanks all for the help so far!! I hope to have success in the end.
Patrick
p.s.
just to be clear this was the result of export -p
export HOME='/'
Offline
Also before you "/opt/bin/ipkg update", you need to configure the dns323 feed. The instruction is in the wiki page at http://www.nslu2-linux.org/wiki/Optware/Dns323
Offline
pwvandeursen, you don't need to build ipkg to use it, a great number of binary ipk's are in the feed already. Try get /opt/bin/ipkg functioning first.
Offline
bzhou wrote:
Also before you "/opt/bin/ipkg update", you need to configure the dns323 feed. The instruction is in the wiki page at http://www.nslu2-linux.org/wiki/Optware/Dns323
success!!! MySQl and PHP my admin both installed, next step see: if it all works!
Offline
First of all, great initiative to port IPKG to the DNS323.
I've been using Fonz' fun_plug 0.5 for a while now, but I couldn't get all my packages compiled properly, probably because of lack of knowledge about the ARM structure etc. And was looking for something simpler.
I've already had Debian Etch and Lenny running which worked fine, but felt a little bloated for me, that's why I ended up with reinstalling fonz' 0.4 with IPKG, and that has worked for me so far, the potential is there.
I'm having some troubles though getting some programs installed, in my case these are:
Tranmission
Ushare
I found in some page that "epoll_create" related errors could be solved by recompiling the package differently, and I am having just these errors while trying to run Transmission. So my question is if this can be fixed?
# transmission-remote -m [warn] epoll_create: Function not implemented #
Ushare is another story, it gives me this error:
Starting uShare UPnP A/V Media Server... R_ARM_PC24: Compile shared libraries with -fPIC!
I'm guessing it's related to ffmpeg, so it can't be fixed easily, but are there any plans on porting ffmpeg properly or should I look for another UPnP media server?
Many thanks in advance!
Offline
MeAngry, the key here is to get more dns-323 users/developers to work on packages. (I don't even own a dns-323)
Setup the cross build environment, and try change the configuration/compilation options. We welcome patches, even platform specific ones if we have to.
Does mediatomb work?
Last edited by bzhou (2008-04-07 22:46:21)
Offline
Thanks for the quick reply.
I guess I can just follow the topic "How to build ipk" in the Wiki? If so I'll try to build some extra packages myself, and report back here. The only issue is that my knowledge on building ARM packages is a bit of an understatement.
I can't find Mediatomb in the feed btw, but I might try to compile it myself as it "should" work on ARM CPU's.
Offline
Well this goes a bit further than this topic, but I rad into an issue with php my admin:
opening this on my site gives:
cannot load mysql extension;
please check PHP configuration
checked the Documentation which mentioned the following:
[1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration".
To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.
Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar
However the I installed both PHP-mysql and php admin through the optware. Do I need to build anything before I can use it?
Offline
pwvandeursen wrote:
However the I installed both PHP-mysql and php admin through the optware. Do I need to build anything before I can use it?
No. Use "ipkg files <pkg_name>" to see the files installed by the package.
Offline
Hmm, I was trying to set up a toolchain on my DNS-323 just now, but it appears there's no GCC version (or anything similar) in the current feed. So I guess my only option is to make a crosscompile environment? I'm not really feeling like doing that right now I'm afraid. Any other options?
Last edited by MeAngry (2008-04-07 23:55:45)
Offline
bzhou wrote:
pwvandeursen wrote:
However the I installed both PHP-mysql and php admin through the optware. Do I need to build anything before I can use it?
No. Use "ipkg files <pkg_name>" to see the files installed by the package.
/ # ipkg files php-mysql
Package php-mysql (5.2.5-1) is installed on root and has the following files:
/opt/lib/php/extensions/mysqli.so
/opt/lib/php/extensions/mysql.so
/opt/etc/php.d/mysql.ini
/opt/lib/php/extensions/pdo_mysql.so
Successfully terminated.
/ #
.
In \ipkg\opt\etc\php.d both gd.ini and mysql.ini reside, which should be automatically loaded once restarted, however a check (through the installer of vcd-db) shows me that both mysql and gd are not loaded....
any ideas on what to do?
Offline