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.

#26 2008-03-07 23:54:54

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

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

<First, follow oxygen instructions to setup ipkg>

To configure that feed as the default feed, just add in /opt/etc/ipkg.conf
src dns323 http://ipkg.nslu2-linux.org/feeds/optwa … /unstable/

Then launch "ipkg update"

For a complete list of available packages type: "ipkg list"
The first string displayed is an alias that can be used to install packages ie. "ipkg install wget" , this will install wget_1.11-1_arm.ipk and all the required dependecies.


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

Offline

 

#27 2008-03-08 09:13:42

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

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

The feed has been rebuilt with -fPIC, please re-test when Packages* in http://ipkg.nslu2-linux.org/feeds/optwa … /unstable/ has a timestamp of Mar-8, 2008 (in 20 minutes or so).

Still quite some packages broken, but first I would like to get those built working.
Contributions to unbreak any packages welcome.

Offline

 

#28 2008-03-08 09:34:29

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

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

coreutils promoted for optware/dns323 after some fix.

Offline

 

#29 2008-03-08 11:30:21

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

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

If you are compiling your own packages you can set up a source which is a folder on the DNS323 and use a file:// URL in your ipkg.conf instead of using a web server.

First on your build machine build one or more packages and make an index file for the packages that you have built:

Code:

$ make <foo>-ipk
$ rm -f builds/Pa*; make index PACKAGE_DIR=builds

