#qi-hardware IRC log for Sunday, 2012-10-07

Action: kristianpaul had consider migrate to stereolithography14:48
kristianpauli just wondering sourcing the resin or if buying fair prices...14:53
kyakhow do you think guys, is it possible to "wake on USB" Ben?15:12
kristianpaulyou could provide power just by usb15:19
kristianpaulthe problem at the other side will be control usb power by software15:19
kristianpaulnow about wake up.. i dont know :-/15:20
kyakkristianpaul: that's a good idea.. i think i can remove the battery and control USB power from my host.. this will make Ben switch on/off15:35
mthkyak: you can wake up on any GPIO interrupt, so the question is whether there is a GPIO you can easily control remotely15:50
mththere might be a GPIO for USB cable detection, but I don't know if it detects something that is software controllable15:51
kyakmth: would UBB fit for this purpose (toggle GPIO to wake up)?15:53
mthI think it would15:54
mthI'm not sure though if wakeup works from deep sleep too or only from suspend to RAM15:55
mthon the Dingoo A320 we wake up from suspend using the power slider, which is a GPIO button15:55
kyakintersting..15:56
mththe gpio-keys driver has a .wakeup field to indicate which buttons have a wakeup function15:57
mthI think the Ben uses a different driver, but you could enable both and just give gpio-keys a single "button" to monitor15:58
kyakmth: ok, thanks for ideas!16:15
qi-bot[commit] Maarten ter Huurne: MIPS: JZ4740: A320: defconfig: Enable RNDIS support in cdcether driver (jz-3.5) http://qi-hw.com/p/qi-kernel/67aaee416:15
kyakmth: btw, is RNDIS working on Windows? I was not able to make it work (using linux.inf)16:32
whitequarkit's kinda broken16:32
mthI got it to work with 4 different Win7 systems last week16:33
mthI was very surprised, since before last week I never got it to work anywhere16:33
kyakcould you share the inf file?16:33
kyaki never tried RNDIS in 3.516:33
mthyes, but it needs cleanup since it's a Frankensteinian merge of the one from the kernel source tree and an example16:34
kyaklast kernel version i tried RNDIS on was 3.2 i think16:34
mthhttp://www.treewalker.org/temp/linux.inf16:34
mthI've tried it with 3.616:34
kyakit's a really great news if it's finalyl working 16:34
kyakthanks16:34
mththis was with a JZ4770 device, but I don't think that should really matter16:35
kyaki think i will upgrade to latest available kernel and try vanilla linux.inf: http://www.kernel.org/doc/Documentation/usb/linux.inf16:36
kyakthen i'll try yours, if it makes any difference16:36
mththe plain one gave me a "this driver cannot be installed" type of error16:36
kyakah, that error code 10..16:37
mththat disappeared when copy-pasting the example code in16:37
mthyou have to wait until Windows gives up on finding the driver, then in Device Manger choose "Update Driver" and pick the directory containing the .inf file16:37
mththe latest kernel for the Ben is 3.5, I can update it to 3.6 though if needed16:38
kyaklet me try first with the current kernel, which is 3.2.1.. maybe your linux.inf does a magic trick16:40
mthsomeone on #dingoonity is tested with 3.5 kernel and Windows XP and so far it doesn't work there16:41
mthall tests I did was with Windows 716:42
kyaki don't have Windows 7 at hand atm.. i just checked, it doesn't work with Windows XP and 3.2.116:43
mthI don't have a Windows machine myself, but I can test the 3.5 kernel on the 4740 tomorrow on a friend's netbook16:43
kyaki will test tomorrow on Windows 7 (have it at work)16:44
kyakmeanwhile i will prepare a 3.5 or 3.6 kernel ..16:44
kyakdo you know if 3.5 should work with Windows 7?16:45
kyakor i should go for 3.6?16:45
mthI have only tested the combination WIn7 + JZ4770 + Linux 3.616:45
mthyou do need RNDIS enabled in the kernel config, did you check that?16:45
kyakdo you think the JZ4770 variable is important here?16:45
kyakoh yea, it's enabled16:46
kyakwhen i plug in the USB cable on Windows, i see that the driver chooses "config #2: RNDIS"16:46
mththe JZ4770 kernel uses the musb driver, not the USB device driver from Ingenic that the 4740 uses16:46
mthI think larsc said that the musb driver could be used for 4740 too with the right glue, but I don't really know how to do that16:47
kyaki hope this doesn't make a difference..16:47
kyakwhen you said "can update it to 3.6 for Ben", what did you mean?16:48
kyakjust update the nanonote_config?16:48
mthI mean there is a jz-3.5 branch but not yet a jz-3.6 branch16:48
kyakah!16:48
mthI can make a jz-3.6 branch, but it will take a few hours (depending on how many merge conflicts there are this time)16:49
larscto come back to wakeup interrupts, you can actually use any interrupt to wake the device up, doesn't have to be a gpio16:49
kyakmth: don't bother doing it yet, i will try jz-3.5 and Windows 7 and your inf16:50
mthI'll have to make a jz-3.6 branch sooner or later anyway, since I want to keep up with mainline kernel releases16:51
mthbut if it can be done in a few weeks, it would better fit my timing16:51
kyaklarsc: can interrupt be used to resume from suspend to RAM, or are you saying that interrupt can bring it from complete power off?..16:51
larscsuspend to ram17:12
larscpoweron is only possible by asserting the PWR_ON pin17:13
kyaki see, thanks17:15
kyakhm, jz-3.5 boots, but freezes after "Freeing unused kernel memory"17:20
kyaki'm using jz-3.5 at latest commit + 0020-qi_lb60-NAND-add-data-partition.patch since i have a data partition17:20
kyakalso i boot it from /boot/uImage (via F4)17:20
kyakbelieve it or not, but that helped: http://forums-web1.gentoo.org/viewtopic-p-6709377.html?sid=86ec6f490268087bd9feb84fc7071dad17:46
kyaki guess the default config should add CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y17:46
qi-bot[commit] Paul Cercueil: menu.cpp: Don't use stat() to know if a FS entry is a directory (packages) http://qi-hw.com/p/gmenu2x/3dc12d019:49
qi-bot[commit] Paul Cercueil: configure.in: Perform a check for the 'libopk' library. (packages) http://qi-hw.com/p/gmenu2x/45be8af19:49
qi-bot[commit] Paul Cercueil: Make loadPNG() able to read files from OPK packages. (packages) http://qi-hw.com/p/gmenu2x/0cbb5ee19:49
qi-bot[commit] Paul Cercueil: If a filename contains '#' don't check if the file exists. (packages) http://qi-hw.com/p/gmenu2x/e3837fc19:49
qi-bot[commit] Paul Cercueil: LinkApp: Added support for reading OPK packages. (packages) http://qi-hw.com/p/gmenu2x/61d22e219:49
qi-bot[commit] Paul Cercueil: During init, load all packages in CARD_ROOT/*/apps (packages) http://qi-hw.com/p/gmenu2x/cd4809319:49
LunaVoraxhi!22:04
--- Mon Oct 8 201200:00

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