2015-04-20T00:00:05 [trac] GSoC/2015 edited by punitvara (empty comment) http://devel.rtems.org/wiki/GSoC/2015 2015-04-20T00:07:45 *** edsiper_ is now known as edsiper 2015-04-20T00:22:01 *** javamonn has joined #rtems 2015-04-20T00:25:37 *** javamonn has quit IRC (Client Quit) 2015-04-20T00:29:44 *** monstr has joined #rtems 2015-04-20T00:35:35 *** zoso has joined #rtems 2015-04-20T01:08:26 *** ketul has joined #rtems 2015-04-20T01:24:23 [git] 26c142e by Sebastian Huber: [score: Refactor SMP cache manager support] http://devel.rtems.org/changeset/26c142e/rtems 2015-04-20T01:24:23 [git] 1981b46 by Sebastian Huber: [score: Add _ISR_lock_ISR_disable/enable()] http://devel.rtems.org/changeset/1981b46/rtems 2015-04-20T01:47:52 *** gigetoo has quit IRC (Ping timeout: 256 seconds) 2015-04-20T02:04:37 *** kiwichris has quit IRC () 2015-04-20T02:32:22 *** andrei_ has joined #rtems 2015-04-20T03:06:24 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-20T03:11:44 *** ketul has joined #rtems 2015-04-20T03:40:05 beng-nl: hi 2015-04-20T03:40:48 beng-nl: did you look at work done ? 2015-04-20T03:45:05 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-20T03:45:30 *** ketul has joined #rtems 2015-04-20T03:52:42 *** Hesham has joined #rtems 2015-04-20T04:21:26 *** zoso has quit IRC (Ping timeout: 256 seconds) 2015-04-20T06:24:25 ketul: no, is it on your github? 2015-04-20T06:24:55 should I mail it to you? 2015-04-20T06:24:59 github is better 2015-04-20T06:25:03 ya also on github 2015-04-20T06:25:30 beng-nl:and also mailed on devel mailing list 2015-04-20T06:26:07 beng-nl:you can find it here https://github.com/ketul93/RTEMS-on-BBB/tree/master/GPIO-Test 2015-04-20T06:27:12 i see it now 2015-04-20T06:27:28 i see the patch, good work! 2015-04-20T06:27:57 ya thanks. any comments from your side would be great 2015-04-20T06:28:51 it's a bit too 'narrow' (specific) to merge mainline 2015-04-20T06:28:53 if that is what you want 2015-04-20T06:49:07 *** andrei_ has quit IRC (Ping timeout: 246 seconds) 2015-04-20T06:51:02 beng-nl: that work I done is specifically for LEDs. But I can do it generic. 2015-04-20T06:51:16 I think now its easy to that. 2015-04-20T06:52:35 * to do that 2015-04-20T06:55:00 beng-nl: and have you seen that videos? 2015-04-20T07:09:49 *** Hesham has quit IRC (Quit: Leaving.) 2015-04-20T07:22:45 *** andrei_ has joined #rtems 2015-04-20T07:49:27 yes i did! 2015-04-20T07:52:50 *** Hesham has joined #rtems 2015-04-20T08:03:03 beng-nl: now what kind of changes you suggest to do.? 2015-04-20T08:04:07 what do you want to achieve? 2015-04-20T08:04:09 mainline it? 2015-04-20T08:05:00 ya as proposed in GSoC 2015-04-20T08:06:06 beng-nl: 2015-04-20T08:11:15 ketul: ok. so for that you'd have to implement it to a more generic rtems gpio api. if it exists. i was just looking.. 2015-04-20T08:11:19 have you? 2015-04-20T08:11:46 functionality with an interface that is specific to one bsp is much less valuable than a general one 2015-04-20T08:12:40 admittedly i haven't found a general gpio api 2015-04-20T08:15:20 beng-nl: general api means you want to have it for all boards that supports rtems? Actually I haven't got what you mean to say. 2015-04-20T08:15:59 i mean yeah, is there a way to control gpio's (an api) that is the same for all bsp's, so you could write the same application for multiple bsp's 2015-04-20T08:16:09 and not change the gpio calls 2015-04-20T08:17:31 Actually I can . But as I proposed for bbb . I am concentrating mainly on bbb. 2015-04-20T08:17:37 i understand 2015-04-20T08:17:53 i'm just suggesting that the interface in bbb should be like everywhere else. but it seems that doesn't exist. 2015-04-20T08:19:52 Technically saying for every board register address changes. So for that I need to have all register mapping files available with me. And For testing it I think I would have all the boards. Am I right? 2015-04-20T08:20:06 noo! 2015-04-20T08:20:11 that would be a lot to ask :) 2015-04-20T08:20:26 i just mean, for your bbb implementation, make the function calls the same as a general api, without touching any other bsp 2015-04-20T08:21:17 ketul: example: printf() works everywhere, there is no beagle_printf() 2015-04-20T08:21:20 beng-nl: Dr Joel said Andrei has done some work on GPIO API from last year. 2015-04-20T08:21:39 beng-nl: got 2015-04-20T08:21:39 i found it after googling but i found nothing in mainline 2015-04-20T08:21:40 While he was working on on RPi 2015-04-20T08:21:54 Maybe this can be a start point 2015-04-20T08:22:08 Hesham: ya I took reference from that 2015-04-20T08:22:22 We were discussing about general purpose GPIO API few days ago. 2015-04-20T08:22:45 *** gwty has joined #rtems 2015-04-20T08:23:23 ketul: So can you describe what has been done there? 2015-04-20T08:23:35 beng-nl: but how can I cat general purpose api? like printf() we know. But I want to ask for general purpose api what should be reference point? 2015-04-20T08:24:02 ketul: yeah, good point, i was assuming there was something. but maybe there isn't. 2015-04-20T08:26:21 Hesham: let me fetch the link what he done 2015-04-20T08:27:03 Hesham: https://asuolgsoc2014.wordpress.com/ 2015-04-20T08:28:01 beng-nl: andre's patch https://www.google-melange.com/gsoc/project/details/google/gsoc2014/andremarques/5668600916475904 2015-04-20T08:29:14 ketul: Thanks 2015-04-20T08:31:13 Hesham: np 2015-04-20T08:35:50 beng-nl: lets just consider a case. printf() is same for all the hardware architectures but its compiler specifies the proper address for the stdout. Am I right? 2015-04-20T08:36:13 *** andrei_ has quit IRC (Ping timeout: 246 seconds) 2015-04-20T08:38:33 i wouldn't but it like that, but.. yeah printf() is the same for all architectures, but the i/o (serial write) is bsp-specific 2015-04-20T08:45:33 beng-nl: I have a idea like to do in this fashion but not exactly. http://www.armhf.com/using-beaglebone-black-gpios/ 2015-04-20T08:46:30 beng-nl: i think that is kind of general purpose. Is it? 2015-04-20T08:52:10 i meant the API 2015-04-20T08:52:15 eh, never mind. i think it doesn't exist. 2015-04-20T08:55:34 ok,i got it. I think i should implement a function that can be called by any other program to access the resources 2015-04-20T08:56:23 *** gedare has joined #rtems 2015-04-20T08:56:23 *** ChanServ sets mode: +o gedare 2015-04-20T08:58:47 beng-nl: so what do you suggest to do next ? 2015-04-20T09:01:24 ketul: i'll make a post 2015-04-20T09:04:16 good morning 2015-04-20T09:04:20 hi gedare 2015-04-20T09:04:57 reading back your convo quick in the logger 2015-04-20T09:05:07 Morning gedare 2015-04-20T09:05:52 regarding the GPIO API, we never settled on a satisfactory one last yea 2015-04-20T09:05:52 r 2015-04-20T09:05:57 ok 2015-04-20T09:06:01 So we moved all the code into rpi bsp 2015-04-20T09:06:19 it would be really quite good to continue evolving both rpi and bb in the same direction 2015-04-20T09:06:25 and settle on a common api so we can generalize it 2015-04-20T09:07:21 in terms of the next steps from where you are ketul, you need to review all the style documentations so your code "looks right", and I want you to identify any 'upstream sources' where you copied code from.. whether that is a repo, or "just some code you found online" 2015-04-20T09:07:27 so we'll 'copy' the rpi api first? 2015-04-20T09:07:33 beng-nl: yes that is correct 2015-04-20T09:07:37 ok 2015-04-20T09:07:46 and this should be done consulting with andre marques 2015-04-20T09:08:04 he knows more clearly what is/isn't right about it and what reviewers said it needed 2015-04-20T09:08:27 some aspects that were missing as i recall are interrupt handling and some "set" management for multiple io pins 2015-04-20T09:09:18 ketul: now you should work on improving the code you have written, and write a blog post about your experience, and wait to see if you get accepted to GSoC/RTEMS or not. 2015-04-20T09:09:33 this is the "twiddling thumbs" phase of GSOC. 2015-04-20T09:09:44 :) 2015-04-20T09:11:38 gedare: ya sure. I really learned to much and always happy to do that. 2015-04-20T09:12:18 ok ketul just make sure you pay attention to the small details, they're often the most important. 2015-04-20T09:13:01 gedare: Is it OK to fetch Adapteva/Epiphany GNU tools from within RSB? 2015-04-20T09:13:31 Their upstream code is kinda outdated 2015-04-20T09:14:25 And they use their own Github repos as a base for their SDK tools, not upstream repos. 2015-04-20T09:15:59 gedare: sure. But can you tell me what kind of small aspects.. 2015-04-20T09:16:07 Hesham: regarding limits.h, that sounds suspiciously like a problem in newlib's configure/make files 2015-04-20T09:17:05 gedare: Yeah that's the only thing that stumble me from submitting Epiphany patches now. 2015-04-20T09:17:06 Hesham: it's better to encourage them to submit upstream ;) are their github repos sync'ed to release numbers of the GNU tools? 2015-04-20T09:17:22 ketul: why is the clock driver disabled in your test program? 2015-04-20T09:17:55 beng-nl: it is enabled I removed that comment in the gist. 2015-04-20T09:18:03 ko 2015-04-20T09:18:04 ok 2015-04-20T09:18:04 gedare: I've already pushed RTEMS support to their repos, except newlib 2015-04-20T09:18:06 ketul: I find that newer programmers tend to skim too much and miss important details, so just make sure you pay attention. 2015-04-20T09:18:22 you gotta learn to walk before you run 2015-04-20T09:18:29 and you gotta learn to crawl before you walk 2015-04-20T09:18:33 gedare: GCC 4.9, newlib 1.2.0, binutils-2.23 2015-04-20T09:18:48 Hesham: why are they not submitting up to FSF? 2015-04-20T09:18:53 1.2.0??? 2015-04-20T09:19:16 gedare: 1.20 2015-04-20T09:19:36 Never asked before. 2015-04-20T09:20:27 The RTEMS code is almost ready and it runs fine on their simulator. 2015-04-20T09:20:51 And of course the hardware. 2015-04-20T09:21:47 ketul: i posted some comments to the list 2015-04-20T09:22:05 gedare, Hesham: i hope you agree with the spirit & specifics 2015-04-20T09:22:14 gedare: Ah one issue, I have to force heap allocation to 8 bytes- alignment here -> _Heap_Allocate_aligned_with_boundary( heap, size, 8, 0 ); 2015-04-20T09:22:54 Hesham: please ask them to push upstream it is better for everyone 2015-04-20T09:23:30 gedare: OK, once I get newlib issue sorted out. 2015-04-20T09:23:33 is the minimum heap alignment 8? 2015-04-20T09:24:02 Originally the RTEMS call was _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 2015-04-20T09:24:10 I changed it to > _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 2015-04-20T09:24:11 hrm 2015-04-20T09:24:16 where? 2015-04-20T09:24:31 libcsupport/src/cachecoherentalloc.c ? 2015-04-20T09:24:38 heapimpl.h Line 137 2015-04-20T09:25:08 I have to do this due to some double alignment issue that Epiphany restricts. 2015-04-20T09:25:12 oh 2015-04-20T09:25:22 beng-nl: thanks 2015-04-20T09:25:43 gedare: I submitted a patch to their GCC repo earlier to fix this issue, but they said it will break the ABI 2015-04-20T09:25:46 if ( alignment == 0 ) { 2015-04-20T09:25:46 alignment = page_size; 2015-04-20T09:25:46 } 2015-04-20T09:25:51 uintptr_t const page_size = heap->page_size; 2015-04-20T09:26:03 back track why that is not good enough 2015-04-20T09:26:47 if ( page_size == 0 ) { 2015-04-20T09:26:47 page_size = CPU_ALIGNMENT; 2015-04-20T09:26:49 that's the problem 2015-04-20T09:26:56 *** geheimnis` has quit IRC (Ping timeout: 240 seconds) 2015-04-20T09:26:57 is CPU_ALIGNMENT < CPU_HEAP_ALIGNMENT? 2015-04-20T09:27:01 in your cpu.h? 2015-04-20T09:27:27 Nope 2015-04-20T09:27:28 Hesham: uintptr_t _Heap_Initialize() @ score/src/heap.c:204 2015-04-20T09:27:35 They are the same, 8 bytes 2015-04-20T09:27:42 then it should be getting 8 2015-04-20T09:27:54 when alignment is passed as 0 2015-04-20T09:28:00 it should be getting page_size out of Heap_Control 2015-04-20T09:28:04 so check that variable 2015-04-20T09:28:06 and see why isn't it 8 2015-04-20T09:28:19 *** geheimnis` has joined #rtems 2015-04-20T09:28:26 OK, let me debug again and see what page_size value is 2015-04-20T09:31:33 beng-nl: thanks perfect review comments summed up everything nicely. 2015-04-20T09:32:46 *** gwty has quit IRC (Ping timeout: 264 seconds) 2015-04-20T09:35:25 Hesham: since the port is somewhat immature and tools are not upstream, i'd hold off on submitting it until after we release. i expect 4.11 to come out this week or next 2015-04-20T09:35:29 or at least to get "cut" 2015-04-20T09:35:45 gedare: great! 2015-04-20T09:36:04 beng-nl: yeah, way past due, and i really want it done before gsoc starts 2015-04-20T09:36:22 yeah makes sense 2015-04-20T09:36:25 there hasn't been a release since just after i started working on rtems 2015-04-20T09:36:46 correlation = causation, right!? 2015-04-20T09:37:02 *** DrJoel has joined #rtems 2015-04-20T09:37:02 *** DrJoel has joined #rtems 2015-04-20T09:37:02 *** ChanServ sets mode: +o DrJoel 2015-04-20T09:37:03 *** Hesham has quit IRC (Ping timeout: 245 seconds) 2015-04-20T09:37:04 https://xkcd.com/552/ ;-) 2015-04-20T09:37:19 speaking of which, hi DrJoel, got your 'git release' gloves ready? 2015-04-20T09:37:28 except seb wants to merge some patch he sent this morning 2015-04-20T09:38:02 I have a small set of patches required to even build with C++ and networking enabled. Apparently no one else even builds their own BSPs. 2015-04-20T09:38:20 But yes. It is time to start the branch and release process. 2015-04-20T09:38:45 Yesterday I started a build/test run of ~20 BSPs on simulators. I want to see those finish first. 2015-04-20T09:40:03 gedare: Does all look OK to you for gsoc? 2015-04-20T09:40:29 DrJoel: yes until dedup runs we're good 2015-04-20T09:40:44 I just looked at the list and it appears to match my expectations as well. 2015-04-20T09:40:53 Right number of slots, etc. 2015-04-20T09:41:58 great. 2015-04-20T09:42:13 yes i'm satisfied too 2015-04-20T09:44:44 -rw-r--r-- 1 joel rtems 2557406136 Apr 20 09:44 arm-xilinx_zynq_a9_qemu.log 2015-04-20T09:44:51 That doesn't look like it is doing well. :) 2015-04-20T09:45:27 uhhh 2015-04-20T09:45:38 :-) 2015-04-20T09:45:51 apparently qemu in that configuration doesn't like being nohup'ed without a terminal. :( 2015-04-20T09:46:09 I guess I will have to run them one at a time in the foreground to get through them. 2015-04-20T09:48:04 might be another option 2015-04-20T09:48:21 but i'm not a qemu guru 2015-04-20T09:48:39 there might be but I want test results quickly. Long term, we have to figure this one out or we can't do automated testing on check in 2015-04-20T09:50:40 *** monstr has quit IRC (Ping timeout: 256 seconds) 2015-04-20T09:54:13 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-20T09:58:57 DrJoel: ask sebastian 2015-04-20T09:59:34 DrJoel: we also will need a strategy for real board testing, the zynq is a good candidate 2015-04-20T09:59:36 I will run some tests and see what all simulators have issues 2015-04-20T09:59:40 sure. 2015-04-20T09:59:54 Yeah.. kiwichris needs to answer that 2015-04-20T10:06:08 *** Hesham has joined #rtems 2015-04-20T10:06:46 gedare: I don't know if this is a bug or not 2015-04-20T10:06:48 if ( alignment == 0 ) { 2015-04-20T10:06:48 alignment = page_size; 2015-04-20T10:06:48 } 2015-04-20T10:06:48 } 2015-04-20T10:07:14 This is not invoked unless boundary != 0 2015-04-20T10:07:37 So it's not aligned at all. 2015-04-20T10:09:36 where is this? 2015-04-20T10:09:51 _Heap_Allocate_aligned_with_boundary 2015-04-20T10:10:23 score/src/heapallocate.c:184 2015-04-20T10:10:38 i see Hesham so when boundary is 0... 2015-04-20T10:10:50 alloc_begin = _Heap_Alloc_area_of_block( block ); 2015-04-20T10:10:52 The code looks like it should be outside that if 2015-04-20T10:10:53 you get that result 2015-04-20T10:11:22 Hesham: you should post to devel to solicit sebh's input on this, it's his code 2015-04-20T10:12:47 but i agree, the minimum alignment on this should be page_size 2015-04-20T10:12:56 really, it should check if alignment < page_size 2015-04-20T10:13:05 i think? 2015-04-20T10:14:15 anyway the code definitely smells funny. 2015-04-20T10:16:11 gedare: Weird, when I moved it outside boundary block, the program doesn't work at all, seems like it get stuck at early init stages. 2015-04-20T10:16:47 Could be honoring the alignment request now and using a lot more memory. 2015-04-20T10:19:22 * Hesham Connecting to the Parallella board, coming back later. 2015-04-20T10:20:05 Hesham: moving it out makes dead code later, where alloc_begin is made 2015-04-20T10:20:16 my guess is there is some implicit assumption about this alignment=0, boundary=0 case 2015-04-20T10:21:38 Hesham: instead, you may want to add code in _Heap_Check_block to set alignment to page_size in case it is 0 (or less) 2015-04-20T10:22:18 well, actually 2015-04-20T10:23:07 Hesham: at score/src/heapallocate.c:233 try setting alignment = min(page_size, alignment) 2015-04-20T10:23:26 no, that won't work either... 2015-04-20T10:24:45 *** Hesham has quit IRC (Ping timeout: 276 seconds) 2015-04-20T10:27:58 gedare is there a wiki page about our licensing requirements/philosophy? 2015-04-20T10:28:03 hesham: it seems that boundary = 0, alignment = 0, is a special case for getting the first address in a block. the problem seems to be that (block + HEAP_BLOCK_HEADER_SIZE) is not aligned right. 2015-04-20T10:28:08 except hesham isn't here. 2015-04-20T10:28:37 DrJoel: i think there is a link to my blog post only, somewhere in coding conventions maybe 2015-04-20T10:28:58 I was wondering if it should be a topic in the developer part of the wiki 2015-04-20T10:29:01 it could be added here: https://devel.rtems.org/wiki/TBR/Website/License 2015-04-20T10:29:12 except for the TBR part 2015-04-20T10:29:17 DrJoel: for that, it is best to be at https://devel.rtems.org/wiki/Developer/Coding/Conventions#Licenses 2015-04-20T10:29:36 that's where it links to my blog post #rant 2015-04-20T10:30:21 Those bullets pretty much sum it up. 2015-04-20T10:30:39 Is the focus on "these are acceptable" ignoring that proprietary licenses are not acceptable? 2015-04-20T10:30:59 hm 2015-04-20T10:31:06 it's a lot easier to be inclusionarfy 2015-04-20T10:31:30 it might be good to put in a list of known-good licenses too i suppose 2015-04-20T10:31:36 and known-bad 2015-04-20T10:31:43 on a wiki page 2015-04-20T10:31:57 oh hey, is the doc/started good to go? 2015-04-20T10:32:01 This covers it pretty well. Just thinking ahead. 2015-04-20T10:32:15 I need to double check it. It is now on the list. 2015-04-20T10:38:00 *** Hesham has joined #rtems 2015-04-20T10:39:42 Did you see this gedare? http://pdos.csail.mit.edu/scigen/scipher.html 2015-04-20T10:41:21 *** ketul has joined #rtems 2015-04-20T10:45:51 are> hesham: it seems that boundary = 0, alignment = 0, is a special case for getting the first address in a block. the problem seems to be that (block + HEAP_BLOCK_HEADER_SIZE) is not aligned right. 2015-04-20T10:46:41 DrJoel: yes 2015-04-20T10:48:13 gedare: I found out that the problem happens only when starting allocating from RTEMS_Malloc_Area 2015-04-20T10:48:42 yeah it seems like it is a bit of code for a special case 2015-04-20T10:48:47 There's no problem with when allocating from _Workspace_Area 2015-04-20T10:48:57 are they unified? 2015-04-20T10:49:05 So #define CONFIGURE_UNIFIED_WORK_AREAS 2015-04-20T10:49:17 Will make it work 2015-04-20T10:49:30 I can't find where RTEMS_Malloc_Area should be defined. 2015-04-20T10:49:33 probably has something do with the alignment of the initial heap pointer then 2015-04-20T10:49:34 Or initialized 2015-04-20T10:49:54 *** gigetoo has joined #rtems 2015-04-20T10:50:25 I suspect so, but where it initial heap pointer get initialized? 2015-04-20T10:51:32 For RTEMS_Malloc_Area if that's different than _Work_Area 2015-04-20T10:52:30 bsp_work_area_initialize? 2015-04-20T10:52:59 That's for workspace I think 2015-04-20T10:53:42 bsp_work_area_initialize_default @ libbsp/shared/include/bootcard.h 2015-04-20T10:53:56 RTEMS_Malloc_Initialize(&area, 1, NULL); 2015-04-20T10:54:16 hmm 2015-04-20T10:55:04 ok i'm not sure then 2015-04-20T10:55:08 [trac] #2331/defect (v:4.10) created by dcb (c/src/lib/libbsp/sparc/shared/1553/gr1553b.c: 2 * memory leak ?) http://devel.rtems.org/ticket/2331 2015-04-20T11:04:11 [trac] #2331/defect (assigned) updated by gedare (empty comment) http://devel.rtems.org/ticket/2331 2015-04-20T11:04:57 [trac] #2331/defect (assigned) updated by joel.sherrill (I believe case 1 is a leak on the error case. Case 2 looks OK. The two malloc'ed ...) http://devel.rtems.org/ticket/2331 2015-04-20T11:05:10 Don't know, the previous problem was that when creating a new task from ticker/init.c it was using _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 2015-04-20T11:05:19 And the allocated block was already used 2015-04-20T11:05:37 This was solved when adding _Heap_Allocate_aligned_with_boundary( heap, size, 8, 0 ); alignment 2015-04-20T11:06:33 So the problem occurs now when only using RTEMS_Malloc_Area 2015-04-20T11:06:55 And that's an alignment problem also... 2015-04-20T11:24:42 *** Hesham has quit IRC (Ping timeout: 265 seconds) 2015-04-20T11:54:23 DrJoel: great and thanks. I am looking to your ppt. 2015-04-20T11:54:26 *** Hesham has joined #rtems 2015-04-20T12:06:25 *** Hesham has quit IRC (Ping timeout: 264 seconds) 2015-04-20T12:10:05 *** dr__house|away is now known as dr__house 2015-04-20T12:16:34 ketul: glad to pass it along. The commands are pretty handy. The API to the multi IO was a prototype. Figuring out how to tie those commands generically to a board will give some neat commands and probably help flesh out the APIs 2015-04-20T12:17:22 *** Hesham has joined #rtems 2015-04-20T12:26:13 DrJoel: Thanks for that. I will surely look into it and will have nice output. Actually gedare pointed put about multiio. But I didn't found any documents related to that. But this ppt will help me a lot. 2015-04-20T12:26:25 *out 2015-04-20T12:32:08 I thought I wrote real docs on it for the shell manual. Maybe I just did them in Doxygen. 2015-04-20T12:33:27 ok 2015-04-20T12:54:25 *** andrei_ has joined #rtems 2015-04-20T12:55:27 hello! 2015-04-20T12:57:59 *** gedare has quit IRC (Ping timeout: 264 seconds) 2015-04-20T12:59:17 hey andrei_ 2015-04-20T13:02:59 sorry if it's not appropriate, but are the slots(students) already decided? 2015-04-20T13:03:02 except deduplication 2015-04-20T13:07:55 I think we can say mostly yes to that. There is still time to impress us or commit a crime and disqualify yourself. :) 2015-04-20T13:12:39 *** gwty has joined #rtems 2015-04-20T13:13:25 out of curiosity, is the number of students higher than before 2015-04-20T13:13:34 as the number of orgs seems to be much smaller? 2015-04-20T13:13:45 Sorry, the number of given slots 2015-04-20T13:15:25 We are on the high side of what we have had in the past. I haven't heard much about other organizations. 2015-04-20T13:17:03 awesome 2015-04-20T13:18:17 if you got time maybe you can have a look at the condvar_wait() pseudocode I wrote here https://docs.google.com/document/d/16EBmWcQw9YccUycofJIlwF98p21PQPq-EJXupes-K80/edit 2015-04-20T13:18:31 Our main concern has been figuring out who to accept and how to best mentor them. :) 2015-04-20T13:19:04 I will look at it. Give me a few minutes. Generating PDFs for an RTEMS class next week 2015-04-20T13:19:12 sure thing 2015-04-20T13:19:43 Did you ever look at the multio git repo? That was my prototype a few years ago for a discrete and analog IO API plus some shell commands. 2015-04-20T13:19:59 I would love to see the shell commands updated and merged. 2015-04-20T13:20:30 hello DrJoel 2015-04-20T13:20:44 DrJoel, do you happen to have the link? 2015-04-20T13:20:51 I didn't look over it, but I can do so now 2015-04-20T13:21:07 https://git.rtems.org/multiio/tree/ 2015-04-20T13:21:45 thanks, let me have a look 2015-04-20T13:22:23 The important parts are the commands and include directory. pcmmio and rtd6425 are specific IO boards for embedded PCs. I still have the hardware but who cares at this point. 2015-04-20T13:32:31 did you get my reply in the proposal drjoel? 2015-04-20T13:35:18 DrJoel: you were talking about slides 54 ,..,.. where given PCMMIO Shell Commands .? 2015-04-20T13:36:46 yes.. the commands start at 54. 2015-04-20T13:36:54 gwty// fuzzy headed.. probably 2015-04-20T13:39:19 DrJoel: pcmmio stands for? 2015-04-20T13:40:17 ketul: pcm-mio is a board, but I m not sure it's coming from that 2015-04-20T13:40:31 http://www.winsystems.com/datasheets/PCM-MIO-G-DS.pdf 2015-04-20T13:40:43 It is coming from that. Poor name. PC multi IO. 2015-04-20T13:43:16 ok got. DrJoel so your suggestion is to use same function names while designing gpio driver for beagle. Am I right? Is it like beagle_din or something? 2015-04-20T13:43:51 *** gedare has joined #rtems 2015-04-20T13:43:52 *** ChanServ sets mode: +o gedare 2015-04-20T13:52:16 *** linuxkernelhacke has joined #rtems 2015-04-20T13:56:17 *** ragunath has joined #rtems 2015-04-20T14:08:45 Finally I figured out what's wrong with limits.h. 2015-04-20T14:08:59 t-rtems wasn't included in gcc tmake_files 2015-04-20T14:09:18 Good catch. 2015-04-20T14:09:39 DrJoel: I got some custom RSB for building Epiphany (from Adapteva repos) 2015-04-20T14:09:52 Should I submit it? 2015-04-20T14:10:12 Please post it. Are all the patches upstream? 2015-04-20T14:10:13 custom RSB patch* 2015-04-20T14:10:41 I will have to submit the issue of t-rtems 2015-04-20T14:10:53 to Adapteva gcc repo 2015-04-20T14:11:23 Currently I am fetching my GCC github fork with this fix 2015-04-20T14:11:32 - newlib from upstream 2015-04-20T14:11:50 - binutils works fine from their Adapteva repo 2015-04-20T14:16:59 By upstream do you mean Adapteva/upstream or the GNU tools upstream repos? 2015-04-20T14:17:33 I guess at this point either. Do they have plans to submit to FSF? 2015-04-20T14:18:37 ketul, andrei_: The key to a multi-IO (e.g. discrete IO, ADC, and DAC) API set from the user application perspective is to not change code when you change hardware platforms. 2015-04-20T14:18:48 So having the name of a board in the API is bad. 2015-04-20T14:19:01 DrJoel: Not sure, gedare asked that I push them to push the latest work upstream 2015-04-20T14:19:30 Even if they are lazy to push upstream, can't we work with their repos? 2015-04-20T14:19:33 https://git.rtems.org/multiio/tree/include/multiio.h shows how I was trying to make the user side of the API target independent 2015-04-20T14:19:46 We can work with their repos. Long term, we push. :) 2015-04-20T14:20:29 DrJoel: yep 2015-04-20T14:21:43 DrJoel: Support for building RTEMS from their repos has been already merged, so it's now their job to push it upstream 2015-04-20T14:21:57 along with their latest changes. 2015-04-20T14:23:33 Yep 2015-04-20T14:24:42 DrJoel: so instead of using gpio_set() I should use rtems_set_dout(). So it can be generic for the user (thats what api means). So like its all about function name. so we can have generic api. Am I right? 2015-04-20T14:26:25 im having a bit of trouble installing waf 2015-04-20T14:26:29 there's no upstream package on ubuntu 2015-04-20T14:26:42 and I haven't yet figured how to proprely get the command to work 2015-04-20T14:26:46 There is a user api (names to be community decided) which is used by any application. How that attaches under the hood to the BSP is something to discuss with andrei_ 2015-04-20T14:27:14 Install it from their upstream code. waf shouldn't really be packaged. It is tied to a program being built. 2015-04-20T14:30:09 *** hermann_19829 has joined #rtems 2015-04-20T14:33:28 DrJoel : what you mentioned above is condvar classic api? 2015-04-20T14:34:51 *** ankur has joined #rtems 2015-04-20T14:38:08 *** ketul has quit IRC (Excess Flood) 2015-04-20T14:38:58 *** ketul has joined #rtems 2015-04-20T14:39:58 andrei_: "install' waf by copying the waf file into your $PATH 2015-04-20T14:40:16 andrei_: no, but it does apply there. DrJoel is confusing you with Andre ;) 2015-04-20T14:40:41 ah 2015-04-20T14:48:21 DrJoel: I have seen andre's patch & work and also done communication for getting my prob solved. 2015-04-20T14:57:33 *** ragunath has left #rtems 2015-04-20T15:08:57 DrJoel: Thanks for the feedback on proposal, got my hands full now 2015-04-20T15:08:58 also 2015-04-20T15:09:11 there is the waf install line 2015-04-20T15:09:12 --rtems-tools=$HOME/Development/rtems/4.11 \ 2015-04-20T15:09:24 I cloned rtems-tools 2015-04-20T15:09:54 andrei_ Posted some comments. 2015-04-20T15:10:02 DrJoel: yeah, I noted, thanks a lot 2015-04-20T15:10:05 + install /home/andrei/gsoc/rtems-source-builder/rtems/development/rtems/4.11/share 2015-04-20T15:10:28 beng-nl.. Am I wrong or are you and andrei_ at the same university? I am not up to speed today so may have screwed that up. 2015-04-20T15:10:28 im at a bit of a loss of what do I have to give 2015-04-20T15:10:30 to waf configure 2015-04-20T15:11:27 https://git.rtems.org/multiio/tree/README.waf has some instructions,. Look at 5 and 6. 2015-04-20T15:12:07 Which git repo are you looking at waf on? 2015-04-20T15:12:10 yeah, I m following that 2015-04-20T15:12:16 the waf worked ok on rtems-tools 2015-04-20T15:12:24 so im looking at multiio 2015-04-20T15:13:28 RTEMS tools path does not contain a 'bin' directory: /home/andrei/gsoc/rtems-source-builder/rtems/build 2015-04-20T15:13:31 andrei_: rtems-tools= means where did you install the rtems gcc/binutils? 2015-04-20T15:13:48 it is the prefix you used for installing tools from rsb 2015-04-20T15:14:35 *** ankur has left #rtems 2015-04-20T15:14:48 *** ankur has joined #rtems 2015-04-20T15:18:46 DrJoel: reportedly yes, but reportedly not yet, i thought? 2015-04-20T15:18:50 andrei_: are you @ VU yet? 2015-04-20T15:19:19 beng-nl : nope, starting this autumn 2015-04-20T15:19:32 okay 2015-04-20T15:19:36 andrei_: look me up when you get here :) 2015-04-20T15:19:50 haha, so you re at vu amsterdam too? awesome 2015-04-20T15:19:54 yes i am 2015-04-20T15:19:57 have been for years 2015-04-20T15:21:15 are you teaching /ta-ing or a student? 2015-04-20T15:21:51 beng-nl is an icon. :) 2015-04-20T15:21:51 or workin' like a dooo-ooog 2015-04-20T15:22:20 beng-nl that dinner at the gastro place was divine looking! 2015-04-20T15:22:55 *** ankur has quit IRC (Quit: Page closed) 2015-04-20T15:23:06 DrJoel: amazing right?! 2015-04-20T15:23:42 andrei_: i've been an employee for ages. programmer for minix first, now 'programming security researcher' in a new group 2015-04-20T15:24:11 ohh 2015-04-20T15:24:55 pity andrew tanenbaum retired 2015-04-20T15:26:21 *** gigetoo has quit IRC (Ping timeout: 276 seconds) 2015-04-20T15:27:13 andrei_: really? 2015-04-20T15:27:34 ketul: sorry, what do you mean? 2015-04-20T15:28:05 Andrew S. Tanenbaum retired? 2015-04-20T15:28:17 yeah, I believe so, probably beng-nl knows better than me 2015-04-20T15:38:02 *** mumptai has quit IRC (Quit: Verlassend) 2015-04-20T15:39:22 *** Hesham has quit IRC (Ping timeout: 272 seconds) 2015-04-20T15:41:17 retirements should be celebrated. unless they were forced. ;) 2015-04-20T15:45:54 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-20T15:45:56 hm, error changed to No valid arch/bsps found 2015-04-20T15:47:02 Did you provide an --rtems-bsp=XXX option? 2015-04-20T15:47:02 what's yoru command line? 2015-04-20T15:47:40 *** javamonn has joined #rtems 2015-04-20T15:48:05 DrJoel: fyi i'm busy all day tomorrow, i'll check on dupes wednesday 2015-04-20T15:49:04 OK. chat me.. or call me if you need anything 2015-04-20T15:49:41 I did 2015-04-20T15:49:42 --rtems-bsps=sparc/sis 2015-04-20T15:49:50 but I thought it s a type 2015-04-20T15:49:52 not a folder 2015-04-20T15:50:01 I don't think you have to specify sparc/ 2015-04-20T15:50:09 cd - 2015-04-20T15:50:30 time ${RTEMS_TESTER_DIR}/tester/rtems-test \ 2015-04-20T15:50:30 --rtems-tools=${RTEMS_TOOLS_DIR} --rtems-bsp=${BSP} `find . -name *.exe` 2015-04-20T15:50:39 for one example 2015-04-20T16:11:44 *** gedare has quit IRC (Ping timeout: 246 seconds) 2015-04-20T16:13:50 *** Hesham has joined #rtems 2015-04-20T16:21:57 *** hermann_19829 has left #rtems ("http://quassel-irc.org - Chat comfortably. Anywhere.") 2015-04-20T16:34:54 *** gedare has joined #rtems 2015-04-20T16:34:54 *** ChanServ sets mode: +o gedare 2015-04-20T16:41:26 *** gedare has quit IRC (Ping timeout: 272 seconds) 2015-04-20T16:45:47 *** kiwichris has joined #rtems 2015-04-20T17:02:51 *** gigetoo has joined #rtems 2015-04-20T17:13:39 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-20T17:29:29 *** javamonn has joined #rtems 2015-04-20T17:31:32 *** javamonn has quit IRC (Read error: Connection reset by peer) 2015-04-20T17:32:06 *** javamonn has joined #rtems 2015-04-20T17:32:27 *** gedare has joined #rtems 2015-04-20T17:32:27 *** ChanServ sets mode: +o gedare 2015-04-20T17:37:16 *** gedare has quit IRC (Ping timeout: 240 seconds) 2015-04-20T17:40:48 I ll look into it tommorrow, I haven't figured the bsp thing yet 2015-04-20T17:40:57 answering/fixing comments in the meantime 2015-04-20T17:41:02 Thanks a lot! Cya! 2015-04-20T17:49:34 *** andrei_ has quit IRC (Ping timeout: 246 seconds) 2015-04-20T18:13:43 *** Hesham has quit IRC (Ping timeout: 245 seconds) 2015-04-20T18:17:06 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-20T18:26:05 *** javamonn has joined #rtems 2015-04-20T19:15:14 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-20T19:17:11 *** javamonn has joined #rtems 2015-04-20T19:19:13 *** javamonn has joined #rtems 2015-04-20T19:21:23 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-20T19:22:57 *** javamonn has joined #rtems 2015-04-20T19:40:16 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-20T19:45:50 *** kiwichris has quit IRC () 2015-04-20T20:04:40 *** kiwichris has joined #rtems 2015-04-20T20:27:43 *** kulp has joined #rtems 2015-04-20T20:30:26 *** javamonn has joined #rtems 2015-04-20T21:19:37 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-20T21:34:02 *** javamonn has joined #rtems 2015-04-20T22:06:43 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-20T22:26:11 *** javamonn has joined #rtems 2015-04-20T22:59:36 *** gwty has quit IRC (Ping timeout: 252 seconds) 2015-04-20T23:23:31 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-20T23:50:14 *** zoso has joined #rtems 2015-04-21T00:13:25 *** ketul has joined #rtems 2015-04-21T00:15:09 *** monstr has joined #rtems 2015-04-21T00:17:43 *** ketul has quit IRC (Client Quit) 2015-04-21T00:26:27 *** dr__house is now known as dr__house|away 2015-04-21T01:26:28 [trac] #2273/enhancement (accepted) updated by Sebastian Huber (In [changeset:"d3802bb5d708d01d03774b6758ed1e87484b8fac/rtems"]: {{{ ...) http://devel.rtems.org/ticket/2273 2015-04-21T01:26:28 [git] 4db0ae8 by Sebastian Huber: [score: _Objects_Get_isr_disable() Use ISR_lock_Context instead of ISR_Level to allow use of ISR locks for low-level locking. Update #2273.] http://devel.rtems.org/changeset/4db0ae8/rtems 2015-04-21T01:26:29 [git] 3bf4a9f by Sebastian Huber: [score: _Objects_Get_isr_disable() Do not disable thread dispatching and do not acquire the Giant lock. This makes it possible to use this object get variant for fine grained locking. Update #2273.] http://devel.rtems.org/changeset/3bf4a9f/rtems 2015-04-21T01:26:29 [git] 413b9e2 by Sebastian Huber: [score: Modify _Thread_Dispatch_disable_critical() Return the current processor to be in line with _Thread_Disable_dispatch().] http://devel.rtems.org/changeset/413b9e2/rtems 2015-04-21T01:26:29 [git] 1041de1 by Sebastian Huber: [score: Add _Thread_Get_interrupt_disable() Remove _Thread_Acquire() and _Thread_Acquire_for_executing(). Add utility functions for the default thread lock. Use the default thread lock for the RTEMS events. There is no need to disable thread dispatching and a Giant acquire in _Event_Timeout() since this was already done by 2015-04-21T01:26:29 the caller. Update #2273.] http://devel.rtems.org/changeset/1041de1/rtems 2015-04-21T01:26:29 [git] d3802bb by Sebastian Huber: [score: Delete object control block ISR lock The Objects_Control::Lock was a software layer violation. It worked only for the threads since they are somewhat special. Update #2273.] http://devel.rtems.org/changeset/d3802bb/rtems 2015-04-21T01:29:17 [trac] #2273/enhancement (accepted) updated by sebastian.huber ([4db0ae8e07870d4ca23dc1b9f8097e3494fe82a2/rtems] ...) http://devel.rtems.org/ticket/2273 2015-04-21T01:43:40 *** ketul has joined #rtems 2015-04-21T02:19:30 *** andrei_ has joined #rtems 2015-04-21T02:36:25 lo all 2015-04-21T02:37:26 hello beng-nl 2015-04-21T02:44:44 *** kiwichris has quit IRC () 2015-04-21T02:50:42 *** Knaldgas has joined #rtems 2015-04-21T02:59:00 *** kiwichris has joined #rtems 2015-04-21T03:01:39 I'm considering trying RTEMS for Lego Mindstorms EV3 (AM1808 ARM926EJ-S Core) - Anyone been down that road? Any suggestions or links? 2015-04-21T03:02:25 I think Joel has or considered. I suggest you ask on the list. Support for this would be very nice. 2015-04-21T03:03:02 Right, I will post on the list, thanks 2015-04-21T03:05:55 kiwichris: does this belong to the devel@ list, or should I put it in users@ you think? 2015-04-21T03:06:11 Knaldgas, user list is fine. 2015-04-21T03:06:17 Very good, thanks 2015-04-21T03:06:25 Knaldgas, specific BSP posts and question can be on devel. 2015-04-21T03:06:45 kiwichris: Got it 2015-04-21T03:06:46 Knaldgas, Sebastian should be able to help if you give the details of the type of ARM 2015-04-21T03:07:17 kiwichris: ARM926EJ-S with ARMv5TEJ instruction sets, etc. :) 2015-04-21T03:07:33 Will post it on users@ 2015-04-21T03:07:46 Knaldgas, looking forward to see an RTEMS robot war 2015-04-21T03:08:22 Hehe, well that would be fun, but just see some RTEMS-based Lego robots would be a nice start :) 2015-04-21T03:14:28 *** beng-nl-home has quit IRC (Read error: Connection reset by peer) 2015-04-21T03:14:44 *** beng-nl-home has joined #rtems 2015-04-21T03:39:16 kiwichris: my future plan is also to fly quadcopter using rtems once we would be having all drivers ready with bbb. :) 2015-04-21T03:39:32 nice 2015-04-21T03:39:58 *** kiwichris has quit IRC () 2015-04-21T04:33:54 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-21T04:34:32 *** ketul has joined #rtems 2015-04-21T04:58:15 DrJoel: I tried addressing most of your comments 2015-04-21T04:58:21 also added some questions 2015-04-21T04:58:39 I ll look into the multiio once I get home 2015-04-21T06:24:03 *** Hesham has joined #rtems 2015-04-21T06:34:21 *** Knaldgas has quit IRC (Quit: Leaving) 2015-04-21T06:42:45 *** gedare has joined #rtems 2015-04-21T06:42:45 *** ChanServ sets mode: +o gedare 2015-04-21T06:48:24 *** gedare has quit IRC (Ping timeout: 264 seconds) 2015-04-21T06:59:00 andrei_: when are you @ vu ? 2015-04-21T06:59:13 beng-nl : I start in autumn 2015-04-21T06:59:19 september 2015 2015-04-21T06:59:34 aha 2015-04-21T06:59:35 ok 2015-04-21T06:59:38 i'll still be here i expect:) 2015-04-21T06:59:53 out of curiosity 2015-04-21T06:59:58 how do you people ride the bike in winter? 2015-04-21T07:00:25 As I ve seen there's an incredible amount of bikes in Amsterdam 2015-04-21T07:47:50 andrei_: same way as always really! 2015-04-21T07:48:11 usually the weather isn't a insurmountable problem 2015-04-21T07:48:29 modulo clothes and traffic awareness 2015-04-21T07:48:38 so you don t have like 2015-04-21T07:48:43 30 + cm of snow? 2015-04-21T07:49:10 that's very rare yeah 2015-04-21T07:49:34 funny how I live souther but have harsher winters 2015-04-21T07:50:09 so an upgrade in that sense 2015-04-21T07:50:20 you probably have better summers then? 2015-04-21T07:50:35 yep 2015-04-21T07:51:20 there are around 20 degrees celsius now in Bucharest, and increasing to 30+ in summer 2015-04-21T07:51:35 hum 2015-04-21T07:51:43 that is on the very limit of 'better' to me ;) 2015-04-21T07:51:55 haha 2015-04-21T08:13:01 *** andrei_ has quit IRC (Ping timeout: 246 seconds) 2015-04-21T08:32:20 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-21T08:44:53 *** javamonn has joined #rtems 2015-04-21T09:11:03 *** antgreen` has quit IRC (Ping timeout: 256 seconds) 2015-04-21T09:19:51 *** zoso has quit IRC (Remote host closed the connection) 2015-04-21T10:11:06 *** zoso has joined #rtems 2015-04-21T10:40:12 *** hermann_19829 has joined #rtems 2015-04-21T11:14:10 *** mumptai has joined #rtems 2015-04-21T11:20:29 *** ragunath has joined #rtems 2015-04-21T11:23:06 *** andrei_ has joined #rtems 2015-04-21T11:25:16 *** ketul has joined #rtems 2015-04-21T11:34:15 *** JowlDroid has joined #rtems 2015-04-21T11:35:02 Yeah! Looks like AndroIRC works a little anyway. I will see how it does for a couple of days 2015-04-21T11:40:43 JowlDroid: crap.. can't type on a phone. :( 2015-04-21T11:41:00 *** JowlDroid is now known as JoelDroid 2015-04-21T11:46:31 *** hermann_19829 has quit IRC (Remote host closed the connection) 2015-04-21T11:57:54 hi, JoelDroid, if you got time, look over the comments you left on my melange proposal, I tried to address them all. Thanks a lot ! 2015-04-21T11:58:25 Sure.. lunch time first though. What time is it for you? 2015-04-21T11:58:57 7.58 PM 2015-04-21T11:58:59 Enjoy ! 2015-04-21T11:59:10 OK.. a few hours left in your night. :) 2015-04-21T11:59:21 *** zoso has quit IRC (Ping timeout: 256 seconds) 2015-04-21T12:00:51 yep, I ll leave for an hour or so then try to address the multiio task 2015-04-21T12:01:51 beng-nl: hi . You posted about control all GPIO's . so want it to clear that should I define macros like #define USR0 and map it. Or else I can have unique gpio number. 2015-04-21T12:04:19 but beng-nl I think more convenient is to define macros for user because P8_3 kind of pins are specified in the bbb image. 2015-04-21T12:05:41 andrei_: want to your help about getting started with multiio. Can you tell a few starting steps for that.? 2015-04-21T12:09:10 ketul: I started looking over it yesterday, but shoot 2015-04-21T12:09:14 if I know something, I ll tell 2015-04-21T12:10:35 andrei_: want some starting steps like configuration and all. can you tell me how to do setup? 2015-04-21T12:15:34 yep 2015-04-21T12:15:37 uhm 2015-04-21T12:15:47 do you have waf installed? 2015-04-21T12:15:57 nop ! 2015-04-21T12:16:07 what OS are you using? 2015-04-21T12:16:18 ubuntu I think same as u 2015-04-21T12:16:23 ah, cool ! 2015-04-21T12:16:24 ok 2015-04-21T12:16:29 :) 2015-04-21T12:16:50 you git clone this https://github.com/cournape/waf 2015-04-21T12:17:02 then you run ./waf configure build 2015-04-21T12:17:06 and then 2015-04-21T12:17:17 export PATH=$PATH:/path/to/your/waf/dir 2015-04-21T12:17:31 (you ll have to do that each time, in each terminal, sorry if you knew that already !) 2015-04-21T12:17:35 after that 2015-04-21T12:17:40 you follow the README.waf 2015-04-21T12:17:47 in your multiio dir 2015-04-21T12:18:02 I haven't figured out the sparc/sis parameter in the waf configure command 2015-04-21T12:18:16 but the rest are, as Gedare said yesterday, the prefix to where you did install rtems 2015-04-21T12:18:24 ok thanks andrei_ 2015-04-21T12:18:28 basically, look for the same dir structure, run the command, and it ll say what you miss 2015-04-21T12:18:38 I gotta go for an hour now 2015-04-21T12:18:42 goodluck ! 2015-04-21T12:19:04 ya sure thanks 2015-04-21T12:37:28 *** Hesham has quit IRC (Ping timeout: 245 seconds) 2015-04-21T13:01:50 *** monstr has quit IRC (Ping timeout: 252 seconds) 2015-04-21T13:13:01 *** Hesham has joined #rtems 2015-04-21T13:35:09 andrei_ I marked some as resolved and answered back on others. 2015-04-21T13:36:26 [trac] #2332/defect (v:4.10) created by systec-dk (rtemstools cannot be built by RSB under MinGW32) http://devel.rtems.org/ticket/2332 2015-04-21T13:42:55 [trac] #2332/defect (new) updated by systec-dk (After adding the bug report my eyes fall on "Microsoft Visual Studio" which is also ...) http://devel.rtems.org/ticket/2332 2015-04-21T13:46:37 [trac] #2332/defect (new) updated by joel.sherrill (I don't know for sure this will help but your environment has at least a PATH which ...) http://devel.rtems.org/ticket/2332 2015-04-21T13:50:19 DrJoel : thanks for commenting, my understanding is that right now 2015-04-21T13:50:24 our two issues are the race condition issue 2015-04-21T13:50:46 and the monotonic clock 2015-04-21T13:56:07 Yes. The race condition is not as much an issue as something we don't want to create. My understanding is that condition variables inherently have a race condition when you broadcast. Every thread begins to compete for the mutex. We don't want an OS race condition. :) 2015-04-21T13:56:15 The monotonic clock is harder. 2015-04-21T13:57:23 It will need discussing on devel@ whether it can be implemented using our current score watchdog based on ticks or needs something else. 2015-04-21T13:57:40 CLOCK_MONOTONIC shows up in a few other APIs as well. 2015-04-21T13:59:13 You can download the entire OpenGroup POSIX specification as a zip file. I have it on my disk and a quick seach showed this: 2015-04-21T13:59:20 clock_getres (/functions/clock_getres.html) 2015-04-21T13:59:20 Hits : "CLOCK_MONOTONIC" 9 2015-04-21T13:59:20 clock_getres (/functions/clock_gettime.html) 2015-04-21T13:59:20 Hits : "CLOCK_MONOTONIC" 9 2015-04-21T13:59:20 clock_getres (/functions/clock_settime.html) 2015-04-21T13:59:20 Hits : "CLOCK_MONOTONIC" 9 2015-04-21T13:59:20 General Information (/xrat/V4_xsh_chap02.html) 2015-04-21T13:59:21 Hits : "CLOCK_MONOTONIC" 5 2015-04-21T13:59:21 (/basedefs/limits.h.html) 2015-04-21T13:59:22 Hits : "CLOCK_MONOTONIC" 2 2015-04-21T13:59:22 (/basedefs/time.h.html) 2015-04-21T13:59:23 Hits : "CLOCK_MONOTONIC" 2 2015-04-21T13:59:23 aio_suspend (/functions/aio_suspend.html) 2015-04-21T13:59:24 Hits : "CLOCK_MONOTONIC" 2 2015-04-21T13:59:24 sigtimedwait (/functions/sigtimedwait.html) 2015-04-21T13:59:25 Hits : "CLOCK_MONOTONIC" 2 2015-04-21T13:59:25 sigtimedwait (/functions/sigwaitinfo.html) 2015-04-21T13:59:26 Hits : "CLOCK_MONOTONIC" 2 2015-04-21T13:59:26 timer_create (/functions/timer_create.html) 2015-04-21T13:59:27 Hits : "CLOCK_MONOTONIC" 2 2015-04-21T13:59:27 General Information (/functions/V2_chap02.html) 2015-04-21T13:59:28 Hits : "CLOCK_MONOTONIC" 1 2015-04-21T13:59:28 clock_nanosleep (/functions/clock_nanosleep.html) 2015-04-21T13:59:29 Hits : "CLOCK_MONOTONIC" 1 2015-04-21T14:00:20 And pthread_condattr_setclock wasn't on that list. :) 2015-04-21T14:00:23 But it can take it. 2015-04-21T14:00:33 uhm, sorry if I seem stupid 2015-04-21T14:00:45 but isn't watchdog a service that checks if a binary/service is responding 2015-04-21T14:00:47 and if it isn't 2015-04-21T14:00:50 it restarts it 2015-04-21T14:00:57 my point is, isn't it external? 2015-04-21T14:01:44 Don't feel stupid about watchdog. We picked a confusing name based on our experiences in the telecom industry when we implemented RTEMS. We all had used "software watchdogs" on communications protocols to drop lines, reset, etc. 2015-04-21T14:02:06 The more common use is hardware watchdogs like you immediately thought. RTEMS Score Watchdogs are just software times. 2015-04-21T14:02:09 timers 2015-04-21T14:02:31 ah, ok 2015-04-21T14:02:47 I work in the telecom as well now, we use something called MultOS 2015-04-21T14:02:49 We have discussed renaming it many times but every name suggested is also confusing. :) 2015-04-21T14:03:41 My experience is ancient now. I worked on things you would now see in a museum. LOL 2015-04-21T14:04:29 haha 2015-04-21T14:07:49 well they were old when I worked on them. :) 2015-04-21T14:08:41 The work I did hosting the real AT&T System V UNIX TTY driver on an 80186 board running a small RTOS used a pattern I still push with RTEMS. 2015-04-21T14:09:49 We implemented the AT&T Device Driver Interface enough to host unmodified AT&T UNIX kernel code. That taught me you can provide a compatability layer, avoid hacking and end up with unmodified third party code running nicely on a small embedded system. 2015-04-21T14:10:35 I have always been thinking that 2015-04-21T14:10:51 programming during the time you mentioned required an increased amount of efficiency 2015-04-21T14:10:55 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-21T14:11:09 That's why RTEMS has pushed and pushed to make it easier to port code. We try to avoid modifying packages to port them. 2015-04-21T14:11:27 I was looking a few days, we have an embedded board which has 24 cores or so 2015-04-21T14:11:41 It was a 6 Mhz board with 512K of RAM I think. 2015-04-21T14:11:56 Yeah.. that brings its own issues. :) QorIQ? 2015-04-21T14:12:00 exactly 2015-04-21T14:12:30 Sebastian has mentioned bringing RTEMS up on that. I assume he is plugging away at it. 2015-04-21T14:14:37 I might be wrong, I haven't looked at it in a while, but I don t tihnk QorIQ has official support for anything other than yocto 2015-04-21T14:16:15 anyway 2015-04-21T14:17:17 Official.. probaly not. There are lots of RTOSes available for it. Not sure how many use multiple cores. RTEMS has a BSP for a few variants already 2015-04-21T14:17:45 regarding the proposal, I m a bit worried because I don't think I can provide a clear answer 2015-04-21T14:17:48 until friday 2015-04-21T14:19:37 You can't know all the answers going in. I will try to get someone here to review what is missing in newlib .h files for CLOCK_MONOTONIC and see if we can't get that all in place before it is needed. 2015-04-21T14:20:24 I had a couple of weeks of slack until this one, so I feel I could've done more, but it happened to be the Easter holiday 2015-04-21T14:20:26 A trick to working open source is to always work to clear the patch 4-6 weeks ahead of when you need something. Ask questions about what you are doing next. Keep working on step 1 but be designing 2 and 3, eliminating known issues and questions 2015-04-21T14:20:52 I ll keep that in mind 2015-04-21T14:20:54 We all have distractions. Just have to keep plugging away. 2015-04-21T14:21:36 now back to the 90s metal playlist and proof reading. :) 2015-04-21T14:22:14 haha, goodluck ! Thanks for helping me out 2015-04-21T14:22:38 no problem. Just keep asking questions as needed and pester when we are slow. 2015-04-21T14:22:49 That goes for ragunath and any other student out there. 2015-04-21T14:24:38 DrJoel: I've submitted two versions of the RSB patch doing the same thing, don't know which one makes more sense, and whether it can be merged or not. 2015-04-21T14:27:26 Chris needs to look at it. He just got back home from holiday yesterday I think. 2015-04-21T14:27:59 * DrJoel needs to review the build/run of ~20 BSPs on simulators and post results. 2015-04-21T14:33:43 OK, the only hurdle now is the align with boundary issue which we were discussing yesterday. 2015-04-21T14:36:09 Gotto go. Bye. 2015-04-21T14:37:15 night.. funny that the gdb arm sim locks up near that same code. :( 2015-04-21T14:38:06 lo all 2015-04-21T14:40:51 *** Hesham has quit IRC (Ping timeout: 256 seconds) 2015-04-21T15:14:46 *** andrei_ has quit IRC (Ping timeout: 246 seconds) 2015-04-21T15:20:23 *** JoelDroid has quit IRC (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )) 2015-04-21T15:42:25 *** ragunath has quit IRC (Ping timeout: 246 seconds) 2015-04-21T15:46:40 *** antgreen has joined #rtems 2015-04-21T16:32:39 *** mumptai has quit IRC (Quit: Verlassend) 2015-04-21T16:58:03 *** kiwichris has joined #rtems 2015-04-21T17:01:12 DrJoel, hi 2015-04-21T17:03:13 verm__, hi 2015-04-21T17:05:23 [trac] #2332/defect (new) updated by chrisj (Replying to [comment:1 systec-dk]: > After adding the bug report my eyes fall on ...) http://devel.rtems.org/ticket/2332 2015-04-21T17:09:16 *** hermann_19829 has joined #rtems 2015-04-21T17:17:28 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-21T17:49:26 *** hermann_19829 has quit IRC (Remote host closed the connection) 2015-04-21T18:49:36 *** waleedziad has joined #rtems 2015-04-21T19:19:23 hi 2015-04-21T19:31:55 *** javamonn has joined #rtems 2015-04-21T19:39:47 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-21T20:06:18 *** javamonn has joined #rtems 2015-04-21T20:32:43 *** waleedziad has quit IRC (Quit: Leaving) 2015-04-21T21:05:43 *** javamonn has quit IRC (Read error: Connection reset by peer) 2015-04-21T21:06:20 *** javamonn has joined #rtems 2015-04-21T21:11:35 *** gigetoo has quit IRC (Ping timeout: 250 seconds) 2015-04-21T21:18:52 *** gigetoo has joined #rtems 2015-04-21T21:52:47 *** dr__house|away is now known as dr__house 2015-04-21T21:58:06 *** ketul has joined #rtems 2015-04-21T22:44:15 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-22T00:02:37 *** dr__house is now known as dr__house|away 2015-04-22T00:08:28 *** zoso has joined #rtems 2015-04-22T00:18:16 *** monstr has joined #rtems 2015-04-22T00:22:29 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-22T00:37:44 *** gwty has joined #rtems 2015-04-22T01:17:38 *** zoso has quit IRC (Ping timeout: 246 seconds) 2015-04-22T01:25:21 *** zoso has joined #rtems 2015-04-22T01:58:16 *** ketul has joined #rtems 2015-04-22T02:09:16 *** gwty has quit IRC (Ping timeout: 240 seconds) 2015-04-22T02:12:09 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-22T02:12:41 *** ketul has joined #rtems 2015-04-22T02:13:35 *** gwty has joined #rtems 2015-04-22T02:22:29 msg NickServ identify KEtul! 2015-04-22T02:22:46 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-22T02:24:40 oh dear 2015-04-22T02:30:14 *** ketul has joined #rtems 2015-04-22T02:32:24 [git] 3641320 by Daniel Cederman: [smptests/smpcache01: Enable interrupts before waiting for other CPUs Otherwise there is a risk that a CPU misses a cache manager message from another CPU and the test hangs.] http://devel.rtems.org/changeset/3641320/rtems 2015-04-22T02:48:25 *** Hesham has joined #rtems 2015-04-22T03:04:45 *** gwty has quit IRC (Ping timeout: 250 seconds) 2015-04-22T03:28:11 beng-nl: hi 2015-04-22T03:35:11 *** akhoaho has joined #rtems 2015-04-22T03:41:42 *** kiwichris has quit IRC () 2015-04-22T03:54:05 *** akhoaho has left #rtems ("Leaving") 2015-04-22T04:40:09 [git] 49d4364 by Sebastian Huber: [score: Delete bogus THREAD_QUEUE_WAIT_FOREVER It makes no sense to use this indirection since the type for timeout values is Watchdog_Interval.] http://devel.rtems.org/changeset/49d4364/rtems 2015-04-22T04:45:01 ketul: hi 2015-04-22T04:45:11 timothyh: :) 2015-04-22T04:45:15 ketul: did you change your pw :) ? 2015-04-22T04:49:24 beng-nl: ya :) 2015-04-22T04:49:29 good :-) 2015-04-22T04:50:37 beng-nl: you told me to include all register macros to am335x.h 2015-04-22T04:51:01 but what about DM3730 2015-04-22T04:51:23 should it be in same header beng-nl? 2015-04-22T05:07:06 ketul: no; they went into ./c/src/lib/libcpu/arm/shared/include/omap3.h 2015-04-22T05:07:37 ok beng-nl. got 2015-04-22T05:07:57 ketul: adding DM3730 support is a bonus and not needed for mainlining imho 2015-04-22T05:08:01 and about pin numbers beng-nl what should be done. 2015-04-22T05:08:27 like in rpi gpio pin no. is unique nut for bbb P8 and P9 2015-04-22T05:08:32 are used 2015-04-22T05:09:07 so should I define macros like #define P8_21 ? 2015-04-22T05:28:53 or beng-nl we can have gpio_select( int header, int pin). but by using that I think there won't be common functions for rpi and bbb. 2015-04-22T05:46:25 *** linuxkernelhacke has quit IRC (Read error: Connection reset by peer) 2015-04-22T05:47:17 *** linuxkernelhacke has joined #rtems 2015-04-22T05:54:42 *** gwty has joined #rtems 2015-04-22T05:58:06 beng-nl: I think it is major challenge for making common api for rpi and bbb because of bbb has 2 headers p8 and p9 while rpi doesn't have like that. so what do you suggest for addressing this 1? 2015-04-22T06:17:49 *** gwty has quit IRC (Ping timeout: 264 seconds) 2015-04-22T06:30:08 ketul: What do you mean by "headers"? 2015-04-22T06:30:44 P8 and P9 in bbb are called headers Hesham 2015-04-22T06:31:43 Hesham: http://elinux.org/Beagleboard:Cape_Expansion_Headers#Cape_Expansion_Headers 2015-04-22T06:33:13 ketul: Thanks, so when you want to access P8, you write to a corresponding register? 2015-04-22T06:34:37 Hesham: actually these headers have different gpios connection . like https://insigntech.files.wordpress.com/2013/09/bbb_pinouts.jpg 2015-04-22T06:35:26 so if you want to access p8_19 so you need to access gpio_22 2015-04-22T06:35:50 Ah I see 2015-04-22T06:36:13 Are any of these bi-directional? 2015-04-22T06:36:43 Meaning that they can be configured as input and/or output for example? 2015-04-22T06:36:56 ya most of them. but depends on you it can be configured as i/o 2015-04-22T06:37:42 Hesham: for that led demo I done all gpio 1 bank as output configuration 2015-04-22T06:37:45 By writing to a direction register for example? 2015-04-22T06:38:52 AM335X_GPIO_DATAOUT (0x13C) is given for that 2015-04-22T06:38:57 and datain 2015-04-22T06:39:41 mmm. You may think of having a general gpio_set_direction(), gpio_set_bits() with a mask maybe 2015-04-22T06:40:54 The issue is to determine the differences/similarities for GPIO on different boards. 2015-04-22T06:41:16 what about the arguments of that functions? 2015-04-22T06:41:34 Similarities maybe something like directions, set, clear, etc. 2015-04-22T06:41:46 hmm 2015-04-22T06:41:47 That's the challenge. 2015-04-22T06:42:06 Every BSP would have different base address for its GPIO registers 2015-04-22T06:42:23 ya thats what I asked to beng-nl. 2015-04-22T06:42:26 End even different GPIO addresses and register sizes 2015-04-22T06:42:45 Hesham: so any solution do you think? 2015-04-22T06:43:31 Maybe some high-level marcos/inline functions that every GPIO low-level implementation should define. 2015-04-22T06:44:38 So at high-level API we can have gpio_set_bits(BITS_MASK) 2015-04-22T06:45:54 ya Hesham that can be done. 2015-04-22T06:45:55 BIT_MASK can be translated by every BSP to low-level addresses/mapping 2015-04-22T06:46:23 yup so we should have long list of macros 2015-04-22T06:46:23 I did something similar with generic memory protection MMU 2015-04-22T06:46:59 Hesham: can you provide the link of that? 2015-04-22T06:47:10 ketul: Let me check 2015-04-22T06:48:13 You have to define first what are the similarities/differences between different GPIO operations on different boards. 2015-04-22T06:48:45 For now you can compare between RPi and BBB, and I can provide some details of the generic OpenRISC GPIO 2015-04-22T06:50:29 ya Hesham thats true but I think for rpi andre's help is required 2015-04-22T06:52:32 Hesham: out of topic of current discussion want to ask any function available for usec like rtems_clock_get_ticks_per_second()? 2015-04-22T06:55:46 ketul: I am not sure. You can always calculate the delay your own given that the default clock tick resolution should be 10ms 2015-04-22T06:55:55 or 5ms don't remember exactly 2015-04-22T06:56:44 I believe it's 10 2015-04-22T06:57:36 multiplying with e^6 is good option? 2015-04-22T06:57:43 Hesham: 2015-04-22T06:58:48 So rtems_task_wake_after(1) should gets you 10ms resolution I think 2015-04-22T06:59:47 ohk that I will check thanks. and you were providing link me for generic mmu :) 2015-04-22T07:12:14 ketul: I didn't find it sorry, I'll have to dig into my old repos later. 2015-04-22T07:16:35 Hesham: np . 2015-04-22T07:23:26 [git] b0686b4 by Sebastian Huber: [score: Delete _CORE_RWLock_Timeout() This function was identical to _Thread_queue_Timeout(). This makes _Thread_queue_Enqueue_with_handler() obsolete.] http://devel.rtems.org/changeset/b0686b4/rtems 2015-04-22T07:44:55 *** gwty has joined #rtems 2015-04-22T08:10:27 *** zoso has quit IRC (Remote host closed the connection) 2015-04-22T08:22:49 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-22T08:34:56 *** javamonn has joined #rtems 2015-04-22T08:47:20 *** gwty_ has joined #rtems 2015-04-22T08:47:43 *** gwty has quit IRC (Ping timeout: 256 seconds) 2015-04-22T08:57:21 *** antgreen has quit IRC (Ping timeout: 256 seconds) 2015-04-22T09:24:28 *** DrJoel has quit IRC (Quit: Pull the pin and count to what?) 2015-04-22T09:54:22 *** ketul has joined #rtems 2015-04-22T10:06:27 beng-nl: hi can you address last questions asked. ;) 2015-04-22T10:09:40 ehm.. about the rpi api? 2015-04-22T10:09:59 ya about common api 2015-04-22T10:10:02 aha 2015-04-22T10:10:24 well a common api isn't required to merge mainline. just to copy the rpi api. is that a problem? i haven't looked at it to be honest. 2015-04-22T10:11:47 beng-nl: problem in terms of the difference in gpio. 2015-04-22T10:12:17 like for gpio_set() in rpi argument is unique pin no. 2015-04-22T10:12:50 but for bbb it would be no. alond with cap header like P8_21 2015-04-22T10:13:59 hm, which rpi code are you looking at? 2015-04-22T10:14:12 andre's patch 2015-04-22T10:14:14 aha 2015-04-22T10:14:43 and in common both boards have differences in terms gpio 2015-04-22T10:14:53 yes 2015-04-22T10:14:54 that is ok 2015-04-22T10:16:51 so now I should not focus on common api . right? although try it to be as much as possible 2015-04-22T10:20:28 you don't have to invent a new api, no 2015-04-22T10:20:44 but model the BBB functions as closely to the rpi functions as you can 2015-04-22T10:22:59 ok got it sure i will do that actually I meant to same in the last statement but some words missed :) 2015-04-22T10:23:14 thanks beng-nl 2015-04-22T10:34:51 ok np 2015-04-22T10:51:04 *** ankur has joined #rtems 2015-04-22T10:59:10 *** ankur has quit IRC (Ping timeout: 246 seconds) 2015-04-22T11:05:06 *** stryx`_ has joined #rtems 2015-04-22T11:08:27 *** gwty_ has quit IRC (Ping timeout: 276 seconds) 2015-04-22T11:20:48 *** ankur has joined #rtems 2015-04-22T11:51:19 *** ankur has quit IRC (Ping timeout: 246 seconds) 2015-04-22T11:51:45 *** ketul has quit IRC () 2015-04-22T11:53:28 *** ketul has joined #rtems 2015-04-22T12:00:20 ketul: That's the one which translates generic MMU attributes to BSP/arch specific ones. https://github.com/heshamelmatary/rtems-gsoc2013/blob/low-level-libmm/c/src/lib/libbsp/arm/shared/mm.c#L25 2015-04-22T12:00:34 *** andrei_ has joined #rtems 2015-04-22T12:02:37 Hesham: great ty. 2015-04-22T12:33:34 *** Hesham has quit IRC (Ping timeout: 272 seconds) 2015-04-22T13:06:15 *** Hesham has joined #rtems 2015-04-22T13:08:24 *** monstr has quit IRC (Ping timeout: 272 seconds) 2015-04-22T13:23:59 *** antgreen has joined #rtems 2015-04-22T13:39:09 *** hermann_19829 has joined #rtems 2015-04-22T13:47:26 *** javamonn has quit IRC (Read error: Connection reset by peer) 2015-04-22T13:48:01 *** javamonn has joined #rtems 2015-04-22T14:15:24 *** hermann_19829 has quit IRC (Quit: No Ping reply in 180 seconds.) 2015-04-22T14:16:49 *** hermann_19829 has joined #rtems 2015-04-22T14:27:08 *** gedare has joined #rtems 2015-04-22T14:27:08 *** ChanServ sets mode: +o gedare 2015-04-22T14:31:54 *** Hesham has quit IRC (Ping timeout: 276 seconds) 2015-04-22T14:45:28 *** gedare has quit IRC (Remote host closed the connection) 2015-04-22T15:09:09 *** ankur has joined #rtems 2015-04-22T15:29:22 *** ankur has quit IRC (Ping timeout: 246 seconds) 2015-04-22T15:55:39 *** hermann_19829 has quit IRC (Remote host closed the connection) 2015-04-22T16:11:45 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-22T16:27:07 *** andrei_ has quit IRC (Ping timeout: 246 seconds) 2015-04-22T16:30:00 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-22T16:30:14 *** javamonn has joined #rtems 2015-04-22T16:35:23 *** gwty has joined #rtems 2015-04-22T17:11:46 *** kiwichris has joined #rtems 2015-04-22T17:24:30 *** gwty has quit IRC (Remote host closed the connection) 2015-04-22T17:26:36 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-22T18:24:55 *** javamonn has joined #rtems 2015-04-22T18:33:43 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-22T18:35:07 *** javamonn has joined #rtems 2015-04-22T19:52:02 *** dr__house|away is now known as dr__house 2015-04-22T21:07:17 *** geheimnis` has quit IRC (Remote host closed the connection) 2015-04-22T22:17:15 *** javamonn has quit IRC (Remote host closed the connection) 2015-04-22T22:56:04 *** javamonn has joined #rtems 2015-04-22T23:27:01 *** linuxkernelhacke has quit IRC (Read error: Connection reset by peer) 2015-04-22T23:29:45 *** zoso has joined #rtems 2015-04-22T23:36:38 *** javamonn has quit IRC () 2015-04-22T23:49:04 [trac] #2333/defect (v:4.10) created by chrisj (CPU use top uses stdin) http://devel.rtems.org/ticket/2333 2015-04-23T00:18:58 *** monstr has joined #rtems 2015-04-23T00:25:21 *** Hesham has joined #rtems 2015-04-23T00:40:42 *** dr__house is now known as dr__house|away 2015-04-23T01:05:13 *** Hesham has quit IRC (Ping timeout: 264 seconds) 2015-04-23T01:08:54 *** ketul has joined #rtems 2015-04-23T02:05:33 [git] d349e8a by Sebastian Huber: [score: Fix priority message queue insert Move the linear search into a critical section to avoid corruption due to higher priority interrupts. The interrupt disable time depends now on the count of pending messages. Close #2328.] http://devel.rtems.org/changeset/d349e8a/rtems 2015-04-23T02:05:33 [git] 9f10911 by Sebastian Huber: [score: Delete Thread_queue_Control::state Use a parameter for _Thread_queue_Enqueue() instead to reduce memory usage.] http://devel.rtems.org/changeset/9f10911/rtems 2015-04-23T02:06:34 [trac] #2328/defect (closed) updated by sebastian.huber ([d349e8a439d022bda3f9637fff013cfc8e55743d/rtems]) http://devel.rtems.org/ticket/2328 2015-04-23T02:24:18 *** akhoaho has joined #rtems 2015-04-23T02:29:12 *** kiwichris has quit IRC (Ping timeout: 265 seconds) 2015-04-23T02:38:56 *** Hesham has joined #rtems 2015-04-23T03:10:20 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-23T03:13:35 *** akhoaho has quit IRC (Quit: Leaving) 2015-04-23T03:56:32 *** ketul has joined #rtems 2015-04-23T04:10:25 [git] be6c461 by Sebastian Huber: [score: _CORE_mutex_Seize_interrupt_blocking() Move some code into _CORE_mutex_Seize_interrupt_blocking() so that the thread queue handling is in one place.] http://devel.rtems.org/changeset/be6c461/rtems 2015-04-23T04:45:51 beng-nl: hi 2015-04-23T04:48:39 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-23T04:51:29 *** ketul has joined #rtems 2015-04-23T05:21:37 Hesham: hi 2015-04-23T05:41:00 Hi ketul, sorry I was in a lab. 2015-04-23T05:42:22 hi . np 2015-04-23T05:42:33 Hesham: can you review https://gist.github.com/ketul93/d717555951174a74c8b4 ? 2015-04-23T05:43:02 would be happy to hear comments from your side 2015-04-23T05:52:59 ketul: Sure, I'll have a look once I finish some work here. Thanks for asking. 2015-04-23T05:59:53 Hesham: thanks. 2015-04-23T06:10:36 [git] 9cac9c5 by Sebastian Huber: [score: Delete _Thread_queue_Dequeue_priority()] http://devel.rtems.org/changeset/9cac9c5/rtems 2015-04-23T06:32:56 *** Hesham has quit IRC (Ping timeout: 240 seconds) 2015-04-23T06:49:08 ketul: hi 2015-04-23T06:49:43 beng-nl: I developed code as close as possible to rpi api 2015-04-23T06:50:29 beng-nl: Can you please give your suggestions on https://gist.github.com/ketul93/d717555951174a74c8b4 2015-04-23T06:50:33 okay 2015-04-23T06:50:41 what rpi did you base it on? i didn't see it in rtems mainline 2015-04-23T06:50:49 or is it in rtems mainline? 2015-04-23T06:51:20 no gedare said there was some problems with it so they haven't merged it. 2015-04-23T06:51:25 ok 2015-04-23T06:51:31 so where is the rpi code? 2015-04-23T06:51:40 but should I give andre's patch link? 2015-04-23T06:51:44 please :) 2015-04-23T06:51:53 ya let me 2015-04-23T06:52:58 beng-nl: It can be downloaded from https://www.google-melange.com/gsoc/project/details/google/gsoc2014/andremarques/5668600916475904 2015-04-23T06:53:14 aha 2015-04-23T06:56:48 :) 2015-04-23T06:57:22 ketul: have you tested your code on hardware? with all 4 gpio banks? 2015-04-23T06:58:42 beng-nl: Testing it. 2015-04-23T06:58:59 beng-nl: but I am getting some problem with gpio_clear() 2015-04-23T06:59:13 so first trying to rectify it. 2015-04-23T06:59:21 i see 2015-04-23T06:59:27 the code is starting to look very good 2015-04-23T06:59:45 very nice progress 2015-04-23T06:59:54 ya thanks. 2015-04-23T07:01:16 beng-nl: so for samples only four usr leds' macros are needed. or should I include all gpios' macro. 2015-04-23T07:01:33 yes, i was about to say something about that 2015-04-23T07:01:40 no you don't have to include them all 2015-04-23T07:01:42 but! 2015-04-23T07:02:07 i would expect a function that lets you control them all, i.e. configure the direction, and then do output or input 2015-04-23T07:02:45 ya beng-nl that is now possible but it requires some time. 2015-04-23T07:03:10 i see 2015-04-23T07:03:14 i think it could be simple.. 2015-04-23T07:03:37 don't you just need a function that fills in a GPIO_PIN struct based on bank id + pin id? 2015-04-23T07:04:41 pin id didn't get 2015-04-23T07:04:49 btw i think gpio_pin should not be mallocced, but just statically allocated 2015-04-23T07:05:04 ya that can also be done 2015-04-23T07:05:10 i.e. static bbb_gpio_pin gpio_pin[GPIO_PIN_COUNT]; 2015-04-23T07:05:58 ketul: in gpio_select_pin(), i don't see anything pin-specific happening.. 2015-04-23T07:06:30 it seems there should be a read there first or a mask maintained if the read doesn't return the data 2015-04-23T07:06:45 because now it zeroes all bits in the bank instead of just the requested pin 2015-04-23T07:07:25 ya that I am going to change after successful testing I am going to change in select_pin() 2015-04-23T07:07:54 okay 2015-04-23T07:08:20 and beng-nl: don't you think now we can approach towards common api by defining macros in rpi api? 2015-04-23T07:09:04 i wouldn't worry about that just yet; imho merging seperate copies first is OK, then worrying about a general interface later 2015-04-23T07:09:20 ok 2015-04-23T07:10:09 ketul: so you should add a function that fills in a GPIO_PIN struct with an arbitrary bank and pin, then all pins are accessible 2015-04-23T07:11:51 furthermore my suggestion is to only expose the gpio bank id's and pin id's to the user 2015-04-23T07:14:37 so a user is able to query how many banks there are, and how many pins per bank, and write all code based just on those numbers, and not addresses 2015-04-23T07:17:33 so according to you usr should give argument gpio_select_pin(8,21,output) for P8_21? 2015-04-23T07:18:49 beng-nl: 2015-04-23T07:20:48 beng-nl: because for bbb cape headers and pin no.s are used in most of the bbb community I think. 2015-04-23T07:32:15 *** antgreen has quit IRC (Ping timeout: 264 seconds) 2015-04-23T07:54:20 *** igutek has joined #rtems 2015-04-23T07:56:58 *** Hesham has joined #rtems 2015-04-23T07:57:25 [git] c0b0b3e by Sebastian Huber: [rtems-bsd-mutex: Update due to API changes] http://devel.rtems.org/changeset/c0b0b3e/rtems-libbsd 2015-04-23T07:57:25 [git] 67f8497 by Sebastian Huber: [SLEEPQUEUE(9): Update due to API changes] http://devel.rtems.org/changeset/67f8497/rtems-libbsd 2015-04-23T07:57:55 *** igutek has left #rtems 2015-04-23T07:58:06 *** igutek has joined #rtems 2015-04-23T08:09:41 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-23T08:29:14 *** ragunath has joined #rtems 2015-04-23T08:43:15 *** gedare has joined #rtems 2015-04-23T08:43:15 *** ChanServ sets mode: +o gedare 2015-04-23T08:48:20 [trac] #2332/defect (new) updated by systec-dk (Oh yes there is. It's just a little bit crazy to find the Visual Studio Express 2010 ...) http://devel.rtems.org/ticket/2332 2015-04-23T09:36:50 *** ketul has joined #rtems 2015-04-23T09:38:19 beng-nl: hi 2015-04-23T09:41:34 ketul: I checked the code. I like how you implemented USR# 2015-04-23T09:42:07 Hesham: :) 2015-04-23T09:47:04 *** zoso has quit IRC (Ping timeout: 255 seconds) 2015-04-23T09:50:39 *** Hesham has quit IRC (Ping timeout: 245 seconds) 2015-04-23T09:53:17 beng-nl: I rectified the error told you about gpio_clear() 2015-04-23T10:08:40 *** ragunath has quit IRC (Ping timeout: 246 seconds) 2015-04-23T10:09:58 gedare: hi want to ask is there any function available to write bit at particular address same as writeb() ? :) 2015-04-23T10:11:31 in bsp.h 2015-04-23T10:14:45 i think those functions are not standardized so you can't really rely on them in general 2015-04-23T10:15:00 as for writing a single bit, there's nothing I know of... 2015-04-23T10:15:28 because memory access is almost always byte-oriented, you have to read the byte there, then modify it, and then write the byte 2015-04-23T10:16:14 ketul: ^ 2015-04-23T10:16:53 gedare: can you suggest me then how can I write bit at particular adress? 2015-04-23T10:17:47 like for macro how would it look like :) 2015-04-23T10:18:55 because in my case gedare gpio_oe register is for output enable and if I want to configure pin as output then and then I should write there 2015-04-23T10:19:39 so gedare I think writing a byte is not fair. 2015-04-23T10:24:03 ketul: you always write a byte it doesn't matter how you code it 2015-04-23T10:24:18 ketul: normally the code will look something like.... 2015-04-23T10:24:33 r = read(x); 2015-04-23T10:24:48 r &= ~(ENABLE); // clear the bit 2015-04-23T10:24:55 write(x, r) 2015-04-23T10:25:19 gedare: ohkk 2015-04-23T10:25:22 to clear the bit ENABLE of a word at x 2015-04-23T10:25:36 where ENABLE will be a macro like 0x00100 2015-04-23T10:25:38 or whatever 2015-04-23T10:25:54 and to set that bit the code usually looks something like 2015-04-23T10:25:56 r = read(x) 2015-04-23T10:26:02 r |= ENABLE; 2015-04-23T10:26:06 write(x, r) 2015-04-23T10:26:57 ok. got it. gedare have you checked my recent gist? 2015-04-23T10:27:21 same kind of code used in gpio_set and gpio_clear 2015-04-23T10:27:30 gedare: https://gist.github.com/ketul93/d717555951174a74c8b4 2015-04-23T10:28:34 so gedare I was talking about (for bit write) gpio_select_pin() in gpio.c 2015-04-23T10:32:45 well i'm not familiar enough with the gpio layout to read this code at a glance 2015-04-23T10:33:35 ok :) 2015-04-23T10:34:34 what code did you refer to when writing your new gpio.h? 2015-04-23T10:35:06 yep as suggested by beng-nl andre's patch 2015-04-23T10:35:28 GPIO_PIN.gpio_bank_id would be better named as gpio_pin_number i think 2015-04-23T10:35:44 bank_id is confusing since it is not identifying a bank but rather a pin in a bank 2015-04-23T10:36:00 i mean, the definition of the structs and the macros for USRs? 2015-04-23T10:36:03 ok that I will change 2015-04-23T10:37:10 ok. basically, gpio_id can be equal to gpio_bank * bank_size + pin_number 2015-04-23T10:37:20 that's why the mult/div/mod by 8 all works 2015-04-23T10:37:41 8 bit stack 2015-04-23T10:37:55 if you do this right, you can have linear addressing of all the gpio pins 2015-04-23T10:38:16 maybe 2015-04-23T10:38:19 anyways 2015-04-23T10:38:27 gpio_id is just for unique no. for memory allocation 2015-04-23T10:38:36 why is gpio_bank_id%8? 2015-04-23T10:38:59 and div/8 2015-04-23T10:39:11 how many pins are in a bank? 2015-04-23T10:39:16 to select the particular pin. like form 8 bit stack I want to set only first 2015-04-23T10:39:39 div/8 is for selection of the stack form particular bank 2015-04-23T10:39:56 ok this would read a lot simpler if you refactor some of the math that is repetitve 2015-04-23T10:40:11 especially like a helper function that returns (pin.gpio_bank + pin.gpio_bank_id/8) 2015-04-23T10:40:24 4 banks each with 8 stacks 8 bit each 2015-04-23T10:40:25 since that has a very specific meaning and is repetitive code 2015-04-23T10:40:33 ok 2015-04-23T10:40:58 so should I define macro gedare for that right? 2015-04-23T10:41:30 if the stacks are in contiguous memory, you can use array notation to simplify this code further 2015-04-23T10:41:34 or a static inline function 2015-04-23T10:42:09 ya static inline fun is better way 2015-04-23T10:48:21 gedare: should I include RTEMS_CHECK_RV() in init.c ? 2015-04-23T10:50:47 no that macro probably should be avoided, but you should check status 2015-04-23T10:51:43 gedare: its not the macro 2015-04-23T10:51:50 like andre used 2015-04-23T10:51:51 https://github.com/asuol/RTEMS_rpi_testing/blob/master/GPIO/LIBGPIO_TEST/init.c 2015-04-23T10:52:14 for status only 2015-04-23T11:11:59 *** geheimnis` has joined #rtems 2015-04-23T11:12:35 *** ragunath has joined #rtems 2015-04-23T11:24:28 i think there is another function that is used in the test cases? It's not that important, use it or not :0 2015-04-23T11:25:58 ok gedare 2015-04-23T11:26:20 which function you thought ? 2015-04-23T11:29:22 directive_failed 2015-04-23T11:29:57 k. never used. 2015-04-23T11:31:26 ok this one directive_failed( status, "" ) 2015-04-23T11:32:21 yeah , the "" is a message to print i think 2015-04-23T11:32:45 yep 2015-04-23T11:39:39 *** stryx`_ has quit IRC (Remote host closed the connection) 2015-04-23T11:41:47 *** stryx` has joined #rtems 2015-04-23T11:55:38 *** Hesham has joined #rtems 2015-04-23T12:02:51 *** Hesham has quit IRC (Ping timeout: 264 seconds) 2015-04-23T12:09:10 *** ragunath has quit IRC (Quit: Page closed) 2015-04-23T12:21:54 *** linuxkernelhacke has joined #rtems 2015-04-23T12:24:25 *** gwty has joined #rtems 2015-04-23T12:48:30 [git] 2e9baac by Joel Sherrill: [lm3s3749-testsuite.tcfg: Add cdtest] http://devel.rtems.org/changeset/2e9baac/rtems 2015-04-23T12:48:30 [git] e38fdc2 by Joel Sherrill: [lpc1768_mbed_ahb_ram_eth-testsuite.tcfg: Add sptls02] http://devel.rtems.org/changeset/e38fdc2/rtems 2015-04-23T12:48:30 [git] 0c87234 by Joel Sherrill: [mcf5225x-testsuite.tcfg: Add iostream] http://devel.rtems.org/changeset/0c87234/rtems 2015-04-23T12:48:30 [git] f620ac7 by Joel Sherrill: [mrm332-testsuite.tcfg: Add iostream and sptls02] http://devel.rtems.org/changeset/f620ac7/rtems 2015-04-23T12:48:30 [git] 9a9614e by Joel Sherrill: [ods68302-testsuite.tcfg: Add iosteam] http://devel.rtems.org/changeset/9a9614e/rtems 2015-04-23T12:48:31 [git] ba885bd by Joel Sherrill: [mbx8xx/include/bsp.h: Add include of ] http://devel.rtems.org/changeset/ba885bd/rtems 2015-04-23T12:48:31 [git] 07d9954 by Joel Sherrill: [gensh1-testsuite.tcfg: Add iostream] http://devel.rtems.org/changeset/07d9954/rtems 2015-04-23T12:48:32 [git] d9ef7eb by Joel Sherrill: [gensh2-testsuite.tcfg: Add iostream] http://devel.rtems.org/changeset/d9ef7eb/rtems 2015-04-23T12:48:32 [git] 5a8cd17 by Joel Sherrill: [simsh*.tcfg: Add iostream] http://devel.rtems.org/changeset/5a8cd17/rtems 2015-04-23T12:48:33 [git] 694f155 by Joel Sherrill: [sp13/system.h: Account for all message buffers There may be a way to reduce the memory requirements but it will require time to ensure the math is right and it passes on all targets. At the current time, it fails on 22 BSPs which run on simulators.] http://devel.rtems.org/changeset/694f155/rtems 2015-04-23T12:52:47 *** Hesham has joined #rtems 2015-04-23T13:23:54 *** igutek has quit IRC (Read error: Connection reset by peer) 2015-04-23T13:37:41 ketul: get_pin_addr should not return uint32_t, it should return a type that is suitable for an address, such as: void*, char*, or uintptr_t 2015-04-23T13:39:01 ketul: arm_delay probably doesn't belong in gpio.c, and also it should take an integer argument not a floating point 2015-04-23T13:39:12 i think... 2015-04-23T13:41:12 ketul: you might consider a helper that gets the address of a "function", like get_function(pin, AM335X_GPIO_OE), get_function(pin, AM335X_GPIO_SETDATAOUT), etc. 2015-04-23T13:41:52 ketul: check that you have consistent white spaces, i see a few places where the indent level has some extra whitespaces seemingly randomly 2015-04-23T13:42:30 ok 2015-04-23T13:42:47 ketul: check to make sure you aren't using tabs for white space 2015-04-23T13:43:49 gedare: I am using sublime text for my coding . I think it is creating some probs of white spaces 2015-04-23T13:44:14 ketul: have you found all of the notes about andre's gpio code, especially the suggestions from pavel pisa? 2015-04-23T13:44:47 ketul: you'll just have to figure out how to `c`onfiureit 2015-04-23T13:44:53 ^configure it 2015-04-23T13:45:06 no I don't know about that gedare 2015-04-23T13:45:40 ketul: or better yet, use a free open source software editor, such as vim or emacs 2015-04-23T13:46:03 gedare: can you provide me the link of pavel's suggestions? 2015-04-23T13:46:23 gedare: that I will 2015-04-23T13:47:14 ketul: what is the point or motivation for the USR0-3? 2015-04-23T13:48:01 gedare: that is for demo purpose 2015-04-23T13:48:07 for sample coe 2015-04-23T13:48:10 code 2015-04-23T13:48:52 I think for common api defining macros is good option 2015-04-23T13:51:14 ketul: start https://lists.rtems.org/pipermail/devel/2014-October/008909.html and https://lists.rtems.org/pipermail/devel/2014-November/008976.html 2015-04-23T13:51:35 the conversation spanned two months so its in two different archives 2015-04-23T13:51:57 ok 2015-04-23T13:52:02 let me check it 2015-04-23T13:56:41 gedare: the link has only patch. right? 2015-04-23T14:01:34 gedare: you were talking about https://lists.rtems.org/pipermail/devel/2014-October/008911.html 2015-04-23T14:01:36 ? 2015-04-23T14:02:09 ok got 2015-04-23T14:03:31 ketul: follow the "thread" 2015-04-23T14:03:46 yup 2015-04-23T14:04:00 :) 2015-04-23T14:06:38 *** Hesham has quit IRC (Ping timeout: 245 seconds) 2015-04-23T14:09:55 gedare: about arm_delay() I am keeping argument floating because I have used rtems_clock_get_ticks_per_second() 2015-04-23T14:10:09 *float 2015-04-23T14:17:54 it is best to avoid floating point code unless absolutely needed 2015-04-23T14:18:29 if you want to have sub-second delays, pass in milli-, micro-, or nano-seconds instead 2015-04-23T14:18:55 i think there should be conversion for nanoseconds directly 2015-04-23T14:19:13 ya that I need to find out 2015-04-23T14:19:25 get_ticks_per_nanosecond maybe? 2015-04-23T14:19:51 but like for demo nano or micro is too small and need to give argument a big no. 2015-04-23T14:20:03 thats the reason used sec() 2015-04-23T14:21:22 well, fp arithmetic can be pretty slow, and using fp where its not necessary is wasteful 2015-04-23T14:22:06 * gedare adds a new rule to the coding conventions 2015-04-23T14:22:11 ya. that should be taken care 2015-04-23T14:23:04 [trac] Developer/Coding/Conventions edited by gedare (No floating point!) http://devel.rtems.org/wiki/Developer/Coding/Conventions 2015-04-23T14:26:30 gedare: you told me about get_function(p?in, AM335X_GPIO_OE) for fetching address of AM335X_GPIO_OE. Is it like that 2015-04-23T14:27:18 just an idea i had. 2015-04-23T14:27:48 but AM335X_GPIO_OE itself is a macro 2015-04-23T14:28:01 *** monstr has quit IRC (Ping timeout: 264 seconds) 2015-04-23T14:28:03 so I think no function needed . 2015-04-23T14:29:03 it's about code readability. there is repeated code that has the same pattern, which is good motivation to make a function for it 2015-04-23T14:29:22 pin + PIN_FUNCTION 2015-04-23T14:29:29 gives you an address 2015-04-23T14:29:50 ok 2015-04-23T14:30:54 Thanks gedare for your suggestions. Bye its 1 a.m. for me. Will try to address your comments and resubmit it probably tomorrow or the day after 2015-04-23T14:31:03 ok sure good night 2015-04-23T14:32:13 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-23T14:43:00 [trac] #2035/defect (closed) updated by Sebastian Huber (In [changeset:"f32935335a7f9b53c14133724753045ead988ca4/rtems"]: {{{ ...) http://devel.rtems.org/ticket/2035 2015-04-23T14:43:00 [git] f329353 by Sebastian Huber: [score: Fix POSIX thread join A thread join is twofold. There is one thread that exists and an arbitrary number of threads that wait for the thread exit (one-to-many relation). The exiting thread may want to wait for a thread that wants to join its exit (STATES_WAITING_FOR_JOIN_AT_EXIT in _POSIX_Thread_Exit()). On the other 2015-04-23T14:43:00 side we need a thread que...] http://devel.rtems.org/changeset/f329353/rtems 2015-04-23T15:13:09 *** hermann_19829 has joined #rtems 2015-04-23T16:00:31 *** gedare has quit IRC (Ping timeout: 244 seconds) 2015-04-23T16:04:38 *** gedare has joined #rtems 2015-04-23T16:04:38 *** ChanServ sets mode: +o gedare 2015-04-23T16:10:14 *** gedare has quit IRC (Ping timeout: 245 seconds) 2015-04-23T16:37:24 *** hermann_19829 has quit IRC (Remote host closed the connection) 2015-04-23T17:04:19 *** gedare has joined #rtems 2015-04-23T17:04:19 *** ChanServ sets mode: +o gedare 2015-04-23T17:55:01 *** gedare has quit IRC (Ping timeout: 264 seconds) 2015-04-23T18:25:41 [trac] #2334/defect (v:4.10) created by joel.sherrill (Actions in Makefile.maint need to be converted/updated to reflect git) http://devel.rtems.org/ticket/2334 2015-04-23T19:18:59 *** linuxkernelhacke has quit IRC (Read error: Connection reset by peer) 2015-04-23T19:19:57 *** linuxkernelhacke has joined #rtems 2015-04-23T19:24:31 *** kiwichris has joined #rtems 2015-04-23T19:26:03 *** gedare has joined #rtems 2015-04-23T19:26:03 *** ChanServ sets mode: +o gedare 2015-04-23T19:31:12 *** gedare has quit IRC (Ping timeout: 256 seconds) 2015-04-23T20:30:47 [trac] #2334/defect (new) updated by chrisj (We need to document the release procedure but I question capturing this in a ...) http://devel.rtems.org/ticket/2334 2015-04-23T21:25:01 *** gwty has quit IRC (Ping timeout: 255 seconds) 2015-04-23T21:38:21 *** gwty has joined #rtems 2015-04-23T22:27:35 *** gwty has quit IRC (Ping timeout: 256 seconds) 2015-04-24T00:09:00 *** gwty has joined #rtems 2015-04-24T00:28:48 *** monstr has joined #rtems 2015-04-24T01:40:13 *** gwty has quit IRC (Ping timeout: 244 seconds) 2015-04-24T01:42:26 [git] d83127e by Sebastian Huber: [posix: Use right thread dispatch disable function] http://devel.rtems.org/changeset/d83127e/rtems 2015-04-24T02:15:33 *** kiwichris has quit IRC () 2015-04-24T02:19:48 *** Hesham has joined #rtems 2015-04-24T04:44:19 *** zoso has joined #rtems 2015-04-24T04:54:13 *** ketul has joined #rtems 2015-04-24T04:55:15 beng-nl: hi 2015-04-24T05:40:04 *** Hesham has quit IRC (Ping timeout: 264 seconds) 2015-04-24T06:08:08 *** Hesham has joined #rtems 2015-04-24T06:25:58 *** Hesham has quit IRC (Quit: Leaving.) 2015-04-24T07:04:11 ketul: hi 2015-04-24T07:04:48 beng-nl: hi checked my last work? I tested and ran successfully 2015-04-24T07:13:18 *** zoso has quit IRC (Ping timeout: 256 seconds) 2015-04-24T07:14:27 beng-nl::) 2015-04-24T07:24:00 *** zoso has joined #rtems 2015-04-24T07:36:30 ketul: link? 2015-04-24T07:36:43 mailed you 2015-04-24T07:37:03 with cc to devel beng-nl 2015-04-24T07:39:38 i don't see it 2015-04-24T07:39:39 subject? 2015-04-24T07:40:20 let me forward it to you 2015-04-24T07:40:22 ok 2015-04-24T07:40:50 ketul: got it 2015-04-24T07:41:06 :) 2015-04-24T07:43:47 ketul: ok, give me a while 2015-04-24T07:44:50 beng-nl: sure . Please post your comments if possible. That would be better I think 2015-04-24T08:03:52 *** ragunath has joined #rtems 2015-04-24T08:08:10 *** ragunath has quit IRC (Ping timeout: 246 seconds) 2015-04-24T08:15:33 okay 2015-04-24T08:19:14 *** antgreen has joined #rtems 2015-04-24T08:57:14 *** gedare has joined #rtems 2015-04-24T08:57:14 *** ChanServ sets mode: +o gedare 2015-04-24T09:07:21 *** ragunath has joined #rtems 2015-04-24T09:15:30 [trac] #2334/defect (new) updated by gedare (I agree with capturing the steps in prose. Maintaining "rules" in a script and ...) http://devel.rtems.org/ticket/2334 2015-04-24T09:48:37 *** ragunath has quit IRC (Ping timeout: 246 seconds) 2015-04-24T09:57:06 *** zoso has quit IRC (Ping timeout: 276 seconds) 2015-04-24T10:00:33 beng-nl: :) 2015-04-24T10:00:53 *** Hesham has joined #rtems 2015-04-24T10:02:11 hi ketul 2015-04-24T10:03:20 hi beng-nl 2015-04-24T10:15:51 ketul: so you tested your code with real hardware? 2015-04-24T10:16:13 beng-nl: yup 2015-04-24T10:16:33 okay, a few different gpio banks too ? 2015-04-24T10:17:38 beng-nl: That I didn't. But tested gpio1 2015-04-24T10:18:07 beng-nl: and I uploaded .img file on my github for usr led demo 2015-04-24T10:18:19 and video too :) 2015-04-24T10:27:38 beng-nl: But I think all gpio banks will work if one works properly. I can test it with led. So should I ? For accessing all I need to configure pinmux too :) 2015-04-24T10:30:22 famous last words. 2015-04-24T10:32:22 gedare: hi. I think I worked on your comments of yesterday. Can you please review it. like white spaces, fn return type. etc. 2015-04-24T10:32:35 gedare: https://gist.github.com/ketul93/d717555951174a74c8b4 2015-04-24T10:45:50 yeah looks better. 2015-04-24T10:46:41 gedare: :) 2015-04-24T10:46:51 ketul: yeah i really think you should test each bank.. 2015-04-24T10:47:45 ok. That I will do. So should I test 1 pin toggling from each bank. right beng-nl? 2015-04-24T10:54:25 yeah. and check you're only turning on one pin or something.. so you know the bitwise logic is good.. 2015-04-24T11:17:12 beng-nl: any comments on code side? 2015-04-24T11:21:18 gedare: out of the current topic I would like to convey our final year project's channel. Would be happy if you look at it. http://goo.gl/KZcRW8 2015-04-24T11:22:34 ketul: the led demo is very nice :-) 2015-04-24T11:22:50 beng-nl: thanks. :) 2015-04-24T11:23:02 that indeed already shows the bit logic (for setting/clearing) is likely to be good, reat 2015-04-24T11:23:05 great 2015-04-24T11:24:45 yep. so yesterday I did some mistake with that in gpio_clear() used |= so instead of single led 3 leds cleared simultaneously. then changed it to &= :-) 2015-04-24T11:26:05 yeah i had a feeling that wasn't kosher :) 2015-04-24T11:27:12 i think the same problem is still in gpio_select_pin( 2015-04-24T11:27:14 i think the same problem is still in gpio_select_pin() 2015-04-24T11:27:23 yep . after referring TRM of am335x I got that. 2015-04-24T11:27:37 ya just about to ask that. 2015-04-24T11:28:14 beng-nl: what should be done for that according to you? 2015-04-24T11:29:28 gpio_oe requires 0 to be written and if I use writeb() the whole stack will be written with 0. 2015-04-24T11:29:40 ys 2015-04-24T11:29:41 yes 2015-04-24T11:29:46 a 0 is for output i take it? 2015-04-24T11:30:06 yep let me fetch the statements written in TRM 2015-04-24T11:31:03 The GPIO_OE register is used to enable the pins output capabilities. 2015-04-24T11:31:19 At reset, all the GPIO related pins 2015-04-24T11:31:19 are configured as input and output capabilities are disabled. This register is not used within the module, its 2015-04-24T11:31:19 only function is to carry the pads configuration. 2015-04-24T11:32:38 does GPIO_OE allow reading? 2015-04-24T11:32:56 to retrieve the current direction state 2015-04-24T11:33:07 yep R/W both 2015-04-24T11:33:46 beng-nl: If you want that please refer to http://phytec.com/wiki/images/7/72/AM335x_techincal_reference_manual.pdf 2015-04-24T11:33:50 page 4084 2015-04-24T11:34:01 ok, then do a readb(), then the value &=~get_pin_mask(pin), then writeb; i the values returned are sensible ofcourse 2015-04-24T11:34:04 ok let me check 2015-04-24T11:34:19 ya pls 2015-04-24T11:34:46 fwiw that same logic should already exist for writing data 2015-04-24T11:35:02 gedare: true, it does 2015-04-24T11:35:06 so you might like to refactor to generalize to writing to registers 2015-04-24T11:35:20 then you can use the same code for read, write, enable, and anything else that is reg-driven 2015-04-24T11:35:29 yeah 2015-04-24T11:35:33 my $0.02 2015-04-24T11:35:53 i abhor copy-paste in case that isn't coming through yet; 2015-04-24T11:36:14 especially of bit-math which is error prone 2015-04-24T11:36:42 ketul: it is specified that the register is RW so i GUESS the values written in there will be read back. that would be nice. you can check that by doing a read before & after the updating as the reset value is 0xffffffff 2015-04-24T11:36:53 so with any luck you can do a read, update, write 2015-04-24T11:37:04 gedare: hear hear (copypaste for the lose) 2015-04-24T11:37:35 (code duplication) 2015-04-24T11:37:38 (redundancy) 2015-04-24T11:37:39 yep as same I am doing in gpio_set and gpio_clear right beng-nl 2015-04-24T11:37:40 (repetition) 2015-04-24T11:37:45 ketul: yes 2015-04-24T11:37:55 (similarity) 2015-04-24T11:37:55 ok. 2015-04-24T11:42:21 *** mumptai has joined #rtems 2015-04-24T11:48:33 ketul: i wrote some comments about your code & the gpio api 2015-04-24T12:03:21 beng-nl: CPP magic (#define USR(_x)) can create the USR macros and initializers, but i'm not sure the value is there over your suggestion to wrap configuration into the interface. it might be better to pass the gpio_config through each interface call though, so the implementation is "stateless" 2015-04-24T12:05:26 anyways good email to summarize, and definitely need to get rid of that arm_delay stuff. any problem using udelay like the i2c.c in beagle? 2015-04-24T12:19:20 beng-nl: sorry for delay in reply. Thanks I will try to address most of them and resubmit it. 2015-04-24T12:20:35 gedare: and beng-nl arm_delay I found in andre's patch. So think I should also include 2015-04-24T12:31:25 *** ragunath has joined #rtems 2015-04-24T12:46:53 *** igutek has joined #rtems 2015-04-24T12:52:56 *** igutek has quit IRC (Quit: Leaving.) 2015-04-24T12:56:32 *** igutek has joined #rtems 2015-04-24T13:03:55 *** gedare is now known as gedare|RTEMS 2015-04-24T13:12:43 *** monstr has quit IRC (Ping timeout: 256 seconds) 2015-04-24T13:16:21 gedare|RTEMS: nice nick :) 2015-04-24T13:26:36 :) 2015-04-24T13:30:33 gedare|RTEMS: I assume u are attending gsoc de dup meeting 2015-04-24T13:38:51 yes 2015-04-24T13:41:14 do we have any duplicates? 2015-04-24T13:42:41 ragunath: no not anymore presently. could change during the meeting 2015-04-24T13:42:51 oh ok 2015-04-24T13:48:25 *** timothyh has left #rtems ("Textual IRC Client: www.textualapp.com") 2015-04-24T13:59:18 dedupe used to be really nasty because it was all dealt with during the meeting.. but now most of it gets done ahead of time through Melange 2015-04-24T14:09:39 *** gedare|RTEMS is now known as gedare 2015-04-24T14:11:59 gedare: meeting over? isn't it too short 2015-04-24T14:12:10 only 2 dups ..pretty fast 2015-04-24T14:13:38 most of the dupes were handled ahead of time by orgs 2015-04-24T14:14:07 i wonder whether number of slots has also decreased compared to last year\ 2015-04-24T14:17:01 i'd bet yes. 2015-04-24T14:21:39 gedare: lets see on monday.... this wait has been painful 2015-04-24T14:22:11 ragunath: really :) 2015-04-24T14:22:49 but exciting too... 2015-04-24T14:23:34 ketul: :) 2015-04-24T14:32:42 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-24T14:34:56 *** Hesham has quit IRC (Ping timeout: 272 seconds) 2015-04-24T14:56:31 *** ragunath has quit IRC (Quit: Page closed) 2015-04-24T16:05:24 *** gedare has quit IRC (Ping timeout: 256 seconds) 2015-04-24T16:07:31 *** mumptai has quit IRC (Remote host closed the connection) 2015-04-24T16:35:32 *** gedare has joined #rtems 2015-04-24T16:35:33 *** ChanServ sets mode: +o gedare 2015-04-24T16:42:38 *** gedare has quit IRC (Ping timeout: 252 seconds) 2015-04-24T18:14:42 *** kiwichris has joined #rtems 2015-04-24T19:06:13 *** gedare has joined #rtems 2015-04-24T19:06:13 *** ChanServ sets mode: +o gedare 2015-04-24T19:11:30 *** gedare has quit IRC (Ping timeout: 252 seconds) 2015-04-24T21:11:28 *** timothyh has joined #rtems 2015-04-24T21:35:24 *** kersny has quit IRC (Quit: quit!) 2015-04-24T21:45:13 *** dr__house|away is now known as dr__house 2015-04-24T23:41:35 *** dr__house is now known as dr__house|away 2015-04-25T00:29:58 *** mumptai has joined #rtems 2015-04-25T00:43:06 *** linuxkernelhacke has quit IRC (Read error: Connection reset by peer) 2015-04-25T01:17:06 *** peerst_ has joined #rtems 2015-04-25T01:18:43 *** sirfrank1in has joined #rtems 2015-04-25T01:20:23 *** peerst has quit IRC (Ping timeout: 252 seconds) 2015-04-25T01:20:24 *** diginet has quit IRC (Ping timeout: 252 seconds) 2015-04-25T01:20:28 *** sirfranklin has quit IRC (Ping timeout: 252 seconds) 2015-04-25T01:20:39 *** peerst_ is now known as peerst 2015-04-25T01:21:00 *** diginet_ has joined #rtems 2015-04-25T01:57:40 *** peerst_ has joined #rtems 2015-04-25T01:58:08 *** peerst has quit IRC (*.net *.split) 2015-04-25T01:58:12 *** kulp has quit IRC (*.net *.split) 2015-04-25T01:58:13 *** Schoumi has quit IRC (*.net *.split) 2015-04-25T01:58:58 *** peerst_ is now known as peerst 2015-04-25T02:00:40 *** Schoumi has joined #rtems 2015-04-25T02:03:04 *** kulp has joined #rtems 2015-04-25T03:47:01 *** Hesham has joined #rtems 2015-04-25T05:40:32 Building (Debian) packages from source code got 3000$ fund. https://www.bountysource.com/issues/9115540-build-debian-packages-from-source-code 2015-04-25T05:40:32 RSB FTW! 2015-04-25T06:30:54 hear hear 2015-04-25T06:53:33 Hi beng-nl 2015-04-25T07:35:10 *** ragunath has joined #rtems 2015-04-25T07:38:27 *** gwty has joined #rtems 2015-04-25T09:24:43 *** ragunath has quit IRC (Ping timeout: 246 seconds) 2015-04-25T09:39:07 *** gwty has quit IRC (Ping timeout: 244 seconds) 2015-04-25T09:39:28 *** zoso has joined #rtems 2015-04-25T10:34:58 *** diginet_ has quit IRC (Quit: diginet has quit!) 2015-04-25T10:36:27 *** diginet has joined #rtems 2015-04-25T10:37:08 hi all 2015-04-25T10:52:32 *** ragunath has joined #rtems 2015-04-25T11:17:57 *** antgreen` has joined #rtems 2015-04-25T11:18:35 *** geheimni2` has joined #rtems 2015-04-25T11:22:59 *** peerst has quit IRC (*.net *.split) 2015-04-25T11:23:00 *** antgreen has quit IRC (*.net *.split) 2015-04-25T11:23:01 *** geheimnis` has quit IRC (*.net *.split) 2015-04-25T11:24:25 *** ragunath has quit IRC (Ping timeout: 246 seconds) 2015-04-25T11:30:53 *** edsiper_ has joined #rtems 2015-04-25T11:33:51 *** edsiper has quit IRC (Ping timeout: 246 seconds) 2015-04-25T11:51:32 *** peerst has joined #rtems 2015-04-25T11:52:39 *** ragunath has joined #rtems 2015-04-25T12:42:32 *** gwty has joined #rtems 2015-04-25T12:51:50 *** ragunath has quit IRC (Quit: Page closed) 2015-04-25T13:45:48 *** arvind_k has joined #rtems 2015-04-25T13:46:06 *** zoso has quit IRC (Disconnected by services) 2015-04-25T13:46:12 *** arvind_k is now known as zoso 2015-04-25T13:53:10 *** Hesham has quit IRC (Ping timeout: 250 seconds) 2015-04-25T14:13:56 *** gwty has quit IRC (Remote host closed the connection) 2015-04-25T14:33:04 *** Hesham has joined #rtems 2015-04-25T15:42:44 *** zoso has quit IRC (Ping timeout: 245 seconds) 2015-04-25T16:50:01 *** Hesham has quit IRC (Ping timeout: 244 seconds) 2015-04-25T23:03:30 *** gwty has joined #rtems 2015-04-25T23:53:23 *** zoso has joined #rtems 2015-04-26T01:31:39 *** arvind_k has joined #rtems 2015-04-26T01:34:57 *** zoso has quit IRC (Ping timeout: 256 seconds) 2015-04-26T02:04:17 *** ketul has joined #rtems 2015-04-26T02:49:01 *** gwty has quit IRC (Ping timeout: 264 seconds) 2015-04-26T02:56:04 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-26T03:04:10 *** arvind_k is now known as zoso 2015-04-26T03:25:22 *** arvind_k has joined #rtems 2015-04-26T03:25:41 *** zoso has quit IRC (Disconnected by services) 2015-04-26T03:25:47 *** arvind_k is now known as zoso 2015-04-26T04:44:06 *** Hesham has joined #rtems 2015-04-26T05:06:29 *** zoso has quit IRC (Ping timeout: 245 seconds) 2015-04-26T05:51:20 *** zoso has joined #rtems 2015-04-26T05:55:51 *** gwty has joined #rtems 2015-04-26T06:02:42 *** gwty has quit IRC (Remote host closed the connection) 2015-04-26T06:23:01 [trac] TBR/User/BenGras created http://devel.rtems.org/wiki/TBR/User/BenGras 2015-04-26T06:27:03 i added a to-be-removed page, so sad :-) 2015-04-26T07:30:50 *** ketul has joined #rtems 2015-04-26T08:24:58 *** ragunath has joined #rtems 2015-04-26T08:26:24 *** hermann_19829 has joined #rtems 2015-04-26T08:30:31 lo 2015-04-26T08:30:53 hi 2015-04-26T08:41:34 *** ragunath has quit IRC (Ping timeout: 246 seconds) 2015-04-26T09:00:34 hi rtems-bot 2015-04-26T09:00:36 oops 2015-04-26T09:00:40 hi ragunath i meant.. 2015-04-26T09:52:28 hi beng-nl 2015-04-26T10:14:08 *** arvind_k has joined #rtems 2015-04-26T10:16:54 *** zoso has quit IRC (Ping timeout: 245 seconds) 2015-04-26T10:17:32 hi ketul 2015-04-26T10:42:53 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-26T10:43:01 ah, so tomorrow the accepted students are notified, very nice 2015-04-26T10:43:08 it's about time :-) 2015-04-26T10:43:20 *** ketul has joined #rtems 2015-04-26T11:00:40 *** arvind_k has quit IRC (Read error: Connection reset by peer) 2015-04-26T11:06:40 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-26T11:09:13 *** ketul has joined #rtems 2015-04-26T11:36:48 *** hermann_19829 has quit IRC (Remote host closed the connection) 2015-04-26T11:38:32 *** hermann_19829 has joined #rtems 2015-04-26T11:41:40 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-26T11:41:57 *** ketul has joined #rtems 2015-04-26T12:16:09 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-26T12:16:57 *** ketul has joined #rtems 2015-04-26T12:22:01 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-26T12:23:05 *** ketul has joined #rtems 2015-04-26T12:34:09 *** linuxkernelhacke has joined #rtems 2015-04-26T12:34:26 *** ragunath has joined #rtems 2015-04-26T12:35:51 *** Hesham has quit IRC (Ping timeout: 276 seconds) 2015-04-26T12:44:29 *** gwty has joined #rtems 2015-04-26T12:44:57 [trac] #2329/defect (closed) updated by Hesham ALMatary (In [changeset:"3dead51eddcdb734b36c949cbc1e4c2cd21c52d4/rtems"]: {{{ ...) http://devel.rtems.org/ticket/2329 2015-04-26T12:44:58 [git] ac7d5ef by Joel Sherrill: [Initial revision] http://devel.rtems.org/changeset/ac7d5ef/rtems 2015-04-26T12:44:58 [git] bf61e45 by Joel Sherrill: [Forcing RCS revision to 1.2 I hope] http://devel.rtems.org/changeset/bf61e45/rtems 2015-04-26T12:44:58 [git] 88d594a by Joel Sherrill: [Fully tested on all in-house targets] http://devel.rtems.org/changeset/88d594a/rtems 2015-04-26T12:44:58 [git] 5b9d6dd by Joel Sherrill: [test force of revision] http://devel.rtems.org/changeset/5b9d6dd/rtems 2015-04-26T12:44:58 [git] 152e31a by Joel Sherrill: [TEST] http://devel.rtems.org/changeset/152e31a/rtems 2015-04-26T12:44:58 *** rtems-bot has quit IRC (Excess Flood) 2015-04-26T12:45:20 *** rtems-bot has joined #rtems 2015-04-26T12:47:32 *** ragunath has quit IRC (Quit: Page closed) 2015-04-26T12:48:16 *** gigetoo has quit IRC (Ping timeout: 240 seconds) 2015-04-26T12:54:08 *** gigetoo has joined #rtems 2015-04-26T13:05:45 *** linuxkernelhacke has quit IRC (Ping timeout: 276 seconds) 2015-04-26T13:08:16 *** linuxkernelhacke has joined #rtems 2015-04-26T13:10:39 *** linuxkernelhacke has joined #rtems 2015-04-26T13:37:22 beng-nl: sorry for delay in reply. I was out. 2015-04-26T13:37:28 thanks for mails 2015-04-26T13:37:45 I will work it on and get back to you 2015-04-26T13:40:09 *** Hesham has joined #rtems 2015-04-26T13:50:23 beng-nl: really you motivated a lot. 2015-04-26T14:20:25 ketul: sounds good! 2015-04-26T14:20:32 great even 2015-04-26T14:21:04 ketul: don't forget my suggestion hasn't been widely approved.. 2015-04-26T14:21:09 ketul: so we should wait a little for that 2015-04-26T14:21:15 ketul: before you work on it i mean 2015-04-26T14:21:25 ketul: but i'm happy to hear you're willing to. it seems like the best way forward to me. 2015-04-26T14:21:33 beng-nl: sure. 2015-04-26T14:23:09 beng-nl: tomorrow I will test code on every gpio bank with the help of leds. Will make video and mail it to you. 2015-04-26T14:26:07 beng-nl: bye. its 1 a.m. for me 2015-04-26T14:30:56 ketul: that sounds very good! 2015-04-26T14:30:59 ketul: goodnight! 2015-04-26T14:31:08 beng-nl: ty. 2015-04-26T14:31:10 :) 2015-04-26T14:31:12 :) 2015-04-26T14:32:13 *** ketul has quit IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) 2015-04-26T14:40:21 *** Hesham has quit IRC (Ping timeout: 256 seconds) 2015-04-26T14:51:56 *** gwty has quit IRC (Remote host closed the connection) 2015-04-26T14:56:14 [trac] #2329/defect (closed) updated by Hesham ALMatary (In [changeset:"3dead51eddcdb734b36c949cbc1e4c2cd21c52d4/rtems"]: {{{ ...) http://devel.rtems.org/ticket/2329 2015-04-26T14:56:14 [git] 3dead51 by Hesham ALMatary: [Fix or1k C++ build failure Closes #2329] http://devel.rtems.org/changeset/3dead51/rtems 2015-04-26T16:39:10 *** mumptai has quit IRC (Quit: Verlassend) 2015-04-26T17:18:43 [trac] SOCIS/2015 edited by hermann19829 (empty comment) http://devel.rtems.org/wiki/SOCIS/2015 2015-04-26T17:18:59 *** kiwichris has quit IRC (Ping timeout: 245 seconds) 2015-04-26T17:26:05 *** edsiper_ is now known as edsiper 2015-04-26T17:40:13 *** kiwichris has joined #rtems 2015-04-26T17:44:49 *** hermann_19829 has quit IRC (Remote host closed the connection) 2015-04-26T19:56:07 *** dr__house|away is now known as dr__house 2015-04-26T20:00:03 *** mkhoory has quit IRC (Read error: Connection reset by peer) 2015-04-26T20:00:27 *** mkhoory has joined #rtems 2015-04-26T23:44:37 *** dr__house is now known as dr__house|away 2015-04-26T23:56:52 *** monstr has joined #rtems