DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#51 2008-03-11 17:28:25

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: [announce] optware/dns323 to build 1000+ ipk's

HaydnH wrote:

Python 2.5 now works.

bzhou: what are the post install scripts trying to do? I don't have an update-alternatives binary/script so they fail... although it doesn't really matter...

Code:

Configuring bzip2
/mnt/HD_a2/ipkg//usr/lib/ipkg/info/bzip2.postinst: /opt/bin/update-alternatives: No such file or directory
postinst script returned status 127
ERROR: bzip2.postinst returned 127

How come you don't have /opt/bin/update-alternatives ? It's in the ipkg-opt package. You probably should bind mount your prefix to /opt. Are you using your own ipkg, or optware ipkg-opt ?

/opt/bin/update-alternatives is useful to give priority when binary with the same name exist from different packages. In this case, busybox.ipk may give you a /opt/bin/bzip2, and bzip2.ipk also gives you one, bzip2 package has priority.

Last edited by bzhou (2008-03-11 18:12:53)

Offline

 

#52 2008-03-11 19:50:29

HaydnH
Member
Registered: 2007-09-28
Posts: 187

Re: [announce] optware/dns323 to build 1000+ ipk's

Yes my own ipkg binary... however, shouldn't the control file for any packages using "update-alternatives" have a dependency listed on ipkg-opt??

Offline

 

#53 2008-03-11 20:02:54

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: [announce] optware/dns323 to build 1000+ ipk's

HaydnH wrote:

Yes my own ipkg binary... however, shouldn't the control file for any packages using "update-alternatives" have a dependency listed on ipkg-opt??

Strictly speaking, yes. OTOH, it's just not a scenario that happens very often:

