2012-10-09 00:18 Jurting has quit [Remote host closed the connection] 2012-10-09 00:45 aisa has joined #qi-hardware 2012-10-09 00:55 urandom__ has quit [Quit: Konversation terminated!] 2012-10-09 01:00 heberth has quit [Quit: leaving] 2012-10-09 01:12 xiangfu has joined #qi-hardware 2012-10-09 01:55 freakazoid0223 has joined #qi-hardware 2012-10-09 02:01 nikescar has quit [Read error: Connection reset by peer] 2012-10-09 02:02 nikescar has joined #qi-hardware 2012-10-09 02:25 akiwiguy has joined #qi-hardware 2012-10-09 02:25 akiwiguy has left #qi-hardware [#qi-hardware] 2012-10-09 02:49 aisa has quit [Quit: leaving] 2012-10-09 03:02 scientes has joined #qi-hardware 2012-10-09 03:03 DocScrutinizer05 has joined #qi-hardware 2012-10-09 03:04 DocScrutinizer06 has quit [Ping timeout: 252 seconds] 2012-10-09 03:09 [commit] Xiangfu: debian: regular update (master) http://qi-hw.com/p/fped/9ab9ae6 2012-10-09 03:09 [commit] Xiangfu: move debian/* to https://github.com/xiangfu/deb-pkg/ (master) http://qi-hw.com/p/fped/d59b472 2012-10-09 03:16 uwe_ has quit [Read error: Operation timed out] 2012-10-09 03:19 uwe_ has joined #qi-hardware 2012-10-09 03:40 freakazoid0223 has quit [Ping timeout: 256 seconds] 2012-10-09 03:53 guanucoluis has quit [Ping timeout: 246 seconds] 2012-10-09 04:06 heberth has joined #qi-hardware 2012-10-09 04:23 heberth has quit [Ping timeout: 246 seconds] 2012-10-09 05:01 mth: i see.. the same results i have. We'll see if 3.6 makes any difference for JZ4740 2012-10-09 05:09 rejon has joined #qi-hardware 2012-10-09 05:20 guanucoluis has joined #qi-hardware 2012-10-09 05:28 LunaVorax has joined #qi-hardware 2012-10-09 05:38 pcercuei has quit [Quit: dodo] 2012-10-09 05:47 kristianpaul has quit [Ping timeout: 272 seconds] 2012-10-09 05:47 kristianpaul has joined #qi-hardware 2012-10-09 05:47 kristianpaul has quit [Changing host] 2012-10-09 05:47 kristianpaul has joined #qi-hardware 2012-10-09 05:52 scientes has quit [Ping timeout: 246 seconds] 2012-10-09 05:53 Does anyone knows here where I can buy a Neo Freerunner with a GTA04 board? 2012-10-09 05:54 kristianpaul has quit [Remote host closed the connection] 2012-10-09 05:56 LunaVorax: i think only here: http://www.handheld-linux.com/wiki.php?page=GTA04 2012-10-09 05:56 scientes has joined #qi-hardware 2012-10-09 06:00 kristianpaul has joined #qi-hardware 2012-10-09 06:02 guanucoluis has quit [Ping timeout: 246 seconds] 2012-10-09 06:19 LunaVorax has quit [Ping timeout: 246 seconds] 2012-10-09 06:29 kristoffer has joined #qi-hardware 2012-10-09 06:34 jluis|work has quit [Remote host closed the connection] 2012-10-09 06:35 kristoffer has quit [Quit: Leaving] 2012-10-09 06:36 jluis|work has joined #qi-hardware 2012-10-09 06:48 jekhor has joined #qi-hardware 2012-10-09 06:54 jluis|work has quit [Ping timeout: 245 seconds] 2012-10-09 07:11 jluis|work has joined #qi-hardware 2012-10-09 07:14 scientes has quit [Ping timeout: 264 seconds] 2012-10-09 07:34 kristianpaul has quit [Remote host closed the connection] 2012-10-09 07:39 kristianpaul has joined #qi-hardware 2012-10-09 07:39 kristianpaul has quit [Changing host] 2012-10-09 07:39 kristianpaul has joined #qi-hardware 2012-10-09 07:46 kristianpaul has quit [Ping timeout: 260 seconds] 2012-10-09 07:47 kristianpaul has joined #qi-hardware 2012-10-09 07:47 kristianpaul has quit [Changing host] 2012-10-09 07:47 kristianpaul has joined #qi-hardware 2012-10-09 08:44 jluis has quit [Ping timeout: 245 seconds] 2012-10-09 08:57 jluis has joined #qi-hardware 2012-10-09 09:07 jekhor has quit [Ping timeout: 244 seconds] 2012-10-09 09:40 scientes has joined #qi-hardware 2012-10-09 09:41 scientes has quit [Remote host closed the connection] 2012-10-09 10:28 wej has quit [Ping timeout: 272 seconds] 2012-10-09 10:32 wej has joined #qi-hardware 2012-10-09 10:40 viric, larsc: this line was not integrated into mainline: "select SYS_SUPPORTS_ZBOOT_UART16550" 2012-10-09 10:40 is that no longer needed or should I keep a commit containing that one line? 2012-10-09 10:41 http://www.treewalker.org/temp/vmlinuz-leftover.patch 2012-10-09 10:41 ah no idea 2012-10-09 10:45 jekhor has joined #qi-hardware 2012-10-09 10:49 good question, any idea why it didn't make it? 2012-10-09 10:50 no idea, I just noticed that when cherry-picking all 3.5 commits into 3.6 this one didn't end up empty 2012-10-09 10:54 the line is in the commit though, just at a different position 2012-10-09 10:54 ah, git failed to detect that then 2012-10-09 10:54 I guess Ralf reordered it 2012-10-09 10:56 anyway, thanks for looking at it 2012-10-09 11:24 jluis has quit [Ping timeout: 245 seconds] 2012-10-09 11:36 jluis has joined #qi-hardware 2012-10-09 11:54 larsc, kyak, xiangfu: I pushed the jz-3.6 branch to qi-kernel 2012-10-09 11:54 as always, tested on A320, builds for Nanonote but not tested there 2012-10-09 11:55 the board-qi_lb60.c might need an update for the pwm beeper 2012-10-09 11:56 see ad8f4827 for the update on board-a320.c for an example 2012-10-09 11:56 the pwm device is already added for the NN, but the new-style mapping is not 2012-10-09 12:34 the board has a pwm beeper? 2012-10-09 12:36 cladamw has joined #qi-hardware 2012-10-09 12:51 "static struct platform_device qi_lb60_pwm_beeper" says it does :) 2012-10-09 12:53 nice :) 2012-10-09 13:19 DocScrutinizer05: what do you think about Jolla? 2012-10-09 13:26 mth: thanks 2012-10-09 13:26 viric: yes. try to enter beep on the console 2012-10-09 13:30 but is that separate from the speaker? 2012-10-09 13:30 (I don't have the NN at hand) 2012-10-09 13:32 mth, thanks. I will test it on nanonote. 2012-10-09 13:35 viric: yes 2012-10-09 13:36 there is a piezo 2012-10-09 13:40 ahh 2012-10-09 13:41 interesting :) 2012-10-09 13:59 xiangfu has quit [Ping timeout: 246 seconds] 2012-10-09 14:08 Hoolxi has joined #qi-hardware 2012-10-09 14:18 xiangfu has joined #qi-hardware 2012-10-09 14:23 aisa has joined #qi-hardware 2012-10-09 14:27 whitequark: yawn 2012-10-09 14:42 freemor has joined #qi-hardware 2012-10-09 14:45 kristoffer has joined #qi-hardware 2012-10-09 14:49 xiangfu has quit [Quit: Leaving] 2012-10-09 15:00 pabs3: huh? 2012-10-09 15:02 Hoolxi has quit [Remote host closed the connection] 2012-10-09 15:05 paul_boddie has joined #qi-hardware 2012-10-09 15:06 Does anyone want to answer a stupid Linux kernel programming question? 2012-10-09 15:12 urandom__ has joined #qi-hardware 2012-10-09 15:14 mth: thanks! 2012-10-09 15:16 OK, well, I'll ask it anyway and see if anyone has any opinion. It's actually about that USB/IP kernel module I mentioned before. That module appears to obtain a socket from a process using its file descriptor table, and I've been trying to obtain a usable "struct file" instead using fget, in order to use it with a tty character device file. 2012-10-09 15:20 lekernel_ has joined #qi-hardware 2012-10-09 15:20 lekernel has quit [Ping timeout: 246 seconds] 2012-10-09 15:21 So, is it possible to obtain a usable "struct file" and use it to write to a character device within the kernel using, say, vfs_write? I do the set_fs magic but still get EFAULT. 2012-10-09 15:22 lekernel_ is now known as lekernel 2012-10-09 15:26 cladamw has quit [Quit: Ex-Chat] 2012-10-09 15:28 lekernel_ has joined #qi-hardware 2012-10-09 15:29 lekernel has quit [Ping timeout: 256 seconds] 2012-10-09 15:31 paul_boddie: yes ;) 2012-10-09 15:33 mth: jz-3.6 boots with Nanonote :) 2012-10-09 15:34 does the beeper still work? 2012-10-09 15:36 It's weird because I do fget, which should give me the file object that I need to actually write something, and I do the set_fs(KERNEL_DS) stuff to stop the address validation, but I start to wonder whether there are memory allocation issues that I haven't thought about, even though the socket-based stuff appears to use stack-allocated memory and synchronous I/O. 2012-10-09 15:36 the beeper doesn't work, but i didn't modify the board.c 2012-10-09 15:37 kyak: it should work without modifing it 2012-10-09 15:37 something must be wrong with config options.. proc is not mounted 2012-10-09 15:37 kyak: your init is probably not /etc/preinit 2012-10-09 15:37 And it's quite hard to find a discussion about this on the Internet because everyone is wailing "Don't open files in the kernel!" (I'm not) and pointing to a 2005 article about doing bad things in the kernel. 2012-10-09 15:38 I never understood the openwrt game on the 'init' path 2012-10-09 15:38 paul_boddie: what exactly are you trying to do? 2012-10-09 15:38 larsc: should i patch the kernel to use /etc/preinit or modify the cmdline in uboot? 2012-10-09 15:38 kyak: both is possible 2012-10-09 15:39 and should work 2012-10-09 15:39 if you have serial access to uboot it should be faster 2012-10-09 15:39 why are the openwrt people not using the usual init paths? 2012-10-09 15:39 good question 2012-10-09 15:39 I find it annoying :) 2012-10-09 15:40 lekernel_ is now known as lekernel 2012-10-09 15:42 Doesn't the stock NanoNote bootloader specify /etc/preinit? 2012-10-09 15:42 larsc: fixed the problem with init, still it doesn't beep 2012-10-09 15:43 paul_boddie: interestingly, not. I guess it relies on the kernel patch 2012-10-09 15:44 kyak: I couldn't remember where the setting got applied, but I found that the Debian userland obviously wouldn't work without some preinit "glue". 2012-10-09 15:51 larsc: after fixing init stuff, i don't need CONFIG_DEVTMPFS :) 2012-10-09 15:52 emeb has joined #qi-hardware 2012-10-09 15:52 kyak: what's the output of /sys/bus/platform/{devices,drivers}? 2012-10-09 15:54 Is CONFIG_PWM_BEEPER enabled in your config? 2012-10-09 15:54 http://dpaste.org/w4o0y/ 2012-10-09 15:54 grep CONFIG_PWM_BEEPER .config returns nothing 2012-10-09 15:54 there is the problem 2012-10-09 15:54 btw, ash doesn't like curly brackets :) 2012-10-09 15:55 I figured you'd be smart enough to decode what I meant ;) 2012-10-09 15:56 now i'm smarter than ash, good --) 2012-10-09 15:56 ok.. so where is CONFIG_PWM_BEEPER gone? 2012-10-09 15:56 try to edit drivers/input/misc/Kconfig and replace HAVE_PWM with PWM 2012-10-09 15:59 mth: did you put the PWM patches in jz-3.6? 2012-10-09 15:59 now i have CONFIG_INPUT_PWM_BEEPER=y. Is this what we are lookign for? 2012-10-09 15:59 yes 2012-10-09 16:00 input? 2012-10-09 16:00 yes 2012-10-09 16:01 yep, it beeps now 2012-10-09 16:01 input is really a misnomer these days. it's more about hid, so it supports both hid input and output 2012-10-09 16:02 but well you don't simply rename a subsystem 2012-10-09 16:02 kyak: good 2012-10-09 16:04 larsc: yes, I added the commits that didn't make it into 3.6 2012-10-09 16:06 ok 2012-10-09 16:06 the one modifying drivers/input/misc/Kconfig is missing ;) 2012-10-09 16:07 https://patchwork.kernel.org/patch/1544851/ 2012-10-09 16:18 larsc: I'm trying to get the usbip driver to talk over a serial device instead of a socket. 2012-10-09 16:19 so you want to do usb over serial? 2012-10-09 16:24 Well, if it works over TCP/IP, why not over something behaving like a serial line? 2012-10-09 16:24 larsc: we don't have "IS_ENABLED(CONFIG_PWM)" in include/linux/pwm.h, so perhaps another patch is missing too? 2012-10-09 16:24 I actually thought the modifications would be relatively trivial, but I think I must have underestimated the Linux kernel's capacity to infuriate again. 2012-10-09 16:29 paul_boddie: I'd expect it to work to. where do you get the fd from, do you pass it in from userspace? 2012-10-09 16:32 mth: https://patchwork.kernel.org/patch/1441841/ 2012-10-09 16:37 [commit] Tushar Behera: pwm: Fix compilation error when CONFIG_PWM is not defined (jz-3.6) http://qi-hw.com/p/qi-kernel/7220711 2012-10-09 16:37 [commit] Thierry Reding: pwm: Get rid of HAVE_PWM (jz-3.6) http://qi-hw.com/p/qi-kernel/90bf225 2012-10-09 16:38 So, the usbip driver does a scanf on some integers written to a sysfs file. It then does an fget to get a "struct file" and then tests for a socket before calling SOCKET_I on the inode of the file. 2012-10-09 16:38 http://lxr.free-electrons.com/source/drivers/staging/usbip/usbip_common.c?v=3.5#L399 2012-10-09 16:40 that's kind of crazy 2012-10-09 16:41 [commit] Maarten ter Huurne: MIPS: JZ4740: qi_lb60: Update defconfig (jz-3.6) http://qi-hw.com/p/qi-kernel/6395c34 2012-10-09 16:41 I can sort of understand the motivation for it, though. 2012-10-09 16:42 but sysfs files are stateless while a fd is stateful 2012-10-09 16:43 or does it lookup the socket the moment the sysfs file is written? 2012-10-09 16:44 http://lxr.free-electrons.com/source/drivers/staging/usbip/vhci_sysfs.c?v=3.5#L169 2012-10-09 16:45 On being written. The socket is opened in user space and the sysfs file/attribute is used to tell the kernel/module to take over. 2012-10-09 16:45 ok, i guess that could work, but still. and you kept the same behaviour and just skipped the socket part 2012-10-09 16:48 Yes, I use fget but don't do any "conversion" to a socket. I suspect that there's something in the socket handling that allows this module to use kernel-allocated memory because there's no set_fs stuff in that module at all. 2012-10-09 16:48 I'm open to better suggestions about how this could be done, but I understand how it probably came about. 2012-10-09 16:48 I don't think you need set_fs if you are already in kernel space 2012-10-09 16:49 -EFAULT would suggest that you don't have premission to read the memory area you want to write to the console 2012-10-09 16:49 There's precious little (coherent) documentation about this, at least on the Internet. 2012-10-09 16:50 can you paste your diff somewhere? 2012-10-09 16:50 Yes, in fact before getting EFAULT, I found that I was actually causing an "oops" or backtrace, but I think that was because I was using __user pointers directly with kernel addresses. 2012-10-09 16:50 I'll try and paste a diff later on. Currently, I'm not where my diff actually is. :-) 2012-10-09 16:51 __user is just a hint for the compiler 2012-10-09 16:52 I'm either missing something super-obvious or there's a more serious issue. 2012-10-09 16:54 kyak has quit [] 2012-10-09 16:57 What I found was that the vfs functions all seem to need __user pointers at some level, but in this case all work is being done in the kernel and there's no user space client. 2012-10-09 16:57 pcercuei has joined #qi-hardware 2012-10-09 16:58 Maybe we should port the HURD to the NanoNote. :-) 2012-10-09 16:58 kyak has joined #qi-hardware 2012-10-09 16:58 kyak has quit [Changing host] 2012-10-09 16:58 kyak has joined #qi-hardware 2012-10-09 17:03 whitequark: (jolla) they don't get the catch to hire me - what can I say ;-P 2012-10-09 17:03 prolly they'll buy some cheap chinese phone and rebrand it ;-) 2012-10-09 17:05 Don't reveal Nokia's eventual business model to us! ;-) 2012-10-09 17:12 heberth has joined #qi-hardware 2012-10-09 17:24 freakazoid0223 has joined #qi-hardware 2012-10-09 17:26 wolfspra1l has quit [Ping timeout: 256 seconds] 2012-10-09 17:27 wolfspraul has joined #qi-hardware 2012-10-09 17:55 * paul_boddie is back with his patches later on. 2012-10-09 17:55 paul_boddie has left #qi-hardware ["Kopete 0.11.3 : http://kopete.kde.org"] 2012-10-09 18:00 wej has quit [Ping timeout: 260 seconds] 2012-10-09 18:03 wej has joined #qi-hardware 2012-10-09 18:12 jluis has quit [Ping timeout: 245 seconds] 2012-10-09 18:22 heberth has quit [Quit: leaving] 2012-10-09 18:25 jluis has joined #qi-hardware 2012-10-09 19:03 lekernel_ has joined #qi-hardware 2012-10-09 19:03 lekernel has quit [Ping timeout: 246 seconds] 2012-10-09 19:05 freemor has left #qi-hardware [#qi-hardware] 2012-10-09 19:10 jekhor has quit [Ping timeout: 248 seconds] 2012-10-09 19:12 LunaVorax has joined #qi-hardware 2012-10-09 19:51 kristianpaul has quit [Ping timeout: 272 seconds] 2012-10-09 19:57 kristianpaul has joined #qi-hardware 2012-10-09 19:57 kristianpaul has quit [Changing host] 2012-10-09 19:57 kristianpaul has joined #qi-hardware 2012-10-09 20:49 kristianpaul has quit [Ping timeout: 260 seconds] 2012-10-09 20:50 kristianpaul has joined #qi-hardware 2012-10-09 20:58 kristoffer has quit [Quit: Leaving] 2012-10-09 21:03 jekhor has joined #qi-hardware 2012-10-09 21:25 paul_boddie has joined #qi-hardware 2012-10-09 21:26 larsc: Finally uploaded the diff: http://en.qi-hardware.com/wiki/File:Usbip-socket-to-file.diff.txt 2012-10-09 21:31 kristianpaul has quit [Ping timeout: 272 seconds] 2012-10-09 21:32 kristianpaul has joined #qi-hardware 2012-10-09 21:35 aisa has quit [Quit: leaving] 2012-10-09 21:44 heberth has joined #qi-hardware 2012-10-09 21:44 paul_boddie: looks pretty much ok to me 2012-10-09 21:45 There must be something really stupidly obvious I'm doing wrong, but I don't see it! 2012-10-09 21:45 Hoolxi has joined #qi-hardware 2012-10-09 21:46 Maybe I should open a normal file and pass a descriptor for that. I did try opening the device file in the kernel itself, but that didn't change anything. 2012-10-09 22:21 LunaVorax_ has joined #qi-hardware 2012-10-09 22:23 heberth has quit [Quit: leaving] 2012-10-09 22:24 LunaVorax has quit [Ping timeout: 256 seconds] 2012-10-09 22:25 Just tried with a normal file, and that didn't fault, so maybe something is happening in the driver behind the serial device. 2012-10-09 22:45 pcercuei has quit [Quit: go!] 2012-10-09 23:08 Actually, I think a normal file doesn't seem to exercise the writing code, but it does attempt a read, gets zero bytes, and then the driver pronounces it a "disconnect". 2012-10-09 23:12 * paul_boddie will look at this later. 2012-10-09 23:13 paul_boddie has left #qi-hardware ["Kopete 0.10 : http://kopete.kde.org"] 2012-10-09 23:30 guanucoluis has joined #qi-hardware 2012-10-09 23:41 whitequark: in reply to your question about Jolla. they do not seem interesting in any way 2012-10-09 23:51 jluis has quit [Ping timeout: 264 seconds]