**** BEGIN LOGGING AT Fri Aug 26 02:59:59 2016 Aug 26 06:52:08 anyone active? Aug 26 06:52:29 I've a code which works for the previous version of remoteproc.. Aug 26 06:52:40 I need to port to the latest version of pru_rproc Aug 26 06:52:47 I've some errors... can anyone help me out? Aug 26 06:53:04 especially in configuring pru_cfg register Aug 26 07:18:53 what's the error? Aug 26 07:19:20 kiran4399 still here? Aug 26 07:20:20 yeah.. Aug 26 07:21:21 Wormo: I commented out anyway.. Aug 26 07:21:31 Wormo: but. Aug 26 07:21:36 do you think this is necessary? Aug 26 07:21:37 https://github.com/linux-creatures/beagle-addon/blob/master/hc-sr04.c#L61 Aug 26 07:21:54 because the error says this is not there Aug 26 07:39:13 looking Aug 26 07:41:51 try this https://github.com/ZeekHuge/BeagleScope/blob/port_to_4.4.12-ti-r31%2B/examples/firmware_exmples/pru1_to_pru0_to_arm/main_pru0.c#L62 Aug 26 13:58:41 ZeekHuge_: there? Aug 26 13:59:35 ZeekHuge_: I am using hcsr04 ultrasonic sensors to interface to pru.. Aug 26 13:59:42 ZeekHuge_: Aug 26 14:01:07 so... when I cat /dev/rpmesg_pru31... I need to get a stream of data by calling a function repeatedly.. Aug 26 14:01:15 ZeekHuge_: https://github.com/linux-creatures/beagle-addon/blob/master/main1.c#L236 Aug 26 14:01:31 ZeekHuge_: but I am getting lot of garbage..... any suggestions? Aug 26 14:02:42 kiran4399: Hey ! on your source , let me see . Aug 26 14:13:26 kiran4399: you sure of the GPIO1_BASE value ? Aug 26 14:13:38 ZeekHuge: yeah.. Aug 26 14:13:40 why Aug 26 14:13:52 ZeekHuge: it worked.. Aug 26 14:14:03 what all pins are you using ? in format like P9_24 Aug 26 14:14:05 but it was like... it prints the first value and waits. Aug 26 14:14:48 ZeekHuge: P8.12, P8.11 Aug 26 14:17:04 kiran4399: sorry, maybe I am missing something, but this doc shows some addresses and that is what the pin is associated to, isnt it ? - https://github.com/ZeekHuge/BeagleScope/blob/port_to_4.4.12-ti-r31%2B/docs/BeagleboneBlackP8HeaderTable.pdf Aug 26 14:17:29 all its offset are with respect to 44e10800 Aug 26 14:17:36 0x44e10800 Aug 26 14:22:26 kiran4399: am i missing something ? Aug 26 14:23:03 ZeekHuge: wierd.. but it worked... :-P Aug 26 14:25:52 ZeekHuge: I'll come back to that later.. but can you tell me what I can do to print the data continuously? Aug 26 14:26:22 continuously as in ? Aug 26 14:27:30 you mean, you just echo a > /dev/rpmsg30 and it keeps on echoing back aaaaaaaa.... like that ? Aug 26 14:27:43 kiran4399: ^ Aug 26 14:28:41 btw, your code should already do that. Aug 26 14:29:00 right Aug 26 14:29:01 ZeekHuge: yeah.. Aug 26 14:29:47 ZeekHuge: even if the while loop is there? Aug 26 14:30:32 kiran4399: didnt got that last question. Aug 26 14:31:12 but the while loop on line 234 will get executed when there is a message from userspace, that is echo a >/dev/rpmsg30 Aug 26 14:31:48 once it enter loop on line 234, it will also enter into the infinite loop 236 Aug 26 14:31:50 ZeekHuge: but I should not do that every time.... once I echo something to /dev/rpmsg... it should continously output the data.. Aug 26 14:32:10 everytime I should not do echo a /dev/rpmsg Aug 26 14:32:20 you dont need to .. Aug 26 14:32:22 you see . Aug 26 14:32:30 https://github.com/linux-creatures/beagle-addon/blob/master/main1.c#L242 Aug 26 14:32:35 this line ^ Aug 26 14:32:41 send the data out to the kernel Aug 26 14:32:50 and this is inside an infinite loop Aug 26 14:33:42 ZeekHuge: ok.. Aug 26 14:34:12 if, you are not getting data out continuously, there should be some other problem. Maybe the pru is getting caught in some infinite loop somewhere else .. Aug 26 14:34:13 ZeekHuge: another thing.. you seriously think that my gpio base is wrong? Aug 26 14:35:13 well, even before the GSoC, i tried to use GPIOs, but couldnt because of universal cape and all that. So I just left it there and never tried it again. Aug 26 14:35:20 So, not sure, but .. Aug 26 14:35:46 the gpio sysfs entries too have the address exactly equal to that sheet Aug 26 14:35:54 so, yes, I think so. Aug 26 14:36:42 I somewhere read that a global address of a peripheral is same for the PRU too. and it makes sense too. So .. the address should be according to that sheet Aug 26 14:36:54 why not look into the universal cape source ? Aug 26 14:36:58 wait a minute .. Aug 26 14:40:50 kiran4399: https://github.com/beagleboard/linux/blob/4.1/arch/arm/boot/dts/am33xx.dtsi#L231 Aug 26 14:40:54 you are right Aug 26 14:43:12 kiran4399: and universal cape is using this declaration for p8 pins - https://github.com/cdsteinkuehler/beaglebone-universal-io/blob/master/cape-univ-emmc-00A0.dts#L307 Aug 26 14:43:25 so , yes your code is right. Aug 26 14:43:44 but its weird then, what do those addresses on the doc show ? Aug 26 14:45:25 kiran4399: beagleboard blue is a board right ? or it is a cape ? Aug 26 14:45:56 *beaglebone Aug 26 14:46:06 ZeekHuge: its a board.. but this code is for beaglebone black Aug 26 14:46:50 someone on #beagle was asking that question . Mind to ans ? or should I ? wont be able to ans cross questions then. Aug 26 14:48:06 sure why not.. please answer it Aug 26 14:49:24 nah . he is gone. Aug 26 14:49:27 anyway. Aug 26 16:18:04 hey bradfa m_w ! Aug 26 16:18:24 Any idea whether kinect can be interfaced with BBB? Aug 26 16:18:38 I have a few projects in mind... Aug 26 16:19:38 mdp, ds2, ZeekHuge ^^ Aug 26 16:21:11 chanakya_vc: never ever tried/seen/used kinect. Sorry. Aug 26 16:21:40 Np ZeekHuge ! Aug 26 16:21:43 but if kinect can be used with a linux computer, it most probably can be used with bbb. Aug 26 16:22:05 I am not sure whether the SDK can be used with ARM Aug 26 16:22:49 is it something like virtualization ? Aug 26 16:23:14 or just simple stream of data through an port like USB ? Aug 26 16:23:18 I mean the SDK Aug 26 16:24:11 if its just simple sdk, it should be platform independent I think. Aug 26 16:24:25 and just depend on the OS Aug 26 16:24:38 chanakya_vc: ^ Aug 26 16:24:55 I think it uses a simple stream of data. I am not sure. I have also not used it before Aug 26 16:25:05 the BBB processor may not be fast enough to handle the data Aug 26 16:25:17 http://denizbeker.blogspot.com/2013/08/pandaboard-es-openni-kinect-ubuntu.html Aug 26 16:25:34 m_w, https://www.youtube.com/watch?v=-ix_eAK4lDo Aug 26 16:25:52 I think they did the processing on their laptops... Aug 26 16:26:24 there been things done with Beagles and Kinects Aug 26 16:27:27 ds2, I want to interface them. I mean kinect + Beaglebone seems to give endless possibilities Aug 26 16:28:04 especially due to depth perception.. Aug 26 16:28:23 chanakya_vc: heard about project tango ? Aug 26 16:28:45 Ah no ZeekHuge ...What's that about? Aug 26 16:29:47 ds2, I could use two different cameras to get depth. But then that will be a very tough exercise on its own. Aug 26 16:30:21 just a collection of cool computer Vision research and techniques into mobile devices to be used by developers. I think the developer versions are already out. Aug 26 16:30:29 chanakya_vc: which kinectare you using? Aug 26 16:31:37 chanakya_vc: you must already have googled it, but if not heres a direct link - https://get.google.com/tango/ Aug 26 16:32:00 Ah ds2, I have not really used it ever. I just came to know about it today. Playing xbox Aug 26 16:32:19 Yeah I saw it ZeekHuge . Google does cool things!! : ) Aug 26 16:32:30 chanakya_vc: so you are using a Microsoft branded one? Aug 26 16:32:33 well, therefore it is google. Aug 26 16:32:38 Yes ds2 Aug 26 16:32:40 or plan to at least? Aug 26 16:32:49 I have access to one in my lab Aug 26 16:32:53 that might just work Aug 26 16:33:05 I have an asus branded one that doesn't like working with Linux at all :( Aug 26 16:33:15 Ohhh Aug 26 16:33:25 chanakya_vc: there was a Beagle demo at a Makerfaire before using the Kinect Aug 26 16:33:35 don't recall if it was a BBC/BBX or a Bone Aug 26 16:34:08 i wish the current beagles had a USB3...then the Realsense would be an option Aug 26 16:34:51 ds2, Do you think the BBB processor can handle that kind of processing? Aug 26 16:35:44 I have found working with Opencv to be a bit difficult , at least on BBB Aug 26 16:36:43 Any idea what is Open NI? Aug 26 16:40:50 chanakya_vc: there isn't much processing on the processor side. most of it is magic in the kinect Aug 26 16:41:07 it is the data transfer rates that will be taxing things Aug 26 16:41:31 chanakya_vc: OpenCV seems to be more trouble then it is worth Aug 26 16:41:41 there are other image processing libraries around **** ENDING LOGGING AT Sat Aug 27 02:59:58 2016