1. optware packages gets managed by some unknown ipkg
2. and that unknown ipkg does not have update-alternative (if that ipkg has a known prefix, we can set UPD_ALT_PREFIX during build time, see http://trac.nslu2-linux.org/optware/bro … -fsg3v4.mk for example)
3. and one has to install ipkg-opt just for /opt/bin/update-alternatives

At that point, we might as well ask the user to start using ipkg-opt in the first place.

Offline

 

#54 2008-03-11 20:36:00

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: [announce] optware/dns323 to build 1000+ ipk's

Offline

 

#55 2008-03-14 11:10:13

JRT
New member
Registered: 2008-03-13
Posts: 4

Re: [announce] optware/dns323 to build 1000+ ipk's

Hi Brian,

The ssh-keygen binary is broken in OpenSSH.

/opt/bin # ssh-keygen
Generating public/private rsa key pair.
Illegal instruction

Last edited by JRT (2008-03-14 11:10:51)

Offline

 

#56 2008-03-14 14:42:48

JRT
New member
Registered: 2008-03-13
Posts: 4

Re: [announce] optware/dns323 to build 1000+ ipk's

Transmission is missing a library file.

/opt/share/www/lighttpd # transmission-daemon
transmission-daemon: can't load library 'librt.so.0'

no libc6 no joy.

however, lighttpd and clutch seems to be working.

Last edited by JRT (2008-03-14 14:45:08)

Offline

 

#57 2008-03-15 08:42:48

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: [announce] optware/dns323 to build 1000+ ipk's

I wonder if anyone can try copy

Code:

toolchain/uclibc-toolchain-src-20040609/gcc-3.3.x/toolchain_arm/arm-linux-uclibc/lib/librt*so*

to dns-323:/opt/lib and see if that can get packages such as transmission, swi-prolog working.

Similarly copy libffi*so* for jamvm.

Offline

 

#58 2008-03-15 23:12:24

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: [announce] optware/dns323 to build 1000+ ipk's

Copying the librt so and its symlinks to /opt/lib fixes the error JRT reported. I didn't do any other test as I have no idea what it's supposed to do, but transmission-daemon started and survived until I killed it.

I've attached my librt so as a tar file that includes the symlinks, so you should extract it like

Code:

cd /opt/lib
tar xzvf <path>/librt-so.tgz

(Replace <path> with the folder on your DNS323 that you've saved librt-so.tgz in.)

Last edited by sjmac (2008-03-15 23:19:08)


Attachments:
Attachment Icon librt-so.tgz, Size: 1,645 bytes, Downloads: 1,056

Offline

 

#59 2008-03-15 23:19:45

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: [announce] optware/dns323 to build 1000+ ipk's

And the other mentioned library, if anyone wants to try ...

In case it's useful to anyone, here are the shared library files that are present by default on the DNS323:

Code:

/ # ls /lib
ld-uClibc-0.9.28.so     libiconv.so.2           libresolv-0.9.28.so
ld-uClibc.so.0          libiconv.so.2.2.0       libresolv.so.0
libc.so.0               libid3tag.so.0          librpc-parse-3-0.so.0
libconfuse              libid3tag.so.0.3.0      libsmb-3-0.so.0
libconfuse.0            liblib-3-0.so.0         libsqlite3.so.0
libconfuse.0.0.0        liblpr.so.0             libsqlite3.so.0.8.6
libcrypt-0.9.28.so      libm-0.9.28.so          libstdc++.so.5
libcrypt.so.0           libm.so.0               libthread_db-0.9.28.so
libdl-0.9.28.so         libmsrpc-3-0.so.0       libthread_db.so.1
libdl.so.0              libnsl-0.9.28.so        libuClibc-0.9.28.so
libgcc_s.so             libnsl.so.0             libutil-0.9.28.so
libgcc_s.so.1           libparam-3-0.so.0       libutil.so.0
libgdbm.so.3            libpassdb-3-0.so.0      libz.so.1
libgdbm.so.3.0.0        libpthread-0.9.28.so    libz.so.1.2.3
libiconv.so             libpthread.so.0         modules

Last edited by sjmac (2008-03-15 23:29:55)


Attachments:
Attachment Icon libffi-so.tgz, Size: 26,374 bytes, Downloads: 859

Offline

 

#60 2008-03-21 17:54:32

jules
Member
Registered: 2008-01-26
Posts: 78

Re: [announce] optware/dns323 to build 1000+ ipk's

Just an update on this.
Swi-prolog doesn't work, when launched an error "swipl: pl-write.c: 763: writePrimitive: Assertion `0' failed." is displayed. But anyway, i don't think that there are many prolog programmers here.
Regarding the java support, jikes and jamvm packages, both of them work. But, while jikes speed is acceptable (btw we don't need to compile on the dns), jamvm is extremely slow. 10 sec to start and run hello world. Too slow for any real-world application.


CH3SNAS - Black Box Ed. • FW:1.03b6a • 2 x WD5000AAKS

Offline

 

#61 2008-03-21 18:18:00

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: [announce] optware/dns323 to build 1000+ ipk's

jules wrote:

Just an update on this.
Swi-prolog doesn't work, when launched an error "swipl: pl-write.c: 763: writePrimitive: Assertion `0' failed." is displayed. But anyway, i don't think that there are many prolog programmers here.
Regarding the java support, jikes and jamvm packages, both of them work. But, while jikes speed is acceptable (btw we don't need to compile on the dns), jamvm is extremely slow. 10 sec to start and run hello world. Too slow for any real-world application.

If phoneme-advanced runs, it should perform much much better. For usage and simple test method, see http://www.nslu2-linux.org/wiki/HowTo/UseJavaOnTheSlug

If it does not run, post the error message here, probably not too difficult to tweak the build configuration to get it run (I've done that for lots other optware platforms).

Offline

 

#62 2008-03-30 16:02:10

ojve
Member
Registered: 2008-03-02
Posts: 28

Re: [announce] optware/dns323 to build 1000+ ipk's

Hi.

Just tried to install rtorrent with no luck.

Code:

/ # ipkg install libsigc++
Installing libsigc++ (2.0.18-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//libsigc++_2.0.18-1_arm.ipk
Installing libstdc++ (5.0.5-6) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//libstdc++_5.0.5-6_arm.ipk
Configuring libsigc++
Configuring libstdc++
Successfully terminated.
/ # ipkg install libcurl
Installing libcurl (7.18.0-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//libcurl_7.18.0-1_arm.ipk
Installing openssl (0.9.7m-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//openssl_0.9.7m-3_arm.ipk
Configuring libcurl
Configuring openssl
Successfully terminated.
/ # ipkg install libtorrent
Installing libtorrent (0.12.0-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//libtorrent_0.12.0-2_arm.ipk
Configuring libtorrent
Successfully terminated.
/ # ipkg install rtorrent
Installing rtorrent (0.8.0-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//rtorrent_0.8.0-1_arm.ipk
package rtorrent suggests installing dtach
package rtorrent suggests installing screen
package rtorrent suggests installing adduser
Installing ncursesw (5.6-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//ncursesw_5.6-2_arm.ipk
Installing ncurses (5.6-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//ncurses_5.6-3_arm.ipk
Installing xmlrpc-c (1.11.00-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//xmlrpc-c_1.11.00-2_arm.ipk
Installing libxml2 (2.6.31-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//libxml2_2.6.31-1_arm.ipk
Installing zlib (1.2.3-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//zlib_1.2.3-2_arm.ipk
Installing libiconv (1.11-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//libiconv_1.11-2_arm.ipk
Configuring libiconv
Configuring libxml2
Configuring ncurses
update-alternatives: Linking //opt/bin/clear to /opt/bin/ncurses-clear
Configuring ncursesw
Configuring rtorrent
Configuring xmlrpc-c
Configuring zlib
Successfully terminated.
/ # rtorrent
Caught Segmentation fault, dumping stack:
Stack dump not enabled.
Aborted

Did I do something wrong or is this package not working?

//T

Last edited by ojve (2008-03-30 16:04:46)

Offline

 

#63 2008-03-30 18:51:58

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: [announce] optware/dns323 to build 1000+ ipk's

It's the package. A "strace rtorrent" might give more clue. (If it's epoll related, we can change the build options)
BTW, you don't need to install dependencies manually, "ipkg install rtorrent" will do.

Offline

 

#64 2008-03-31 09:02:20

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: [announce] optware/dns323 to build 1000+ ipk's

A patch to build kissdx 0.14.0.b1a


Attachments:
Attachment Icon kissdx.patch, Size: 6,234 bytes, Downloads: 736

Offline

 

#65 2008-03-31 13:29:53

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: [announce] optware/dns323 to build 1000+ ipk's

bzhou wrote:

A patch to build kissdx 0.14.0.b1a

I've been compiling from kissdx svn trunk, and have submitted patches to the authors/kissdx Makefile and the optware kissdx.mk.

http://www.vidartysse.net/BUGS/view_bug.php?bug_id=78

The kissdx developer 'vit' is also listed as the maintainer of the kissdx.mk file in optware, and I'm hoping that he'll look at the changes and move them in to Optware, (or bluediver, who did the last check in on that file ...), but they've not made any comment yet.

Regarding the kissdx Makefile, it looks like the authors know about Optware, but they weren't setting the prefix correctly in the Makefile. As well as fixing that, my patched Makefile uses any cross compilation options that are passed in (for example from kissdx.mk)

I passed in the options in this non-standard way because there is no kissdx configure script to pass them to.

(I've attached my patches here, in case someone wants to look without creating an account on the kissdx bug tracker.)

The kissdx.mk references a local location for the kissdx source so that I can easily incorporate my changes, so that would need tweaking for your build setup.

Any comments on the changes? Could I have done anything more cleanly?

I want to also link in libxml2, and for that I want to know if the build is a cross compile or native compile - how should I check for that?

Last edited by sjmac (2008-03-31 16:43:59)


Attachments:
Attachment Icon kissdx.mk, Size: 9,071 bytes, Downloads: 858

Offline

 

#66 2008-03-31 13:31:14

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: [announce] optware/dns323 to build 1000+ ipk's

And here is the Makefile patch (only one attachement allowed per post!)


Attachments:
Attachment Icon Makefile.patch, Size: 1,922 bytes, Downloads: 823

Offline

 

#67 2008-03-31 19:15:17

ojve
Member
Registered: 2008-03-02
Posts: 28

Re: [announce] optware/dns323 to build 1000+ ipk's

Well, I don't get the strace output, but hopefully someone else can.

Attachment is the output...

//T


Attachments:
Attachment Icon strace_rtorrent.txt, Size: 17,838 bytes, Downloads: 799

Offline

 

#68 2008-03-31 19:30:57

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: [announce] optware/dns323 to build 1000+ ipk's

From the strace, looks like it is using TERM=vt102 and ioctl failed, though shared libraries have been loaded correctly.
Can you try run rtorrent under /opt/bin/screen?

Offline

 

#69 2008-03-31 19:34:13

ojve
Member
Registered: 2008-03-02
Posts: 28

Re: [announce] optware/dns323 to build 1000+ ipk's

EDIT: Never mind that. I accidentally did it locally.

Code:

Caught Segmentation fault, dumping stack:
Stack dump not enabled.

[screen is terminating]

Last edited by ojve (2008-03-31 19:36:32)

Offline

 

#70 2008-03-31 19:44:06

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: [announce] optware/dns323 to build 1000+ ipk's

sjmac wrote:

I want to also link in libxml2, and for that I want to know if the build is a cross compile or native compile - how should I check for that?

We simply do

Code:

ifeq ($(TARGET_CC), $(HOSTCC))
# native compilation
else
# assume cross compilation
endif

You are welcome to join #nslu2-linux on freenode. If you adopt the maintenance of any optware package, or add new optware package, we can give you svn write access.

Offline

 

#71 2008-03-31 19:45:50

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: [announce] optware/dns323 to build 1000+ ipk's

ojve wrote:

EDIT: Never mind that. I accidentally did it locally.

Code:

Caught Segmentation fault, dumping stack:
Stack dump not enabled.

[screen is terminating]

Are you using Putty, xterm, or something else?

Offline

 

#72 2008-03-31 19:49:00

ojve
Member
Registered: 2008-03-02
Posts: 28

Re: [announce] optware/dns323 to build 1000+ ipk's

I'm using Konsole (in Xtem 4.x.x mode)

EDIT: from Ubuntu Heron beta
T

Last edited by ojve (2008-03-31 19:52:19)

Offline

 

#73 2008-04-02 01:22:17

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: [announce] optware/dns323 to build 1000+ ipk's

Still problems in openssh ...

I just updated the optware tree, built and tested openssh. The install goes like this (see seg faults in postinstall scripts):

Code:

/ # ipkg install openssh
Installing openssh (4.9p1-1) to root...
Downloading file:///mnt/HD_a2/optware_builds/openssh_4.9p1-1_arm.ipk
Configuring openssh

Generating RSA Key...
Generating public/private rsa1 key pair.
Segmentation fault
Generating RSA Key...
Generating public/private rsa key pair.
Segmentation fault
Generating DSA Key...
Generating public/private dsa key pair.
Segmentation fault
Fixing permissions on the /tmp directory...
killall: /opt/sbin/sshd: no process killed
Could not load host key: /opt/etc/openssh/ssh_host_rsa_key
Could not load host key: /opt/etc/openssh/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
postinst script returned status 1
ERROR: openssh.postinst returned 1
Successfully terminated.

How can I make and use a debug build to see what's going on?

(Could this be related to the rtorrent problems reported above?)

Offline

 

#74 2008-04-02 02:02:20

bzhou
Member
Registered: 2008-02-15
Posts: 171

Re: [announce] optware/dns323 to build 1000+ ipk's

1) According to http://bfg100k.blogspot.com/2008/01/get … s-323.html
There is no /dev/random on dns-323, could that be a problem for ssh-keygen?

2) Try "strace /opt/bin/ssh-keygen -t dsa -f /opt/etc/openssh/ssh_host_dsa_key -C '' -N ''"

3) To build with debug info, you'll need to customize TARGET_CUSTOM_FLAGS and TARGET_OPTIMIZATION, make sure -g is taking effect in compilation, and comment out $(STRIP_COMMAND) lines in make/openssh.mk

Offline

 

#75 2008-04-02 09:58:56

ojve
Member
Registered: 2008-03-02
Posts: 28

Re: [announce] optware/dns323 to build 1000+ ipk's

@bzhou

would it be possible for you to fix rtorrent? I would be very grateful, its the last piece of my puzzle.

//T

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB