#qi-hardware IRC log for Saturday, 2010-11-20

kristianpaulwolfspraul: is it okay if i put this document  http://ur1.ca/2dx68 from united state coast guard homeland security?00:02
kristianpauls/put/link on the wiki00:03
kristianpaulit said UNCLASSIFIED00:03
kristianpaulah is public anway, just i had the broken link00:04
kristianpaulnv00:04
wolfspraulkyak: you there?00:18
wolfspraulI'm wondering what the lowest memory consuming way is to offer nfs exports from the NanoNote00:18
wolfspraulprobably I will try the nfs-kernel-server route first, although it seems some people have problems with that. guess it needs portmap as well...00:19
kyakwolfspraul: i'm here02:49
kyakso you are thinking about easy access to files on Ben?02:50
wolfspraulyes02:53
wolfspraulwell I'm thinking in all direction, a nfs client on the ben would be nice too02:53
wolfspraulbut I think my #1 is that I can nfs-mount the ben from my linux host02:53
wolfspraulI was just wondering whether you had any knowledge about how to do it in a most resource-efficient way02:54
wolfspraulI will probably go the nfs-kernel-server/portmap route02:54
wolfspraulhaven't started yet...02:54
wolfspraulthe user space servers seems to be much bigger02:54
kyakhave you considered ftp or http access?02:57
kyakor maybe replace dropbear with openssh and gain sshfs?02:58
wolfspraulwell for myself I'm used to nfs mounts02:59
kyakthough i see messages that dropbear works well with sshfs..02:59
wolfspraulI have never done a ftp-mount or http-mount and my experience with DAV tells me that stretching these protocols beyond what they were initially meant for is not a good idea02:59
wolfspraulsshfs is another thing, that sounds interesting02:59
wolfspraulwell first I just want to get nfs export to work02:59
wolfspraulwithout dragging down the boot time or memory load03:00
wolfspraulI think some people on the list reported using nfs, but I forgot who it was or what they did. I think it was a while ago.03:00
wolfspraulI'll just experiment.03:00
wolfspraulI played a little with xiangfu's latest image (config.full_system). good progress but depressing amount of work needed :-)03:00
wolfspraulwell we'll do it one by one I guess...03:01
kyaki think it depends on what you really want to do when you get access to Ben's files.. You don't want to watch movies from Ben, but rather upload and download there, right?03:02
kyaktherefore, ftp could be enough03:02
wolfspraulyes03:02
wolfspraulscreen and keyboard on my notebook are just much more convenient03:02
wolfspraulso I can quickly copy stuff and get things ready on the ben, then take the ben with me 'on the move'03:02
wolfspraullet's say I want to write some small scripts or so03:03
kyakhow are doing it right now? i use "scp" and think it's ok03:03
wolfspraulso I plug in my ben, then in ~/ben it's just there :-)03:03
wolfspraulyes but an auto-mounted nfs is more convenient03:04
wolfspraulno worry I am not trying to convert you03:04
wolfspraulI just want to add nfs export capability, and try to find a way that won't hurt boot time and memory usage03:04
wolfspraulI thought you might have used nfs, even on the ben, but I guess not03:04
wolfspraulso no worries. I'll report how it goes...03:04
kyaknot on the ben :)03:05
kyaki'm not concerned about copying files to/from ben: by setting things ~/.ssh/config and /etc/host it is possible to copy files as easy as "scp file ben:/data"03:07
kyakabout the latest image - i think it's great already :) though of course there are some buggin things03:09
wpwrakkyak: any proposal that replaces dropbear with openssh is music in my ears ;-)03:39
wpwrakfor syncing directories, let's not forget rsync03:39
wpwrakrafa: OMG. your approach for preventing opkg from reading the package database is CRUDE ! :)03:59
wpwrakrafa: have an interrupt/crash/reset at just the wrong moment, and ...04:00
xiangfukyak: Hi04:11
kyakxiangfu: hey04:16
xiangfukyak: I saw you commit added the "VERSION" file: http://projects.qi-hardware.com/index.php/p/openwrt-xburst/source/commit/646fb82ea353a28285d968fc19dc3690a123108f/04:18
kyakxiangfu: yeah..i just put anything inside of it. because it was empty04:19
xiangfukyak: I just not sure if  we should keep this VERSION file in git. it's auto generate by build script file04:19
kyakoh!04:19
kyakit didn't generate for me04:19
kyakdo you mean the build script you've developed?04:20
xiangfukyak: data/qi_lb60/scripts/build line: 10804:20
kyakok, my bad... i'm not using that script04:21
kyaksince you are doing echo ${DATE} > files/etc/VERSION04:21
kyakcan we leave that file just for those who build by hand?04:22
xiangfukyak: I think it's ok. but just not commit it's changes. :)04:24
xiangfukyak: by the way. every time you run "git pull" , you can try "git pull -r" which will run "git rebase" instead of "git merge"04:27
kyakokay :)04:28
kyakdo you think we can put something neutral in that /etc/VERSION files? like "nover" or "git"?04:28
kyaki mean, the default one.. not that /etc/VERSION that is created by build script04:29
qi-bot[commit] Xiangfu Liu: cleanup reflash_ben.sh, try to download root.ubi.bz2 first http://qi-hw.com/p/openwrt-xburst/121c7ed04:31
xiangfukyak: neutral in VERSION, sounds better.04:32
wpwrakkyak: if i have mipsel-openwrt-linux-gcc and mipsel-openwrt-linux-uclibc-gcc (both from qi-hw openwrt), which one should i use ?04:42
wpwrakkyak: (it's for auto-selecting a gcc if building for the ben)04:43
kyakwpwrak: doesn't matter, they are symlinked04:46
kyakxiangfu: how about putting "latest" in VERSION?04:46
kyakxiangfu: this way, after manual build, there will be "latest". after build script, there will be a date (for release)04:46
wpwrakkyak: ah, cool. thanks !04:47
kyaknp :)04:49
xiangfukyak: compare "latest", I would suggest "Local Build" or just "Local"04:49
Action: xiangfu will leave for awhile see you04:49
kyak"Local" i agree :)04:49
qi-bot[commit] kyak: set "Local" VERSION on manual build http://qi-hw.com/p/openwrt-xburst/5ea3a6804:51
wpwrakhmm, when I #include <sys/mman.h>' | mipsel-openwrt-linux-cpp -dM | grep ADVAN05:07
wpwrakI get __UCLIBC_HAS_ADVANCED_REALTIME__05:07
wpwrakbut when i link, it doesn't find posix_madvise05:07
viricwpwrak: mipsel-openwrt-linux ? between mipsel and linux there should be the hardware provider I think06:15
viric"cpu-company-system06:16
viric"06:16
xiangfuwolfspraul: Hi. now the reflash_ben.sh will try download and extra the ubi.bz2 first.06:40
xiangfuif there is no ubi.bz2. it will download rootfs.ubi.06:41
kyakxiangfu: http://downloads.qi-hardware.com/people/kyak/tmp/netsurf.png06:41
kyakgot it running :)06:41
xiangfukyak: cool  I still not make it compile :(06:41
kyakbad news is, it requires for more effort06:42
kyakinput doesn't work, and key bindings are not working too06:42
xiangfukyak: how you make it compile ?06:42
xiangfukyak: which TARGET you set for ?06:43
kyakxiangfu: should i commit?06:43
kyakTARGET=framebuffer06:43
xiangfukyak: yes. just commit06:43
xiangfukyak: the framebuffer is depends on libnsfb06:46
xiangfukyak:  you have ported the libnsfb ?06:46
xiangfuI found the libnsfs depneds on xcb* stuff06:46
kyakxiangfu: yep... ported it06:46
qi-bot[commit] kyak: netsurf - at least shows up. http://qi-hw.com/p/openwrt-packages/22c747e06:46
xiangfukyak: cool. I always got an error :xcb/xcb_image.h  No such file or directory06:47
kyakxiangfu: indeed it depends on xcb* stuff.. but i asked nice guys in #netsurf, the advised to remove x.c dependancy06:47
kyakand so this dependancy was not needed after all06:47
kyakxiangfu: exact problem that i had06:47
rafawpwrak: (crude) yeah :).. for men06:56
xiangfukyak:06:59
kyakya?07:00
B_LizzardDid you guys have issues with netsurf showing a black browser viewport?07:12
B_LizzardI've tried netsurf with both the linux and the sdl fb backends07:12
B_LizzardBoth 2.6 and svn versions exhibit this behaviour07:13
kyakthey say linuxfb is broken07:13
kyaksdl however should work07:14
B_Lizzard:/07:14
B_LizzardWhat GCC version do you guys use?07:14
kyak4.3.307:15
B_LizzardMaybe it's 4.5 acting up on me07:15
kyakB_Lizzard: why do you bother about SDL? you can build gtk version :)07:15
B_LizzardGTK is too slow07:15
kyaki see07:15
kyakhttp://downloads.qi-hardware.com/people/kyak/tmp/netsurf.png - updated07:26
kyaklove how utf-8 works out of the box :)07:26
qi-bot[commit] kyak: netsurf: enable freetype http://qi-hw.com/p/openwrt-packages/47eda0b07:28
wolfspraulkyak: how much memory does it need?07:32
kyakwolfspraul: not sure yet.. right now it has three processes, each one using 5008 RSS07:37
kyakthis might be a shared memory between these forks?07:37
kyakthen it's using 5 Mb real memory07:37
kyaki guess it's the same memory between them.. because the number is exactly the same07:39
kyakcompare: both lynx and w3m using ~2.8Mb07:40
kyakof course netsurf is bigger than them07:41
wolfspraulkyak: can we disabled the telnetd and atd?07:47
wolfspraulI'm wondering whether they are totally necessary...07:48
kyakwolfspraul: telnetd is necessary for the first login (or at least this is it's purpose on routers)07:48
kyakyou login, set root password, then telnetd is disabled and dropbear is started07:48
wolfspraulsure but the NanoNote is no router :-)07:48
kyakstill someone would like to make first login remotely?07:49
wolfspraulcannot really picture it07:49
kyakme too ;)07:49
wolfspraulok so no need to auto-launch telnetd07:50
wolfspraulhow about atd?07:50
kyakwe could disable telnetd, yes.. we could also overwrite /etc/passwd so the root user password would some "root" by default07:50
kyakright now it's empty and dropbear wouldn't allow login07:51
kyakunless use explicitely set password locally07:51
wolfspraulI think that's fine07:51
wolfspraulwould need to think about it07:51
wolfspraulwe are thinking about a little setup script anyway07:51
wolfspraulthe root password can be in there07:51
wolfspraulbut by default I wouldn't want the device to be setup in a very insecure way07:52
kyakright07:52
wolfspraulin fact quite the opposite07:52
wolfspraulhow about atd?07:52
wolfsprauldo you know who uses it or where?07:52
kyaki don't use atd07:52
wolfspraulI can't imagine anything on the Ben using it :-)07:52
wolfspraulif that's the case no need to auto-launch it07:52
kyaki think it's even not there in my miniaml build07:52
wolfspraulhotplug makes sense, for microSD insertion07:52
kyakyep07:53
wolfspraulhow about dbus-daemon?07:53
wolfsprauldbus is nice, but is anybody using it right now?07:53
kyaki also don't have it...07:53
wolfspraulok, so telnetd and atd can 'probably' be removed, dbus needs some more investigation07:53
kyak(hm, isn't this the reason why stardict can't be started in my build?)07:53
wolfspraulhotplug and dropbear are needed07:53
kyaki think you are right07:54
kyakwolfspraul: could you please pastebin your "ps" output?07:55
wolfspraulhe07:55
wolfspraulno07:55
wolfspraul:-)07:55
kyaki wonder what full_system has running that i don't have07:55
wolfspraulI have no USB cable here07:55
kyakah ok07:55
wolfspraulI'll do it later07:56
wolfspraulit's funny, I find htop so much more useful than top, unless I find a good reason of something special top can do, we should remove top and just symlink top to htop :-)07:57
wolfspraulnot very high priority, but if someone only knows about top they will not enjoy that very much...07:57
kyaki'd suggest to install procps07:58
kyakit has fully-fledged versions of ps, top etc07:58
kyakthe desktop ones :)07:58
kyaknot the cut-off versions thatbusybox offers07:59
wolfspraulwhich package is that?07:59
wolfspraul(OpenWrt package I mean)07:59
wolfspraulanother thing I noticed is that since we have gmenu2x as respawn in inittab now, you cannot easily kill the process anymore, it will just be respawn08:00
wolfspraulso what is the right way to get rid of gmenu2x now, short of editing inittab and rebooting (which is what I did)08:00
wpwrakkyak: (first login) dropbear lets me in with an empty password - i just hit [Enter] :)08:01
wpwrakrafa: (crude) hmm .. you should at least be able to recover if things go wrong, with opkg update. still ... gotta see if there's an easier way to make opkg think the files aren't there08:02
rafawpwrak: yes.. it is not so bad.. jlime-pkg update.. or opkg update08:04
rafawill download again those files08:04
rafaand updated :)08:04
viricwolfspraul: 'init q' reprocesses the inittab08:04
viricwolfspraul: so you don't need to reboot08:04
viric(I don't use sysvinit since years, but that's hardwired in my brain somehow)08:05
mthor you could add a menu item in gmenu2x that starts a shell08:05
wpwrakviric: (gcc naming) right now, we have, on OpenWRT, mipsel-openwrt-linux-gcc and mipsel-openwrt-linux-uclibc-gcc, symlinked to each other. Jlime keeps it short and calls their compiler just mipsel-linux-gcc :)08:05
viricwpwrak: ah ok. I always used  mipsel-unknown-linux-gcc08:06
wpwrakviric: 4th variant ;-)08:06
virici686-unknown-linux-gcc...  some use i686-pc-linux-gcc08:06
viricit's important to the config.guess scripts in autoconf08:06
viricfor them to guess right.08:06
viricusually their rules allow for these variants, while the specification remains in http://www.gnu.org/software/hello/manual/autoconf/System-Type.html08:07
wpwrakviric: they shouldn't really have to care. i mean, does a build of "ls" need to know if it will run on a PC or a Ben ?08:07
viricwpwrak: well, 'ls' is not the best example for a program that may have to care on the provider of some hardware :)08:08
viricwpwrak: as autoconf has been more used for userland software (usually kernel agnostic) than building kernels, it is not that important.08:08
viricin cases of not having any OS of the kind that can dynamically load code into execution, it may have more sense. Usually that string determines not only the compiler but also the libc or things like that08:09
viricmipsel-jz4750-linux-gnu-gcc  could be for the Ben Nanonote, the toolchain being glibc based (hence the gnu) and it knowing about the SIMD instructions.08:11
virica toolchain you should not use if you build not for jz475008:11
wpwrakviric: i think in most cases, all you care about are CPU architecture and ABI conventions.08:11
mththe Ben does not have a 4750 though08:11
viricI was sure I was recalling that number bad :)08:11
wpwrakviric: hah, but gcc usually allows run-time selection of minor variants :)08:12
mthit's a 4724 iirc, which is similar to the 474008:12
wpwrakoften, even the ABI08:12
viricFor example, for the loongson2f I use a toolchain that has a "--with-arch=loongson2f" set at the configure time of gcc, so binaries produced by it would not work in any mips64 around.08:12
wpwrakso it's all quite muddy08:12
viricYes, it allows quite a lot of variants usually.08:13
wolfspraulmth: the Ben has a 4720, which is the same die as the 4740 (and 4725), only that 4720 comes in a COB package, 4725 TQFP, 4740 BGA08:13
viricwpwrak: but as I tell you, that string includes the full toolchain specification, not only gcc, usually.08:13
wolfspraulall three differ in the pinout08:13
viricglibc based system use "linux-gnu" usually08:13
mthah, that explains it08:13
mththe prototype I told you about seems to use a 4755 rather than a 4750, by the way08:14
viricI should be taking notes :)08:14
mththe "system triples" seems to be very informally specified08:15
viricmth: yes08:15
mthwhich makes it a pain to actually use it in an automated build08:15
viricI imagine it has been the way to keep them used! :)08:16
viricbig flexibility.08:16
mthfor example, some use "ppc" and some use "powerpc"08:16
viricreading a config.guess and config.sub will give you an accurate idea of the state :)08:16
wpwrakmth: it's always fun to sift through those translation tables :)08:16
mthreading config.guess made me wonder why people have put up with this system for so long08:17
kyakwpwrak: (first login without password) interesting, i'll check again08:17
viricat the end all ends up working impressively well :)08:17
mthbut that's the same feeling I get from all autotools components08:17
viricmth: 'cmake' is even less specified than autotools08:18
kyakwolfspraul: the package is called "procps", but it conflicts with some busybox files, those busybox features must be disabled08:18
mthI haven't used cmake yet, so I cannot judge about that08:18
mthI just have the feeling that something better must be possible08:18
kyakwolfspraul: for gmenu2x, you should run ash from icon menu, and gmenu2x will exit :)08:18
mthif I figure out exactly what that is, I'll write the best build tool ever ;)08:18
viricmth: it's a lot up to the builder. It's popular on programs that are very hardware-agnostic.08:18
wpwrakmth: at some point, people could just draw a UUID and use that ;-) gcc-0li3h8, and be done with it. all further details are in the great dictionary of gcc ;-)08:18
wpwrakrafa: (no password) annoyingly, jlime doesn't let me set the password to nothing. probably because there's no /etc/shadow, but i haven't tracked that one down yet. (too afraid to lock myself out :)08:19
viricwpwrak: passwd has a parameter to set 'no password'08:20
viricmaybe I am wrong!08:20
mthwpwrak: UUIDs are the opposite: very exact, but utterly meaningless by themselves08:20
wpwrakviric: you mean passwd -d ? doesn't work on jlime either08:21
mthbut why isn't there a registry of established names?08:21
viricok08:21
mththere is one for USB IDs, there is one for port numbers, there is one for device major IDs etc08:21
wpwrakmth: aren't UUIDs very honest in that regard ? ;-)08:21
viricwpwrak: maybe jlime has a wrong pam configuration08:21
wpwrakviric: yeah, something's not right there. hmm, let's see if i can change the password at all08:21
B_Lizzardkyak, is keymouse X dependent?08:21
B_LizzardOr does it work under the tty too?08:22
wpwraknyet. so, definitely a bug.08:22
viricI'll try to use that block2mtd recommended by lars08:22
kyakB_Lizzard: dunno. haven't tryed it.. see here http://en.qi-hardware.com/wiki/Virtual_mouse08:23
mthB_Lizzard: if it's the same keymouse as was used on the Dingoo, it doesn't depend on X, since Dingux doesn't run X08:23
mthit injects events using uevent08:23
B_Lizzardawww yeeeaaah08:24
virichow may I know, the instruction set of mips 24kf?08:25
viricIn terms of gcc... maybe the gcc manual08:25
wpwrakviric: google for it ? ;-)08:25
viricthe gcc manual told me all :)08:25
viricIs anyone using the nanonote as a smartcard token?08:26
viricI don't know how deep the usb device driver can be hacked for that08:27
rafawpwrak: can you check to creat an empty shadow?08:28
rafawpwrak: IIRC somebody said at jlime forum or something that creating shadow file fixes08:28
wpwrakviric: (gcc version) perhaps the system is just a bit too compiler-centric. for most users, the question is really "WHO can tell me authority WHAT works on my platform ?". so it would be more something like, qihw-ben-gcc, jlime-nanonote-gcc, etc. with the current scheme, you have both too much and too little information. well, it's not likely to change ... :)08:30
wpwrakrafa: kewl. that worked. easier than i thought :-) thanks !08:30
viricwpwrak: Well, it's compiler + libc centric because usually a user writes some code, and for it to work, it only needs the "other pieces" (gcc + libc) to make it work on the given platform :)08:35
viricAnd I imagine it is up to the programmer that wrote the autoconf files whether at building it has to care on the hardware provider or not, from the triplet. I can imagine many cases where it should not care.08:37
viricI don't know if, for example, eyeOS cares on that08:38
viricouch08:38
viricmmm I forgot the name again08:38
viricecos08:38
virichttp://ecos.sourceware.org/08:38
kristianpaulkyak: dropbear dont work with sshfs (at least last time i checked)09:08
qi-bot[commit] kyak: default config for netsurf http://qi-hw.com/p/openwrt-xburst/4eb456809:45
qi-bot[commit] kyak: Prepare kernel for keymouse http://qi-hw.com/p/openwrt-xburst/1bcab3409:46
qi-bot[commit] kyak: enable keymouse http://qi-hw.com/p/openwrt-packages/a1a68fc09:59
qi-bot[commit] kyak: typo fix http://qi-hw.com/p/openwrt-packages/97542ba10:00
kyakok, with keymouse netsurf is at least usable10:00
B_LizzardMaybe a global solution is more logical10:02
kyakyes, i think we would need mouse emulator in some apps, too10:03
kyakB_Lizzard: what do you think, how much pain is implementing keyboard for netsurf SDL interface?10:04
B_LizzardWasn't that an issue with focus?10:04
kyakapparently no10:05
kyaknot only focus10:05
kyakother hotkeys are not usable too10:05
kyaklike "exit" :)10:05
B_Lizzard:)10:06
kyakthere is an option to add "close" button to toolbar though10:07
kyakhence it will work with keymouse10:07
kyakbut i would prefer some convenient keyboard shortcuts10:07
B_LizzardLemme see where such stuff is implemented10:08
B_LizzardShould be an easy fix10:08
kyaki guess so.. and it is not an SDL issue, cause other SDL apps are working fine10:11
kyakB_Lizzard: ahh, it IS the focus issue10:13
kyakwhen i focus the main window with mouse, i can use keys to scroll etc10:13
B_LizzardSo, does Ctrl + F2 close the window?10:14
kyakfollowing http://www.netsurf-browser.org/documentation/guide#Keys, none of these work except for arrow keys10:16
B_LizzardI think they haven't been implemented10:17
B_LizzardEverything is in framebuffer/gui.c10:17
B_LizzardStarting from line 67210:17
kyakand it's pretty awkward how these arrow keys interfere with keymouse (mouse movement is bound to red arrow+arrow keys)10:17
kyakhm, so only arrows keys have been implemented?..10:19
B_LizzardYeah10:19
B_LizzardThink so10:19
kyaki se10:19
kyakat least need to have ctrl+q working10:19
kyak(to exit) :)10:19
kyakc - close the current window (when it is clicked, the app exits)10:21
kyakwe need to bound ctrl+Q to fb_close_click,10:22
B_LizzardCheck gtk_gui.c, see what function they call10:22
B_LizzardI can't think straight today and I feel this whole keymouse thing is overwhelming me10:23
kyak:)10:23
B_Lizzard:D10:23
kyakhow they quit is easy10:24
kyakframebuffer/gui.c, line 84310:24
kyaknetsurf_quit = true;10:24
kyak:)10:24
B_Lizzard;)10:25
qi-bot[commit] kyak: netsurf: add the "close" button to toolbar http://qi-hw.com/p/openwrt-xburst/043895410:28
kyakxiangfu_: remember we were discussing that triggerhappy segfaults on start?10:33
viricwhere do you test openwrt/jlime changes? Directly on hardware?10:33
qi-bot[commit] Xiangfu Liu: add setfont2 ... to /usr/bin/gmenu2x http://qi-hw.com/p/openwrt-xburst/3bf471710:34
qi-bot[commit] Xiangfu Liu: reflash_ben.sh: update some info. use bzip2 -d instead of tar xf http://qi-hw.com/p/openwrt-xburst/478bfd610:34
kyakviric: unfortunately, yes. fortunately, it is fast to test10:35
xiangfukyak: yes. I remember. I would suggest add "triggersad", the working one 0.1.3,with your origin patch.10:35
kyakxiangfu_: removing all comment lines from its config files helps :) this is weird, but it looks there is some bug when parsing config files10:36
xiangfukyak: don't have much time on debug 'triggerhappy' :)10:36
xiangfukyak: so how about just use the working one (0.1.3 + your patch)10:36
xiangfukyak: when the upstream fixed. we remove 'triggersad' in openwrt-package.git then use the upstream one10:37
kyakxiangfu: let's do it. i don't want to dig into it either10:37
xiangfukyak: ok. I will revert that change.10:39
rafaviric: do not you have a nn right?10:44
rafaviric: and you are looking some qemu environment to test things right?10:45
viricI have10:45
viricbut I don't want to test things there10:45
rafaon nn ?10:45
viricyes10:45
viricOtherwise I'll stop having a nanonote I can use other than for testing10:46
viricI have hope on qemu working10:47
rafaviric: and i do not remember.. but .. the qemu system around which could be useful.. support normal disks?.. no nand.. some emu disk like ide or sata ? (like the -hda option for qemu x86?)10:47
viricyes, -hda will work I think, and then I have block2mtd as lars said10:47
rafaviric: why do not you do a normal tar.gz of your openwrt system and use hda?.. because kernel does not support?10:48
viricI want to test if I can build an ubifs properly too10:48
rafaviric: why exactly you want to have ubifs10:48
rafa?10:48
viricisn't ubifs nice for the nand?10:48
rafaviric: yes. but i do not understand why you are so long to have your qemu system10:48
viricI'm not a big expert on all this :)10:49
rafaviric: you can use hda on that qemu system and use ext210:49
rafathen if you want to have an ubifs later10:49
rafafor your nn10:49
rafayou do a tar.gz and then convert that to ubifs10:49
viricis 'convert' that easy?10:49
rafayes10:49
rafamore easy than eat and drink10:49
viric:)10:50
viricI imagine I'm simply having the fun of emulating a ubifs root on qemu10:50
rafayes.. i do not understand the advantages to do that10:50
viric:)10:51
rafaand i see your concerns about how to do that  for a long time on this chat10:51
viricrafa: you could buy a programmable pocket computer other than working on jlime, that's also "easier" ;)10:51
rafaviric: yes.. but the advantages??!!!10:51
rafawhich are them??!10:51
rafaviric: i did not buy my nn.. jlime bought that10:52
rafatell them10:52
virichaha :)10:52
rafaI still do not understand sorry10:52
viricwell, if you mean I was annoying in the chat for a long time with those questions...  if larsc would have come up with that block2mtd I would not have bothered that long.10:52
rafano no.. that all is okey10:52
rafai do not undesrtand which are the advantages to do that10:53
viricI'm trying to make some recipes that build a ubifs for the nanonote10:53
rafaand no simply to use qemu with had and ext210:53
viricthat's my main goal. And I think I can make init scripts and all that - I don't see troubles on those. My main blocker was how to test an ubifs image.10:53
viricI wanted to solve the blocker.10:54
rafaI see.. but you have doubs about how to convert a, for example, rootfs dir with your system on a ubifs image? if so.. i have some notes useful10:55
rafaabout how to convert that into a ubi image for nn10:55
viricI have some recipes10:55
viricI have the image10:55
viricI want to test it10:55
viricI'm almost booting it ;)10:55
rafacool ;)10:55
viricfor me this ubifs, with the ubi layer, is quite unusual10:57
viricrafa: I'm not using openwrt or jlime... I'm a bit on my own10:59
viricit's nice for learning about all it.10:59
kyakxiangfu: i see you are playing with reflash_ben.sh now. How do you think, would it be easy to implement a progress bar to indicate flash progress?11:00
kyakviric: so are you using that qemu-jz or stock qemu for that?11:01
virickyak: stock qemu11:01
kyaknice. have you managed to boot the uboot?11:02
viricI'm using the malta board11:02
viricAnd I did not plan to build uboot...11:02
viricI boot with -kernle11:02
kyakah ok11:02
kyakyou should have a custom kernel for that, right? not the one you can for Ben11:03
viricexactly11:03
kyak*use for11:03
viricbut I mostly wanted to test userland things11:03
kyaki think you might be very close to your goal :)11:03
viricI hope so!11:03
kyaklet us know when you succedd11:03
viricsure11:03
kyaki'd love to repeat your steps11:04
viricwell, I'm using nix for all that... nix expressions that create all I want. It may look weird to you if you never used nix11:04
viricI'll show when I succeed.11:05
qi-bot[commit] Xiangfu Liu: Revert "remove <triggerhappy> since it went upstream" http://qi-hw.com/p/openwrt-packages/9c9b62d11:05
qi-bot[commit] Xiangfu Liu: don't use HOST input.h, thanks kyak http://qi-hw.com/p/openwrt-packages/43d600211:05
qi-bot[commit] Xiangfu Liu: triggerhappy: rename it to triggersad, update download URL http://qi-hw.com/p/openwrt-packages/941799811:05
kyakviric: i remember we discussed nix once.. have you been able to build a working image with that?11:05
xiangfukyak: Hi. Please test this 'triggersad' in your host. if works fine. help me update the config.full_system. thanks. I need goto sleep. (about flash progress, talk it later) see you.11:06
xiangfukyak: thanks for netsurf and keymouse .11:06
virickyak: all the software I use in the nanonote comes from that. kernel included.11:07
kyakxiangfu: np! and thank you!11:07
virickyak: I'm making nix also build an ubifs; I'll make some little boot scripts... and let there be only nix-generated things in the nanonote.11:08
virickyak: (uboot included too)11:08
kyakviric: so you have to patch the kernel, right? since not all ben-related things are upstream11:09
viricI build the jz kernel from the git repositories, not vanilla.11:09
viric(2.6.35). I've not tried to go to 2.6.36 still11:09
kyakah ok11:09
kyakthat's pretty cool i'd say. it's another distro for ben :)11:10
viricsomething like that, yes :)11:10
kyakdo you have something special there? something you think might be useful for others? :)11:11
viricnothing special, other than it has the usual advantatges from nix11:11
viricreproduceability, flexibility, rollback, ...11:11
kyakdo i remeber it correct that Ångström is using nix?11:13
viricno, it is not11:13
viriconly nixos uses nix11:13
viric(But nix works in many systems, not only nixos)11:13
kyakokay11:15
viricI hit UBI error: validate_ec_hdr: bad VID header offset 4096, expected 6411:16
viricIt may be time for learning ubifs at leats :)11:16
viricleast11:16
virichmmm I'm getting to the point that I cannot prepare a file to be used as block device for a block2mtd for a qemu guest, unless I have 'ubiformat'ed it before, using block2mtd in the host...11:38
viricrafa: do you have a pointer to some recipes of making the ubifs images that people flash into the nanonotE?11:38
qi-bot[commit] kyak: replace triggerhappy with triggersad until it's not fixed upstream http://qi-hw.com/p/openwrt-xburst/2caf08f11:44
rafaviric: i do not know what recipe means in this context. But suppose that you have a rootfs dir on your pc.. and it has the files to build the ubifs rootfs.. For example you have under a rootfs/ : bin etc usr .. etc..11:45
qi-bot[commit] kyak: rename utils/triggersad -> triggersad http://qi-hw.com/p/openwrt-packages/f455a5411:45
rafaviric: in order to build a ubifs ready to install on nn we use :11:45
viricWell, I end up doing the 'ubinize'11:46
viricFor what I read in openwrt, that's the image. The result of ubinize.11:46
rafaviric: http://fz.hobby-site.org/hp660lx/nn/muffinman2ubifs.sh    and the cfg file : http://fz.hobby-site.org/hp660lx/nn/ubi.cfg11:46
rafaviric: yes11:46
viricBut the nand has to be preformatted, isn't it? with ubiformat11:46
rafathe script is an example.. we takes the tar.gz rootfs and convert to ubifs using that11:46
viricaha11:47
viricI don't see the role of ubiformat. Do you think it does not play any role?11:48
rafaviric: you can put ubifs output you get on nand with usbboot:  usbboot -c "nprog 2048 yourubiffs.ubi 0 0 -n"11:48
viricI know...11:48
rafaviric: I do not think so.. because to install jlime you need to nerase the whole nand11:48
virichum11:48
rafaand nobody does a ubiformat after that11:48
viricI reached this point booting in qemu:11:49
viricUBI error: vtbl_check: volume table check failed: record 0, error 911:49
viricI simply thought it could be related to some ubiformat11:49
viricthank you11:49
viricI'm not having much success12:23
viricI cannot 'rmmod mtdblock' in my pc... it says it is in use12:24
virichttps://kerneltrap.org/mailarchive/linux-kernel/2010/9/10/4617973 grrr bug of 2.6.3512:24
viricI surrender - I ask the linux-mtd mailing list :)13:03
kyakheh13:04
kyakhow does block2mtd work anyway?13:04
viricit should show a NOR13:07
virichttp://lists.infradead.org/pipermail/linux-mtd/2010-November/033154.html here I ask13:08
kyakso block2mtd would effectively create a /dev/hda, right?13:11
kyakas a "wrapper" to /dev/mtd... is it correct?13:11
kyakand you boot from /dev/hda then13:12
kyakdoes qemu have limited support for booting from mtd?13:13
kyakor why doesn't it work straightforward?13:14
kyakwpwrak: latest image, first login, empty password is not working15:48
qi-bot[commit] kyak: netsurf: update to latest svn (catch focu on startup) http://qi-hw.com/p/openwrt-packages/b09980a15:57
wpwrakkyak: yeah, it's set to something else. but you can set it to empty.16:04
kyaksomething else huh..16:04
kyakroot:!:0:0:root:/root:/bin/ash16:07
kyakthis is the default string16:07
wpwrakah well, that would make it difficult to get in :)16:07
kyakindeed16:07
wpwrakbut .. isn't there /etc/shadow ?16:07
kyakthereis no shadow by default16:07
kyakthere's a separate pacakge for this, not in base system16:08
wpwraki see. then it's indeed blocked.16:08
kyakheh.. that keymouse thing is working in Qt also :)16:11
kyakfor some reason, this is funy16:11
kyak*funny16:11
qi-bot[commit] Juan64Bits: Adding bases to the code generator. Code text edit, fixing input/output ID control, etc. http://qi-hw.com/p/nn-usb-fpga/2efe10616:21
virickyak: sorry, I went away...16:54
virickyak: The kernel has access to /dev/hda, where an image lays. But it's told to create a mtd device from whatever there is in hda. And then use that mtd device for ubi volumes.16:55
virickyak: There is no mips board in qemu that includes a NAND or NOR. qemu emulates some boards. Some have PCI buses, so they can get the usual IDE controllers, VGA cards, ...16:56
kyakviric: i see.. so this way, you emulate a mtd device on your host?17:03
viricin the guest17:03
viricbut it does not work.17:03
viricI think the main problem is that ubinize creates images only of the minimum size17:03
viricand expects people to use 'ubiformat' on the final flash.17:04
viricBut in this case the final flash appears from the image at kernel boot time.17:04
viricI don't have a middle point where to 'ubiformat'. It's all up to block2mtd17:04
virickyak, rafa: I just booted a qemu-system-mipsel from ubifs! :)18:38
wpwrakviric: you did it ! congratulations !18:58
viricYes! Great thing!18:59
viricsh `nix-build -A emulate sim-packages.nix`    <= this commands builds whatever I want on the target and runs a qemu booting it from ubifs18:59
viricNow I'd like to reuse the nixos expressions for a super-cross-nixos. It may work. But that's for tomorrow.19:00
--- Sun Nov 21 201000:00

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!