**** BEGIN LOGGING AT Sun May 18 02:59:57 2008 May 18 03:28:41 * rwhitby now mounts /opt from nfs May 18 03:33:21 busybox wget works May 18 03:33:35 ahh yeah, there were a few things i had to remove because of re_exec May 18 03:33:50 Rod, what changes did you find from my source to the orig? May 18 03:34:25 because this all started by me wanting an improved busybox for my asus router May 18 03:35:12 and when i compiled one up relatively simply (a few changes only), I decided to try the Wiz toolchain and see what I could knock out for the wiz, but there were quite a few compile errors that i had to work thru May 18 03:35:52 i used the same busybox folder that i was working on for the asus too, so it may have one or two commented out bits because of the asus May 18 03:39:33 tonymy01: http://svn.nslu2-linux.org/svnroot/optware/trunk/sources/busybox/ now contains your busybox patch and defconfig May 18 03:40:36 yeah, i had to remove the -r flags as the linking wasn't working for the cross compiler May 18 03:41:09 our optware busybox compiling guru (eno) is going to take a look at it May 18 03:41:39 oh, oops May 18 03:42:23 i had to rename re_exec re_execnew and change the call to it, because the toolchain already defines re_exec and it wouldn't compile with 2 defs of that May 18 03:42:29 yep May 18 03:43:03 just checked in a cleaned up version May 18 03:43:38 wow, actually, after all the changes i tried to get it working, there ended up being next to no changes looking at the patch! May 18 03:43:41 I'll set up the nslu2-linux optware repo so that openwiz certs will work on it, so you can modify the busybox defconfig directly May 18 03:44:16 tonymy01: I was expecting that to be the case, but didn't want to take away from all the work you'd done :-) May 18 03:44:30 (it's always more work to get a smaller patch :-) May 18 03:44:47 see this bit: +#define ULLONG_MAX ULONG_LONG_MAX May 18 03:44:47 +#define LLONG_MAX LONG_LONG_MAX May 18 03:44:47 +#define LLONG_MIN LONG_LONG_MIN May 18 03:44:57 This was an attempt to get it to compile in 2.95... May 18 03:45:17 so that part of the patch can be reverted? May 18 03:45:45 have a look, I commented it out with /* */ May 18 03:45:56 oh, right. May 18 03:46:22 fixed May 18 03:47:14 i was going to try doing an extern re_exec, rather than rename the one in busybox, but I didn't know if they did the same thing May 18 03:48:20 and obviously you can't just call "make" to make it May 18 03:48:34 I think the other one is regular expression exec May 18 03:48:47 who can't just call make? May 18 03:48:57 (I take "make busybox" in optware at the moment to build it) May 18 03:49:03 s/take/type/ May 18 03:49:04 the busybox for the wiz May 18 03:49:13 look at tonymake May 18 03:49:18 that is the way i had to call it May 18 03:49:28 sure - there is now an optware target for the wiz, which encodes in the setup what was in tonymake May 18 03:49:37 ahh, ok May 18 03:49:40 so all that stuff is now part of optware May 18 03:50:00 http://svn.nslu2-linux.org/svnroot/optware/trunk/platforms/toolchain-openwiz.mk May 18 03:50:13 that's the toolchain definition for the optware openwiz platform May 18 03:50:41 ahh, i tried to do similar May 18 03:50:53 I'm not sure about TARGET_OS or the LIB*_VERSION variables - I have to talk to eno about those May 18 03:50:55 but didn't know how to call make with a file like this May 18 03:51:05 have you ever built optware? May 18 03:51:22 i tried exporting as shell vars, but didn't seem to work May 18 03:51:28 no May 18 03:51:35 now that you have a ubuntu machine, building optware will be trivial for you May 18 03:51:43 (since that's what we build it on) May 18 03:52:06 Here's the way to do it: May 18 03:52:09 cd /home/wiz May 18 03:52:17 wget http://www.nslu2-linux.org/Makefile May 18 03:52:21 make optware-openwiz May 18 03:52:42 the for individual packages: May 18 03:52:47 cd optware/openwiz May 18 03:52:51 make May 18 03:52:53 or: May 18 03:52:58 make -ipk May 18 03:55:30 that gives you access to almost 1000 packages to build ... May 18 03:55:44 many of which will work out of the box May 18 03:56:20 ok... i typically trudge around looking for source and then export shell vars, and compile individually May 18 03:56:38 your life is about to get much easier then ... May 18 03:56:47 lol May 18 03:58:28 ok, chugging away May 18 03:59:09 actually, how much d/l will happen for " make optware-openwiz"? May 18 03:59:11 note that I haven't merged the defconfig for busybox yet, May 18 03:59:19 oh, *lots*. May 18 03:59:24 crap.. May 18 03:59:28 just kill it after it starts compiling the first package May 18 03:59:30 i only have a few gig left May 18 03:59:34 then just build individual packages May 18 03:59:56 it handles dependencies automatically May 18 04:00:14 nice setup really! May 18 04:00:36 it's three years old, so it's been fairly well tuned :-) May 18 04:00:53 and you can use it to build new packages for the slug and other targets too May 18 04:00:58 (e.g. your asus router) May 18 04:01:16 we support about 15 or so different NAS and router devices May 18 04:01:21 (and now 1 PVR too) May 18 04:01:21 unfort asuswrt was never made for this router May 18 04:01:31 which one is it? May 18 04:01:35 as it has broadcom binaries May 18 04:01:39 wl600g May 18 04:01:45 we support openwrt and also oleg's firmware May 18 04:01:58 hmm - dunno about the wl600g though. May 18 04:02:00 the wl500g is the one May 18 04:02:08 nothing exists for wl600g May 18 04:02:13 it has adsl built in May 18 04:02:20 note that optware doesn't require custom firmware - most packages are built to work on the vendor firmware (e.g. like the wiz) May 18 04:02:55 and about 8 or 9 binaries that get sucked in during the build process (asus at least provided the full toolchain and source for anything not broadcom specific) May 18 04:03:20 oh, we can probably support it in optware then May 18 04:03:38 as long as you've got a toolchain, and a way to mount /opt, then we can usually do it May 18 04:04:04 now, who is game to try making a kernel for the Wiz :-) May 18 04:04:29 would be nice to get ext support May 18 04:05:07 then i can partition the hdd and/or run the filesystem from an external drive properly May 18 04:11:42 it works! Just built ntpclient in 2seconds :-) May 18 04:12:37 i didn't do it as root either May 18 04:12:41 heh May 18 04:12:44 taking your advice May 18 04:13:09 i mean building wiz packages works easily now May 18 04:13:19 looks like you'll have some fun this arvo working out which packages build and run and which don't :-) May 18 04:13:37 it is a nice day outside, i might have a bike ride May 18 04:13:46 Look in make/template.mk for how to package up a new app May 18 04:14:07 Look for myself or eno in #nslu2-linux if you get stuck. May 18 04:14:20 thanks for the nfs tip, works like a dream May 18 04:14:33 i thought it was just a quirk with the toolchain or busybox source May 18 04:16:33 hmm, actually, it doesn't work on the wiz though May 18 04:16:39 # ./ntpclient May 18 04:16:40 ntpclient: applet not found May 18 04:16:53 is your busybox in /opt/bin/busybox? May 18 04:17:01 i was getting this error when i didn't compile wth the -wl,-elf2flt flags May 18 04:17:18 yes May 18 04:17:41 i compiled ntpclient from optware, a seperate package May 18 04:17:43 ok, could be an optware toolchain setup error May 18 04:18:30 this was what took me a while to work out with the busybox compiling, because i thought the make would be smart enough to see the cross compile environ and use the right LD flags... I was wrong May 18 04:18:32 some packages don't pass down the ldflags correctly May 18 04:20:22 ok, commited the fix for ntpclient. May 18 04:20:39 cd /home/wiz/optware ; svn up ; cd openwiz ; make ntpclient May 18 04:20:41 what was the prob May 18 04:20:54 ntpclient.mk wasn't passing in LDFLAGS like it should May 18 04:21:25 http://trac.nslu2-linux.org/optware/changeset/8347 May 18 04:21:35 you are fast! May 18 04:22:08 that will be a common error we'll need to fix, since most other platforms don't need special LDFLAGS, so the packagers have been lazy and not passed it down May 18 04:22:39 ok, i see what you added, simply LDFLAGS=$(TARGET_LDFLAGS) May 18 04:22:40 BTW, you should join #nslu2-linux so you can see the CIA commit messages for optware May 18 04:25:02 bingo, compiles and runs on the wiz now May 18 04:25:36 (I actually compiled this one 3 months ago and have been using it to update the wiz manual time from an ntp server... well, at least the wiz GMT time) May 18 04:25:51 # ./ntpclient May 18 04:25:52 Usage: ./ntpclient [-c count] [-d] [-g goodness] -h hostname [-i interval] May 18 04:25:52 [-l] [-p port] [-r] [-s] May 18 04:26:25 have you been able to get tar to work in busybox? May 18 04:26:33 yes, it works fine May 18 04:26:46 # tar May 18 04:26:47 BusyBox v1.10.2 (2008-05-16 20:42:49 EST) multi-call binary May 18 04:26:47 Usage: tar -[czjxtvO] [-X FILE] [-f TARFILE] [-C DIR] [FILE(s)]... May 18 04:26:57 have you tried untarring anything? May 18 04:27:02 yes May 18 04:27:23 i tar big things up to transfer to the wiz May 18 04:27:36 # tar tvf hello_2.3-1_arm.ipk May 18 04:27:36 tar: exec failed: No such file or directory May 18 04:27:36 tar: short read May 18 04:27:54 there is no exec in the wiz May 18 04:28:02 yeah, I know. May 18 04:28:04 hmm, yes there is May 18 04:28:26 well, in mine there seems to b May 18 04:28:57 i have my path now as: May 18 04:29:04 PATH=/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/flash/bin May 18 04:29:21 exported as the 2nd line in rc.local May 18 04:29:29 yeah, same here May 18 04:29:50 this is my line: PATH=/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/flash/bin; export PATH May 18 04:30:01 so, which busybox are you using? May 18 04:30:09 the optware built one May 18 04:30:29 so if you type "help", does it show exec as a built in command? May 18 04:30:30 can you test it on yours and the optware built one? May 18 04:30:47 ah, no. May 18 04:31:04 mine: Built-in commands: May 18 04:31:04 ------------------- May 18 04:31:04 . : break cd continue eval exec exit export help login newgrp May 18 04:31:04 read readonly set shift times trap umask wait [ basename busybox May 18 04:31:04 cat chmod cp date dd echo env false fdisk free hostname ifconfig May 18 04:31:05 init insmod kill killall ln login ls md5sum mkdir mknod mount May 18 04:31:07 msh mv ps reboot rm rmdir sh sleep telnetd test touch true udhcpc May 18 04:31:09 umount vi May 18 04:31:32 hmm, it still has insmod in there.. I thought I removed that May 18 04:32:36 how do you have optware deal with the different .configs of the different system? May 18 04:32:45 ah, hang on - the shell has exec, yes. May 18 04:33:17 help is for /bin/sh May 18 04:33:34 which is the beyonwiz busybox May 18 04:33:35 ahh, ok May 18 04:33:48 that is strange then, as it supports exec May 18 04:34:07 actually, no, i remember a much shorter list than that the other day May 18 04:34:57 # /opt/bin/sh May 18 04:34:57 May 18 04:34:57 May 18 04:34:57 BusyBox v1.10.2 (2008-05-16 20:42:49 EST) built-in shell (msh) May 18 04:34:57 Enter 'help' for a list of built-in commands. May 18 04:34:58 May 18 04:35:00 root:/tmp/mnt/nfs> help May 18 04:35:02 May 18 04:35:04 Built-in commands: May 18 04:35:06 ------------------- May 18 04:35:08 . : break cd continue eval exec exit export help login newgrp May 18 04:35:10 read readonly set shift times trap umask wait May 18 04:35:12 i am remembering things in reverse it seems May 18 04:35:53 for the defconfigs, we merge most things, and then have OPTWARE_TARGET overrides for the rest May 18 04:36:45 ah, and overnight eno has added a feature where defconfig. will be used if it exists in the sources/busybox directory May 18 04:37:36 so we just edit defconfig.openwiz and we're done May 18 04:38:38 (if you were in #nslu2-linux you would have just seen my commit) May 18 04:40:46 svn up and busybox should build out of the box now May 18 04:41:05 do you need me to check out the optware busybox to see if the tar/exec is ok? May 18 04:41:19 yes please - compare it against your home-built one May 18 04:41:59 one thing i couldn't add for the wiz was large file support. the compiler would spit May 18 04:44:24 optware busybox build failed May 18 04:44:39 miscutils/eject.c:30:21: scsi/sg.h: No such file or directory May 18 04:44:39 miscutils/eject.c:31:23: scsi/scsi.h: No such file or directory May 18 04:44:39 miscutils/eject.c: In function `eject_scsi': May 18 04:44:53 did you svn up first? May 18 04:45:09 hmm May 18 04:45:16 it should have moved defconfig-openwiz to defconfig.openwiz, and then the busybox.mk uses that one instead May 18 04:45:31 you need to svn up at the top level of optware May 18 04:45:38 one level above the openwiz dir May 18 04:46:03 man, i didn't even think it had d/l the source for that yet May 18 04:46:44 ? May 18 04:47:12 i assumed "make busybox" was also downloading the source for it as i have not yet made it May 18 04:47:22 yes, it should May 18 04:47:23 hence not needing to svn May 18 04:47:38 you need svn to pick up the changes I made to optware May 18 04:48:01 i thought you made specific busybox changes only? May 18 04:48:26 yes, to the optware sources/busybox dir (which is not the busybox sources, but the optware extra files for busybox) May 18 04:48:55 ok... May 18 04:48:58 it built anyway May 18 04:49:02 now to try May 18 04:51:28 works fine May 18 04:51:42 hmm - maybe the .ipk is not a tar format May 18 04:52:04 May 18 04:52:04 root:/tmp/mnt/nfs> pwd May 18 04:52:04 root:/tmp/mnt/nfs> l *.gz May 18 04:52:04 -rw-r--r-- 1 root root 11906122 May 17 22:50 tony.tar.gz May 18 04:52:04 root:/tmp/mnt/nfs> ./busybox tar tvf tony.tar.gz May 18 04:52:05 drwxr-xr-x root/root 0 2008-05-14 00:15:01 bin/ May 18 04:52:07 -rwxr-xr-x root/root 677332 2008-03-02 22:51:22 bin/smbcontrol May 18 04:52:09 -rwxr-xr-x root/root 4492 2007-10-02 22:48:54 bin/dmesg May 18 04:52:21 can you join the #nslu2-linux channel? May 18 04:53:09 did you see the commit? May 18 04:53:37 yes, it is still there May 18 04:54:02 I waited till you joined before committing May 18 04:54:02 how is that possible, given you recommited 20mins ago or so? May 18 04:54:07 ahh May 18 04:54:28 http://trac.nslu2-linux.org/optware/timeline shows you the timeline May 18 04:54:38 now, does the syslogd work? May 18 04:54:41 bzhou is eno May 18 04:55:59 thanks May 18 04:56:13 # busybox tail -f /var/log/messages May 18 04:56:14 May 17 22:55:47 dpx1 syslog.info syslogd started: BusyBox v1.10.2 May 18 04:56:30 are you slowly ticking on extra packages for bb? I was a bit tentative to turn everything on May 18 04:56:52 first thing I'm going to do is converge the current optware config and your config. May 18 04:57:01 (so the differences are small) May 18 04:57:17 then any new ones get enabled in all optware targets May 18 04:57:46 notice i ditched the /usr idea too May 18 04:57:54 too many paths to have to worry about adding May 18 04:58:05 yeah, optware ditched that early on May 18 04:59:56 # syslogd -O /opt/var/log/messages May 18 05:00:12 (/opt is on NFS, so now I get persistent off-device logs of what's happening) May 18 05:03:06 anything interesting get logged? May 18 05:03:33 just updating rc.local to run them asap so I can see :-) May 18 05:04:08 ok, 3pm already, bbl May 18 07:09:57 tonymy01: tar is working now - I must have had something wrong May 18 07:10:06 Here is my rc.local now: May 18 07:10:22 #!/bin/sh May 18 07:10:22 export PATH=/opt/sbin:/opt/bin:${PATH} May 18 07:10:22 micomparam -q -t "$ telnetd" May 18 07:10:22 /usr/sbin/telnetd -l /bin/sh & May 18 07:10:23 sleep 5 May 18 07:10:23 micomparam -q -t "$ mount" May 18 07:10:25 mount -t none -o bind /tmp/mnt/idehdd/.optware /opt May 18 07:10:27 micomparam -q -t "$ netcat" May 18 07:10:29 /opt/bin/busybox nc -l -l -p 5000 -e /bin/sh & May 18 07:10:31 micomparam -q -t "$ syslogd" May 18 07:10:33 /opt/bin/busybox syslogd -O /opt/var/log/messages May 18 07:10:35 /opt/bin/busybox klogd May 18 07:10:37 ifconfig eth0 192.168.15.6 netmask 255.255.255.0 up 2>&1 >> /opt/var/log/bootlog May 18 07:10:39 mount -t nfs -o nolock 192.168.15.2:/media/sdb4/optware /opt 2>&1 >> /opt/var/log/bootlog May 18 07:10:41 /opt/bin/busybox logger "Optware startup initiated" May 18 07:10:43 micomparam -q -t "$ optware" May 18 07:12:10 do you need the sleep 5? May 18 07:12:23 is that waiting for the HDD to mount May 18 07:12:26 in wizdvp? May 18 07:12:27 yes May 18 07:12:32 righto May 18 07:12:33 I haven't tried without it. May 18 07:13:05 I needed the ifconfig in there cause whatever does the dhcp doesn't do it quick enough May 18 07:14:02 do you have symlink issues? May 18 07:14:10 running off the wizfs drive? May 18 07:15:27 yes, that's why I remount /opt from nfs May 18 07:16:01 ah yes May 18 07:18:05 could you run on the wizfs drive with shell scripts instead of symlinks? May 18 07:34:11 probably May 18 07:34:31 for development it's easier to mount it nfs May 18 07:43:08 i setup busybox with shell scripts for the wiz hdd May 18 07:43:21 but with symlinks on the nfs drive May 18 07:43:44 so i have it both ways, as sometimes i don't launch my ubuntu VM, and still want to telnet May 18 07:50:36 yeah, I'll probably do the same May 18 07:51:04 perhaps we can put in a custom version of 'ln' which just writes a shell script instead May 18 07:51:06 the hogwarts machine has both installs May 18 07:51:29 busybox make install supports both methods, symlinks and shell scripts May 18 07:51:40 for its applets i mean May 18 08:07:39 I May 18 08:07:47 will make two packages May 18 08:08:01 busybox-links and busybox-scripts May 18 11:59:35 tonymy01: not a peep in syslog from any beyonwiz stuff in 5 hours. **** ENDING LOGGING AT Mon May 19 02:59:57 2008