2013-04-29 00:03 emeb has left #qi-hardware [#qi-hardware] 2013-04-29 00:08 xiangfu has quit [Remote host closed the connection] 2013-04-29 00:49 wolfspraul has joined #qi-hardware 2013-04-29 00:53 wej has joined #qi-hardware 2013-04-29 00:56 zrafa has quit [Ping timeout: 252 seconds] 2013-04-29 01:05 pcercuei has quit [Quit: Lost terminal] 2013-04-29 01:07 pcercuei has joined #qi-hardware 2013-04-29 01:09 zrafa has joined #qi-hardware 2013-04-29 01:13 wolfspraul has quit [Remote host closed the connection] 2013-04-29 01:13 wolfspraul has joined #qi-hardware 2013-04-29 01:14 pcercuei has quit [Quit: Lost terminal] 2013-04-29 01:16 pcercuei has joined #qi-hardware 2013-04-29 01:35 rz2k has quit [] 2013-04-29 01:41 pcercuei has quit [Quit: brb] 2013-04-29 01:43 pcercuei has joined #qi-hardware 2013-04-29 02:20 freemor has left #qi-hardware [#qi-hardware] 2013-04-29 03:01 DocScrutinizer05 has quit [Disconnected by services] 2013-04-29 03:01 DocScrutinizer05 has joined #qi-hardware 2013-04-29 03:10 viric has quit [Read error: Connection reset by peer] 2013-04-29 03:14 viric has joined #qi-hardware 2013-04-29 03:16 wolfspraul has quit [Quit: leaving] 2013-04-29 04:06 wolfspraul has joined #qi-hardware 2013-04-29 05:32 qwebirc71215 has joined #qi-hardware 2013-04-29 05:33 qwebirc71215 has quit [Client Quit] 2013-04-29 06:35 MistahDarcy has quit [Read error: Connection reset by peer] 2013-04-29 06:36 MistahDarcy has joined #qi-hardware 2013-04-29 06:41 MistahDarcy has quit [Ping timeout: 272 seconds] 2013-04-29 06:47 jluis has joined #qi-hardware 2013-04-29 06:47 kyak: whitequark: когда и где? Мне всё равно 2013-04-29 07:19 wolfspraul has quit [Quit: leaving] 2013-04-29 07:44 jekhor has joined #qi-hardware 2013-04-29 07:46 porchaso0 has joined #qi-hardware 2013-04-29 07:48 pcercuei has quit [Quit: dodo] 2013-04-29 07:48 porchao has quit [Ping timeout: 256 seconds] 2013-04-29 08:42 coyo has quit [Remote host closed the connection] 2013-04-29 08:46 coyo has joined #qi-hardware 2013-04-29 08:46 coyo has joined #qi-hardware 2013-04-29 08:46 lekernel has joined #qi-hardware 2013-04-29 09:07 kuribas has joined #qi-hardware 2013-04-29 09:18 jekhor has quit [Ping timeout: 272 seconds] 2013-04-29 09:33 bitHipy has quit [Ping timeout: 245 seconds] 2013-04-29 09:35 bitHipy has joined #qi-hardware 2013-04-29 09:56 Calyp has joined #qi-hardware 2013-04-29 09:56 panda|x201 has joined #qi-hardware 2013-04-29 10:26 jekhor has joined #qi-hardware 2013-04-29 10:27 wej has quit [Ping timeout: 248 seconds] 2013-04-29 10:32 wej has joined #qi-hardware 2013-04-29 10:39 unclouded has joined #qi-hardware 2013-04-29 11:14 freemor has joined #qi-hardware 2013-04-29 11:20 mth has quit [Ping timeout: 272 seconds] 2013-04-29 11:24 unclouded has quit [Ping timeout: 272 seconds] 2013-04-29 11:37 wolfspraul has joined #qi-hardware 2013-04-29 11:38 wolfspraul has quit [Client Quit] 2013-04-29 11:38 wolfspraul has joined #qi-hardware 2013-04-29 11:56 mth has joined #qi-hardware 2013-04-29 12:08 jekhor has quit [Ping timeout: 260 seconds] 2013-04-29 12:19 whitequark: 2013-04-29 12:19 oops 2013-04-29 12:20 jekhor has joined #qi-hardware 2013-04-29 12:24 kuribas has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 2013-04-29 12:30 kuribas has joined #qi-hardware 2013-04-29 12:46 what are you guys plotting? 2013-04-29 12:48 a meeting :) 2013-04-29 12:49 ah ok, it sound all mysterious "tomorrow night?" "Da!" "when and where?" ;) 2013-04-29 12:50 :) 2013-04-29 12:50 isn't this a common way to meet? :) 2013-04-29 12:52 I guess the russian made it more mysterious 2013-04-29 12:55 imagine if it was german. 2013-04-29 12:55 far more misterious ;) 2013-04-29 12:57 hehe 2013-04-29 13:12 kuribas has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 2013-04-29 13:22 erikkugel has joined #qi-hardware 2013-04-29 13:24 pcercuei has joined #qi-hardware 2013-04-29 13:37 cod3r has joined #qi-hardware 2013-04-29 13:59 lekernel has quit [Quit: Leaving] 2013-04-29 14:00 lekernel has joined #qi-hardware 2013-04-29 14:35 dandon has quit [Ping timeout: 245 seconds] 2013-04-29 14:42 dandon has joined #qi-hardware 2013-04-29 15:00 cod3r has quit [Ping timeout: 246 seconds] 2013-04-29 15:03 pcercuei has quit [Quit: brb] 2013-04-29 15:11 pcercuei has joined #qi-hardware 2013-04-29 15:15 wej has quit [Ping timeout: 245 seconds] 2013-04-29 15:18 jluis has quit [Ping timeout: 245 seconds] 2013-04-29 15:20 wej has joined #qi-hardware 2013-04-29 15:20 cod3r has joined #qi-hardware 2013-04-29 15:32 dandon has quit [Ping timeout: 248 seconds] 2013-04-29 15:33 porchaso0 has quit [Ping timeout: 258 seconds] 2013-04-29 15:59 dandon has joined #qi-hardware 2013-04-29 16:00 wej has quit [Ping timeout: 264 seconds] 2013-04-29 16:07 wej has joined #qi-hardware 2013-04-29 16:15 emeb has joined #qi-hardware 2013-04-29 16:36 larsc: hehehe 2013-04-29 16:58 dandon_ has joined #qi-hardware 2013-04-29 17:00 dandon has quit [Ping timeout: 255 seconds] 2013-04-29 17:01 dandon_ is now known as dandon 2013-04-29 17:09 mog has quit [Excess Flood] 2013-04-29 17:09 mog has joined #qi-hardware 2013-04-29 17:09 mog has quit [Changing host] 2013-04-29 17:09 mog has joined #qi-hardware 2013-04-29 17:10 dandon has quit [Ping timeout: 252 seconds] 2013-04-29 17:11 dandon has joined #qi-hardware 2013-04-29 17:27 lekernel has quit [Read error: Connection reset by peer] 2013-04-29 17:35 хехе 2013-04-29 17:50 kuribas has joined #qi-hardware 2013-04-29 18:01 woakas has quit [Ping timeout: 258 seconds] 2013-04-29 18:02 woakas has joined #qi-hardware 2013-04-29 18:13 pcercuei has quit [Quit: brb] 2013-04-29 18:24 pcercuei has joined #qi-hardware 2013-04-29 18:33 deceivorz has joined #qi-hardware 2013-04-29 18:34 wej has quit [Ping timeout: 245 seconds] 2013-04-29 18:39 wej has joined #qi-hardware 2013-04-29 19:15 dandon has quit [Ping timeout: 248 seconds] 2013-04-29 19:18 hi 2013-04-29 19:18 dandon has joined #qi-hardware 2013-04-29 19:20 I just cloned git://projects.qi-hardware.com/qi-kernel.git, can someone tell me which branch of that repo is actually used to build the nanonote kernel ? 2013-04-29 19:20 wiki page http://en.qi-hardware.com/wiki/Ben_NanoNote/Kernel says jz-3.3, but isn't that old/outdated ? 2013-04-29 19:21 Success! 2013-04-29 19:24 apelete: jz-3.6 is the latest 2013-04-29 19:25 viric: did you find them? 2013-04-29 19:26 dandon has quit [Ping timeout: 260 seconds] 2013-04-29 19:27 :) yes 2013-04-29 19:28 say hello from me 2013-04-29 19:29 I mentioned you 2013-04-29 19:29 someone mentioned AD :) 2013-04-29 19:29 (I only had good words about you) 2013-04-29 19:29 larsc: thanks. so jz-3.6 includes all the qi-hardware kernel patches for the NN ? 2013-04-29 19:30 larsc: in fact it was whitequark who got into internet after 5 seconds of entering the bar 2013-04-29 19:30 larsc: oh, you mentioned your 3.9 tree. it that on qi-kernel ? i saw that you create a branch but there doesn't seem to be a lot in there. 2013-04-29 19:30 apelete: yes 2013-04-29 19:30 viric: was the vodka not to his liking ? 2013-04-29 19:30 wpwrak: 3.9-rc8 is on qi-kernel 2013-04-29 19:30 in 6 seconds he was already ringing me through SIP, through his VPN n who knows what land, through the bar free wifi. 2013-04-29 19:30 wpwrak: 3.9 is on my laptop 2013-04-29 19:30 ah ;-) 2013-04-29 19:31 dandon has joined #qi-hardware 2013-04-29 19:31 but I can push that pu 2013-04-29 19:31 out 2013-04-29 19:31 without all the dma and clock changes 2013-04-29 19:31 for now 2013-04-29 19:32 i'm curious about your board-qi_lb60.c. i think that's the best place to put what's left from atben.c (mainly code to connect the drivers, plus a small reset function). 2013-04-29 19:32 probably 2013-04-29 19:32 are you guys still working on the nanonote kernel by the way ? 2013-04-29 19:32 of course 2013-04-29 19:33 apelete: that's just what we're talking about :) 2013-04-29 19:33 I'm trying to create a BSP for the NN in the openembedded build system 2013-04-29 19:35 I think I will start with your work, eg. build a qi-hardware kernel and maybe uboot to create a mninimal bootable image for the NN with openembedded 2013-04-29 19:37 my goal is to make the BSP available in oe for those who prefer to use that build sytem instead of openwrt 2013-04-29 19:37 what do you think about it ? 2013-04-29 19:38 go for it 2013-04-29 19:38 wpwrak: pushed the branch 2013-04-29 19:40 larsc: ok, will try to build jz-3.6, and then go from there and try to integrate it inside oe 2013-04-29 19:40 will let you know how it goes 2013-04-29 19:41 apelete: you could actually try jz-3.9 now that it is out on the wild 2013-04-29 19:42 larsc: ah, that's great, will try that instead then 2013-04-29 19:46 larsc: thanks ! 2013-04-29 19:47 apelete: btw, there's also OE-based jlime. i think it hasn't been updated for ages, but there may still be things in there that are useful for you. not sure to what extent they pushed their changes up to OE. 2013-04-29 19:48 (board-qi_lb60.c) oh, refreshingly similar ;) 2013-04-29 19:49 you;re missing xiangfu's "qi_lb60: NAND: add data partition" 2013-04-29 19:49 before that, ubi was VERY unhappy with what it saw 2013-04-29 19:50 that kernel boots fine on my board 2013-04-29 19:51 wpwrak: I've been working on oe-based jlime for the past months, fixed a couple of things in the distro and modified it to build a ubi rootfs by default: http://git.openembedded.org/openembedded/commit/?h=2011.03-maintenance&id=91052aa8adea176d1ecb46e6b458a576938e0e8e 2013-04-29 19:52 wpwrak: now I'm trying to update the BSP, because jlime is still using kernel 2.6.36 2013-04-29 19:53 apelete: oh, great ! 2013-04-29 19:54 larsc: hmm, maybe you have a special OWRT installation then. i think it normally doesn't touch the data partition, so whatever is there (if there's anything) will upset UBI 2013-04-29 19:55 I use an image downloaded from downloads.qi-hardware 2013-04-29 19:55 wpwrak: the qi-hardware kernel seems to be a sensible choice to create an up-to-date BSP, and using your work should help minimize the effort 2013-04-29 19:57 if I succeed in creating the BSP, maybe I could help you with upstreaming the patches if you don't mind 2013-04-29 19:58 the oe patches? 2013-04-29 19:58 larsc: i don't know how UBI is structured internally, but it may just consider the whole partition as containing potential data. in this case, what you get when putting a small image on a larger partition would depend on the history of that partition 2013-04-29 19:59 larsc: you said on the ml that some help was needed to write glue code in the kernel: http://lists.en.qi-hardware.com/pipermail/discussion/2013-April/010117.html 2013-04-29 19:59 wpwrak: feel free to apply the patch, I'll see if anything breaks on my side 2013-04-29 19:59 apelete: (use the qi-hw kernel) yes, definitely. i don't think there are any "parallel" kernels that are maintained 2013-04-29 20:00 apelete: for the usb gadget driver. So the situation is that we have a usb gadget driver which is in a horrible shape 2013-04-29 20:00 larsc: i use it in my kernel. first, i tried to run without it, and all hell broke loose. 2013-04-29 20:00 apelete, interested in a tiny bootloader for jz4740 that boots straight to UBI? 2013-04-29 20:00 apelete: and there already is a upstream driver for this ip core which we'd prefer to use, but we need to write the glue code for the jz4740 SoC 2013-04-29 20:02 larsc: this sort of things: http://pastebin.de/34124 2013-04-29 20:03 larsc: yes, that's what I understood. maybe we could talk about it later, when I get the BSP working in OE, but I'll gladly help with the coding if necessary 2013-04-29 20:03 maybe someone from the OWRT crowd would know whether the root/data partition split should be considered mandatory or whether just a large root partition should work too ? 2013-04-29 20:03 * wpwrak waves in the general direction of mth and kyak :) 2013-04-29 20:04 pcercuei: you mean a bootloader that replaces uboot ? 2013-04-29 20:05 yes 2013-04-29 20:05 https://github.com/gcwnow/UBIBoot 2013-04-29 20:06 wpwrak: I know very little about OWRT; we're using buildroot instead 2013-04-29 20:06 and we've got a very strict split between root and data, since our rootfs is read-only (squashfs) 2013-04-29 20:06 wpwrak: I think I erased my whole nand before flashing the image, and I think UBI treats erased pages as free spaces, I guess that's why it works 2013-04-29 20:06 pcercuei: are you running that on GCW Zero game console ? 2013-04-29 20:07 mth: ah, i see, sorry. hmm, i why did i think you were on OWRT ? 2013-04-29 20:09 we were considering it at some point, but decided it was easier to support a read-only rootfs instead 2013-04-29 20:09 pcercuei: ubi.c is impressively small. but you still need some special partition for the kernel, it seems. pity. (i.e., you can't load, say, a file from the rootfs) 2013-04-29 20:10 ah, that must be it 2013-04-29 20:10 apelete: yes 2013-04-29 20:10 larsc: yes, i was thinking of something along these lines (erased blocks == free) 2013-04-29 20:10 wpwrak, the bigger the kernel partition is, the longer it takes to boot 2013-04-29 20:11 we don't store the kernel in an ubi parition on the nanonote 2013-04-29 20:11 pcercuei: I'm impressed :) 2013-04-29 20:11 hehe why? 2013-04-29 20:12 larsc: config file seems to be missing missing in jz-3.9, where can I get it ? (or should I make my own ?) 2013-04-29 20:12 larsc: well, we have a non-UBI partition. same concept, different number of layers :) 2013-04-29 20:15 pcercuei: I have a strong interested in the kernel and bootloader(s) (low level programming stuff), so I think it's impressive to actually write a bootloader, however tiny it might be :) 2013-04-29 20:15 well the point was to make it tiny 2013-04-29 20:16 the jz processors only load the first 8kB of data into RAM 2013-04-29 20:16 so u-boot has to be cut in half 2013-04-29 20:16 piranha instead of whale (u-boot) 2013-04-29 20:16 one part that initializes the SD/NAND, one part that initializes the rest 2013-04-29 20:17 ubiboot is only ~6k with all the features compiled in (serial, MMC+FAT, NAND+UBI) 2013-04-29 20:18 apelete: it should be in arch/mips/config/qi_lb60_defconfig 2013-04-29 20:19 wpwrak: the uImage contains the size in the header. So the loader first reads the header then the remaining bytes, but only as many as it needs, so it doesn't matter how large the partition is 2013-04-29 20:20 larsc: ah, didn't look there, thanks. 2013-04-29 20:20 apelete: make qi_lb60_defconfig 2013-04-29 20:23 larsc: was that for pcercuei ? 2013-04-29 20:28 no for you 2013-04-29 20:29 Is it possible to read the nand flash from a running system? 2013-04-29 20:29 For example write it to an SD card? 2013-04-29 20:30 larsc: is it possible to 'make uImage' ? or should I 'make vmlinux.bin' and then convert to uImage by using mkimage ? 2013-04-29 20:30 larsc: now i'm confused :) 2013-04-29 20:30 apelete: the later 2013-04-29 20:30 wpwrak: doesn't matter ;) 2013-04-29 20:31 kuribas: yes 2013-04-29 20:31 apelete: i have a few scripts you may find useful in http://projects.qi-hardware.com/index.php/p/wernermisc/source/tree/master/bin 2013-04-29 20:32 apelete: mknnk does "make" for the nanonote kernel (for any make target). nnui does the whole process, including mkimage. fk transfers and flashes the kernel. 2013-04-29 20:32 apelete: nnui and fk don't consider modules, so you'd have to "mknnk modules" and scp them separately 2013-04-29 20:33 apelete: also, fk falls back to usb boot using idbg if it can't scp. since you probably don't have an idbg, that won't work for you. 2013-04-29 20:35 apelete: also, before you can scp, you need to set up usb networking to the ben. the script "ben" would do that. there's a similar one for jlime, called "jlime". 2013-04-29 20:36 larsc: Or I just leave the kernel that it has, it's maybe not worth the effort if it is a discontinued device. 2013-04-29 20:40 wpwrak: wow, that's great. thanks ! 2013-04-29 20:40 kuribas: well your choice. If you are interested in this sort of thing it's an fun exercise 2013-04-29 20:43 larsc: hmm, having second thoughts about a flurry of #ifdefs in board-qi_lb60.c. maybe i should just put the atben driver into arch/mips/jz4740 as a subordinate config option for the ben. alas, we don't have any precedent for multi-file board definitions in MIPS. do you think an arch/mips/jz4740/atben-qi_lb60.c would receive a friendly reception ? 2013-04-29 20:45 perhaps we need an ecosystem-*/ instead of board-*.c ;-) 2013-04-29 20:46 wpwrak: my plan is to switch jz4740 over to devicetree 2013-04-29 20:46 then you can put whatever you want your dt 2013-04-29 20:47 phew. getting complex :) 2013-04-29 20:57 jekhor has quit [Ping timeout: 240 seconds] 2013-04-29 21:03 kuribas has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 2013-04-29 21:05 erikkugel has quit [Quit: Leaving.] 2013-04-29 21:06 getting simple 2013-04-29 21:08 devtree is the origin of several drivers having platform resources and CONFIG_OF in parallel, no ? 2013-04-29 21:09 probably 2013-04-29 21:24 larsc: I've download the toolchain here http://downloads.qi-hardware.com/software/images/Ben_NanoNote_2GB_NAND/latest/OpenWrt-Toolchain-xburst-for-mipsel-gcc-4.6-linaro_uClibc-0.9.33.2.tar.bz2 2013-04-29 21:24 but when I point CROSS_COMPILE to mipsel-openwrt-linux/bin/ directory I get the error "mipsel-openwrt-linux/bin/gcc: cannot execute binary file " 2013-04-29 21:25 what am I missing here ? 2013-04-29 21:27 not sure, might be 32bit vs 64bit 2013-04-29 21:30 larsc: hmm, didn't think about that, but I'm building on a 32bit debian host (it shouldn't be a problem) 2013-04-29 21:31 what does file mipsel-openwrt-linux/bin/gcc say? 2013-04-29 21:31 what does `file mipsel-openwrt-linux/bin/gcc` say? 2013-04-29 21:34 mipsel-openwrt-linux/bin/gcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=0x8258e7968a8994415f7a33655ca2e340edfdcdef, not stripped 2013-04-29 21:34 larsc: so you're right, can't run on my 32bit host 2013-04-29 21:36 I also have a 64bit host though, will try to build the kernel there 2013-04-29 21:37 larsc: thanks for helping 2013-04-29 21:37 rz2k has joined #qi-hardware 2013-04-29 22:01 checking ... still have two 32 bit hosts in regular operation 2013-04-29 22:01 rz2k has quit [Read error: Connection reset by peer] 2013-04-29 22:01 well, two 32 bit x86 hosts 2013-04-29 22:02 rz2k has joined #qi-hardware 2013-04-29 22:03 rz2k has quit [Read error: Connection reset by peer] 2013-04-29 22:04 rz2k has joined #qi-hardware 2013-04-29 22:09 haven't used one in 5 years or so 2013-04-29 22:09 but I have a couple of 32bit VMs 2013-04-29 22:13 gcc: error trying to exec 'cc1': execvp: No such file or directory 2013-04-29 22:14 maybe I should get the full SDK, not just the toolchain 2013-04-29 22:17 apelete: you could try to run the openwrt build process. that also generates a toolchain. 2013-04-29 22:17 ldd /where/ever/mips-*-cc1 would tell you if there are any problems with shlibs 2013-04-29 22:18 jekhor has joined #qi-hardware 2013-04-29 22:18 after the architecture, that's usually the next stumbling block. i think the pre-compiled toolchain is for some version of ubuntu. may work on debian. 2013-04-29 22:20 the toolchain is for 64 bit hosts -\ 2013-04-29 22:20 xiangfu used to build the 32 bit as well, but not for the latest release 2013-04-29 22:20 so yeah, just build your own 2013-04-29 22:22 ok 2013-04-29 22:27 wpwrak: the 0020-qi_lb60-NAND-add-data-partition.patch is needed, since we changed the default partition layout 2013-04-29 22:27 i'm not sure why it works without this patch for larsc... 2013-04-29 22:29 yeah, when i tried without it, i received plenty of fire and brimstone :) 2013-04-29 22:29 same for me 2013-04-29 22:35 btw, the naming of toolchain tarball does not suggest that it is for 64 bit hosts. I reported it and even submitted a patch: https://dev.openwrt.org/ticket/11264, more than a year ago 2013-04-29 22:36 a poke to openwrt. 2013-04-29 22:40 mog has quit [Ping timeout: 256 seconds] 2013-04-29 22:43 yeah, the name is somewhat nasty. perhaps it should also make the "linux" a bit more detailed 2013-04-29 22:43 well, specific 2013-04-29 22:43 i.e., Debian or Ubuntu 2013-04-29 22:44 coyo has quit [Ping timeout: 245 seconds] 2013-04-29 22:48 got the kernel compilation finally running (by making a few symbolic links in the downloaded toolchain archive, to put all needed executables in a single directory) 2013-04-29 22:48 victory is near ;-) 2013-04-29 22:49 will test the result on target tomorrow 2013-04-29 22:49 thanks everyone for helping, time to get some sleep :) 2013-04-29 22:49 good night 2013-04-29 22:49 (will let you know how it went) 2013-04-29 22:58 [commit] Werner Almesberger: atben/misc/atben-spi-performance.txt: SPI performance comparison (master) http://qi-hw.com/p/ben-wpan/ff9c7a8 2013-04-29 22:58 wolfspraul has quit [Ping timeout: 256 seconds] 2013-04-29 23:03 rz2k has quit [] 2013-04-29 23:05 baba has joined #qi-hardware 2013-04-29 23:06 cod3r has quit [Ping timeout: 245 seconds] 2013-04-29 23:06 wej has quit [Ping timeout: 264 seconds] 2013-04-29 23:08 [commit] Werner Almesberger: atben-spi-performance.txt: clean up and describe role of referenced code (master) http://qi-hw.com/p/ben-wpan/ec6c09d 2013-04-29 23:11 wej has joined #qi-hardware 2013-04-29 23:11 deceivorz has quit [] 2013-04-29 23:11 xiangfu has joined #qi-hardware 2013-04-29 23:35 jekhor has quit [Ping timeout: 260 seconds] 2013-04-29 23:59 baba has quit [Quit: WeeChat 0.4.0]