**** BEGIN LOGGING AT Sat Jun 07 02:59:59 2014 Jun 07 09:36:10 karki_: Are mmaps working for you? Jun 07 11:41:07 Abhishek1 : never had a chance to check it out, BBB is not booting since yesterday. I have wasted one whole day trying to get this damn thing to boot. I'm *this* far away from burning that thing. Arhh... Jun 07 11:49:51 so even flashing a new SD image isn't helping you there? Jun 07 11:51:03 I DOESN'T boot, (not even the MLO maybe), no led flashes, no serial output. no nothing :/ Jun 07 12:43:22 :'( Jun 07 13:11:15 * karki_ gives up! Jun 07 13:13:35 karki_: get one day off Jun 07 13:13:52 i am working on free days also Jun 07 13:15:48 i will start 2morrow wokring back on flasher if you guys need it :) Jun 07 13:16:29 * karki_ doesn't want an off day, he needs a working BBB Jun 07 13:16:35 * karki_ :'( Jun 07 13:49:38 I tried reflashing anyway, still not helpful..... Jun 07 16:57:00 heh, now weirdly enough the two led's in the eth jsck remain lit up along with the power led. None of the 4 user led's even flinch Jun 07 16:57:08 *jack Jun 07 17:58:39 Abhishek1 : did you get the mmap working? Jun 07 17:58:59 not yet, currently implementing the API fo PRU syscalls Jun 07 17:59:04 *for Jun 07 17:59:21 and downcalls Jun 07 18:01:27 API for downcalls ? Jun 07 18:01:36 on the driver side? Jun 07 18:01:43 yep Jun 07 18:02:30 not many commands. Jun 07 18:05:12 I am able to receive a stream of interrupts from the PRUs (my kernel logs almost overflowed :P) Jun 07 18:07:04 have a look at this, my mmap is successful, I've given a valid physical address to map to, there is a virtual address generated, but finally if I check the resulting physical arrd that has been mapped, it shows it as zero! Jun 07 18:07:20 *addr Jun 07 18:07:48 weird thing is that everything is successful Jun 07 18:11:53 * Abhishek1 knows that his PRU0 code is going to be a cocktail of C and Assembly now Jun 07 19:15:09 how would you explicitly make mmap map a physical address range "X" to "Y" into userspace? Jun 07 19:16:30 karki: offset=X size=Y-X Jun 07 19:16:43 karki_* ^ Jun 07 19:18:16 alexanderhiam : in this fn ? "remap_pfn_range" Jun 07 19:19:36 oh, you're in kernel space? Jun 07 19:20:10 yep Jun 07 19:20:53 I have a pre allocated chunk of memory that I want to export to userspace. Jun 07 19:21:30 alexanderhiam : So I want to know how to create a mapping to the chunk I already have! Jun 07 19:23:27 ah ok, I've never done that... but looking at the remap_pfn_range docs it looks like the 2nd arg is the start address and the 4th arg is the size Jun 07 19:24:02 oh wait that's not right Jun 07 19:25:41 the 3rd argument is the page frame number to start the map at Jun 07 19:27:49 I did that and ended up getting weird results. The tutorials are messed up. Some sources contradict each other. I'm trying everything one by one. Jun 07 19:28:01 It's bcome more of a game of chance now ;) Jun 07 19:31:33 * alexanderhiam hasn't worked with this stuff enough to be of much help here Jun 07 19:39:07 mranostay: is the syntax of CLPRU inline assembly the same as that of GCC? Jun 07 20:05:01 Abhishek1: should be Jun 07 20:06:35 mranostay: I read up some more TI Assembler docs, it seems that it inserts the asm string verbatim, and it seems that there isn't a mechanism of giving the underlying registers of function arguments. Jun 07 20:08:41 so, writing the appropriate function as a separate .asm file now. Jun 07 20:11:39 mranostay: btw, how many miles biked this week? Jun 07 21:12:35 Abhishek1: only 60 Jun 07 21:12:49 Abhishek1: naked bike ride tonight so probably add another 20 Jun 07 21:13:56 isn't it cold out there? Jun 07 21:17:25 Abhishek1: 24C today Jun 07 21:18:03 a few thousand bike riders will probably warm up a small area Jun 07 21:18:53 I see Jun 07 21:19:01 Abhishek1: ironically public nudity is legal in Oregon but only as a protest Jun 07 21:30:54 * vvu will run out of internet soon...so bad to live somewhere with time-limited internet Jun 07 21:36:14 <_av500_> vvu: no cheap 3g? Jun 07 21:36:27 <_av500_> or aircrack the neighbours wifi Jun 07 22:05:49 g'night channel Jun 07 23:19:52 hehe **** ENDING LOGGING AT Sun Jun 08 02:59:59 2014