(See the bottom of http://www.nslu2-linux.org/wiki/Optware/DebianArmEtch.)

Then copy the packages (*.ipk) files and the Package.* files to your DNS323.

Edit your ipkg.conf file to include a line like

Code:

src local_builds file:///mnt/HD_a2/optware_builds

And then run "ipkg update", "ipkg list", "ipkg install ..."

("ipkg --help" shows that you can just do "ipkg install <ipkg filename>" too)

Offline

 

#30 2008-03-08 11:40:02

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

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

Tsharsk,W3m,lynx appear to have the -fpic error even after this updates.
Other packages tested:
Working: vim,tnftp,ncftp,pv,nano,bitchx,atop,tcpdump,unrar,httping,tinyscheme,weechat
Not working: Mc (weird term error, couldn't get this to work), iftop (runs ok for 10 sec, then kills itself)
Broken: jamvm (missing libffi and likely other libs), swi-prolog (librt missing)


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

Offline

 

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

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

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

Trying to run perl produces this familiar error:

Code:

/mnt/HD_a2/ipkg # perl -v
R_ARM_PC24: Compile shared libraries with -fPIC!

I looked at the console output from the make script and noticed that -fpic (lower case) was used during the build, not -fPIC. So, on the build machine, I ran

Code:

find sources/ -type f -exec grep -H fpic {} \;

And spotted the file
$(OPTWARE)/sources/perl/Cross/config.sh-dns323

I changed a line in there from

Code:

cccdlflags='-fpic'

to

Code:

cccdlflags='-fPIC'

cleaned out the build directory and rebuilt perl.

Unfortunately when I look at the console output during the build there are still a few '-fpic' (lower case) options sneaking in to some of the build commands, and the resulting build has the same problem. I can't see where I can change the remaining fpics - any clues anyone?

Last edited by sjmac (2008-03-08 15:33:22)

Offline

 

#32 2008-03-08 14:04:23

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

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

oxygen wrote:

HaydnH wrote:

oxygen - wget is installed as standard on the dns-323 anyway ;P

No. It's busybox. And the busybox implementation of wget cant do much.

/ # ls -l /bin/wget
lrwxrwxrwx    1 root     root           18 Mar  3 16:54 /bin/wget -> /sys/crfs/bin/wget


bzhou: python25 still has the -fPIC error after the update, I'll have a deeper look when I get more time.

Offline

 

#33 2008-03-08 20:22:49

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

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

One thing I missed in the original toolchain build was to fix the symlinks like on the wiki page. It is fixed now in optware svn.

Maybe worth a rebuild. But I'd like to know if it makes any difference.

php, php-apache, and eaccelerator can build with the symlink fix.

Last edited by bzhou (2008-03-08 21:10:02)

Offline

 

#34 2008-03-09 00:42:17

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

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

Thanks for the suggestion - no, the extra symlinks didn't let me build a perl that worked, still the "R_ARM_PC24: Compile shared libraries with -fPIC!" message.

Offline

 

#35 2008-03-09 04:22:00

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

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

Made one change to optware/make/perl.mk http://trac.nslu2-linux.org/optware/changeset/7942

Based on result of

 

Code:

arm-linux-uclibc-readelf -a libperl.so  | grep PC24

seems to take effect applying -fPIC. Please rebuild and test.

Offline

 

#36 2008-03-09 10:20:57

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

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

Yes, your change by itself (without my change to configure.sh-dns323) produced a working build:

Code:

/ # perl -e 'print "Hello\n"'
Hello
/ # perl -v

This is perl, v5.8.8 built for arm-linux

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

However, isn't $(OPTWARE)/make/perl.mk (aka $(OPTWARE)/dns323/make/perl.mk) used for every target, so you've added fPIC for all builds? Is that OK? fPIC seems to be safer than fpic, but I don't know if it might cause a problem elsewhere. I'm having one more go at seeing if I can do the same thing just editing the configure.sh-dns323 script ...

BTW - thanks for your time!

== update ==
(I flooded the configure.sh-dns323 script with -fPIC but couldnt get a good build without your Makefile change.)

Last edited by sjmac (2008-03-10 01:49:49)

Offline

 

#37 2008-03-09 17:31:41

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

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

sjmac wrote:

However, isn't $(OPTWARE)/make/perl.mk (aka $(OPTWARE)/dns323/make/perl.mk) used for every target, so you've added fPIC for all builds?

That is ok, because my change basically means:

Code:

if TARGET_CUSTOM_FLAGS contains -fPIC:
  force CFLAGS to have -fPIC by appending "CFLAGS = -fPIC" in perl/Cross/config

Right now, dns323 is the only platform to have -fPIC in TARGET_CUSTOM_FLAGS. (I guess it's because of old binutils)

Offline

 

#38 2008-03-09 18:54:59

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

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

Rebuilt and uploaded the optware/dns323 feed. The changes are:

1) toolchain with proper symlinks
2) solved perl -fPIC

Please retest (-force-reinstall or start from scratch).

Offline

 

#39 2008-03-10 18:58:49

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

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

jules wrote:

Tsharsk,W3m,lynx appear to have the -fpic error even after this updates.
Other packages tested:
Not working: Mc (weird term error, couldn't get this to work), iftop (runs ok for 10 sec, then kills itself)
Broken: jamvm (missing libffi and likely other libs), swi-prolog (librt missing)

swi-prolog probably should work after the latest update (toolchain lib* symlink fix).

Can you run mc under screen?

Some other packages to test: samba, samba2, openssh, irssi, svn, git, phoneme-advanced (CVM from Sun), emacs22, lua, php, ruby, sqlite, erlang, rtorrent.

After getting perl to work, I'd be interested in making sure python25 runs.

Offline

 

#40 2008-03-10 19:19:38

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

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

bzhou wrote:

After getting perl to work, I'd be interested in making sure python25 runs.

I'll check now - brb (well after this bad internet connection downloads it!).

Offline

 

#41 2008-03-10 19:29:32

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

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

I'm still getting -fPIC problems with python25, is this the latest feed? http://ipkg.nslu2-linux.org/feeds/optwa … s/unstable ?

I'll do a check asap and try and post the culprit files.

Last edited by HaydnH (2008-03-10 19:58:51)

Offline

 

#42 2008-03-10 19:48:49

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

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

The culprit file is: ./lib/libbz2.so.1.0.4

Offline

 

#43 2008-03-10 20:00:20

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

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

Just wrote a file called emacs.txt using the emacs22 package in console UI mode.

Seemed to work OK, but isn't F10 supposed to work the menus? Also Alt-x didn't work like I remember - it didn't do anything, but used to be meta-x.

update: Esc ` opens the menus.

now, quickly

Code:

ipkg remove emacs22

Last edited by sjmac (2008-03-10 20:03:47)

Offline

 

#44 2008-03-10 21:23:30

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

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

HaydnH wrote:

The culprit file is: ./lib/libbz2.so.1.0.4

Thanks, should be fixed by http://trac.nslu2-linux.org/optware/changeset/7950

update: please try test python25 after

Code:

ipkg update; ipkg upgrade bzip2

Last edited by bzhou (2008-03-11 04:58:05)

Offline

 

#45 2008-03-10 22:18:08

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

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

There is a problem with the emacs22 ipk - after I quit the program (CtrlX-CtrlC in Emacs) then the characters typed by me are no longer echoed in my terminal session (telnet from the Vista command line).

Is it supposed to work with an X server? I couldn't get it to open on my X display.

Last edited by sjmac (2008-03-10 22:18:42)

Offline

 

#46 2008-03-10 22:22:40

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

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

sjmac wrote:

There is a problem with the emacs22 ipk - after I quit the program (CtrlX-CtrlC in Emacs) then the characters typed by me are no longer echoed in my terminal session (telnet from the Vista command line).

Is it supposed to work with an X server? I couldn't get it to open on my X display.

It is built without-x

Offline

 

#47 2008-03-10 22:45:00

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

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

bzhou wrote:

Can you run mc under screen?

Yeah, but it's really sloooow.

bzhou wrote:

Some other packages to test: samba, samba2, openssh, irssi, svn, git, phoneme-advanced (CVM from Sun), emacs22, lua, php, ruby, sqlite, erlang, rtorrent.

I'll give phoneme a try.


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

Offline

 

#48 2008-03-10 23:55:28

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

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

jules wrote:

I'll give phoneme a try.

See http://www.nslu2-linux.org/wiki/HowTo/UseJavaOnTheSlug

Offline

 

#49 2008-03-11 00:14:58

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

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

sqlite seems fine:

Code:

/mnt/HD_a2 # ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//Pac
kages
Updated list of available packages in /opt/lib/ipkg/lists/optware
Successfully terminated.
/mnt/HD_a2 # ipkg install sqlite
Installing sqlite (3.5.6-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//sql
ite_3.5.6-1_arm.ipk
Configuring sqlite
Successfully terminated.

/mnt/HD_a2 # sqlite3 --version
3.5.6

/mnt/HD_a2 # sqlite3 ltf
SQLite version 3.5.6
Enter ".help" for instructions
sqlite> create table tt ( c1, c2);
sqlite> insert into tt values ( 1 , 'hello' );
sqlite> insert into tt (c2, c1 ) values ( 'world', 2 );
sqlite> .quit
/mnt/HD_a2 # sqlite3 ltf 'select * from tt;'
1|hello
2|world

Offline

 

#50 2008-03-11 13:28:38

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

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

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

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB