2010-08-15 05:22 oh.. 2010-08-15 05:23 I just read the mailing list and saw jirka talking about this weird build system 2010-08-15 05:23 from what I've seen so far it's pretty easy actually 2010-08-15 05:48 [commit] Jiri Brozovsky: Compilation problems should be fixed. http://qi-hw.com/p/openwrt-packages/34a4bbc 2010-08-15 06:51 what are the sections in the menu? 2010-08-15 06:51 and the categories? 2010-08-15 06:51 :P 2010-08-15 07:06 small question 2010-08-15 07:06 I'm working on the wordgrinder Makefile 2010-08-15 07:06 but what section and category would that be? 2010-08-15 07:15 I went for Utilities/Editors in the end 2010-08-15 07:15 in case anyone was ever wondering 2010-08-15 07:26 [commit] Mirko Vogt: add new gmu icon http://qi-hw.com/p/openwrt-xburst/cd8e663 2010-08-15 07:26 [commit] Mirko Vogt: adjust config to 2 new packages in feed packages/ http://qi-hw.com/p/openwrt-xburst/11ee72f 2010-08-15 07:26 [commit] Mirko Vogt: [config] preselect bsd-games (tetris, backgammon, primes, worms) and calcurse http://qi-hw.com/p/openwrt-xburst/ddfccf5 2010-08-15 07:26 [commit] Mirko Vogt: [config] adjust config to new feed versions (once again) http://qi-hw.com/p/openwrt-xburst/9c13c44 2010-08-15 07:26 [commit] Mirko Vogt: [config] do not include packages and http://qi-hw.com/p/openwrt-xburst/df798b6 2010-08-15 07:27 stress test 2010-08-15 07:27 mirko: I fixed another but in the commitlog, I think (ahem) it should be stable now... 2010-08-15 07:28 [commit] Mirko Vogt: [gmu] update 0.7.0 -> 0.7.1 http://qi-hw.com/p/openwrt-packages/4f0bbdf 2010-08-15 07:28 [commit] Mirko Vogt: Merge branch 'master' of projects.qi-hardware.com:openwrt-packages http://qi-hw.com/p/openwrt-packages/5340103 2010-08-15 07:29 wolfspraul: hehe :) - ok 2010-08-15 07:29 wolfspraul: let's see when we do the next merge with owrt-backfire-upstream 2010-08-15 07:30 wolfspraul: startup time should be improved by the way in the next image 2010-08-15 07:31 wolfspraul: found some bugs causing heavy cpu load and timeouts which could be avoided 2010-08-15 07:31 oh nice! 2010-08-15 07:31 wolfspraul: i suggest i'll upload a "testing"-image tomorrow, announce it on the mailing list and we'll wait 1 week for feedback / input 2010-08-15 07:32 great 2010-08-15 07:32 hopefully a lot of the packages that got contributed in recent weeks are included 2010-08-15 07:32 wolfspraul: after that 1 week there's 1 week left till my holidays 2010-08-15 07:32 :-) 2010-08-15 07:32 do there should be enough time then, to fix possible bugs, build ,upload and announce the new official image 2010-08-15 07:32 wolfspraul: there are 2010-08-15 07:33 i update the config ~twice a week because i include new packages 2010-08-15 07:33 ~twice a day i mean 2010-08-15 07:35 bsd-games, new gmu version, new gmenu2x version, calcurse, mandoc, new qt4-features, NanoMap, alsa-settings and so on... 2010-08-15 07:36 sounds good, there are a lot now 2010-08-15 07:37 bartbes: probably Utilies 2010-08-15 07:37 I count 80 subfolders in openwrt-packages now 2010-08-15 07:37 yeah, I put it in Utilities/Editor 2010-08-15 07:37 bartbes: I see no better  category 2010-08-15 07:37 I got it to fail on ncurses 2010-08-15 07:37 hmm, the keypad layout changed in gmenu2x 2010-08-15 07:37 so I'm currently compiling ncurses 2010-08-15 07:38 but as you might know that means I got quite a lot already 2010-08-15 07:38 mirko: it did 2010-08-15 07:38 do you need any help with the new keys? 2010-08-15 07:38 wolfspraul: unfortunately some do not compile 2010-08-15 07:38 bartbes: i need documentation ;) 2010-08-15 07:38 *cough* gforth *cough* 2010-08-15 07:38 bartbes: ? 2010-08-15 07:38 mirko: x = enter 2010-08-15 07:38 that's most important :P 2010-08-15 07:38 bartbes: please write it down somewhere i can link to in the announce mail 2010-08-15 07:39 the full keymap is in /usr/share/gmenu2x/input.conf iirc 2010-08-15 07:39 something like it though 2010-08-15 07:39 otherwise there'll be lot's of questions what happened to gmenu2x in the new image 2010-08-15 07:39 bartbes: does Wordgrinder request wide character support in ncurses? 2010-08-15 07:39 f2 is the old esc 2010-08-15 07:39 jirkab: it does.. 2010-08-15 07:39 bartbes: please write it down somewhere public 2010-08-15 07:39 bartbes: :) 2010-08-15 07:39 mirko: give me a wiki page and I'll write it there 2010-08-15 07:40 wow, the path was spot-on 2010-08-15 07:40 gives his memory a cookie 2010-08-15 07:40 bartbes: ok, mom 2010-08-15 07:40 bartbes: uh, there is one already 2010-08-15 07:40 bartbes: http://en.qi-hardware.com/wiki/Gmenu2x - is that the current layout? 2010-08-15 07:41 let's see 2010-08-15 07:41 the "Plan to" 2010-08-15 07:41 that one is correct 2010-08-15 07:41 hmm, well - changing sections was "p" and "q" and is now "tab" and "l"? 2010-08-15 07:42 yeah, I don't like l, but tab is nice 2010-08-15 07:42 makes sense 2010-08-15 07:42 these keys are not even in the same row :P 2010-08-15 07:42 hehe, no 2010-08-15 07:42 but I don't know they keymap for VOLUP and VOLDOWN either.. 2010-08-15 07:43 well, at least enter, tab and f2 make some sense :P 2010-08-15 07:43 (note that I did not change the keymap) 2010-08-15 07:43 :) 2010-08-15 07:43 let's see what the folks say, when they have to switch :) 2010-08-15 07:44 meh, the old keymap wasn't too good either imo 2010-08-15 07:44 bartbes: i don't they the new one is bad - some things just do not make sense yet to me ;) 2010-08-15 07:45 jirkab: the only problem I have left (as far as I can tell) is the lack of ncursesw 2010-08-15 07:47 bartbes: is sound very good (though I have not idea how much difficult is compilation of ncursesw ) 2010-08-15 07:47 I have no idea what the big diff is 2010-08-15 07:47 let me look it up 2010-08-15 07:47 (compiling-wise that is) 2010-08-15 07:48 it sounds like it's just a compile-time option 2010-08-15 07:50 [commit] Mirko Vogt: [mandoc] (re)add mandoc, as compilation issues were fixed http://qi-hw.com/p/openwrt-xburst/37b39cd 2010-08-15 07:51 jirkab: I think you need to add "--enable-widec" to the configure flags 2010-08-15 07:53 so I simply added that to the makefile of ncurses 2010-08-15 07:53 to see if it is indeed that simple 2010-08-15 07:54 btw, is there a way to turn off the screen (like gmu does)? 2010-08-15 07:59 echo 4 > /sys/class/graphics/fb0/blank 2010-08-15 08:01 jirkab: ncursesw doesn't build 2010-08-15 08:01 larsc: thanks I'll test it now 2010-08-15 08:03 it immediately turns back on though 2010-08-15 08:04 ah, because of new output, of course 2010-08-15 08:04 no, because somebody turns it on gain 2010-08-15 08:05 ehm.. 2010-08-15 08:05 maybe it still registers my enter? 2010-08-15 08:05 anyway, when I run it via ssh it works flawlessly 2010-08-15 08:11 jirkab: shall I send you the makefile and patch? 2010-08-15 08:13 bartbes yes, many thanks (sorry for my delayed response - 'm doing too much things at once :-\ ) 2010-08-15 08:14 bartbes: ncursesw are needed for more applications so it woudl be usefull to make it work 2010-08-15 08:14 it would 2010-08-15 08:14 but it's some weird error in one of the header 2010-08-15 08:14 which I wasn't able to track down in the very short time I spent trying 2010-08-15 08:15 jirkab: http://bartbes.ath.cx/wordgrinder.zip 2010-08-15 08:16 and this is the error I get when I compile ncurses(w) 2010-08-15 08:16 http://paste.ubuntu.com/478348/ 2010-08-15 08:19 bartbes: thanks. the error looks strange 2010-08-15 08:34 bartbes: looks like it's similar to this Gentoo bug: http://bugs.gentoo.org/show_bug.cgi?id=214642 2010-08-15 08:46 jirkab: hmm 2010-08-15 08:47 bartbes: looks like GCC can't find definition of wchar_t type 2010-08-15 08:48 not wint_t? 2010-08-15 08:49 I think it simply needs an extra include statement 2010-08-15 08:49 #include 2010-08-15 08:49 bartbes maybe too, but it stops on the line with wchar_t 2010-08-15 08:49 no it doesn't? 2010-08-15 08:49 bartbes: where you have wchar.h? 2010-08-15 08:49 as far as I can tell it errors here: http://paste.ubuntu.com/478359/ 2010-08-15 08:50 and there's a wchar.h in staging_dir/include 2010-08-15 08:50 hm no 2010-08-15 08:50 not there 2010-08-15 08:51 /usr/include 2010-08-15 08:54 bartbes: see include/curses.h.in in ncurses directory 2010-08-15 08:55 so how do we set NEED_WCHAR_H? 2010-08-15 08:57 shall I try "--with-build-cppflags=-D_GNU_SOURCE" as mentioned in the gentoo thread? 2010-08-15 08:58 bartbes: please try it 2010-08-15 08:59 compiles 2010-08-15 08:59 bartbes: I will try to understand the  curses.h 2010-08-15 08:59 heh, that mess? enjoy! 2010-08-15 09:02 something totally unrelated (while compiling) where can I set the persistent options again? 2010-08-15 09:02 (like I did with fstab) 2010-08-15 09:03 nvm found it 2010-08-15 09:05 jirkab: IT BUILT 2010-08-15 09:05 bartbes: nice! 2010-08-15 09:06 only problem is it only built ncursesw 2010-08-15 09:06 now to make it build both 2010-08-15 09:08 bartbes: probably the easises solution is to make two packages individual - ncurses and ncursesw 2010-08-15 09:08 yeah probably 2010-08-15 09:09 I can put those in the same makefile, can't I? 2010-08-15 09:09 or 2010-08-15 09:09 wait 2010-08-15 09:09 I can't commit this anyway 2010-08-15 09:09 so I might as well copy this package over 2010-08-15 09:09 and restore the old one 2010-08-15 09:09 make it ncursesw 2010-08-15 09:09 agreed? 2010-08-15 09:10 bartbes: yes 2010-08-15 09:10 will do 2010-08-15 09:10 bartbes: great 2010-08-15 09:11 bartbes: don't forget change ncurses->ncursesw in the Makefile ;-) 2010-08-15 09:12 yeah, just did that 2010-08-15 09:12 now.. what is the easiest way to restore the old package? 2010-08-15 09:12 the entire thing was a git repo, right? 2010-08-15 09:12 bartbes: wait 2010-08-15 09:12 git checkout FILE_NAME 2010-08-15 09:12 bartbes: git checkout FILE_NAME 2010-08-15 09:13 so git checkout package/ncurses/Makefile? 2010-08-15 09:13 I think so 2010-08-15 09:13 no 2010-08-15 09:13 I never used this 2010-08-15 09:13 checkout is for changing commits 2010-08-15 09:13 I think you mean git reset 2010-08-15 09:13 or not 2010-08-15 09:13 git should document their shit better 2010-08-15 09:13 :@ 2010-08-15 09:14 bartbes: I have this in my notes - so it can be incorrect :-( 2010-08-15 09:14 oh it worked 2010-08-15 09:14 thx 2010-08-15 09:14 runs menuconfig to enable ncursesw 2010-08-15 09:15 compiles 2010-08-15 09:17 jirkab: btw, when I depend on this, the folder is called ncursesw but the package libncursesw, which one do I use? 2010-08-15 09:19 bartbes: I think it depends on the name whic his used inside the Makefile 2010-08-15 09:19 makes sense 2010-08-15 09:19 bartbes: like here: $(eval $(call BuildPackage,libncursesw)) 2010-08-15 09:19 though.. I remember this being different when I added lua.. hmm 2010-08-15 09:19 ah we'll see 2010-08-15 09:20 I guess when you do the wrong thing it tells you it lacks the dependency 2010-08-15 09:21 bartbes: well, sometimes 2010-08-15 09:21 oh look, no errors! 2010-08-15 09:22 bartbes: you are right - at installation it will tell 2010-08-15 09:22 now I will try to build wordgrinder 2010-08-15 09:23 bartbes: nice 2010-08-15 09:25 ehm 2010-08-15 09:25 some fixes I have yet to do ;) 2010-08-15 09:25 because apparently it forgot to use the toolchain.. 2010-08-15 09:27 wonders what pm does with environment variables.. 2010-08-15 09:27 bartbes: it ignores your environment variables? 2010-08-15 09:28 I think... I forgot some settings ;) 2010-08-15 09:31 what were the openwrt set env variables again? 2010-08-15 09:31 TARGET_CC? 2010-08-15 09:33 don't know 2010-08-15 09:33 right, let's see what it does now 2010-08-15 09:33 yeah, I believe it was 2010-08-15 09:33 if not then it has no compiler now ;) 2010-08-15 09:33 must exit :-( 2010-08-15 09:34 awww 2010-08-15 09:46 almost there... 2010-08-15 09:47 and it built 2010-08-15 09:47 now to install it on my nn 2010-08-15 09:49 right, some bugs in the ncursesw file 2010-08-15 09:51 (it installs the some of the same stuff as ncurses, so those are now ripped and instead it depends on ncurses) 2010-08-15 10:23 bartbes: fascinating read, logging out for the day, but good luck! 2010-08-15 10:23 hehe 2010-08-15 10:23 that was just a rant 2010-08-15 10:23 ;) 2010-08-15 10:23 sleep well wolfspraul 2010-08-15 10:24 (I assume you sleep at the end of the day..) 2010-08-15 10:24 yes, correct :-) 2010-08-15 10:24 n8 2010-08-15 10:34 okay, I'm not quite sure about the rules here 2010-08-15 10:35 it builds, but it still needs some fixes 2010-08-15 10:35 so, how do I commit it? do I mark it BROKEN, or is that only for broken builds? 2010-08-15 10:35 (as in failing compiles) 2010-08-15 10:35 bartbes: is there's any case, that it might fail zu compile 2010-08-15 10:35 mark it as broken please 2010-08-15 10:36 otherwise full-builds stop 2010-08-15 10:36 well, don't think so 2010-08-15 10:36 okay 2010-08-15 10:36 it only needs some fixes regarding screen size and keymap 2010-08-15 10:36 then feel free :) 2010-08-15 10:36 oh 2010-08-15 10:36 the biggest problem however 2010-08-15 10:37 is ncursesw 2010-08-15 10:37 I managed to get it to build 2010-08-15 10:37 however, it is a separate package (due tohow ncurses' is set up you'd need 2 separate builds anyway) 2010-08-15 10:37 but, since they use the same source package 2010-08-15 10:37 they keep overwriting each other 2010-08-15 10:37 so every time you compile something that depends on ncursesw it recompiles both ncurses and ncursesw 2010-08-15 10:38 which.. is not a fun way to spend your time 2010-08-15 10:40 when why not modifying the ncurses-package? 2010-08-15 10:41 because.. you *need* to build it twice 2010-08-15 10:41 you can't build ncurses and ncursesw at the same time anyway 2010-08-15 10:41 and this meant we didn't have to fork ncurses from openwrt 2010-08-15 10:42 bartbes: yes, so it sounds like it's better having build_dir/target-*/{ncurses,ncursesw}-version directories 2010-08-15 10:42 yes, it is 2010-08-15 10:42 what you want is BuildVariants 2010-08-15 10:42 larsc: are you going to save me, you holy man? 2010-08-15 10:42 larsc: yep 2010-08-15 10:44 are you going to elaborate? 2010-08-15 10:44 looking for a package which uses that currently... 2010-08-15 10:44 no openwrt docs? 2010-08-15 10:45 no docs, as usual ;) 2010-08-15 10:45 take a look at the uboot-xburst package 2010-08-15 10:47 don't I just need PKG_BUILD_DIR? 2010-08-15 10:47 bartbes: that way would need 2 Makefiles 2010-08-15 10:47 the rest looks a bit black-magic-y and a bit over-the-top 2010-08-15 10:47 you add a VARIANT field to each define Package/ncurses{,w} 2010-08-15 10:47 bartbes: with build-variance you can use just one Makefile 2010-08-15 10:48 and when Build/Compile or Build/Configure you'll have the VARIANT for your package in $BUILD_VARIANT 2010-08-15 10:48 well that isn't entirely possible either 2010-08-15 10:48 if you look at the ncurses makefile you see CONFIGURE_ARGS 2010-08-15 10:48 that is what I'm modifying 2010-08-15 10:49 ifdef BUILD_VARIANT 2010-08-15 10:49 it's that and the install 2010-08-15 10:49 CONFIGURE_ARGS+=--variant=$BUILD_VARIANT 2010-08-15 10:50 endif 2010-08-15 10:50 ?! 2010-08-15 10:50 see, you guys just throw me some makefile keywords 2010-08-15 10:50 how am I supposed to make sense out of that?! 2010-08-15 10:50 so, I modify: define Package/libncurses/install 2010-08-15 10:51 by thinking 2010-08-15 10:51 to: define Package/libncurses{,w}/install 2010-08-15 10:51 ;) 2010-08-15 10:51 no 2010-08-15 10:51 I need to make 2? 2010-08-15 10:51 yes 2010-08-15 10:51 one for each package 2010-08-15 10:52 right, did that 2010-08-15 10:52 now what do I do with Build/InstallDev? 2010-08-15 10:53 you need to check $BUILD_VARIANT there 2010-08-15 10:53 so... 2010-08-15 10:53 makefile ifs? 2010-08-15 10:54 ifeq ($(BUILD_VARIANT),ncurses), that? 2010-08-15 10:55 yes 2010-08-15 10:55 right, did that for Build/InstallDev 2010-08-15 10:55 now I guess the same with the CONFIGURE)ARGS 2010-08-15 10:57 yes 2010-08-15 10:57 so, now what do I do with the eval lines? 2010-08-15 10:57 just leave in both? 2010-08-15 10:58 yes, one for each package 2010-08-15 10:59 right, now what else? 2010-08-15 10:59 the PKG_BUILD_DIR? 2010-08-15 10:59 or just leave that alone? 2010-08-15 11:00 should work fine with the default 2010-08-15 11:01 right 2010-08-15 11:01 so now how do I build them? 2010-08-15 11:03 make package/ncurses/compile should build them both? 2010-08-15 11:03 no 2010-08-15 11:03 well 2010-08-15 11:03 depends 2010-08-15 11:03 if both are selected yes 2010-08-15 11:04 but I just found out, that you need to change PKG_BUILD_DIR to something like PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) 2010-08-15 11:07 right 2010-08-15 11:07 I'll compile both of them now 2010-08-15 11:07 then a program depending on them 2010-08-15 11:07 to see if they need to recompile 2010-08-15 11:07 but what if it works? 2010-08-15 11:07 do I need to add the ncurses to qi-packages? 2010-08-15 11:08 that seems weird 2010-08-15 11:16 well, it failed 2010-08-15 11:17 can i do make package/ncurses/compile? 2010-08-15 11:17 because obviously the build variant is empty.. 2010-08-15 11:17 (as the build dir shows) 2010-08-15 11:25 please show your current Makefile 2010-08-15 11:28 give me a sec while I install xclip 2010-08-15 11:29 http://paste.ubuntu.com/478409/ 2010-08-15 11:29 now of course I made some horrible mistake.. 2010-08-15 11:34 hello 2010-08-15 11:35 hello 2010-08-15 11:35 bartbes: you need to add a VARIANT field to each package 2010-08-15 11:35 what should the contents be? 2010-08-15 11:36 the contens is what ends up in BUILD_VARIANT, when the package is build 2010-08-15 11:37 right 2010-08-15 11:37 so in your case you want ncurses and ncursesw 2010-08-15 11:37 fixes it all 2010-08-15 11:40 I managed to crosscompile mpg123 but if i try to play a mp3 file on my BNN the cpu cant keep up, i thought it would be a fast way of getting mp3 support for gmu 2010-08-15 11:41 qmasterrr, you have to use the fixed-point-math decoder 2010-08-15 11:41 with fpu emulation it is way too slow 2010-08-15 11:41 wejp, thanks :) 2010-08-15 11:42 :) 2010-08-15 11:48 wejp: then mpg123 is not an option and i need to check if i can run GMU with some other mp3 decoder (like mad)? 2010-08-15 11:49 no, of course mpg123 is an option, jst compile it with the fixed-point decoder instead of the floating point decoder 2010-08-15 11:50 libmad is slower than mpg123 and has a horrible api, so it is no use 2010-08-15 11:51 i'm new to the openwrt build system and Makefile style so its a bit hard to figure out 2010-08-15 11:53 you could also just use libmpg123 from the dingoo package of gmu. works just fine on the ben as well 2010-08-15 11:56 larsc: well, it tells me I have an endef too little 2010-08-15 11:57 yet grep + wc tell me the number is the same 2010-08-15 11:59 that would be the easy way, i was planning to create a (openwrt) Makefile for libmpg123 2010-08-15 11:59 bartbes: well, i can't help you without seeing the Makfiles content 2010-08-15 12:01 http://paste.ubuntu.com/478423/ 2010-08-15 12:01 heh, nice syntax highlighting 2010-08-15 12:01 it calls just about everything illegal ;) 2010-08-15 12:03 hm, indeed. looks about right 2010-08-15 12:03 qmasterrr, ah, i see. there are examples on how to create openwrt packages for programs using a configure script. you could check out those or just have a look at one of the packages already in openwrt. many of them use a configure script. it isn't that difficult 2010-08-15 12:04 yes, i have created a makefile its a little bit of a mess but it works :) 2010-08-15 12:05 wejp: it always assumes you use the autotools 2010-08-15 12:05 now i have upgradet to gcc version 4.4.4 and im starting to getting errors on Makefiles i haven't touched 2010-08-15 12:06 bartbes, even if it recreates the configure script each time, it still needs to call it at one point ;) 2010-08-15 12:06 larsc: line 115, it says... 2010-08-15 12:06 wejp: no, I mean it always does that 2010-08-15 12:06 by default 2010-08-15 12:06 what? 2010-08-15 12:06 you only need to specify it separately if you have additional arguments 2010-08-15 12:06 anyway, dinner 2010-08-15 12:07 that's the point, it needs to be called with additional arguments 2010-08-15 12:07 but it looks like qmasterrr got it working already 2010-08-15 12:08 kind of :D 2010-08-15 12:08 hehe 2010-08-15 12:09 quick question what gcc version do you use? 2010-08-15 12:09 4.3.3 i think 2010-08-15 12:09 the one for openwrt that is 2010-08-15 12:09 my native gcc is 4.5.0 2010-08-15 12:13 hum, if it complains about an makefile since i have updatet to make 3.82 should get wondering? 2010-08-15 12:13 stupid me makefile syntax error is not gcc its Make :) 2010-08-15 12:14 weird 2010-08-15 12:17 openwrt-xburst/build_dir/target-mipsel_uClibc-0.9.32/busybox-1.15.3 \ Makefile:431: *** mixed implicit and normal rules.  Stop. 2010-08-15 12:18 it seems to me that the new Make version doesn't like "target %target:" 2010-08-15 12:51 http://www.ecs.umass.edu/ece/tessier/rcg/bds-pga-2.0/ 2010-08-15 12:51 seems to be good shit 2010-08-15 12:52 according to the paper it's better than quartus 2010-08-15 12:52 "The BDS-pga program is for academic purposes use only" "This research has been funded by Altera Corporation." 2010-08-15 12:57 whoa there's even a verilog compiler to the BLIW language they use 2010-08-15 12:57 http://embedded.eecs.berkeley.edu/Alumni/rajeev/cs252/report/main/node10.html 2010-08-15 12:57 i need to try it 2010-08-15 12:58 so far it's the most serious open source (but not free it seems) synthesis tool i've seen 2010-08-15 13:00 damn, it compiled... this is so rare for academic tools 2010-08-15 13:06 larsc: apparently endef can't be indented... 2010-08-15 13:15 larsc: thx for the help, it all works now 2010-08-15 13:15 now, how should I commit this? 2010-08-15 13:16 ...but it segfaults. back to normal :) 2010-08-15 13:19 bartbes: send a patch 2010-08-15 13:19 ehm, I can commit 2010-08-15 13:19 I just mean, how should I commit the ncurses stuff? 2010-08-15 13:19 not to the openwrt repo 2010-08-15 13:19 oh 2010-08-15 13:19 but then 2010-08-15 13:19 wordgrinder is going to have to wait for ages probably 2010-08-15 13:20 :( 2010-08-15 13:20 why? 2010-08-15 13:20 because it depends on ncursesw 2010-08-15 13:20 right, so how should I create the patch? 2010-08-15 13:21 svn diff 2010-08-15 13:21 so I need to clone their svn repo, copy my new one over and diff? 2010-08-15 13:22 or just send me the makefile 2010-08-15 13:22 heh, that sounds easier ;) 2010-08-15 13:23 how should I send it to you? 2010-08-15 13:23 email 2010-08-15 13:23 lars at metafoo.de 2010-08-15 13:24 sent 2010-08-15 13:25 btw, should I just commit wordgrinder and set it as broken in the mean time? 2010-08-15 13:27 maybe it would be easier for you guys if there was a simple guide which stated what the rules are for the repo (what is to be committed, what not, what is to be marked broken, etc) 2010-08-15 13:27 P 2010-08-15 13:27 *:P 2010-08-15 13:31 if in doubt: commit. Its usally easy to revert it later it shouldn't have been commited 2010-08-15 13:32 hehe 2010-08-15 13:32 time to commit porn then ;) 2010-08-15 13:32 good thing it's hard to erase history 2010-08-15 13:32 safe storage for ever! 2010-08-15 13:32 :P 2010-08-15 13:34 with git it is 2010-08-15 13:34 btw, I just add a depend BROKEN right? 2010-08-15 13:35 does ncursesw really depend on ncurses? 2010-08-15 13:35 no 2010-08-15 13:35 but 2010-08-15 13:35 it depends on some of the stuff in the ncurses package 2010-08-15 13:35 if I include them in both you can't install them side-by-side 2010-08-15 13:35 ok 2010-08-15 13:36 the terminfo stuff 2010-08-15 13:36 cleans up his wordgrinder patch (newlines etc) 2010-08-15 13:38 maybe we should move the terminfo stuff into it's own package 2010-08-15 13:38 debian for example has a ncurses-base package 2010-08-15 13:39 that might not be a bad idea 2010-08-15 13:39 but 2010-08-15 13:39 can you build it separately? 2010-08-15 13:43 [commit] bartbes: Wordgrinder: Builds, marked broken until upstream accepts ncurses patch http://qi-hw.com/p/openwrt-packages/8479332 2010-08-15 13:43 there we go 2010-08-15 13:43 well, you could, but you don't have to 2010-08-15 13:43 *if* they accept it of course 2010-08-15 13:43 :P 2010-08-15 13:44 they? 2010-08-15 13:44 openwrt 2010-08-15 13:44 i can commit to the openwrt repo, so thats not a problem 2010-08-15 13:45 oh 2010-08-15 13:45 well in that case 2010-08-15 13:45 btw, shall I create the separate termlib package? 2010-08-15 13:46 well, if you want to, sure 2010-08-15 13:46 I wonder if --with-termlib *only* builds it 2010-08-15 13:46 "generate separate terminfo library" 2010-08-15 13:47 simple solution 2010-08-15 13:47 normal compile 2010-08-15 13:47 ;) 2010-08-15 13:48 as far as I can tell it builds both 2010-08-15 13:48 which.. sucks 2010-08-15 13:50 well, then I'm too lazy 2010-08-15 13:50 spent enough time on it already 2010-08-15 13:51 hm, ncursesw and ncruses ship header files with the same name but different content 2010-08-15 13:51 they do? 2010-08-15 13:52 well, yes, I guess it makes sense that there's diff content 2010-08-15 13:54 debian's solution is making ncursesw install its headers in /usr/include/ncursesw 2010-08-15 13:54 we can do the same thing I guess 2010-08-15 13:54 yes 2010-08-15 13:54 that's why I'm glad I'm only lead dev of 1 big project, I'd hate it to have to make these decisions ;) 2010-08-15 14:12 larsc: so, do I need to do anything? 2010-08-15 14:21 nope 2010-08-15 14:21 cool 2010-08-15 14:22 not to sound pushy, but when can I expect the 'patch' to be into the openwrt tree? 2010-08-15 14:30 soon 2010-08-15 14:32 it does not seem to work as expected 2010-08-15 14:33 care to elaborate? 2010-08-15 14:33 only the dev files for ncuresesw get installed if both are selected 2010-08-15 14:34 can I help? 2010-08-15 14:34 don't think so 2010-08-15 14:34 :( 2010-08-15 14:35 i guess InstallDev doesn't handle VARIANTs correctly yet 2010-08-15 14:35 I'm pretty sure you need to if that 2010-08-15 14:36 evening Textmode 2010-08-15 14:36 huggles bartbes 2010-08-15 14:43 wordgrinder is pretty nice btw 2010-08-15 14:43 but it really can't handle terminals smaller than 80x24 I guess 2010-08-15 14:43 its menus are simply hardcoded 2010-08-15 15:43 Hello 2010-08-15 15:44 is it ok to buy a GTX 480 for an old Q9400 2,67 ghz Quadcore, or would it just be slowed down? 2010-08-15 15:44 that seems.. slightly.. off-topic 2010-08-15 15:47 sorry 2010-08-15 15:47 cant find a right tech help chat 2010-08-15 15:55 bartbes: WordGrinder fits easily at 53x20 console 2010-08-15 15:56 bartbes: I think this is one of the resolutions of future release 2010-08-15 15:57 well in that case 2010-08-15 15:57 yay 2010-08-15 15:58 you read the logs, didn't you? 2010-08-15 15:58 bartbes: I just looked at http://en.qi-hardware.com/irclogs/latest.log.html 2010-08-15 15:58 that's what I said 2010-08-15 15:59 right, I think that the keymap is the worst problem 2010-08-15 15:59 and you can change it easily 2010-08-15 15:59 however, it stores it in the document 2010-08-15 15:59 not in a conf file 2010-08-15 15:59 bartbes: that's not very good 2010-08-15 16:00 it is not 2010-08-15 16:00 btw, I did some nice tricks 2010-08-15 16:00 ;) 2010-08-15 16:00 for example it used to use luac to compile the lua into bytecode 2010-08-15 16:00 but since that is non-portable and there's no mipsel luac to run 2010-08-15 16:00 hm 2010-08-15 16:00 I simply made it use cat 2010-08-15 16:01 and now it runs nicely ;) 2010-08-15 16:01 great! 2010-08-15 16:01 I've committed it already btw 2010-08-15 16:01 ( http://qi-hw.com/p/openwrt-packages/8479332 ) 2010-08-15 16:01 must see and try :-) congratulations! 2010-08-15 16:02 hu? I though luac was portable 2010-08-15 16:02 the bytecode isn't 2010-08-15 16:02 it's platform-dependent version-dependent 2010-08-15 16:02 and much more-dependent 2010-08-15 16:03 though man pages seem to disagree with me 2010-08-15 16:03 "The binary files created by luac are portable to all architectures with the same word size. This means that binary files created on a 32-bit platform (such as Intel) can be read without change in another 32-bit platform (such as Sparc), even if the byte order (``endianess'') is different. On the other hand, binary files created on a 16-bit platform cannot be read in a 32-bit platform. " 2010-08-15 16:03 However, I know from personal experience it is not 2010-08-15 16:04 (it errored before I fixed it of course, but I have previous experience) 2010-08-15 16:04 nothing is perfect ;-) 2010-08-15 16:05 but it's good to know that it doesn't work 2010-08-15 16:05 jirkab: if you want to compile it I can send you the makefile of ncurses 2010-08-15 16:06 but shouldn't luac simply preprocess the lua file just as a lua interpreter does when it loads the same lua script? 2010-08-15 16:06 not.. entirely 2010-08-15 16:06 well, a bit yes 2010-08-15 16:06 but it compiles 2010-08-15 16:06 and since we're using a modified version of lua 2010-08-15 16:06 (lnum most notably) 2010-08-15 16:07 bartbes: yes, thanks. I want to try it ;-) 2010-08-15 16:07 the bytecode might not be interpreted the same way 2010-08-15 16:07 (in this case it already failed in the header, as it always should, I guess) 2010-08-15 16:07 jirkab: just tell me where and how to send it 2010-08-15 16:07 ah ok, luac is run on the host building the package 2010-08-15 16:07 ? 2010-08-15 16:07 larsc: yes 2010-08-15 16:09 larsc: btw, have you got the installdev sections to work yet, or shall I take a look at it? 2010-08-15 16:12 bartbes: not yet 2010-08-15 16:21 larsc: does only ncursesw install headers in your attempt? 2010-08-15 16:23 well, both install them, but wenn ncursesw headers are installed ncurses headers are removed again 2010-08-15 16:23 oh 2010-08-15 16:23 I see 2010-08-15 16:24 that explains the weird behavior 2010-08-15 16:25 can't we just merge them both into one InstallDev? 2010-08-15 16:25 i don't think so 2010-08-15 16:26 I tried, it's compiling now 2010-08-15 16:26 hmm 2010-08-15 16:26 another idea 2010-08-15 16:30 we'll need to add support for this to the build system 2010-08-15 16:30 right.. 2010-08-15 16:31 there is no support for multiple InstallDevs yet? 2010-08-15 16:31 I even tried puttin an if in the define 2010-08-15 16:31 that failed too 2010-08-15 16:31 --: eval: line 0: syntax error near unexpected token `libncurses,libncursesw' 2010-08-15 16:33 we *can* add multiple hooks 2010-08-15 16:33 nope 2010-08-15 16:33 $(foreach hook,$(Hooks/InstallDev/Post),\ 2010-08-15 16:33 doesn't that mean it loops over them? 2010-08-15 16:33 yes, but that wont help us 2010-08-15 16:34 the problem is that files installed by DevInstall are removed the next time DevInstall for the same Makefile is run 2010-08-15 16:34 right 2010-08-15 16:34 that makes absolute sense though 2010-08-15 16:34 so your build variants aren't the working solution after all (for now) :P 2010-08-15 16:35 well, we need to teach the DevInstall stuff about variants 2010-08-15 16:35 or introduce a per paket DevInstall 2010-08-15 16:36 well, what is the easiest, and what is the most useful? 2010-08-15 16:38 the later is more usefull 2010-08-15 16:38 but the other is easier (just did it) 2010-08-15 16:38 heh 2010-08-15 16:38 easy way is best :P 2010-08-15 16:46 so, did it work? 2010-08-15 16:46 yes 2010-08-15 16:46 cool 2010-08-15 16:47 so I even made sure the openwrt build system 'improves' 2010-08-15 16:47 what an amazingly productive day ;) 2010-08-15 16:48 in retrospect wordg... something was easy to port compared to the trouble I went through to get ncursesw 2010-08-15 17:10 larsc: could you tell me how to create the /dev/rtc or /dev/misc/rtc device for nn? I built 2.6.34 with RTC support and I see the rtc driver init at boot time.. but hwclock -w complains 2010-08-15 17:11 rafa: hm, you need CONFIG_RTC_DEV or something like that 2010-08-15 17:11 it (hwclock) tries to use /dev/misc/rtc.. but no sure which proper mknod arguments to use 2010-08-15 17:11 larsc: yes, kernel has rtc support I guess 2010-08-15 17:12 the problem is the lack of /dev/*rtc* device files 2010-08-15 17:12 I think. 2010-08-15 17:14 larsc: I set rtc driver in menuconfig. and kernel messages at boot time says: 2010-08-15 17:14 $ dmesg | grep -i rtc 2010-08-15 17:14 jz4740-rtc jz4740-rtc: rtc core: registered jz4740-rtc as rtc0 2010-08-15 17:14 jz4740-rtc jz4740-rtc: setting system clock to 1970-01-04 21:06:54 UTC (335214) 2010-08-15 17:14 yes. there is a seperate option for the /dev/rtc devices 2010-08-15 17:14 CONFIG_RTC_INTF_DEV: 2010-08-15 17:22 larsc: it was there. I mknod /dev/rtc0 and then I did a symbolic link rtc -> rtc0 and it works now. I do not have udev right now 2010-08-15 17:22 that is why I needed to create those 2010-08-15 17:24 ok 2010-08-15 17:34 jirkab: for when you're reading this (you will, I know that), I found *a* 'keymap' in src/c/arch/unix/cursesw/dpy.c 2010-08-15 18:26 bartbes: ? 2010-08-15 18:26 Textmode: ? 2010-08-15 18:26 bartbes: ! 2010-08-15 18:30 Textmode: so what do you want to know? 2010-08-15 18:32 bartbes: I was wondering why a "keymap" was notable. 2010-08-15 18:39 because it isn't available in a config 2010-08-15 18:39 yet is set on a per-file basis 2010-08-15 18:45 hmm... 2010-08-15 21:44 larsc: wolfspraul: any idea how to add swap using nand?.. if that is possible.. a swapfile on ubifs would fail it seems 2010-08-15 21:45 I think swap is equally bad on NAND and SD, it's only a temporary solution (the user turns it on, does something, turns it off). 2010-08-15 21:45 but that means it cannot be the 'default' for an end user 2010-08-15 21:46 :/ 2010-08-15 21:46 from those 2, SD is probably still better at least the microSD is easily replaceable :-) 2010-08-15 21:46 wolfspraul: why do you think that? we have used swap partitions on sd with jlime for years 2010-08-15 21:47 rafa: ok then you know more than me that's good! Most people try to reduce NAND writes, so generally don't swap on nand. 2010-08-15 21:47 wolfspraul: with just 16 mb of machines, so kernel used that often. For nn we have better environment with 32MB 2010-08-15 21:47 of Ram. 2010-08-15 21:47 anyway, you want swap on nand, so why not! :-) But I cannot answer your question, unfortunately. 2010-08-15 21:48 good point avoid nand writes 2010-08-15 21:48 ubifs may not even implement the special locked-only code paths that are normally needed to support swap files (don't know Linux internals about this, just guessing) 2010-08-15 21:49 rafa: you said once linux require swap why is not the same with openwrt? 2010-08-15 21:49 so maybe you need a new partition as a block device, then put swap on it? 2010-08-15 21:49 wolfspraul: that I know is that swap is a nice thing for the system almost always, for programs doing mallocs at least (many). 2010-08-15 21:51 kristianpaul: I do not know much current openwrt. For the openwrt image on nn it looks like just a sdl application on fb, which is not eating much ram. But I can give you an example for openwrt where an application will not work because the kernl will kill it without swap. 2010-08-15 21:51 kristianpaul: just do a proper malloc still if your program will not use that memory. 2010-08-15 21:53 wolfspraul: I was asking to test it on nand. But I do not know if that works. I read that flash filesystem are not useful for swapfiles, and when I tried swapon it fails. 2010-08-15 21:53 is not posible format NAND as ext? 2010-08-15 21:54 are you using ubifs isnt? 2010-08-15 21:56 any way i need sleep (just arrived from trip), g8 4 all ! 2010-08-15 21:57 kristianpaul: perhaps you find this cool to read: http://sourcefrog.net/weblog/software/linux-kernel/swap.html  (still if it is obsolete, nice to read) 2010-08-15 21:58 kristianpaul: yes, ubifs. 2010-08-15 21:58 cya man 2010-08-15 21:59 you should definitely test it, would be a nice stress test too :-) 2010-08-15 21:59 wolfspraul: yes, perhaps I need that (a new partition as a block device).. I would need to learn how to do that first ;) (if that is possible for current nand and system) 2010-08-15 21:59 but I don't know how to quickly make it work on nand, sorry... 2010-08-15 22:00 wolfspraul: well, If I learn and test then I will let you to know the tests 2010-08-15 22:00 I don't know how the kernel gets information about the partition starts, maybe over the command line? from u-boot? where does u-boot get it from? statically compiled in somewhere? 2010-08-15 22:00 maybe it's statically compiled into the kernel 2010-08-15 22:21 wolfspraul: I will check 2010-08-15 22:32 rafa:  the partition is statically compiled into kernel. 2010-08-15 22:41 Morning everyone 2010-08-15 22:41 I wonder if there's anyone still awake here 2010-08-15 22:42 lunavorax: yes 2010-08-15 22:43 hey :) 2010-08-15 22:43 i'm looking for information about compiling a simple hello world for the ben 2010-08-15 22:44 I'm a real noob so I don't really know where to search 2010-08-15 22:48 lunavorax: http://en.qi-hardware.com/wiki/Building_Software_Image 2010-08-15 22:48 ...compile a boilerplate "hello world" with the xburst compiler? 2010-08-15 22:49 lunavorax: you need get the cross compiler first. 2010-08-15 22:49 Thanks xiangfu but what is that 2010-08-15 22:49 Do I have to compile on the ben or can I do it on my x86_64 computer ? 2010-08-15 22:50 lunavorax: do it on your x86_64 computer. 2010-08-15 22:50 lunavorax: its a cross-compiler chain 2010-08-15 22:50 xiangfu: stop being better at this than me! ;_; 2010-08-15 22:52 ok 2010-08-15 22:52 As I do use Ubuntu I suppose I have to do the whole aptitude install thing as shown on the wiki right ? 2010-08-15 22:52 Or is there some packages i don't need 2010-08-15 22:55 Oh btw 2010-08-15 22:55 Is there a way to change the size of the letters ? 2010-08-15 22:56 When I hit Ctrl + Alt + F1 2010-08-15 22:56 The letters are way to big and I can't find a way to switch to a way smaller police 2010-08-15 22:56 I think it selected during kernel configuration. 2010-08-15 22:56 Oh so it cannot be changed then 2010-08-15 22:56 lunavorax: just follow the wiki.  and here is what is cross compiler : http://en.wikipedia.org/wiki/Cross_compiler 2010-08-15 22:57 Ok sorry xiangfu maybe i ask too much questions :/ 2010-08-15 22:58 lunavorax: it's can not changed in the last release. because in last release 2010-06-15, there is no font package, no kbd utilities. 2010-08-15 22:58 lunavorax: no. I like question. that mean someone start working with NanoNote. or learning NanoNote. :) 2010-08-15 22:59 lunavorax: we will add more fonts in next release. 2010-08-15 22:59 Well I bought the nanonote in order to program on it yeah... even if I'm a very beginner :/ 2010-08-15 22:59 Textmode: yes. by default it's selected during kernel configuration. 2010-08-15 22:59 That's great to hear xiangfu I was tired of doing ssh only to have correct text display 2010-08-15 22:59 (also i'm waiting for screen flickering fix, you know) 2010-08-15 23:00 Dingux have a 4x3 font while displaying text at boot, that's much better 2010-08-15 23:01 lunavorax: 4x3 is too small I think. we have test 4x8. 6x10, 6x11, never test 4x3. 2010-08-15 23:02 lunavorax: you can found the screenshot here: http://en.qi-hardware.com/wiki/Ben_NanoNote_fonts#Screenshots 2010-08-15 23:02 I said 4x3 but I don't really know the size. However i'm sure that was the smallest possible 2010-08-15 23:04 4x8 looks ok for me 2010-08-15 23:04 Also text fits correctly 2010-08-15 23:04 Oh I almost forgot 2010-08-15 23:04 I tried an experiment w/ the nanonote but apparently it's wasn't designed for that 2010-08-15 23:05 I bought a mini-b male usb to usb A female adaptor 2010-08-15 23:06 And plugged in a usb flash key but apparently it doesn't work. I bought this adapter in order to use it w/ a wifi usb key. But if it doesn't work.. <_< 2010-08-15 23:06 lunavorax: the usb port in nanonote is Device. not HOST. 2010-08-15 23:06 basically. 2010-08-15 23:07 personally, I wish it was USB2Go, or somethign of that ilk. but meh. 2010-08-15 23:07 ok so i was wrong 2010-08-15 23:07 lunavorax: even if it did work, you'd need drivers. 2010-08-15 23:07 indeed 2010-08-15 23:08 lunavorax: there are SDIO cards that work, though they are a pretty penny from what I hear. 2010-08-15 23:08 Too expensive for me i think 2010-08-15 23:08 IIRC