Packages and more (my experiance with v24rc5)

Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware
Goto page 1, 2  Next
Author Message
wlanguy
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 38

PostPosted: Sat Dec 22, 2007 13:09    Post subject: Packages and more (my experiance with v24rc5) Reply with quote
Hi together,

I fiddle around with my IBM 8364 Netvista N2800 thin client and ddwrt v24rc5. Here are some hint's, what I get to work, and what makes problems:

- I didn't manipulate the CF cars layout of ddwrt, cause this is complicated and not update reliant. After a "nvram commit" part3 (/usr/local/) is ro remounted ...
- For my own software I plug in an USB Stick and uses that (only USB 1.1, but fast enough) This stick is mounted to /jffs via
Code:

rc_startup='if ! mount | grep -q " /jffs"; then
    insmod sd_mod
    fsck /dev/discs/disc2/part1
    mount /dev/discs/disc2/part1 /jffs
fi
for i in /jffs/etc/init.d/S*; do
    $i start 2>&1
done &'


- Most of the packages I use are from Openwrt kamikaze. Here is the ipkg.conf file:
Code:

src kmkgen       http://downloads.openwrt.org/kamikaze/packages/i386
src kmk707       http://downloads.openwrt.org/kamikaze/7.07/packages/i386/
src kmk709sys    http://downloads.openwrt.org/kamikaze/7.09/x86-2.6/packages
dest root /jffs
desr ram /tmp


- ipkg was modified and put to /jffs/bin which is used by PATH first:
Code:

        #IPKG_DIR_PREFIX=/usr/local/lib/ipkg
        IPKG_DIR_PREFIX=/jffs/lib/ipkg


- All configuration files are put to /jffs/etc and a start Skript in
/jffs/etc/init.d mounts them over the existing ones, e.g.
Code:

        mount -o bind /jffs/etc/profile /etc/profile
        mount -o bind /jffs/etc/ipkg.conf /etc/ipkg.conf


- All packages of Openwrt kamaikaze work well, I try xinetd, lsof, zile, joe, htop, strace, zip, unzip, e2fsprogs, mt-daapd (needs gdbm, howl, owl-mdnsresponder), gkrellmd, smartmontools

- Cross compiling was done on an ubuntu VMware system:
- On ubuntu install subversion, patch, g++, bison, .... (missing tools are checked by toolchain)
- Get toolchain:
Code:

      svn co https://svn.openwrt.org/openwrt/trunk/
      make menuconfig (choose target x86)
      make

- Result isin trunk/staging_dir/toolchain-i386_gcc4.1.2
Code:

      ln -s trunk/staging_dir/toolchain-i386_gcc4.1.2 ~/tcx86

- Expand PATH:
Code:

      PATH=/home/XYZ/tcx86/bin:/home/XYZ/tcx86/i386-linux/bin:$PATH


- Now most packages can be compiled directly. I succeeded with ntpd (with support for parse DCF77 receiver) and samba 3.

- For samba-3 you have to fiddle with configure:
Code:

export PREFIX=/jffs
export SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes ; \
export samba_cv_HAVE_WRFILE_KEYTAB=yes ; \
export samba_cv_REPLACE_READDIR=no ; \
export samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes ; \
export libreplace_cv_READDIR_GETDIRENTRIES=no ; \
export libreplace_cv_READDIR_GETDENTS=no ; \
export samba_cv_USE_SETRESUID=yes ; \
export samba_cv_USE_SETRESGUID=yes ; \
export linux_getgrouplist_ok=no ; \
  ./configure \
    --host=i386 \
    --target=i386-linux-uclibc \
    --libdir=/home/XYZ//tcx86/lib \
    --includedir=/home/XYZ/tcx86/include \
    --prefix=$PREFIX \
    --with-configdir=$PREFIX/etc \
    --with-included-popt --with-included-iniparser \
    --without-krb5 --without-ldap --without-ads --disable-cups \
    --without-sys-quotas --without-sendfile-support


leads to a well running samba-3.0.28 server

Problems:
=======

- ddwrt mkfs, fsck works well with the USB, but not on the IDE disc.
However the installed Openwrt tools do (see ticket 2846)

- Very poor performance of the IDE disc (see ticket 2847). It seems not to run in DMS mode. It's not a hardware issue, cause with FreeNAS on the CF card the disc is read with approx 25MB/s with only 15% total CPU usage.

I hope the performance issue will be fixd by the experts soon (openwrt kamikaze shows it too). And some of the above modifications will be imported into the release (e.g. one free part on CF, so the USB stick will not be necessary, or the ipkg modifications to use Openwrt packages).

Perhaps if this is of interest of more people, someone with wiki expreiance has time to put the info in it. Further if it's of interest I could provide the init scripts and the samba-3 binary tree.

Many thanks to all of the developers for this really amazing firmware.

Wish you a merry Christmas and a happy new year!
Sponsor
adx
DD-WRT User


Joined: 08 Apr 2007
Posts: 123

PostPosted: Sat Dec 22, 2007 18:07    Post subject: Reply with quote
Thanks for the excellent post wlanguy. This make it possible to run ddwrt and make use the power of x86 machine to the fullest. I knew sooner or later someone will crack this and there you are, sitting on it. Have you tried running apache+mysql+php? Hope the developer will add the mod as you said and spare us a free part from CF so no need for USB stick anymore.
_________________
- adx -
wlanguy
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 38

PostPosted: Sun Dec 23, 2007 14:54    Post subject: Reply with quote
No, I never try apache+mysql+php up to now. I the openwrt package repositoy only apache, php_pear and sqlite3 is available. However cross compiling apache, myql, php si due to the massive dependencies not really an easy job.

Mostly I'm missing the availability of the optware repository for x86 ...
[/quote]
confused_user
DD-WRT User


Joined: 17 Mar 2007
Posts: 347

PostPosted: Sun Dec 23, 2007 16:58    Post subject: Reply with quote
wlanguy wrote:
No, I never try apache+mysql+php up to now. I the openwrt package repositoy only apache, php_pear and sqlite3 is available. However cross compiling apache, myql, php si due to the massive dependencies not really an easy job.

Mostly I'm missing the availability of the optware repository for x86 ...
[/quote]Use OpenWrt Kamikaze. The packages are no longer compatible with DD-WRT and if you mix binaries you'll run into even more problems then you try to fix.

Think about it...
wlanguy
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 38

PostPosted: Tue Dec 25, 2007 12:33    Post subject: Reply with quote
Quote:

Use OpenWrt Kamikaze. The packages are no longer compatible with DD-WRT and if you mix binaries you'll run into even more problems then you try to fix.


Please don't evangelize .... I've tried openwrt,and there are other problems. However the packages ARE binary compatible, belive me. The only problem are the kernel modules due to the different versions .....

I would appreciate when you are able to contribute to ddwrt in the future.

However I wish you a merry Christmas!
confused_user
DD-WRT User


Joined: 17 Mar 2007
Posts: 347

PostPosted: Fri Dec 28, 2007 20:44    Post subject: Reply with quote
https://dev.openwrt.org/changeset/10010

upgrade to uClibc 0.9.29 - break binary compatibility

There you go! Though, WR binaries eventually still may be compatible but WR is no longer developed and the WR packages are already very old versions.
wlanguy
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 38

PostPosted: Sat Dec 29, 2007 9:46    Post subject: Reply with quote
O.k. that's apoint. But it's easy fixable by installing the required uclibc in/jffs/lib and setting the LD_LIBRARY_PATH which is necessary for may packages and the optware nslu2 packages.

The most usefull approach in my opinion is to motivate the optware guys to cross compile for dd-wrt x86 in the same way as it's done for the mipsel packages.

Is there anybody out there who has good connections to the optware team?

Best regards ..
HowardZ
DD-WRT Guru


Joined: 18 Jun 2007
Posts: 706
Location: Maryland

PostPosted: Sun Dec 30, 2007 5:36    Post subject: Reply with quote
Kamakazi already has packages built for x86
http://downloads.openwrt.org/kamikaze/packages/i386/

http://downloads.openwrt.org/kamikaze/7.09/x86-2.6/packages/

http://downloads.x-wrt.org/xwrt/kamikaze/7.09/x86-2.6/packages/

_________________
We all face the choice between what is right and what is easy.
wlanguy
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 38

PostPosted: Sun Dec 30, 2007 14:28    Post subject: Reply with quote
Yes, sure, as described in my first post I already use the OPENWRT packages.

