**** BEGIN LOGGING AT Wed Aug 10 23:59:56 2005 Aug 11 01:06:21 good morning all Aug 11 03:56:50 ello Aug 11 03:57:25 might try out activating the hfs support in the 2.6 kernel with the slug Aug 11 04:00:29 rwhitby: are there any troubles with netfiler and iptables support in the kernel? Aug 11 04:16:00 koen: dunno. never tried it. There is for the Unslung kernel, but it should be fine for OpenSlug. We may not have all the modules enabled, so feel free to enable any other modules required. Aug 11 04:18:03 I'll try to convince my slug to bake a new kernel with those enabled Aug 11 04:20:31 hmm, it seems that boost is blocking monotone getting into testing Aug 11 04:20:38 monotone 0.22, that is Aug 11 05:15:14 hi Aug 11 05:16:24 according to dmesg ttyS1 is not detected on 2 of my nslu-boxes Aug 11 05:16:42 can anyone help. I want to add a gps-receiver Aug 11 05:17:47 box1: v2.6.11 , box2 openslug2.5 Aug 11 05:18:23 hi cegg Aug 11 05:18:39 hanjo: hi Aug 11 05:18:46 is this a USB interface you are talking about? Aug 11 05:19:13 no. native receive-only (RxD+CTS) second port Aug 11 05:20:03 wait a second Aug 11 05:20:16 So you need a USB to serial converter to attach that to the slug Aug 11 05:20:36 Initializing Cryptographic API Aug 11 05:20:36 IXP4xx Watchdog Timer: heartbeat 60 sec Aug 11 05:20:36 Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled Aug 11 05:20:36 ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale Aug 11 05:20:36 io scheduler noop registered Aug 11 05:21:05 yes, the nslu2 has internal serial port, but it is not exported Aug 11 05:21:23 hanjo, there is a 2nd serial port on the board. Aug 11 05:21:32 OK Aug 11 05:21:37 its accessed via some pads. Aug 11 05:21:45 Yo can see that I never opened one :) Aug 11 05:21:49 and I dont know of anyone actually using it though. Aug 11 05:21:49 yes. according to nslu2-linux.org RxD+CTS are accessible Aug 11 05:22:19 cegg correct. It is a recieve only port. Aug 11 05:22:45 cegg are you using the binary, or are you compiling it? Aug 11 05:22:52 yep. but the prob is, that its not even recogized by the kernel Aug 11 05:23:16 box1 is compiled. box2 is a quick shot at openslug2.5 Aug 11 05:24:09 cegg, thats why I'm asking. Aug 11 05:24:19 one moment. Aug 11 05:26:05 *literally* 2.6.11 ? or 2.6.11.2 ? Aug 11 05:26:18 or 2.6.12.2 ? Aug 11 05:26:30 2.6.11.2 Aug 11 05:27:15 the kernel is not detecting a second serial on 2.6.12.2 also Aug 11 05:27:25 box1: 2.6.11.2 (unmodified kernel config), box2: openslug2.5 2.6.12.2 Aug 11 05:27:42 yes I know. Aug 11 05:27:51 hanjo: yep Aug 11 05:28:16 was the port detected under previous versions? Aug 11 05:28:32 cegg, I'm not going to tell you the answer for 2.6.11.2 because its no longer the mainline kernel for openslug, and the fixes are differnt than for 2.6.12.2 . Aug 11 05:28:46 no. at least I did not mention Aug 11 05:28:48 for 2.6.12.2, I'll need a bit to have an answer. Aug 11 05:29:06 dyoung: that is? Aug 11 05:29:28 for 2.6.12.2, I'll need a bit to have an answer. Aug 11 05:29:49 dyoung: sorry I'm a german native speaker Aug 11 05:30:04 I need time to find the answer. Aug 11 05:30:34 dyoung: hmm. Btw, change to mainline kernel is no prob for me. Aug 11 05:30:39 (I'm the guy that rewrote the machine specific stuff for 2.6.12.2 I/O; but I didnt look at for a while) Aug 11 05:30:59 dyoung: ah. ok Aug 11 05:31:57 Aha. Aug 11 05:32:00 Okay Aug 11 05:32:07 the 2nd uart is disabled. Aug 11 05:32:09 :) Aug 11 05:32:12 1: uart:unknown port:00000000 irq:0 Aug 11 05:32:28 hehe. how do I enable it? Aug 11 05:32:58 openembedded/packages/linux/nslu2-kernel/2.6.12/nslu2-setup.c line 156 Aug 11 05:33:27 Ah hell, plus the stanza after that. Aug 11 05:33:32 will need hacking on Aug 11 05:34:10 Its sort of obvious what the issue is. Aug 11 05:34:30 dyoung: aha.. so you are kindof kernel-hacker? ;) Aug 11 05:34:50 it was "if 0"-ed out as a matter of convenience. Aug 11 05:35:34 NAiL: dyoung is *the* kernel hacker, except he doesn't do binary sedding. Aug 11 05:35:35 NAiL: Sorta. I will take responsibility for that file because it brought you and I serial console to 2.6.12.2 . :-) Aug 11 05:36:45 Any suggestions for a temporary solution? Fallback to a former kernel, so far? Aug 11 05:36:48 Anyways, I'm not in a position to fix that file *right now*; but if you can modify/test it by changing those 2/3 stanza's I'll be happy to recommit it. Aug 11 05:36:55 No, its like thatin 2.6.11 also Aug 11 05:37:21 its an easier fix in 2.6.11 iirc. Aug 11 05:37:35 dyoung: I can do this. What needs to be done? Aug 11 05:38:43 dyoung: Ok, I'm just trying to hack nslu2-io.c to be a bit nicer with r/pbutton :) Aug 11 05:39:27 cegg, line 154 and 155 represent the empty structure starting at line 157. Aug 11 05:39:46 so if you blow away the if 0 and re-add the UART2 to the structure it ought to work. Aug 11 05:40:02 same with the bit 2 stanza's down. Aug 11 05:40:21 replace { } with ,{ .mapbase........ } Aug 11 05:41:10 dyoung: I'll have a look at this. But... I'm not that deep in kernel stuff. Aug 11 05:41:13 Does that make any sense? Aug 11 05:41:44 This is fairly standard stuff. Basically what you want to do is replace the {} with the real stuff which is "if 0"-ed out. Aug 11 05:42:23 cegg, do you have a serial console? Aug 11 05:42:45 yep Aug 11 05:42:56 Okay, in that case, you will know immediately if it worked or not. Aug 11 05:43:24 if you stuffed it up, you will lose your serial console after "uncompressing kernel... done." Aug 11 05:43:36 and you will see no kernel messages. Aug 11 05:43:43 Ok. Aug 11 05:43:45 but it comes back with a login prompt eventually. Aug 11 05:44:12 cegg, youre trailblazing here. Aug 11 05:44:20 dyoung: That should not be a problem. I have a Jtag-adapter too, but untested Aug 11 05:44:21 so anything I just told you may or may not work. Aug 11 05:44:42 NAiL, let me know if you make major changes to the leds/button/buzzer I/O stuff as my robot code uses it. Aug 11 05:44:56 If you do manage to stuff it up, you can always use upslug to go back to a known good image. Aug 11 05:45:33 NAiL, what was your question about udev again? Aug 11 05:45:39 VoodooZ_Work: Yeah, will do. Aug 11 05:45:45 dyoung: I'm comfortable with maintenance mode. so no prob Aug 11 05:46:15 dyoung: I'll be back later. Thanks so far Aug 11 05:46:45 Ok, good luck! Aug 11 05:46:54 nail, what are you wanting to do with it? Aug 11 05:46:57 VoodooZ_Work: Can't remember exactly Aug 11 05:47:03 np Aug 11 05:47:07 nail, do you have a copy of pbc.c ? Aug 11 05:47:12 dyoung: well, make it "work" Aug 11 05:47:27 dyoung: no idea. Where should that be? Aug 11 05:47:39 beats the hell outta me. Aug 11 05:47:43 yeah, a proper shutdown on power-button press would be nice. Aug 11 05:47:46 its not used. Aug 11 05:48:01 but its an example of a user-space interface to nslu2-io.c . Aug 11 05:48:06 dyoung: From my perspective, signalling init (SIGINT) instead of doing machine_power_off() when pbutton is pressed is a big step forward ;) Aug 11 05:48:20 Ah okay Aug 11 05:48:37 well, I can dig it up. Aug 11 05:48:50 it come from anyu2/openn2 . Aug 11 05:50:18 And rbutton should probably do what a reset button does ;) Aug 11 05:54:51 VoodooZ_Work: My *planned* changes was simply to make rbutton do reset, pbutton <4 sec - shutdown, pbutton >4 sec - hard poweroff Aug 11 05:55:25 leds and buzzer I don't care about right now Aug 11 05:58:19 NAiL, That sounds marvelous to me! Aug 11 05:59:01 yes Aug 11 06:00:00 Only problem is that I haven't done C in a few years (>5), and never done kernel stuff. So I need some time to brush up a bit ;-) Aug 11 06:02:02 well, if you run in any problems post here and maybe we can fix it as a group. :) Aug 11 06:02:26 I'm still learning kernel hacking so perhaps I can learn from it! Aug 11 06:02:48 I just recently purchased the 3rd edition of the Linux Device Drivers book to help with that Aug 11 06:02:55 nice Aug 11 06:04:37 It looks like most of the stuff I need is already in nslu2-io.c. Only thing I need to figure out are the syscall to do a hard reset, and how to properly signal init. And how to figure out when the button has been pressed for >4 secs Aug 11 06:04:51 s/are/is/ Aug 11 06:06:21 But there's already code to see if the rbutton has been held for so-and-so long, so I guess that's mostly a cut'n'paste thing with minor edits. Aug 11 06:06:31 yeah, the 4 secs thing doesn't look trivial to a beginner like me. Probably have to mess with timers. Aug 11 06:06:43 oh! that would help. Aug 11 06:07:10 while ((*IXP4XX_GPIO_GPINR & GPIO_RB_BM) == 0) Aug 11 06:07:10 ; //wait for button release Aug 11 06:07:53 so, I guess that'd be "while ((*IXP4XX_GPIO_GPINR & GPIO_PB_BM) == 0) Aug 11 06:08:25 stuff like that ;) Aug 11 06:08:46 what a while loop?? Aug 11 06:09:13 Does that mean the whole kernel blocks? Aug 11 06:09:59 dunno Aug 11 06:10:45 // This thing is sorta braindead...edge triggered IRQs aren't available in the drivers yet...so Aug 11 06:10:48 // we hang in a loop until the button is no longer pressed Aug 11 06:13:11 But the >4sec stuff isn't really necessary. That's just an idea. Making it shut down properly when pbutton is pressed is (hopefully) as simple as replacing the machine_power_off() call with proc_kill() that sends SIGINT to init. Aug 11 06:17:08 * NAiL wanders off Aug 11 06:17:10 later Aug 11 06:18:14 later Aug 11 06:54:38 NAiL: ping Aug 11 06:57:28 dyoung, NAiL: the "nail" package seems to want a /usr/lib/sendmail to exist. Which package contains that? ipkgfind only tells me that postfix contains /usr/bin/sendmail, not /usr/lib/sendmail ... Aug 11 07:10:26 hmm - have a configure error in an openslug build Aug 11 07:10:48 building icecast-2.2.0-r1 - error checking for xslt-config... no Aug 11 07:10:48 configure: error: XSLT configuration could not be found Aug 11 07:10:48 FATAL: oe_runconf failed Aug 11 07:12:34 blaster8: hm.. I thought NAiL removed icecast from openslug-packages... Aug 11 07:13:02 I'll remove it manually on mine for now (I don't exactly need it) Aug 11 07:13:10 btw, this build was started yesterday Aug 11 07:13:22 ah, make update and it will get removed Aug 11 07:13:27 a long time ago in slugtime ... Aug 11 07:13:58 thanks - I'm compiling on a 1GHz Pentium 3 - not slow, but not exactly speedy either Aug 11 07:14:24 monotone 0.22 on gentoo works well, btw Aug 11 07:15:12 is the server running 0.22 now? Aug 11 07:15:55 My monotone tree seems to be broken so I'll probably end up starting from scratch. There's been so many changes that it's only a good thing. Aug 11 07:16:20 make clobber monotone, is it? ;) Aug 11 07:16:33 what? Aug 11 07:16:34 ls Aug 11 07:16:43 in the makefile Aug 11 07:16:53 what does it do? Aug 11 07:17:20 it's just an option to delete things - I don't think there is a monotone target actually Aug 11 07:17:38 yeah but what does it delete exactly? Aug 11 07:17:52 oh sorry, misunderstanding - that's distclean Aug 11 07:18:07 Mine is just messed up beyond repair I'm afraid so I'll just start from scratch. easier. Aug 11 07:18:37 VoodooZ_Work: don't forget to save your key Aug 11 07:18:47 I have not built in 2 weeks now as I'm just waiting for the Makefile to stabilize. Aug 11 07:18:54 just keep your ccache and it will be nice and quick (hopefully) Aug 11 07:19:10 nah. I don't want any potential screwups. Aug 11 07:19:43 my key? If I start from scratch and never pushed it shouldn't matter right? Aug 11 07:21:55 dump your keys and save them Aug 11 07:22:03 Where are they saved again. Aug 11 07:22:20 monotone privkey Aug 11 07:22:25 that dumps them to srdout Aug 11 07:22:30 stdout* Aug 11 07:22:47 then make a hardcopy of those Aug 11 07:23:11 But why can't I make a new one instead if I never pushed anything upstream? Aug 11 07:23:25 good manners Aug 11 07:23:43 I see. Aug 11 07:23:55 monotone is really picky about this sort of stuff Aug 11 07:24:13 the less people attach different keys to the same ID, the better Aug 11 07:24:14 I didn't think of the server logging this. That could explain the mess i have maybe. Aug 11 07:24:40 it *shouldn't* matter, but you'll never know Aug 11 07:25:04 so when I redo my dev tree how do I reenter this saved key? Aug 11 07:26:37 monotone read Aug 11 07:26:43 check the manual Aug 11 07:26:50 ok Aug 11 07:27:50 monotone read < filewithkey.txt Aug 11 07:28:07 thks Aug 11 07:28:11 or monotone --db=old.db pubkey id@id.org | monotone --db=new.db read Aug 11 07:28:27 and the same for privkey Aug 11 07:49:29 rwhitby-away: pong Aug 11 07:49:51 rwhitby-away: ssmtp creates a /usr/sbin/sendmail symlinks with u-a Aug 11 07:50:41 and really, I do think nail should be fixed to want /usr/sbin/sendmail Aug 11 07:54:46 16:49 < NAiL> rwhitby-away: ssmtp creates a /usr/sbin/sendmail symlinks with u-a Aug 11 07:54:50 16:50 < NAiL> and really, I do think nail should be fixed to want /usr/sbin/sendmail Aug 11 07:55:16 looking into how to "fix" nail right now Aug 11 08:03:03 DaKa2: ping? Aug 11 08:12:17 rwhitby-away/nslu2: I've updated nail to use /usr/sbin/sendmail. Going to try to get postfix to use u-a and provide /usr/sbin/sendmail as well. Aug 11 08:12:47 NAiL: pong? Aug 11 08:13:56 NAiL: nice Aug 11 08:14:21 DaKa2: Just ignore me again. I think I'm getting the hang of u-a :P Aug 11 08:16:43 :) Aug 11 08:17:03 well, as I said, there are lots of examples Aug 11 08:18:43 argh Aug 11 08:18:49 that ugly hack doesn't work Aug 11 08:20:23 DaKa2: ok, is there a way to do rename one file in postfix (ie /usr/bin/sendmail) to /usr/sbin/sendmail.${PN}, without listing all the files in FILES? Aug 11 08:20:45 huh? Aug 11 08:21:13 it will take everything in /usr/sbin into the main package automatically Aug 11 08:21:40 hmm... so if I do a do_install_append() mv sendmail, it'll get packaged correctly? Aug 11 08:21:52 yep Aug 11 08:21:55 thx Aug 11 08:21:57 should Aug 11 08:23:41 of course, postfix didn't wanna compile at all Aug 11 08:23:43 repvik@dev:~/nslu2/openembedded/packages/postfix$ cat /home/repvik/nslu2/openslug/tmp/work/postfix-2.0.20-r4/temp/log.do_install.30233 Aug 11 08:23:47 ./postfix-install: Error: no /home/repvik/nslu2/openslug/tmp/staging/i686-linux/bin/postconf file. Did you forget to run "make"? Aug 11 08:25:53 am I suppose to create /share/hdd/ directory on openslug for samba? Aug 11 08:26:24 shouldn't need to. Aug 11 08:26:26 no Aug 11 08:26:32 look in /etc/samba/smb.conf Aug 11 08:26:45 by default, samba only shares homedirs Aug 11 08:26:55 you can add your own shares as you see fit Aug 11 08:26:57 ok Aug 11 08:28:03 If you run into problems with samba, lemme know. :) Aug 11 08:30:09 what is the default login name and password? Aug 11 08:30:28 for samba? Aug 11 08:30:33 yup Aug 11 08:30:40 samba uses a separate passwd db Aug 11 08:30:46 it's impossible to login to begin with ;) Aug 11 08:30:54 I just did a 'ipkg install samba' Aug 11 08:30:54 smbpasswd -a username Aug 11 08:31:10 what should I do now? Aug 11 08:31:19 add a user with smbpasswd Aug 11 08:32:08 just keep your ccache and it will be nice and quick (hopefully) Aug 11 08:32:13 damn Aug 11 08:32:22 keep thinking I am in the terminal Aug 11 08:36:03 rwhitby: ping? Aug 11 08:36:13 pong Aug 11 08:36:32 rwhitby: Mind trying the new postfix-package? -r4 has just been committed, and should fix the issue. Aug 11 08:36:58 It provides /usr/sbin/sendmail symlink, with slightly higher prio than ssmtp's symlink Aug 11 08:37:01 rwhitby: actually, I moved the miau logs to the wl500g instead. Aug 11 08:37:27 NAiL: so I don't need it anymore :-) Aug 11 08:37:41 heh, ok. I'll just wait and see if anyone else complains then :P Aug 11 08:46:41 is there a viewmtn on nugabe? Aug 11 09:10:15 ingeba-away: ping? Aug 11 09:10:58 ingeba-away: I still can't build groff. It's in the feeds now, but it won't build on mine or DaKa2's boxes. Aug 11 09:20:25 NAiL: something to try is diffing all the Makefiles from somewhere is builds and yours.. Aug 11 09:20:54 Im guessing its picking up something is shouldnt when configuring, or maybe not.. Aug 11 09:22:38 yeah, I guess I shoul Aug 11 09:22:40 should Aug 11 09:35:34 hm.. the motherboard in our main backup server just told me that "Your CPU might have a problem"... thats just wrong... Aug 11 09:39:10 argh Aug 11 09:39:25 quite an intelligent mobo, mind Aug 11 09:40:40 hehe, yep.. I'm just about to throw it out the window.. :) dunno what to replace it with.. have to dig something up.. Aug 11 09:41:09 If I had the money to buy an usb tape drive and a few wxternal disks I could use a slug.. but.. Aug 11 09:44:50 http://www.nslu2-linux.org/wiki/HowTo/AddTapeDrive Aug 11 09:44:53 ;) Aug 11 09:50:12 hehe, I read that, was thinking about doing it, but.. this place doesn't have the money.. I just found a mobo with a celeron 1,2 in a pile of stuff.. so thats our new main backup server :-) Aug 11 09:58:25 well, I bought a computer about that fast for £58 shipped Aug 11 09:59:12 company leftovers are very cheap (and handy for running length cross-compiles over ssh) Aug 11 10:07:19 hehe, we use everything here.. oldest stuff still in use is probably some P166.. Aug 11 12:32:44 NAiL: I'm really busy today, but I have made a BB with manual install of the most important files (like on Unslung). I though it was ok until I saw the slugbug. Will deal with it tomorrow I hope. Aug 11 12:48:27 is there a more elegant way to debug a kernel modul, I tried "rm openslug/tmp/stamps/openslug-kernel-2.6.12.2-r6.do_compile; source openslug/setup-env ; bb -b openembedded/packages/linux/openslug-kernel_2.6.12.2.bb" Aug 11 12:48:44 bitbake -b file.bb -c compile -f Aug 11 12:48:52 that forces a recompile Aug 11 12:49:04 does that imply a make clean? Aug 11 12:49:05 or bitbake -i -> parse ; rebuild Aug 11 12:50:16 I only want to recompile one single kernel module, so a make clean would be quite annoying Aug 11 12:51:16 in that case the -c compile -f would do the job Aug 11 12:51:24 thank you Aug 11 12:51:25 that forces the compile step to be rerun Aug 11 12:51:35 like typing 'make' again Aug 11 12:52:07 can I prevent the packaging all the untouched modules? Aug 11 12:52:21 afaik not Aug 11 12:57:32 ah, the module sees vendor-id b007, but /proc/bus/usb/devices says Vendor=07b0, stupid bytesex Aug 11 13:02:05 le16_to_cpu is the way to go, isn't it? Aug 11 13:55:44 ingeba-away: Ah, it's no hurry. I just tested the package to see. I usually use man on my devbox instead, since it's very much faster ;) Aug 11 14:03:47 NAiL: I did the manual install version it shortly after you sent me your log. It was indeed a mysterious difference. I decided to make a manual install and did, but had to give back devSlug before I could test. Next week I'm at a logic conference in Scotland. Aug 11 14:04:10 NAiL: So it is tomorrow or a week++. Aug 11 14:04:29 take the time you need Aug 11 14:04:36 Goed so Nail. Aug 11 14:04:58 I have a fever, but have to go to a techno rave now. Poor me :-) Aug 11 14:05:18 If you don't fix it tomorrow, I'll probably look at it after a while. Depends on how much other stuff I'm working one ;) Aug 11 14:05:21 s/one/on/ Aug 11 14:05:50 NAiL: Good - my only other concern tomorrow is to get well and pack my stuff. Aug 11 14:05:58 hehe Aug 11 14:06:27 Yeah, ain't it a bitch trying to be hip these days Aug 11 14:07:36 very much so :P Aug 11 14:08:36 I could save myself a lot of trouble and just grow up, have kids and buy a second hand Volvo. Aug 11 17:03:50 hmm Aug 11 17:04:20 why does ${STAGING_BINDIR} point to i686-linux/bin instead of armeb-linux/bin? Aug 11 18:11:03 oh.. has anyone gotten a webcam to work on OpenSlug? Anyone know what is needed to actually take pics? Aug 11 18:58:12 dyoung: are you online? ttyS1 is working Aug 11 18:59:02 cegg, thats great! Aug 11 18:59:09 was it as simple as I proposed? Aug 11 18:59:23 nail, Yes. Aug 11 18:59:33 pwc and spca5xx both work. Aug 11 18:59:39 sure. but I was interrupted by a barbecue-party. Aug 11 19:00:28 cegg, cool. Aug 11 19:00:28 i already received gps-sentences Aug 11 19:00:53 we should probably make that a mainline change then. Aug 11 19:01:16 yes. as it is mentioned in the wiki.. Aug 11 19:01:53 cegg, would you mind sending me a copy of your modified nslu2-setup.c ? Aug 11 19:02:18 no, of course. I just wanted to ask myself Aug 11 19:02:29 mail-address? Aug 11 19:03:34 Thanks! Aug 11 19:03:37 hmm... which nslu2-io.c is used in 2.6.12.2? I only find these: Aug 11 19:03:41 ./openslug-kernel-2.6.11.2/nslu2-io.c Aug 11 19:03:42 ./openslug-kernel-2.6.11/nslu2-io.c Aug 11 19:03:42 ./openslug-kernel-2.6.9/nslu2-io.c Aug 11 19:04:24 Nail, its inherieting the one from openslug-kernel-2.6.11.2 in nslu2-kernel/foo . Aug 11 19:04:35 dyoung-web: thx Aug 11 19:05:00 the suggested method for changing it is via ptach Aug 11 19:05:31 pokr around in nslu2-kernel* for examples. Aug 11 19:06:30 I'll get it to work first, then I'll make patches ;) Aug 11 19:06:48 yes, of course. Aug 11 19:07:21 dyoung-web: how can I send you nslu2-setup.c? Aug 11 19:07:21 what I'm saying is the recommended way is to not blow away the parent file. Aug 11 19:07:33 cegg, I pm'd you my address... Aug 11 19:07:50 ah well noone reads this channel anyways, dyoung8888@yahoo.com should work. Aug 11 19:08:19 dyoung-web: oops. overseen. Aug 11 19:12:27 hmm Aug 11 19:23:41 dyoung-web: ok. Thank you for your help! And Gute Nacht. It's 4am here Aug 11 19:26:22 nite! Aug 11 20:53:39 uh.. is there a way to make the status led flash? Aug 11 20:54:00 I seem to only get it to switch on or off with leds Aug 11 21:05:30 leds !g Aug 11 21:05:32 leds !r Aug 11 21:05:35 leds !gr Aug 11 21:06:14 aaah Aug 11 21:06:17 thanks a bunch Aug 11 21:06:34 Just need some way to signal if the soft_shutdown stuff I'm doing actually works ;) Aug 11 21:08:21 In general "leds -A + /" to flash from one setting to another - so the rc script state changes just do that. Aug 11 21:09:13 WOOOHOO :D Aug 11 21:09:31 My slug just shut down softly when I pressed the power button ;) Aug 11 21:11:53 * NAiL notes it *almost* shut down softly Aug 11 21:12:33 But it did almost what I wanted it do to anyways Aug 11 21:13:46 You want that bug? Aug 11 21:14:02 The p/rbutton one? I've already taken it Aug 11 21:14:41 mohahaha! Aug 11 21:14:48 * NAiL presses powerbutton while logged in: Aug 11 21:14:49 root@maimedslug:~# Aug 11 21:14:49 Broadcast message from root (console) (Fri Aug 12 06:14:30 2005): Aug 11 21:14:49 The system is going down for system halt NOW! Aug 11 21:15:07 and *poof*, the slug was off Aug 11 21:15:28 shutting down nice and safe Aug 11 21:16:58 Sounds good... is the reset button still beeping? Aug 11 21:17:07 Haven't done anything about that yet Aug 11 21:17:18 It'll be a while until the powerbutton does what I *really* want Aug 11 21:17:32 You could just hook reset back in to do what the power button does at present. Aug 11 21:17:53 nah, I want the reset button to do a reset, not a machine_power_off ;) Aug 11 21:18:03 But I don't know the function call for that Aug 11 21:18:59 What is 'reset'? The watchdog asserts the reset line. Aug 11 21:22:56 machine_restart(NULL); Aug 11 21:22:59 ah ;) Aug 11 21:23:50 arf Aug 11 21:24:16 That's soft reboot - I can't get it to work. Aug 11 21:25:02 oh Aug 11 21:29:03 If someone can reach the reset button they can reach the power button too - and that's the safest way to restart if the user level processes have died. Aug 11 21:29:16 include/asm-arm/arch-ixp4x//system.h Aug 11 21:29:37 jbowler-away: Can you look at that, and tell me if that possibly is what I'm looking for? Aug 11 21:30:07 arch_reset(); Aug 11 21:30:36 It will fire the watchdog. Aug 11 21:30:42 heh Aug 11 21:30:44 arf Aug 11 21:30:56 woof Aug 11 21:30:57 mode == 's' (because I set it on the command line) Aug 11 21:31:08 *IXP4XX_OSWK = IXP4XX_WDT_KEY; Aug 11 21:31:14 /* write 0 to the timer register for an immediate reset */ Aug 11 21:31:14 *IXP4XX_OSWT = 0; Aug 11 21:31:16 *IXP4XX_OSWE = IXP4XX_WDT_RESET_ENABLE | IXP4XX_WDT_COUNT_ENABLE; Aug 11 21:31:37 Then you fall into my hacked cpu_reset(0) code - in fact you actually want cpu_reset(0), but the unhacked version doesn't work. Aug 11 21:32:11 Is there a hacked one that does? Aug 11 21:34:05 Take a look at cpu_xscale_reset in arch/arm/mm/proc-xscale.S Aug 11 21:35:01 Look at line 229 - that's why the LEDs all turn on for 0.25s before the reset (because the soft reset hangs). Aug 11 21:36:56 ok, that is kinda beyond me Aug 11 21:37:10 I did simple asm in msdos before I started with C ;) Aug 11 21:37:39 It's a lot simpler than x86 assembler, but the coproc instructions are somewhat verbose. Aug 11 21:38:40 (Though I once knew someone who asserted that it was easier to write the coproc instructions for floating point operations than to actually use the FP instructions.) Aug 11 21:39:18 hmm Aug 11 21:39:20 Line 259 actually turns all the LEDs on, then line 260 branches to 0, then nothing for 0.25s... Aug 11 21:40:02 There must be something wrong in there, given that we are shutting the flash down now - some missing piece of reset - but I got bored going through the dev manual finding all the things to reset. Aug 11 21:41:02 I think I'll just use machine_power_off() for now then. Aug 11 21:41:11 :) Aug 11 21:41:50 It does work - but it does a hardware reset, not a software one (i.e. you can call arch_reset('s') and it will reset the machine, but not via a soft reset. Aug 11 21:42:41 Power off, however, is safer, because it will work regardless of the state of the flash memory (if you call arch_reset directly, not the kernel reboot, it won't shut down the flash). Aug 11 21:44:19 now, there's one thing, that should be rather simple to implement Aug 11 21:45:19 and that is checking to see if we've already sent a signal to init, so that pressing the powerbutton several times gives an "error" Aug 11 21:45:43 eg, different pitch tone from the first one Aug 11 21:46:06 so, how do I define a variable that will be there the next time I enter that function? Aug 11 21:47:42 add an "int something;" below all the defines? Aug 11 21:47:50 my C is really, really rusty Aug 11 21:53:05 now, lets see if it compiles with these hacks ;) Aug 11 21:53:30 * NAiL crosses fingers Aug 11 22:10:42 telinit can be used to cause init to go to a different runlevel - it just writes down a named pipe (the code is actually inside init.c) Aug 11 22:11:28 The answer to your question is "static int been_here = 0; if (!been_here++) ..." Aug 11 22:11:53 NOTE: package openslug-kernel-2.6.12.2: completed Aug 11 22:11:53 NOTE: build 200508120700: completed Aug 11 22:12:13 The static is important... Aug 11 22:13:09 lemme see... Aug 11 22:13:21 !been_here++ will check the value, *then* increment it, right? Aug 11 22:14:09 0 is true, >0 is false? Aug 11 22:14:17 Man... I start messing up stuff. Aug 11 22:15:28 0 is false, not 0 is true (the way it works almost everywhere, the shell being the exception) Aug 11 22:15:56 exactly. I've been doing too much shell stuff ;) Aug 11 22:16:27 ok, it should be fixed now Aug 11 22:16:34 !been_here++ ==> true if been_here==0 and been_here:=1 else false and been_here := been_here+1 Aug 11 22:16:58 To mix up about 85 different languages. Aug 11 22:17:06 haha Aug 11 22:17:15 if (!nslu2_shutdown_in_progress++) { Aug 11 22:17:15 wake_up(&n2pb_waitq); Aug 11 22:18:45 ah Aug 11 22:18:52 the importantness of correctness Aug 11 22:18:52 machine_power_off(); Aug 11 22:18:53 return IRQ_HANDLED; // So we don't get a nobody cared error :-P Aug 11 22:23:02 Hum... "can't resolve symbol 'main'" - that's an error from an executable which I've never seen before. Aug 11 22:23:10 Looks like the uclibc ld.so is broken. Aug 11 22:23:11 heh Aug 11 22:24:11 Bet the code is looking for something containing 32 bit ARM instructions and ignoring things with 16 bit instructions... Aug 11 22:30:58 ok.. where's the correct place to place the patch for nslu2-io.c? Aug 11 22:35:55 Does it apply to all 2.6 kernels? Aug 11 22:36:25 only where the nslu2-io.c is, I guess Aug 11 22:37:15 Yes, but nslu2-io hasn't changed in the 2.6 kernel lifetime, so the patch will work everywhere, so it should go in linux/nslu2-kernel/2.6 Aug 11 22:37:23 ah Aug 11 22:38:14 and that will be automatically included, right? Aug 11 22:38:26 At some point we probably want to copy nslu2-io.c from openslug-kernel-2.6.11.2 into that directory and fold all the patches in. Aug 11 22:39:05 No: you need to add it to the SRC_URI line for all the kernels you need to change. Aug 11 22:39:43 Actually, the N2K_PATCHES assignment, and probably only in nslu2-kernel_2.6.12.2.bb Aug 11 22:41:17 ok, trying Aug 11 22:42:11 I'm tempted to remove the old NSLU2 kernels and fold the patches in - it's easy if the mm kernels are removed. Aug 11 22:46:07 hmm Aug 11 22:59:54 VoodooZ_Log: Ok, summary of changes for you: rbutton does what pbutton used to do, machine_power_off(); pbutton now signals init, which in turn shuts down (ctrlaltdel). Aug 11 23:03:53 Ok, everybody adventurous: The patch is committed. Test it. I'm going to bed :D **** ENDING LOGGING AT Thu Aug 11 23:59:56 2005