**** BEGIN LOGGING AT Fri Jul 07 02:59:56 2006 Jul 07 12:18:31 anyone here get DebianSlug working on hardware from Gateworks besides loft (g2)? I think he's on vacation Jul 07 17:26:51 Howdy. I got the mastermakefile to build me an openslug image, so I've got everything working reasonably properly, and got bitbake to build libusb -- now, my question is, how do I set it up to build my own application that's not in the repositories and link it against libusb? Jul 07 17:27:16 it's got a relatively simple makefile Jul 07 17:27:58 write a .bb file for it Jul 07 17:28:21 okay, where might I find the documentation to do such a thing? Jul 07 17:29:12 Kamilion: just peek at some other bb files, if your app is simple you won''t need to provide much Jul 07 17:29:23 of course you could also decide to do things natively Jul 07 17:29:37 tried that, but ipkg wouldn't install openslug-native Jul 07 17:29:53 hm why not? Jul 07 17:29:58 probably need to add a feed for it, but I'm not sure the name of it Jul 07 17:30:08 just a sec, lemme fire up the slug and pull the error Jul 07 17:30:24 also, does the openslug kernel have support for NBDs? Jul 07 17:30:48 Couldn't get my swapfile to work over NFS, and I don't have a local USB enclosure for it Jul 07 17:31:30 NBD ? Jul 07 17:31:35 network block devices Jul 07 17:31:37 network block device Jul 07 17:31:47 AoE might be an option as well Jul 07 17:31:50 ah, don't know. Jul 07 17:32:05 basically exports a loopback filesystem over the network as a full on block device the kernel can mkswap on Jul 07 17:32:26 koen, if I were to build binutils 2.17 and then rebuild gcc 4.1.1 with it, should I then be able to build glibc 2.4 ? Jul 07 17:32:37 But anyway, that doesn't matter, I can use my PSP as a temp swapdevice Jul 07 17:33:09 eFfeM: you'll need gcc-cross-initial and glibc-intermediate first for nptl Jul 07 17:33:12 Kamilion: you can also use a flash stick as swap (although maybe after a while it will wear out) Jul 07 17:33:24 yeah, my PSP can do that. Gig of swap should be plenty. Jul 07 17:33:37 root@SLUG:~# ipkg install openslug-native Jul 07 17:33:37 Nothing to be done Jul 07 17:33:37 An error ocurred, return value: 4. Jul 07 17:33:37 Collected errors: Jul 07 17:33:37 Cannot find package openslug-native. Jul 07 17:33:57 probably missing a feed, cause I ran ipkg update just before. Jul 07 17:35:29 Kamilion: cat /etc/ipkg/*feed* Jul 07 17:36:14 the cross feed should read: Jul 07 17:36:15 root@SLUG:~# cat /etc/ipkg/*feed* Jul 07 17:36:15 src/gz cross http://ipkg.nslu2-linux.org/feeds/slugos-bag/cross/3.10-beta Jul 07 17:36:15 src/gz native http://ipkg.nslu2-linux.org/feeds/slugos-bag/native/3.10-beta Jul 07 17:36:32 Kamilion: that's ok Jul 07 17:38:31 oh, got it, do ipkg install slugos-native Jul 07 17:40:48 ah, lol Jul 07 17:40:54 just a sec, lemme swapon Jul 07 17:42:10 yeah, that's grabbing. Jul 07 17:42:30 good, this is wrong in the wiki, I am correcting it Jul 07 17:43:16 Thanks. By the way, http://www.nslu2-linux.org/wiki/OpenSlug/HomePage is broken too Jul 07 17:43:35 The page isn't redirecting properly: Firefox has detected that the server is redirecting the request for this address in a way that will never complete. Jul 07 17:43:36 yeah, found 12 pages or so that refer to openslug-native Jul 07 17:44:02 er Jul 07 17:44:07 sorry Jul 07 17:44:07 http://www.nslu2-linux.org/wiki/OpenEmbedded/HomePage Jul 07 17:44:10 That's the broken page Jul 07 17:44:12 ? I am using ff and opened the url Jul 07 17:44:13 ok Jul 07 17:44:25 Didn't copy the right URL, heh Jul 07 17:44:46 yeah, that one fails for me as well Jul 07 17:44:51 make mental note Jul 07 17:45:04 coffee & news, back in 20-30 mins Jul 07 17:50:40 Good thing I've got root over NFS, all these perl modules it's grabbing... LOL Jul 07 18:00:30 okay, looks like it installed OK. Jul 07 18:02:55 root@SLUG:~/usbhostfs_pc# make Jul 07 18:02:55 cc -Wall -ggdb -I../usbhostfs -DPC_SIDE -D_FILE_OFFSET_BITS=64 -I. -O2 -L. -L. -o usbhostfs_pc main.o -lusb -lpthread Jul 07 18:02:55 /usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: crt1.o: No such file: No such file or directory Jul 07 18:02:55 collect2: ld returned 1 exit status Jul 07 18:02:55 make: *** [usbhostfs_pc] Error 1 Jul 07 18:03:25 I'm missing the c runtime? Jul 07 18:10:32 i would expect that you get it with openslug-image Jul 07 18:10:37 eh slugos-image Jul 07 18:14:44 otherwise maybe install glibc separately Jul 07 18:14:51 don't know any more how I got there Jul 07 18:15:34 k, I'll give that a shot Jul 07 19:23:12 okay, I've consulted with some other folks, and they've came to the conclusion that my toolchain's broken. Jul 07 19:23:27 ran ipkg install slugos-native Jul 07 19:24:00 echo "int main(void) { return 0; }" > test.c && cc -o test.o test.c Jul 07 19:24:10 root@SLUG:~/usbhostfs_pc# cc -o test.o test.c Jul 07 19:24:10 /usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: crt1.o: No such file: No such file or directory Jul 07 19:24:10 collect2: ld returned 1 exit status Jul 07 20:23:35 Kamilion: I also have your ld problem when compiling natively Jul 07 20:24:16 Any fix? Jul 07 20:24:33 nope, just tried it a minute ago Jul 07 20:24:42 Or alternatively, how might I be able to run make on my crosscompiler built with the master makefile? Jul 07 20:25:05 yeah, you can build the crosscompiler using the master makefile Jul 07 20:25:18 you'll get it if you do a maken openslug-image Jul 07 20:25:19 already built, and made openslug-image Jul 07 20:25:26 then made libusb Jul 07 20:25:35 then the gcc is in openslug/tmp/cross Jul 07 20:25:40 Ahha! Jul 07 20:25:47 Do I have to set up any env variables? Jul 07 20:25:47 actually crt1 is also there so you could copy that one over Jul 07 20:26:06 like cd to the openslug directory and run setup-env there? Jul 07 20:26:09 not sure, I did not really build cross w/o bb Jul 07 20:26:23 well, this one's all bitbake, it seems Jul 07 20:26:42 you can try that, also you might have to add the dir with armeb-linux-gcc to the path Jul 07 20:27:20 yeah, I'm trying to build a simple .c file that depends on libusb Jul 07 20:27:47 and I don't really know how to write a whole ebuild file for bitbake Jul 07 20:28:25 (discovered it was forked off portage ;) Jul 07 20:31:10 if you want a small bb file as example look at setpwc Jul 07 20:38:49 k Jul 07 20:39:45 might have found something, still testing, hang on Jul 07 20:43:22 http://415sf.com/usbhostfs.tar.bz2 Jul 07 20:43:23 Kamilion: do this on your slug Jul 07 20:43:24 ipkg install libc6-dev Jul 07 20:43:28 that's the code I'm trying to compile Jul 07 20:43:33 and you can compile natively Jul 07 20:43:48 running now Jul 07 20:44:46 i get a linker warning about interworking but my test exe runs Jul 07 20:45:49 cc -Wall -ggdb -I../usbhostfs -DPC_SIDE -D_FILE_OFFSET_BITS=64 -I. -O2 -L. -L. -o usbhostfs_pc main.o -lusb -lpthread Jul 07 20:45:49 /usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: main.o: Relocations in generic ELF (EM: 3) Jul 07 20:45:49 main.o: could not read symbols: File in wrong format Jul 07 20:48:14 file main.o Jul 07 20:48:33 (i am using gcc 4.1.1) Jul 07 20:48:40 .... Jul 07 20:48:41 main.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped Jul 07 20:48:55 heh, you got yourself a pc .o file Jul 07 20:49:09 note that there is a main.o file in the bz2 you mention above Jul 07 20:49:15 rm main.o and rerun make Jul 07 20:49:35 holy crap, load of errors Jul 07 20:49:53 missing libs and includes ? Jul 07 20:49:55 main.c:19:17: usb.h: No such file or directory Jul 07 20:49:57 Yep. Jul 07 20:50:12 but that at least got it trying to compile. Jul 07 20:50:29 lemme pastebin the errorlist Jul 07 20:50:30 ipkg install libusb-dev Jul 07 20:50:34 orn ot Jul 07 20:50:36 and maybe some more lib*dev Jul 07 20:51:25 about to call it a day (2310 out here) Jul 07 20:52:01 well, it's cranking at the make now Jul 07 20:52:13 cc -Wall -ggdb -I../usbhostfs -DPC_SIDE -D_FILE_OFFSET_BITS=64 -I. -O2 -c -o main.o main.c Jul 07 20:52:13 cc -Wall -ggdb -I../usbhostfs -DPC_SIDE -D_FILE_OFFSET_BITS=64 -I. -O2 -L. -L. -o usbhostfs_pc main.o -lusb -lpthread Jul 07 20:52:13 /usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: Warning: main.o does not support interworking, whereas usbhostfs_pc does Jul 07 20:52:19 Looks like that may have gotten it Jul 07 20:52:36 it runs. Jul 07 20:52:58 yeah, this has to do with the lib compiled with different options than the main prog, add -mthumb-interwork or so to your CFLAGS Jul 07 20:53:00 great Jul 07 20:53:17 Thanks so much for your time and effort. Jul 07 20:53:30 I really appreciate your help. Jul 07 20:59:35 Kamilion: no problem. Jul 07 20:59:43 the slug is a source of fun and learning for me Jul 07 21:00:17 yeah, same here. Got mine 2 days ago. Jul 07 21:00:41 Opneslug's pretty nice. Love how it controls the status LED differently than the stock firmware Jul 07 21:00:45 didn't use unix for 15 years or so, started with the slug a year ago and got severely addicted Jul 07 21:01:03 hehe, I've been a linux abuser since slackware 1.5 and kernel 1.3.22 ;) Jul 07 21:01:27 nice thing is that you can add all kind of usb devices, check out my wiki page (eFfeM) to see what I have connected Jul 07 21:01:53 Kamilion: I already exchanged email with Linus before linux; I used to work on minix for the atari st Jul 07 21:02:04 Ahh, another ST user. Jul 07 21:02:08 I miss my 1040STF. Jul 07 21:02:20 floppy burnt out and needs a replacement power supply. Jul 07 21:02:22 yup. still have 2 1040's and a tt030 Jul 07 21:02:28 mmm, always loved the TTs. Jul 07 21:02:57 tt030 monitor doesn't work any more, one ST has been subject to a hw mod (68020 upgrade) and probably does not work any more either Jul 07 21:03:03 haven't tried the other one for ages Jul 07 21:03:04 I've got a sony Playstation Portable, and I'm trying to get the slug to work as a USB file host for it Jul 07 21:03:13 cool Jul 07 21:03:24 if you get it running please add a page to the wiki on this Jul 07 21:03:27 basically acts as a huge virtual memory stick Jul 07 21:03:32 Definitely will. Jul 07 21:03:37 great Jul 07 21:03:39 Hopefully I'll be able to get it packaged too. Jul 07 21:04:02 so it'll be as easy as ipkg install libusb && ipkg install psplink Jul 07 21:04:03 otherwise ping me if I'm around and I help you Jul 07 21:04:13 actually it can be made simpler Jul 07 21:04:14 Appreciate it. Get some sleep. :) Jul 07 21:04:19 ipkg install psplink Jul 07 21:04:32 I've got work to do, think it's not properly compiling for bigendian Jul 07 21:04:35 you can add a dependency that drags in libusb automatically Jul 07 21:04:50 Gonna talk to the dev about that, I think he already added bigendian support, just needs to be ifdef'd on Jul 07 21:04:53 good. I'll be online every now and then for the next week after that I'm on holiday for 2 weeks Jul 07 21:05:09 i can also help you getting your package in the archive Jul 07 21:05:14 Cool. Jul 07 21:05:22 I'm sure the devs will appreciate that Jul 07 21:05:31 yup Jul 07 21:05:33 cu Jul 07 21:05:36 once it works on openembedded, there's plenty of stuff it'll work on Jul 07 21:05:40 like the asus wl500s Jul 07 21:05:46 cool Jul 07 21:05:58 Cheers. Sleep well. Jul 07 21:06:11 By the by, Amsterdam is really beautiful. Jul 07 21:06:18 Love the horticultural gardens. Jul 07 21:06:34 visited in march :) Jul 07 21:06:53 just saw this: http://usbip.naist.jp/ also cool Jul 07 21:07:04 actually I live near the belgian border Jul 07 21:07:06 where are you from ? Jul 07 21:07:11 California. Jul 07 21:07:34 That's america, but without the stupid. ;) Jul 07 21:07:42 ah been there several times, mostly work, once holiday, love hwy 1 and yosemite Jul 07 21:07:46 yeah. Jul 07 21:08:05 nice up north too, humboldt county. Nice redwood forests up there. Jul 07 21:08:14 never been there Jul 07 21:08:21 check this out if you are interested in where I have been Jul 07 21:08:22 http://www.dse.nl/~meulenbr/holiday2000/ Jul 07 21:08:38 Cool. I'll grok it in a bit Jul 07 21:08:43 now really calling it a day, otherwise the wife will become angry ... Jul 07 21:08:44 cu Jul 07 21:08:51 See yah. **** ENDING LOGGING AT Sat Jul 08 02:59:59 2006