What I spoke about are the OPTWARE packages. These are a lot more!!! Se the optware part in the wiki. And these packages are nor available for x86.
HowardZ
DD-WRT Guru


Joined: 18 Jun 2007
Posts: 706
Location: Maryland

PostPosted: Sun Dec 30, 2007 20:00    Post subject: Reply with quote
Wlanguy:

I am still absorbing your first post.

1. What did you modify in the profile file? I get the impression you changed PATH to start with /jffs/bin

2.Explain why you need to cross-compile all the packages? Doesn't the openwrt x86 packages work ok with dd-wrt x86? I have the impression you only cross compiled optware packages or packages made for different CPUs.

3.If the openwrt packages work well, is there any preference between the 7.07 and the 7.09 x86 packages?

_________________
We all face the choice between what is right and what is easy.
wlanguy
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 38

PostPosted: Sun Dec 30, 2007 21:30    Post subject: Reply with quote
Quote:

1. What did you modify in the profile file? I get the impression you changed PATH to start with /jffs/bin


#
# Show correct timezone with date and ntpd running
#
export TZ="CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00"

export PATH=/jffs/sbin:/jffs/bin:/jffs/usr/sbin:/jffs/usr/bin:/bin:/usr/bin:/sbin:/usr/sbin

export LD_LIBRARY_PATH=/lib:/usr/lib:/jffs/lib:/jffs/usr/lib


Quote:

2.Explain why you need to cross-compile all the packages? Doesn't the openwrt x86 packages work ok with dd-wrt x86? I have the impression you only cross compiled optware packages or packages made for different CPUs.


I try to use the openwrt x86 packages when ever they run stabe. Cross compile was necessary for ntpd (to compile in raw dcf77 serial line receiver support) and samba, cause there is no V3 available. Up to now I didn't compile more packages. What I miss is cyrus, php, and dependencies to put my mail server (home one for family, which fetches mail from provider and has a squirrelmail web interface) on the thin client. At the moment it's running on a FreeBSD server, but it consumes too much power .....

So it would much help to have the optware packages compiled for ddwrt and x86. Then it's easier to keep the software stack independent from the base system and you don't be dependent from openwrt in any case.

Quote:

3.If the openwrt packages work well, is there any preference between the 7.07 and the 7.09 x86 packages?


Most of them seems to work well. I've had problems with nfs (user land server), cause portmap dies with segmentation fault in a really early state. strace cant help so far, even though LD_LIBRARY_PATH.

I used the newest ones first, cause the kernel versions differs least between 7.09. However all kamikaze kernel modules could not be used therefore. The 7.07 repository contains a lot of packages not yet available in the other ones. The 7.09 isn't really necessary for me at the moment. The top level package dir is the newest one, but the package versions are the same when they are also available in 7.07 and 7.09 so far I've checked this

God luck and best regards!
Sash
DD-WRT Guru


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Sat Jan 05, 2008 11:54    Post subject: Reply with quote
he

is it possible that u ask bs for uploading your x86 packages to the download/other/packages/x86 repo?

so erveryone could use em.

_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
wlanguy
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 38

PostPosted: Sat Jan 05, 2008 18:04    Post subject: Reply with quote
Hi Sash,

that's possible, but at the moment I didn't have them available as ipkg .... I'm not familar with the format. For me it's enough to have them as a tarball, which I could unpack in /jffs.
switch
DD-WRT Guru


Joined: 30 Apr 2008
Posts: 967
Location: Romania

PostPosted: Tue Jul 22, 2008 9:49    Post subject: Reply with quote
Is there any update on this issue? It appears to be a fix for IPKG support.
_________________
Q: How do I do ...? A: Read the tutorials or Search forums
wlanguy
DD-WRT Novice


Joined: 07 Jun 2006
Posts: 38

PostPosted: Tue Jul 22, 2008 10:20    Post subject: Reply with quote
Hi,

alas no updates available. I stopp the project of enhancing the ddwrt-x86 machine and put FreeNAS on it, which is much better expendable for the things I want to do.

So I further go with dd-wrt on my asus wl-500gp.

What are especially you interested in?

Alas I still did not know how to upload the tarballs on the dd-wrt site. Perhaps someone could help?
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware All times are GMT

Navigation

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum