**** BEGIN LOGGING AT Fri Jan 25 02:59:57 2008 Jan 25 03:14:01 I'm a noob at crosscompiling. How do I get arm-linux-gcc installed on ubuntu? Jan 25 03:21:04 http://www.nslu2-linux.org/wiki/Development/MasterMakefile Jan 25 03:31:53 03bzhou * r7653 10optware/trunk/platforms/toolchain-openwrt-ixp4xx.mk: toolchain-openwrt-ixp4xx: switch to toolchain of kamikaze 7.09 releases Jan 25 17:50:43 Do I have to go through the master makefile to build apex? Jan 25 17:51:23 How would I install a cross-compilation environment without the master makefile Jan 25 17:52:41 Annirak: read master makefile and you will understand Jan 25 17:53:03 it really depends on which cross compilation env you're talking about Jan 25 17:53:53 eno: I'm trying to buid apex for debian on an ubuntu-i686 platform. Jan 25 17:53:53 but why not just use the master makefile ? Jan 25 17:54:09 Updating the monotone caches is taking forever Jan 25 17:54:36 it's been running for ~20 minutes and it's only at 900/21000 Jan 25 17:54:38 that's certainly true Jan 25 17:55:11 i vaguely remember that you can copy a snapshot of mtn db from somewhere Jan 25 17:55:13 Annirak: Go to venge.net and get monotone-0.28. You can also tell Ubuntu package manager to lock the version and stop trying to update it. Jan 25 17:55:46 It takes my 2.4G celeron about 10 hours to migrate a db. Not worth the time. Jan 25 17:56:08 I have a better idea: sdm485, I know you have an apex image with 128/256MB support. Would you be willing to send that to me? Jan 25 17:57:27 Sure. Jan 25 17:57:52 =) Jan 25 17:58:01 Dcc? Jan 25 17:58:09 This will be the second stage loader? Jan 25 17:58:14 Yes Jan 25 17:58:27 Redboot->Apex->Debian Jan 25 17:58:54 Working..:) Jan 25 18:01:02 I want to use the installer image, which means 2.6.18 Jan 25 18:01:15 I was figuring on upgrading to 2.6.22-3 afterwards Jan 25 18:02:12 Will that be a problem with apex? Jan 25 18:04:29 I doubt it. Can you send me a post with your address? yours appears blocked by Yahoo and I can't attach anything to it. Jan 25 18:05:06 Ah. Yeah, that address is bad. One sec Jan 25 18:14:59 sdm485: did you get my message? Jan 25 18:15:25 I have a question about the mlock function call. When I launch memtester as a user, it refuses to lock memory which makes sense. When I run memtester as root, it will happily allocate whatever I ask to the point of crashing the system. Does this make sense? Jan 25 18:15:32 Annirak: not yet Jan 25 18:15:53 You don't see the PM I sent you? Jan 25 18:16:16 Oops. didn't see it.. Jan 25 18:16:31 np Jan 25 18:17:56 On it's way. Jan 25 18:18:48 :) Jan 25 18:19:54 Good. I think apex defaults to copying the maximum possible kernel size so about the only problem I see you having is if the location of the start of the kernel is different in a debian image Jan 25 18:21:37 I think it should be the same Jan 25 18:21:45 I hope it shoudl be the same Jan 25 18:22:00 :) Jan 25 18:23:57 It is also possible the area of the flash used for storing any additional env strings is actually used by debian. But if it makes the RAM available, there is no need for anything else. Jan 25 18:24:48 Do I need to pad the apex.bin or anything? Jan 25 18:24:53 The old one was 127k Jan 25 18:24:59 the one you sent me is 48x Jan 25 18:25:03 48k Jan 25 18:26:03 Hmm. Not sure. That is the problem. I would try it without padding first myself as I think that is how it is pieced together in slugosbe Jan 25 18:26:28 ok Jan 25 18:26:39 Maybe slugimage deals with that internally Jan 25 18:27:12 I am going to look through the logs on slugimage to see if there are any clues. Jan 25 18:27:37 So what I've done here is taken the debian-installer image, and replaced the apex.bin portion and replaced it with your apex.bin then reassembled it with slugimage Jan 25 18:34:38 Annirak: It looks like 1 128k flash block is allocated for the and that is where apex is put. The kernel is loaded into the 5th block. Probably padding makes no difference as long as the total size is less than 1 block. Jan 25 18:36:11 Ok. I'm loading the new image in now. Jan 25 18:36:13 * Annirak crosses fingers Jan 25 18:39:30 rebooted now... waiting for the beep Jan 25 18:39:59 there's the beeps Jan 25 18:40:08 cool :) Jan 25 18:40:49 well, that doesn't work. Jan 25 18:41:01 The kernel still only sees 32MB Jan 25 18:41:16 Looks like I'll have to compile a kernel too if I want to go any further with that. Jan 25 18:42:05 I bet the kernel has a hardcoded command line. You need the version that will accept command lines from the bootloader. Jan 25 18:42:26 And that version won't be in the debian installer image Jan 25 18:42:47 Probably not. Jan 25 18:43:09 I wonder what would happen if I took the 2.6.22-3 out of the current di package and used its vmlinuz in the image Jan 25 18:43:13 Can you change the kernel? Jan 25 18:43:17 yeah Jan 25 18:43:20 easily Jan 25 18:43:37 the only problem is that I may loose ethernet support if I do Jan 25 18:47:02 If you need modules, you will run into a problem. Jan 25 18:47:11 I've been using the unofficial image with the IXP4xx Jan 25 18:50:12 Have you thought of loading a slugos image (with the apex I sent) just to make absolutely sure the RAM is in order. I understand you aren't using a serial port. Jan 25 18:51:47 I had thought of it... I understand that slugosle works with debian... Hmm. That sounds like a viable option. Jan 25 18:52:09 I can always reflash later Jan 25 18:52:31 The apex version I sent you is from slugosbe. Jan 25 18:53:42 and yet it still booted. Weird. Jan 25 18:56:13 Redboot is big-endian and apex is big-endian so the kernel must set the endian bit itself I guess. Jan 25 18:58:07 Well, that works. So there are conventional slugos images, right? Jan 25 18:58:34 conventional? Jan 25 19:00:03 And by conventional, I mean binary Jan 25 19:00:32 Ah. You can download them from the website. Jan 25 19:02:12 Got to go. Have fun. Jan 25 19:02:25 =) Jan 25 20:13:58 morning Jan 25 20:16:03 morning rwhitby Jan 25 20:16:34 having a VMWare PC that is on the same subnet as the rest of your network, would that have the same affect as me booting a ubuntu live cd? Jan 25 20:18:14 Reedy_Boy: upgrade protocol does not work in vmware Jan 25 20:18:25 (cause it's a non-standard, non-IP ethernet protocol) Jan 25 20:18:52 err.. Jan 25 20:19:09 If copy paste would work Jan 25 20:19:17 I've got both my NSLU2's in upgrade mode Jan 25 20:19:31 the debian VMWare PC has deteced the debian NSLU2 in upgrade mode Jan 25 20:19:53 yo Jan 25 20:20:50 So, I've been having no end of trouble getting debian on to my slug Jan 25 20:21:02 Currently, I have Slugos/LE installed Jan 25 20:21:08 and that's working fine. Jan 25 20:21:30 But debootstrap is having some problems with me not having perl. Jan 25 20:22:31 rwhitby, http://images.reedyboy.net/VMWare.jpg Jan 25 20:24:08 So I'm installing perl. I think I'm getting further now, but it's hard to tell. I'll know for sure once debootstrap runs Jan 25 20:24:40 You can use a premade image... Jan 25 20:25:09 I haven't been able to get di-nslu2 to work Jan 25 20:25:19 I've tried all the workarounds I've seen. Jan 25 20:25:19 Reedy_Boy: wow - what version of vmware is that? Jan 25 20:25:26 while we are talking about images... I've got slugos beta 4.8 image installed just fine and built the latest off the monotone tree (4.9) Jan 25 20:25:31 6.0.2 Jan 25 20:25:40 rwhitby, i think, its the networking method thats used.. Jan 25 20:25:42 must be fixed in 6 then - I only have 5.x Jan 25 20:25:47 when I installed it, the memory footprint was dramatically larger in 4.9 than 4.8 is that to be expected? Jan 25 20:26:04 rwhitby, ahhh.. I have it taking an IP via DHCP from my router Jan 25 20:26:27 Reedy_Boy: yeah, I've tried bridged and nat before with 5.x - no go. Jan 25 20:26:27 so it acts like its a pc on my network at home... not like a subnet only my pc can access Jan 25 20:26:46 This is bridged :) Jan 25 20:26:56 They've fixed usb2 in 6 too Jan 25 20:26:57 * Reedy_Boy thinks he'd better update the wiki... Jan 25 20:27:49 rwhitby, i think that proves that my unslung NSLU2 is at fault... Jan 25 20:28:55 Its already in the wiki... Jan 25 20:28:56 "Last solution, Upslug2 does work with VMware? Workstation. Note that the user must configure the VM to have access on the ethernet in Bridge mode. (Upslug2 requires layer 2 access on the network.) " Jan 25 20:30:46 Reedy_Boy: note the version requirement for vmware Jan 25 20:31:11 Good idea, i'll put it on that it works in v6 Jan 25 20:31:27 Reedy_Boy: one last test - unplug the slug that it found and see if it finds the other one Jan 25 20:31:39 it didnt find it first Jan 25 20:31:42 but yeah, sure Jan 25 20:31:56 if not, then I agree the slug in question is not operating correctly Jan 25 20:32:15 [no NSLU2 machines..... Jan 25 20:33:40 That might become quite a popular method with there being the free VMWare player... for those in windows at least Jan 25 20:34:11 Anyone here have deboostrap experience? Jan 25 20:34:56 Nevermind, I'm being an idiot. Jan 25 20:35:18 I'd just use http://www.slug-firmware.net/d-dls.php Jan 25 20:35:19 tbh Jan 25 20:35:24 I omitted the http:// from the address. Jan 25 20:35:32 Reedy_Boy: didn't work for me Jan 25 20:36:05 Reedy_Boy: windows users can just use the sercomm utility Jan 25 20:36:24 yeah, just it can be a bit arkward at times Jan 25 20:36:26 The installer crashes continuously. That's supposed to be a symptom of low memory. So I fattened my slug. Except that now I need a build environment to get a kernel that supports a fatslug. Jan 25 20:36:56 During the drive partition/format Jan 25 20:37:11 Yes. Jan 25 20:37:15 Annirak: the crashes are a symptom of large drives and mkfs.ext2 needing lots of memory to format large drives Jan 25 20:37:44 I believe if you get in and add swap before that step (by manually partitioning the disk on another machine first) then you can get it to work Jan 25 20:37:44 rwhitby: I'm using reiser, with keep existing data specified. Jan 25 20:38:15 rwhitby: I have turned swap on before that. When partman runs, it unmounts your swap. Jan 25 20:38:31 That you can, or at least, was Martins work around on the debian-arm mailing list Jan 25 20:38:53 The workaround is to manually enable swap, then partition manually, then let partman run, but tell it to keep existing data and not format. Jan 25 20:39:02 rwhitby: are you here? Jan 25 20:39:17 At the end of that sequence, my install hangs indefinitely, and eventually drops my connection. Jan 25 20:39:33 scant: yep Jan 25 20:39:41 Annirak: just put a serial port on it. Jan 25 20:39:53 heh Jan 25 20:40:04 rwhitby: i'm asking for help in #oe, could you look? Jan 25 20:40:16 rwhitby: how's that going to help? Jan 25 20:41:52 Annirak: it may be only the ssh connection that drops, at which point you can complete the installation using the serial console Jan 25 20:55:01 rwhitby: That may be. So far, the slugos/le based debian install has been far less annoying, if far more involved. Jan 25 20:55:36 (annoyance happens when my slug kicks me out) Jan 25 20:56:30 Annirak: yep, that's how I used to do my debian nslu2 installs. Jan 25 20:57:48 rwhitby: once I have my slugos/le+debian install done, I'm going to try to work out how to get a kernel with a larger memory support in there. Jan 25 20:58:35 I understand it's purely a matter of the kernel arguments, since I have a modified apex loader installed already Jan 25 21:08:20 yep Jan 25 21:10:50 I think I have a problem. I just tried to unzip a file and got "tar: invalid gzip magic" Jan 25 21:11:38 missing dependancies? Jan 25 21:11:56 I don't think so. It had worked earlier Jan 25 21:12:17 lol Jan 25 21:13:04 I'm going to see what it does with a reboot Jan 25 21:15:31 Here's a new one for me: mount: Cannot allocate memory Jan 25 21:17:03 MemFree: 18704 kB Jan 25 21:24:17 rwhitby, was looking into some filesystem stuff last night... They reccommeneded XFS/ReiserFS over ext3... Jan 25 21:24:58 A bit of googling showed Martin Michlmayr saying no to XFS - some debian kernel problem Jan 25 21:25:07 but JFS would be ok instead... Jan 25 21:25:32 Would a different FS make any difference Jan 25 21:26:08 i was looking into 25GB of missing space on my drive - the 5% reserved space... which was 25GB Jan 25 21:26:16 i've taken that downt o 1% = 5GB... Jan 25 21:40:47 I think when I installed perl and reiserfs on my slugos/le it corrupted the onboard flash. Jan 26 00:16:43 Might this be a place to ask a question about building and using the slugosBE image for an nslu2? Building it off the monotone, etc? Jan 26 00:17:12 just as background, I already have it built, it's mostly about it's size as compared to the 4.8 release Jan 26 00:20:56 aadamson: this is the place Jan 26 00:22:40 ah, good deal... so I've built it, and the image is about the right size as compared to the 4.8 release.. however Jan 26 00:22:55 when installed and running it take almost 60% more memory than the 4.8 release??? Jan 26 00:23:13 ex. 4.8 leaves about 12M free, 4.9 leaves only about 3M free Jan 26 00:23:26 after like to like, flash images loaded only Jan 26 00:24:21 free as in "what TOP shows as available memory" btw Jan 26 00:24:47 aadamson: you probably want the attention of rwhitby Jan 26 00:24:57 and see if other ppl can replicate the problem Jan 26 00:25:19 he's very clear about the difference between 4.8 and 4.9 Jan 26 00:25:45 another way is trying to figure out the difference yourself Jan 26 00:26:18 yeah, I'm wondering what could be different. from a PS perspective its the similar set of stuff running between the two Jan 26 00:26:34 I just reached over rebooted the 4.9 machine... I'll give specifics here in just a minute Jan 26 00:28:25 bizarre, I guess I'll go climb in a hole first... because what I swear that I saw yesterday isn't happening now... So, ignore all of this until I can reproduce this... Jan 26 00:31:12 actually, it wasn't configured exactly like it was when I saw this, so I'm working to reconfigure... might be owfs that I was running on it for example... we'll see soon enough... thanks and I may be back :) Jan 26 00:34:56 btw, while I'm here, thanks to the Dev team, getting to the ability to build this for myself was ultra easy and worked as described... had to translate a little as I was building on gentoo, but for the most part it worked as described. I did have to mask a few packages from the full distribution as they wouldn't compile, but only 3 or 4 and nothing too important Jan 26 00:49:22 aadamson: that's good to hear. Jan 26 00:49:35 feel free to update the wiki with Gentoo-specific additions to the build instructions Jan 26 00:52:49 rwhitby: any major gotchas I should look for as I play with 4.9? Jan 26 00:53:07 btw, 2 that I remember that wouldn't build were motion and the madwifi stuff Jan 26 00:53:34 aadamson: none that I can think of Jan 26 00:53:50 madwifi I am not surprised Jan 26 00:54:09 ok, I built with the 2.4 intel driver version as well as it was suggested in what instructions there were Jan 26 00:54:35 any idea when *native* will be availble on either? Jan 26 00:55:50 dunno - none of the core team ever use native Jan 26 00:56:13 you guys are all cross building? Jan 26 00:56:35 yep, for everything Jan 26 00:57:01 can I ask... if I build the slugos-packages on a cross machine, is there a way to point the ipkg stuff to use that machine to get those packages? Jan 26 00:57:30 yes, if you export the tmp/deploy/ipk directory from a web server on the cross machine Jan 26 00:57:55 otherwise, just copy .ipk files across and install from the local file Jan 26 01:00:38 ah, perfect... ok, that will help. trying to build anything beyond helloworld.c on the slug is a *painfull* event at best! :) Jan 26 01:01:35 oh, one last one and I'll let you go... I've never been able to make the nfs mount option in turnup work for the swivel, I think I read that it might not? Jan 26 01:17:28 rwhitby: to be specfic, I couldn't build gspcavl, madwifi-ng and motion, but that was it out the packages (beyond what was already in the broken section) Jan 26 01:17:51 what is the qualification for a package being moved from unstable to stable? Jan 26 01:20:41 scant: it's been tested, and you let osas know about it Jan 26 01:21:12 aadamson: we don't know if nfs turnup works in 4.x - it wasn't tested. Jan 26 01:21:24 rwhitby: cool, i'm trying to build the latest version of sane Jan 26 01:21:31 but I believe mwester is fixing it in 4.9 Jan 26 01:21:40 did I miss something here? Jan 26 01:21:51 rwhitby: but i think it may be considered unstable because the backend libraries for the scanners don't always work on ARM Jan 26 01:21:59 ok, well, if you'd like to know it *does not* - nfs turnup that is. tried with and without the nfs modules loaded in the flash image Jan 26 01:22:20 aadamson: ok, please liase with mwester about that then Jan 26 01:22:29 will do Jan 26 01:41:15 There should be a page on the wiki, as well as detailed instructions on the mailing list archives on how to make it work. If you can confirm that those procedures work for you, then I'll commit the fixes. Jan 26 01:44:30 I'm looking for some do_install bb file help Jan 26 01:44:34 mwester: can you give me a specific link? The versions that I've found todate, do not work and I've got a current image and spare slug that I can test with and will let you know if the ones you reference do work? Jan 26 01:45:10 I'll go look for the archive as referenced... but the wiki did not unless there is some new content? Jan 26 01:46:17 I haven't looked on the wiki; the person I assisted via the mailing list reported sucess, and indicated he had placed the info in the wiki... :( Jan 26 01:46:55 ah, ok, I'll got look in the archives... ya recolect about how far back? Jan 26 01:48:12 scant, what do you want to do? Jan 26 01:48:57 osas: i have now patched my source files and edited my bb file and it all works Jan 26 01:49:04 osas: but it's still not the way i want it to be Jan 26 01:49:05 good Jan 26 01:49:10 oh ... Jan 26 01:49:24 ink 1,000,000 $ bills maybe :) Jan 26 01:49:33 osas: the first thing I need to do is: stop 'make install' from running and *i think* override 'make install' with do_install Jan 26 01:50:22 scant, all the scripts are in the temp directory, under the do_ files Jan 26 01:50:36 you can override them in your bb file Jan 26 01:50:56 osas: i want to override them in my bb file Jan 26 01:51:13 just refine you method there Jan 26 01:51:39 for instance, take a look at the asterisk package Jan 26 01:51:47 s/refine/define/ Jan 26 01:52:01 the do_configure is redefined there Jan 26 01:52:34 osas: can i rename a file in a do_install? Jan 26 01:52:59 you can do it in do_install_append() Jan 26 01:54:29 osas: do_install_append will still execute a 'make install', right? Jan 26 01:54:50 mwester: ok, found the archive info, will test and let you know Jan 26 01:55:18 scant, yes Jan 26 01:55:44 osas: and a do_install won't execute a 'make install'? Jan 26 01:56:00 I think it will Jan 26 01:56:11 check the scripts in temp directory Jan 26 01:57:42 mwester: for the record, he did indeed add it to the wiki, I just didn't look hard enough... http://www.nslu2-linux.org/wiki/SlugOS/BootfromNFS - many thanks and I'll confirm here in a few mins Jan 26 01:58:22 osas: i don't know what scripts you are talking about Jan 26 01:58:58 osas: here is what i need to do, I need to override 'make install' so it won't run at all, then copy and rename a lib file that the compile creates to /usr/lib/sane Jan 26 01:59:04 one sec Jan 26 01:59:47 go to nslu2be.tmp/work/armv5teb-linux/ Jan 26 02:00:11 from there into your sane-backend directory coresponding to your package version Jan 26 02:00:26 then cd temp Jan 26 02:00:41 osas: i know now Jan 26 02:00:48 and there you have the scripts ... Jan 26 02:00:49 ok Jan 26 02:00:49 03rwhitby * r991 10kernel/trunk/patches/2.6.25/: New patches dir Jan 26 02:01:01 ther you will see all the scripts Jan 26 02:01:06 03rwhitby * r992 10kernel/trunk/patches/2.6.25/ (3 files): Added patches from the LEDs maintainer Jan 26 02:01:10 and this is how you debug your build Jan 26 02:01:12 osas: are they the run.* files? Jan 26 02:06:32 yup Jan 26 02:06:38 there you have the scripts Jan 26 02:06:52 and in the log.* files you have the output Jan 26 02:07:11 if something goes wrong, those are the files that you need to check Jan 26 02:08:08 osas: hmmm Jan 26 02:08:23 osas: i think the command i need is oe_libinstall Jan 26 02:09:31 if you need to install a library, then yes Jan 26 02:13:50 why are so libraries .so and some .so.1 or .so.2? Jan 26 02:19:22 mwester: so, so far, I've found that the 4.8 changes don't work for 4.9 :)... I think it's because of the ipx4xx driver update and i don't think the _mac version is used in 4.9? exploring now after a reflash of 4.9 Jan 26 02:19:56 03rwhitby * r993 10kernel/trunk/patches/2.6.25/defconfig: defconfig, based on vanilla ixp4xx_defconfig Jan 26 02:34:42 mwester: for the record, the new 4.8 nfs turnup does *not* work with 4.9... I tried, and gave up... I only get a flashing orange LED (the top one) and the net interface light never lights up... switching to 4.8 to try there Jan 26 02:36:33 mwester: a little more info, this last time I let it wait forever, and it finally self booted, but back to flash, I thot I was hung it took so long. I tried with and without the modprobe ixp... in the /boot/nfs file **** ENDING LOGGING AT Sat Jan 26 02:59:57 2008