#qi-hardware IRC log for Sunday, 2013-03-31

wpwrakhmm, using the net-next kernel, startup looks like this: http://pastebin.com/YFTMsvHD00:28
wpwrak(the mmc0 errors are probably because i had a non-mmc card inserted)00:29
wpwrakthe UBIFS problems look as if the kernel had troubles finding the right partition offset00:30
wpwrakone thing about the spi errors is that there's no ili8960 in the kernel. i saw a patch for it in the owrt patch collection, though00:31
wpwraklet's try this with a bit more verbosity ...00:37
wpwrakwhat's odd is that there's no word about NAND detection00:45
wpwrakthe spi complaints came from missing 0008-qi_lb60-Don-t-use-3-wire-spi-mode-for-the-display-fo.patch01:16
wpwrakphew. debug output at last. something seems to have changed with loglevel.01:31
wpwrakthe ubifs errors seem to be caused by 0020-qi_lb60-NAND-add-data-partition.patch missing01:38
wpwrakone step closer to sanity :)01:38
wpwraklet's see if the stock kernel could still boot on this ben ...01:41
wpwraknaw, dies too. very good.01:41
wpwrakreflash_ben time again ...01:42
wpwrakinteresting ... after a reinstall with the "official" distro, most printks are gone, too. ah well, life is full of small mysteries :)02:10
wpwraknow the kernel boots into busybox. not making it to a login/shell, though. let's see what else it needs ...02:12
wpwrakaah, a shell. victory at last ! :) devtmpfs did the trick02:19
wpwrakfails to mount /proc, though the kernel has it. hmm.02:21
wpwraklarsc (or maybe xiangfu): do you remember whether 0004-NAND-Add-support-for-subpage-reads-for-NAND_ECC_HW_O.patch is required or whether it's merely an optimization ?02:30
wpwrakseems that there may be trouble in the future with SPI: spi_gpio spi_gpio.1: master is unqueued, this is deprecated02:31
wpwrakubifs is also quite cheerful: UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 10, need 8002:32
wpwrakluckily, there are neither bad nor corrupt PEBs :)02:32
wpwraksituation so far: http://pastebin.com/HcQzsy1P02:36
wpwraklet's see how well git handles local clones02:36
wpwrakif anyone is interested, here's my current setup: https://github.com/wpwrak/ben-wpan-linux/commits/ben-basics02:49
wpwraki merged 0006-MTD-NAND-JZ4740-Multi-bank-support-with-autodetectio.patch (with whitespace cleanup) and 0008-qi_lb60-Don-t-use-3-wire-spi-mode-for-the-display-fo.patch02:50
wpwrak0004-NAND-Add-support-for-subpage-reads-for-NAND_ECC_HW_O.patch needed some small modifications02:51
wpwrakoh, and why do we have 0009-dev-mem-Add-kernel-config-option-to-omit-this-device.patch ? please don't take /dev/mem away ! anything using ubb from user space (libubb, ubb-vga, etc.) and the ben-wpan userspace tools with atben need it02:58
larscwpwrak: it's an optimization03:52
wpwrakkewl, so i can kill it if it causes trouble :) here's my variant for net-next (3.9.0-rc4): https://github.com/wpwrak/ben-wpan-linux/commit/5d4ea6ec9bd55a9be80b59f523d975d316f55e6e03:59
wpwrakthe main difference is that NAND_SUBPAGE_READ has become a flag. dunno if my variant of the patch is correct04:00
larscmeh, that one night I need to get up earily they take an additional hour out of the night04:10
wpwrakyou have to get up early on easter sunday ... to catch the easter bunny hiding eggs ?04:16
larscI wish, need to get to the airport, hopefully it won't be too busy on eastersunday at 8am04:17
wpwrakyou picked a flight that's leaving at a lovely time :)04:18
wpwrakis it for holidays or work ?04:19
larscwork, flying over to ADI's offices in Romania04:20
wpwrakah, short-distance04:21
larscyes, but there are only two flights per day04:21
larscone at 8am one at 8pm04:21
larscor so04:21
larscby flying now instead of in the evening I get at least the chance to see a bit of the city04:24
wpwrakyeah, and you can check out the nightlife. well, may not be too wild if monday is not a holiday04:25
larscit's not04:25
larscand I has surgery 1.5 weeks ago and I'm not fully recovered yet04:26
wpwrakaw :(04:27
larscbut a colleague is going to pick me up at the aiport and is going to take me on a sightseeing tour04:30
larscand mabye go for a drink later in the evening04:30
wpwrakmay not be all that drab then :)04:33
larscI'm mainly complaining about daylight saving time04:38
wpwrakyeah, that's one evil invention04:54
kyakwpwrak: i'll have a look into updating lowpan-tools to the latest version05:38
larscyep, airport is almost empty, I'm one hour early at the gate05:55
wpwraklarsc: always better than one minute late ;-)05:56
larscthat's true05:56
wpwrakkyak: great, thanks 105:56
larscbut as always the mobile connection sucks05:57
wpwrakbe thankful that there is one ;-)05:58
larscI sometimes wonder whether they do this on purpose so they can sell their wifi06:00
larsceven on the runway you get better connection then here at the gate06:00
qi-bot[commit] kyak: libnl-3: initial commit (master) http://qi-hw.com/p/openwrt-packages/e360db608:03
qi-bot[commit] kyak: lowpan-tools: update to 0.3 (master) http://qi-hw.com/p/openwrt-packages/f18356c08:03
kyakwpwrak: the packages are in http://downloads.qi-hardware.com/people/kyak/tmp/{libnl-3_3.2.21-1_xburst.ipk,lowpan-tools_0.3-1_xburst.ipk}08:05
kyaki only tested the "iz --version" though :)08:05
kyakwe had to provide our own libnl-1 for older lowpan-tools, because openwrt shipped libnl-2. Now we have to provide our own libnl-3 for the latest lowpan-tools, because openwrt is still using libnl-2 :)08:07
wpwrakkyak: thanks ! yes, the libnl dependency is a bit messy. the mailing list is full of people wrestling with it ;-)13:28
wpwraktesting ...13:28
wpwrakhmm, still has only the old commands13:36
wpwrakdid you follow these instructions ? http://sourceforge.net/apps/trac/linux-zigbee/wiki/BuildingUserspaceTools13:37
viric_have you seen this kernel build error? 3.8.4 and 3.8.513:37
viric_kernel/signal.c: error: 'struct sigaction' has no  member named 'sa_restorer'13:38
wpwrakthe new version identifies itself as 0.3, like yours. not sure if this means they're the same and "set" is missing for a more obscure reason ?13:38
wpwrakscratch the "?".13:38
wpwrakviric_: accidental editing ? and no, haven't seen this yet13:39
viric_hm seems to be a known issue on mipslinux13:39
kyakwpwrak: what's so special about those instructions?13:40
kyakhad no problems with libnl dependency.. apart from the fact that i had to package it13:41
wpwrak"iz set" is needed to set addresses "cleanly" with net-next, since the izcoordinator functionality has been lost (at least temporarily)13:42
wpwrakyou have a plan B, abusing izcoordinator for this task, but that's a little messy13:43
kyakwpwrak: do you see the version of iz as 0.3?13:43
wpwrakyes. yours (without "iz set") and the one i build from sources for x86_64 (with "iz set") both identify as 0.313:43
kyakthen i have no idea where the "set" option is :)13:44
kyaki could expect a special option to enable it in build instructions, but there is nothing like that13:45
wpwraksrc/iz-mac.c line 571 should be  .name = "set",  that would indicate that you have the right version13:47
kyakso the fact that it grabbed the 0.3 tarball doesn't indicate that? :)13:48
wpwrakno no, you need the git, no tarball13:48
wpwrakhttp://sourceforge.net/apps/trac/linux-zigbee/wiki/BuildingUserspaceTools13:48
wpwrakquote: "It is strongly recommended to use the latest Git HEAD version."13:48
kyakwhat the hell...13:48
kyakare they not capable of doing a proper release?13:49
wpwrakthe project is undergoing some management changes ;-)13:49
wpwrakit's all in flux13:49
kyakok, lemme package the git version real fast13:49
kyakwpwrak: http://downloads.qi-hardware.com/people/kyak/tmp/lowpan-tools_git-1_xburst.ipk13:56
kyaknot sure if it is best to commit the git version of package or leave it at 0.3...13:57
wpwrakthe git version will auto-track ?13:58
kyaknope, it's bound to the specific revision13:58
kyak(commit)13:58
wpwraksounds great then. "iz set" succeeded. now let's see if i can send/receive13:59
qi-bot[commit] kyak: lowpan-tools: update to the latest git version (master) http://qi-hw.com/p/openwrt-packages/963a2b714:00
wpwrakyeah. works ! thanks a lot !14:00
kyaknp :)14:01
wpwrakand i found that all the bitching from owrt depends on the kernel, even if it looks as if it was entirely user space problems14:15
wpwraki.e., if i install the owrt kernel, the complaints go away14:15
wpwrakwell, this is now lower priority, given that i can use atben with the owrt kernel14:16
viricwpwrak: owrt starts with patching for the path of the 'init' elf14:16
wpwrakhmm, but how would that depend on the kernel ?14:21
viric?14:22
viricthe code that finds the init elf is in the kernel14:22
wpwraki had to enable devtmpfs to get to the shell prompt at all, which is something the owrt kernel doesn't even have. so there's something fishy.14:22
viric:)14:22
wpwrakaaah !14:23
viricbecause you start with a too-void fs14:23
wpwrakno i remember what you mean14:23
wpwraks/no/now14:23
wpwrakright. owrt's "we introduce a random change that guarantees that we'll never work with a vanilla kernel" policy14:24
viricmaybe there is an insightful rationale behind that, but I don't know it14:25
wpwrakwhere's a psychopathologist when you need one ? ;-)14:26
kyakwpwrak: as far as i remember, you can use vanilla kernel (nanonote_defconfig or whatever it is called) and the only patch you actually need is for partition layout14:28
wpwrakthat's what i almost got to boot. but then busybox didn't find things.after tossing in devtmpfs, i comes up, but with complaints14:30
wpwraks/ i / it /14:30
wpwraks/ needs an index option. s/ i / it /[2]14:31
wpwrakor [1], if we make it 0-based14:31
viric:)14:31
viricthe partition layout can be set in the kernel config14:32
viriceven in uboot14:32
wpwraki passed a compile-time command line, just to make sure. also need it for loglevel. the kernel is a bit too silent by default.14:33
wpwrakif anyone wants to play: this is how owrt comes up with the net-next kernel: http://pastebin.com/gibQYdG714:33
wpwrakand here is the kernel that goes with it: https://github.com/wpwrak/ben-wpan-linux/commits/ben-basics14:35
wpwrakthe .config is in <toplevel>/config-ben14:35
viricwpwrak: I didn't find how to use that google-authenticator thing, having the key generator in the nanonote14:35
viricwpwrak: but I also found 'oath toolkit', which looks better and more gnuish14:36
viricBut at the end I'll use OTPW, which is "paper based" :)14:36
viricfor google-authenticator, I mean that the 'key generator' client seems to be available only for ios and android.14:36
wpwraknice :) don't let skynet have your credentials14:36
viricno no.14:37
viricotpw looks quite good14:37
rjeffries.16:49
wpwrak(owrt) init=/etc/preinit id the trick17:34
wpwrakthe owrt kernel boots without it, so i suppose it's set via a patch there17:34
Action: wpwrak loves his idbg :) i wonder how people get anything done at the kernel level without it17:37
whitequarkwpwrak: what does idbg do?17:40
wpwrakit's a little USB-to-serial(and more) board that goes into, for example, a ben. details: http://www.almesberger.net/misc/idbg/17:45
viricwpwrak: I used a ftdi cable with the next-to-battery serial port17:45
viricwpwrak: ha, you git the init name patch thing? :)17:46
viric*hit*17:46
lindi-wpwrak: are you using openocd with that?17:46
viriclindi-: does the ingenic support jtag?17:47
wpwrakviric: yeah. fixed in my tree now. one evil critter down :) i think now all that's missing is usb. (the rest are audio, nand optimizations, and cpufreq, which i think i don't need)17:47
lindi-viric: what is ingenic?17:47
viriclindi-: I mean the cpu in the nanonote17:48
wpwraklindi-: yes, i have a (very slow and unreliable) openocd driver for it17:48
viricah I didn't know17:48
viricI used only kgdb17:48
lindi-wpwrak: do you normally use that or something else?17:49
viricwhich works impressively well17:49
wpwraklindi-: haven't touched the phones for a long time, though. so i never improved that driver. idng for the ben doesn't have jtag17:49
lindi-wpwrak: ok17:49
whitequarkhahaha Embedded Air17:49
whitequarkexcellent17:49
wpwraklindi-: most of the time, i just use printk debugging17:49
viriclindi-: http://viric.name/cgi-bin/nanonixos/doc/trunk/doc/kerneldbg/17:49
whitequarkwpwrak: re debugging: printks, kdbg and also white dot debugging17:49
lindi-viric: document not found17:50
lindi-wpwrak: ok, I use systemtap quite often17:50
viricouhm17:50
wpwraklindi-: apart from devirgination, i really _had_ to use jtag only maybe twice in all my time at openmoko17:50
viriclindi-: http://viric.name/cgi-bin/nanonixos/doc/trunk/doc/kerneldbg/index.wiki17:50
viricI used openocd only with the sheevaplug17:59
viricwhen I was building the first kernels for it, that didn't build at all17:59
viricI mean17:59
viricdidn't boot at all17:59
wpwrakargh19:46
viricwpwrak: board burnt?20:06
wpwraknaw, the unreadably colored message above20:08
viricah I missed it.20:14
viriclarsc: do you know anything about gcc targeting sharc processors?21:43
--- Mon Apr 1 201300:00

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