00:00.35 | *** join/#openslug jacques (n=jacques@nslu2-linux/jacques) |
02:40.02 | *** join/#openslug rwhitby-away (n=rwhitby@secure.astc-design.com) |
04:18.32 | *** join/#openslug ]{amilion (n=Kamilion@24.182.60.242) |
04:20.13 | *** join/#openslug UgI (n=Sinclair@p54A08434.dip0.t-ipconnect.de) |
07:48.01 | *** join/#openslug koen (n=koen@dominion.kabel.utwente.nl) |
10:08.50 | *** join/#openslug blomma (n=blomma@c-199b72d5.014-202-6e6b701.cust.bredbandsbolaget.se) |
12:37.10 | adoom | anyone here get DebianSlug working on hardware from Gateworks besides loft (g2)? I think he's on vacation |
15:13.24 | *** join/#openslug koen (n=koen@dominion.kabel.utwente.nl) |
16:06.19 | *** join/#openslug DrZimmerman (n=theo@84-72-117-206.dclient.hispeed.ch) |
16:26.43 | *** join/#openslug koen (n=koen@dominion.kabel.utwente.nl) |
17:02.06 | *** join/#openslug DrZimmerman (n=theo@84-72-117-206.dclient.hispeed.ch) |
17:05.55 | *** join/#openslug caplink811-log (n=caplink8@dslb-088-073-118-110.pools.arcor-ip.net) |
17:18.05 | *** join/#openslug toi (n=peter@d54C27365.access.telenet.be) |
17:39.54 | *** join/#openslug Kamilion (n=Kamilion@24.182.60.242) |
17:45.31 | Kamilion | 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? |
17:45.56 | Kamilion | it's got a relatively simple makefile |
17:46.38 | koen | write a .bb file for it |
17:47.01 | Kamilion | okay, where might I find the documentation to do such a thing? |
17:47.52 | eFfeM | Kamilion: just peek at some other bb files, if your app is simple you won''t need to provide much |
17:48.03 | eFfeM | of course you could also decide to do things natively |
17:48.26 | Kamilion | tried that, but ipkg wouldn't install openslug-native |
17:48.33 | eFfeM | hm why not? |
17:48.39 | Kamilion | probably need to add a feed for it, but I'm not sure the name of it |
17:48.48 | Kamilion | just a sec, lemme fire up the slug and pull the error |
17:49.05 | Kamilion | also, does the openslug kernel have support for NBDs? |
17:49.28 | Kamilion | Couldn't get my swapfile to work over NFS, and I don't have a local USB enclosure for it |
17:50.10 | eFfeM | NBD ? |
17:50.16 | Kamilion | network block devices |
17:50.17 | koen | network block device |
17:50.28 | koen | AoE might be an option as well |
17:50.30 | eFfeM | ah, don't know. |
17:50.45 | Kamilion | basically exports a loopback filesystem over the network as a full on block device the kernel can mkswap on |
17:51.07 | eFfeM | 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 ? |
17:51.17 | Kamilion | But anyway, that doesn't matter, I can use my PSP as a temp swapdevice |
17:51.50 | koen | eFfeM: you'll need gcc-cross-initial and glibc-intermediate first for nptl |
17:51.52 | eFfeM | Kamilion: you can also use a flash stick as swap (although maybe after a while it will wear out) |
17:52.05 | Kamilion | yeah, my PSP can do that. Gig of swap should be plenty. |
17:52.17 | Kamilion | root@SLUG:~# ipkg install openslug-native |
17:52.17 | Kamilion | Nothing to be done |
17:52.17 | Kamilion | An error ocurred, return value: 4. |
17:52.17 | Kamilion | Collected errors: |
17:52.17 | Kamilion | Cannot find package openslug-native. |
17:52.37 | Kamilion | probably missing a feed, cause I ran ipkg update just before. |
17:54.09 | eFfeM | Kamilion: cat /etc/ipkg/*feed* |
17:54.54 | eFfeM | the cross feed should read: |
17:54.55 | Kamilion | root@SLUG:~# cat /etc/ipkg/*feed* |
17:54.55 | Kamilion | src/gz cross http://ipkg.nslu2-linux.org/feeds/slugos-bag/cross/3.10-beta |
17:54.55 | Kamilion | src/gz native http://ipkg.nslu2-linux.org/feeds/slugos-bag/native/3.10-beta |
17:55.13 | eFfeM | Kamilion: that's ok |
17:57.11 | eFfeM | oh, got it, do ipkg install slugos-native |
17:59.28 | Kamilion | ah, lol |
17:59.35 | Kamilion | just a sec, lemme swapon |
18:00.51 | Kamilion | yeah, that's grabbing. |
18:01.10 | eFfeM | good, this is wrong in the wiki, I am correcting it |
18:01.56 | Kamilion | Thanks. By the way, http://www.nslu2-linux.org/wiki/OpenSlug/HomePage is broken too |
18:02.15 | Kamilion | 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. |
18:02.16 | eFfeM | yeah, found 12 pages or so that refer to openslug-native |
18:02.42 | Kamilion | er |
18:02.47 | Kamilion | sorry |
18:02.48 | Kamilion | http://www.nslu2-linux.org/wiki/OpenEmbedded/HomePage |
18:02.51 | Kamilion | That's the broken page |
18:02.52 | eFfeM | ? I am using ff and opened the url |
18:02.53 | eFfeM | ok |
18:03.05 | Kamilion | Didn't copy the right URL, heh |
18:03.27 | eFfeM | yeah, that one fails for me as well |
18:03.32 | eFfeM | make mental note |
18:03.44 | eFfeM | coffee & news, back in 20-30 mins |
18:09.20 | Kamilion | Good thing I've got root over NFS, all these perl modules it's grabbing... LOL |
18:19.10 | Kamilion | okay, looks like it installed OK. |
18:21.35 | Kamilion | root@SLUG:~/usbhostfs_pc# make |
18:21.35 | Kamilion | cc -Wall -ggdb -I../usbhostfs -DPC_SIDE -D_FILE_OFFSET_BITS=64 -I. -O2 -L. -L. -o usbhostfs_pc main.o -lusb -lpthread |
18:21.35 | Kamilion | /usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: crt1.o: No such file: No such file or directory |
18:21.35 | Kamilion | collect2: ld returned 1 exit status |
18:21.35 | Kamilion | make: *** [usbhostfs_pc] Error 1 |
18:22.05 | Kamilion | I'm missing the c runtime? |
18:29.12 | eFfeM | i would expect that you get it with openslug-image |
18:29.18 | eFfeM | eh slugos-image |
18:33.24 | eFfeM | otherwise maybe install glibc separately |
18:33.31 | eFfeM | don't know any more how I got there |
18:34.15 | Kamilion | k, I'll give that a shot |
18:54.02 | *** join/#openslug caplink811-log (n=caplink8@dslb-088-073-117-142.pools.arcor-ip.net) |
19:12.23 | *** join/#openslug koen (n=koen@dominion.kabel.utwente.nl) |
19:22.48 | *** join/#openslug EvilDevil_ (n=miau@p54A6F46B.dip.t-dialin.net) |
19:41.53 | Kamilion | okay, I've consulted with some other folks, and they've came to the conclusion that my toolchain's broken. |
19:42.08 | Kamilion | ran ipkg install slugos-native |
19:42.41 | Kamilion | echo "int main(void) { return 0; }" > test.c && cc -o test.o test.c |
19:42.51 | Kamilion | root@SLUG:~/usbhostfs_pc# cc -o test.o test.c |
19:42.51 | Kamilion | /usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: crt1.o: No such file: No such file or directory |
19:42.52 | Kamilion | collect2: ld returned 1 exit status |
19:45.25 | *** join/#openslug Harvy (n=norm@80-193-172-141.cable.ubr05.pres.blueyonder.co.uk) |
20:07.00 | *** join/#openslug orda (n=orda@port70.ds1-hgs.adsl.cybercity.dk) |
20:42.16 | eFfeM-away | Kamilion: I also have your ld problem when compiling natively |
20:42.57 | Kamilion | Any fix? |
20:43.14 | eFfeM | nope, just tried it a minute ago |
20:43.23 | Kamilion | Or alternatively, how might I be able to run make on my crosscompiler built with the master makefile? |
20:43.46 | eFfeM | yeah, you can build the crosscompiler using the master makefile |
20:43.59 | eFfeM | you'll get it if you do a maken openslug-image |
20:44.01 | Kamilion | already built, and made openslug-image |
20:44.07 | Kamilion | then made libusb |
20:44.16 | eFfeM | then the gcc is in openslug/tmp/cross |
20:44.21 | Kamilion | Ahha! |
20:44.28 | Kamilion | Do I have to set up any env variables? |
20:44.28 | eFfeM | actually crt1 is also there so you could copy that one over |
20:44.47 | Kamilion | like cd to the openslug directory and run setup-env there? |
20:44.50 | eFfeM | not sure, I did not really build cross w/o bb |
20:45.04 | Kamilion | well, this one's all bitbake, it seems |
20:45.23 | eFfeM | you can try that, also you might have to add the dir with armeb-linux-gcc to the path |
20:46.01 | Kamilion | yeah, I'm trying to build a simple .c file that depends on libusb |
20:46.29 | Kamilion | and I don't really know how to write a whole ebuild file for bitbake |
20:47.06 | Kamilion | (discovered it was forked off portage ;) |
20:49.52 | eFfeM | if you want a small bb file as example look at setpwc |
20:57.30 | Kamilion | k |
20:58.26 | eFfeM | might have found something, still testing, hang on |
21:02.03 | Kamilion | http://415sf.com/usbhostfs.tar.bz2 |
21:02.05 | eFfeM | Kamilion: do this on your slug |
21:02.06 | eFfeM | ipkg install libc6-dev |
21:02.09 | Kamilion | that's the code I'm trying to compile |
21:02.14 | eFfeM | and you can compile natively |
21:02.30 | Kamilion | running now |
21:03.28 | eFfeM | i get a linker warning about interworking but my test exe runs |
21:04.30 | Kamilion | cc -Wall -ggdb -I../usbhostfs -DPC_SIDE -D_FILE_OFFSET_BITS=64 -I. -O2 -L. -L. -o usbhostfs_pc main.o -lusb -lpthread |
21:04.30 | Kamilion | /usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: main.o: Relocations in generic ELF (EM: 3) |
21:04.30 | Kamilion | main.o: could not read symbols: File in wrong format |
21:06.55 | eFfeM | file main.o |
21:07.14 | eFfeM | (i am using gcc 4.1.1) |
21:07.21 | Kamilion | .... |
21:07.22 | Kamilion | main.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped |
21:07.36 | eFfeM | heh, you got yourself a pc .o file |
21:07.52 | eFfeM | note that there is a main.o file in the bz2 you mention above |
21:07.57 | eFfeM | rm main.o and rerun make |
21:08.16 | Kamilion | holy crap, load of errors |
21:08.34 | eFfeM | missing libs and includes ? |
21:08.36 | Kamilion | main.c:19:17: usb.h: No such file or directory |
21:08.39 | Kamilion | Yep. |
21:08.55 | Kamilion | but that at least got it trying to compile. |
21:09.10 | Kamilion | lemme pastebin the errorlist |
21:09.11 | eFfeM | ipkg install libusb-dev |
21:09.15 | Kamilion | orn ot |
21:09.17 | eFfeM | and maybe some more lib*dev |
21:10.06 | eFfeM | about to call it a day (2310 out here) |
21:10.43 | Kamilion | well, it's cranking at the make now |
21:10.55 | Kamilion | cc -Wall -ggdb -I../usbhostfs -DPC_SIDE -D_FILE_OFFSET_BITS=64 -I. -O2 -c -o main.o main.c |
21:10.55 | Kamilion | cc -Wall -ggdb -I../usbhostfs -DPC_SIDE -D_FILE_OFFSET_BITS=64 -I. -O2 -L. -L. -o usbhostfs_pc main.o -lusb -lpthread |
21:10.55 | Kamilion | /usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: Warning: main.o does not support interworking, whereas usbhostfs_pc does |
21:11.01 | Kamilion | Looks like that may have gotten it |
21:11.17 | Kamilion | it runs. |
21:11.39 | eFfeM | yeah, this has to do with the lib compiled with different options than the main prog, add -mthumb-interwork or so to your CFLAGS |
21:11.41 | eFfeM | great |
21:11.58 | Kamilion | Thanks so much for your time and effort. |
21:12.12 | Kamilion | I really appreciate your help. |
21:18.16 | eFfeM | Kamilion: no problem. |
21:18.25 | eFfeM | the slug is a source of fun and learning for me |
21:18.59 | Kamilion | yeah, same here. Got mine 2 days ago. |
21:19.22 | Kamilion | Opneslug's pretty nice. Love how it controls the status LED differently than the stock firmware |
21:19.26 | eFfeM | didn't use unix for 15 years or so, started with the slug a year ago and got severely addicted |
21:19.45 | Kamilion | hehe, I've been a linux abuser since slackware 1.5 and kernel 1.3.22 ;) |
21:20.08 | eFfeM | nice thing is that you can add all kind of usb devices, check out my wiki page (eFfeM) to see what I have connected |
21:20.34 | eFfeM | Kamilion: I already exchanged email with Linus before linux; I used to work on minix for the atari st |
21:20.45 | Kamilion | Ahh, another ST user. |
21:20.50 | Kamilion | I miss my 1040STF. |
21:21.02 | Kamilion | floppy burnt out and needs a replacement power supply. |
21:21.03 | eFfeM | yup. still have 2 1040's and a tt030 |
21:21.09 | Kamilion | mmm, always loved the TTs. |
21:21.38 | eFfeM | 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 |
21:21.45 | eFfeM | haven't tried the other one for ages |
21:21.46 | Kamilion | I've got a sony Playstation Portable, and I'm trying to get the slug to work as a USB file host for it |
21:21.55 | eFfeM | cool |
21:22.06 | eFfeM | if you get it running please add a page to the wiki on this |
21:22.09 | Kamilion | basically acts as a huge virtual memory stick |
21:22.13 | Kamilion | Definitely will. |
21:22.18 | eFfeM | great |
21:22.21 | Kamilion | Hopefully I'll be able to get it packaged too. |
21:22.43 | Kamilion | so it'll be as easy as ipkg install libusb && ipkg install psplink |
21:22.45 | eFfeM | otherwise ping me if I'm around and I help you |
21:22.54 | eFfeM | actually it can be made simpler |
21:22.56 | Kamilion | Appreciate it. Get some sleep. :) |
21:23.01 | eFfeM | <PROTECTED> |
21:23.15 | Kamilion | I've got work to do, think it's not properly compiling for bigendian |
21:23.16 | eFfeM | you can add a dependency that drags in libusb automatically |
21:23.31 | Kamilion | Gonna talk to the dev about that, I think he already added bigendian support, just needs to be ifdef'd on |
21:23.35 | eFfeM | good. I'll be online every now and then for the next week after that I'm on holiday for 2 weeks |
21:23.50 | eFfeM | i can also help you getting your package in the archive |
21:23.56 | Kamilion | Cool. |
21:24.04 | Kamilion | I'm sure the devs will appreciate that |
21:24.12 | eFfeM | yup |
21:24.15 | eFfeM | cu |
21:24.17 | Kamilion | once it works on openembedded, there's plenty of stuff it'll work on |
21:24.21 | Kamilion | like the asus wl500s |
21:24.27 | eFfeM | cool |
21:24.39 | Kamilion | Cheers. Sleep well. |
21:24.53 | Kamilion | By the by, Amsterdam is really beautiful. |
21:25.00 | Kamilion | Love the horticultural gardens. |
21:25.15 | Kamilion | visited in march :) |
21:25.34 | eFfeM | just saw this: http://usbip.naist.jp/ also cool |
21:25.45 | eFfeM | actually I live near the belgian border |
21:25.48 | eFfeM | where are you from ? |
21:25.52 | Kamilion | California. |
21:26.16 | Kamilion | That's america, but without the stupid. ;) |
21:26.23 | eFfeM | ah been there several times, mostly work, once holiday, love hwy 1 and yosemite |
21:26.27 | Kamilion | yeah. |
21:26.46 | Kamilion | nice up north too, humboldt county. Nice redwood forests up there. |
21:26.55 | eFfeM | never been there |
21:27.02 | eFfeM | check this out if you are interested in where I have been |
21:27.04 | eFfeM | http://www.dse.nl/~meulenbr/holiday2000/ |
21:27.20 | Kamilion | Cool. I'll grok it in a bit |
21:27.24 | eFfeM | now really calling it a day, otherwise the wife will become angry ... |
21:27.25 | eFfeM | cu |
21:27.33 | Kamilion | See yah. |
21:47.40 | *** join/#openslug VoodooZ (n=VoodooZ@modemcable214.50-82-70.mc.videotron.ca) |
22:03.52 | *** join/#openslug koen (n=koen@dominion.kabel.utwente.nl) |
23:09.23 | *** join/#openslug gerdi__ (n=gerdi@dslb-084-058-132-049.pools.arcor-ip.net) |
23:37.11 | *** join/#openslug npt-laptop (n=npt@12-218-7-27.client.mchsi.com) |