**** BEGIN LOGGING AT Wed Mar 14 03:00:01 2018 Mar 14 08:14:08 Hello Mar 14 08:25:18 No one is here? Mar 14 08:29:05 helo Mar 14 09:00:27 Nbeagle: There probably is, but people are not often inclined to respond to hellos :-) If you have a question, best just ask it without finding someone to answer it first :-) Mar 14 09:00:37 Nbeagle: Even so: Welcome! Mar 14 10:44:05 Hi all, I was having trouble with enabling uart10 in uboot for x15, has anyone tried enabling it ? any pointers that would help would be appreciated Mar 14 11:26:26 it still weirds me out that the am572x has such a crazy number of uarts Mar 14 11:30:54 prabhakarlad: you're more likely to get help if you explain what you've tried and what problems you've encountered Mar 14 11:32:19 then your question wouldn't be limited to people who have tried enabling uart10 in u-boot (which is probably not many people) Mar 14 11:58:58 zmatt: I have maged to get the second stage u-boot.img working on uart10, but doesn work for first stage MLO Mar 14 12:01:48 zmatt: following are my changes https://pastebin.com/LHEAQc5x Mar 14 13:41:35 zmatt: fyi managed to get it on uart 10 now :) Mar 14 14:12:56 zmatt: hey, my pru is behaving really weird Mar 14 14:13:10 it was working fine for generating the pwem a few days ago Mar 14 14:13:34 now although it has the correct data value stored in its dram, its not giving any outputs on the servo pins Mar 14 14:13:43 i checked show-pins, and they are configured as pru 1 out Mar 14 14:14:05 the other pru being used for decoding a ppm signal is workin gperfectly fine Mar 14 14:14:08 working perfetly* Mar 14 14:14:23 also, the pwm pru blinks an led and stuff as usual Mar 14 14:14:32 but it is not generating a pwm output Mar 14 14:15:33 any idea why this is happening Mar 14 14:23:49 config-pin: how likely do you think it is that I could possibly give an answer on that based on the information you just gave? Mar 14 14:24:12 (which basically boils down to "my program doesn't work. some other program does work, but my program doesn't. what's wrong with it?" Mar 14 14:24:15 ) Mar 14 14:24:25 zmatt: You mean you are not psychic? Then how do you know all this other stuff!? :-p Mar 14 14:25:45 :P Mar 14 14:27:29 I recently also saw a funny video about asking questions... https://www.youtube.com/watch?v=53zkBvL4ZB4 Mar 14 14:42:41 you cannot ask on the beaglebone forum if you do not use google log in? Mar 14 14:50:19 I think you can? Mar 14 14:51:55 zmatt: nvm sorry, was loading the wrong file -_- Mar 14 14:52:20 how? If I select ask question, a google sign in window dispalys. Mar 14 14:53:26 flj: I'm not sure, but I think it should act like a normal mailing list too. when I quickly google for it I found several suggestions on how to subscribe without a google signin but I'm not sure if they're still valid Mar 14 14:55:06 zmatt: just a gen c question here, if i had say a while loop in a code, and i had a function in that whiel loop that i wanted to call at a fixed frequency Mar 14 14:55:12 which library shoudl i use?? Mar 14 14:55:18 or what hsould i google? Mar 14 14:55:21 should* Mar 14 14:56:20 config-pin: while loop and fixed rate don't properly align Mar 14 14:56:41 LetoThe2nd: wht do you mean? Mar 14 14:57:32 while loop is idiomatic for: eat up all cpu and spin as fast as possible. fixed rate on the other hand asks for a timer that triggers. Mar 14 14:59:28 so if i had to have a function being called at a fixed frequency what would i do? Mar 14 14:59:58 config-pin: are you talking about linux userland, or what? Mar 14 15:00:33 LetoThe2nd: yes Mar 14 15:00:49 what email address does the beaglebone black email list have? Mar 14 15:01:21 LetoThe2nd: wait userland linux refers to all the linux c libraries right?? Mar 14 15:07:21 config-pin: you mean you want a periodic timer Mar 14 15:07:33 zmatt: yes Mar 14 15:08:18 you can use one of many libraries that provide them (e.g. sd-event) Mar 14 15:08:43 or if your needs are very basic and you only need one timer you could create a timerfd and block on that Mar 14 15:09:34 i personally like boost::asio Mar 14 15:09:38 *duckandrun* Mar 14 15:09:44 right so the thing is, i dont know any of this, so what should I google lol? Mar 14 15:09:48 * zmatt runs after LetoThe2nd with an elephant gun Mar 14 15:10:02 * LetoThe2nd stomps on zmatt Mar 14 15:10:13 config-pin: #include Mar 14 15:10:15 woops Mar 14 15:10:21 sorry, paste in wrong window Mar 14 15:10:44 config-pin: um. i'd suggest, look for a shopping link to k&r. after that, for kerrisks api book. :) Mar 14 15:11:14 the linux programming book? Mar 14 15:11:33 afaik michael kerrisk only wrote one book. Mar 14 15:11:40 config-pin: if you want to use a versatile event loop, sd-daemon is a decent choice Mar 14 15:11:51 sd-event sorry Mar 14 15:11:53 man sd-event Mar 14 15:12:08 see also /usr/include/systemd/sd-event.h Mar 14 15:12:20 he said systemd! Mar 14 15:12:30 * LetoThe2nd runs after zmatt with an elephant gun Mar 14 15:12:31 zmatt: cool ill check it out Mar 14 15:12:34 if you prefer html versions of manpages: https://www.freedesktop.org/software/systemd/man/sd-event.html Mar 14 15:12:50 if you're a systemd hater or need portability to non-linux systems, there are plenty of alternatives Mar 14 15:18:13 zmatt: umm noob q, but qhat about stuff like or Mar 14 15:18:17 http://man7.org/linux/man-pages/man2/timer_create.2.html Mar 14 15:18:39 you don't want timer_create, those are a big headache Mar 14 15:19:42 if you don't want to use any event loop library (i.e. if you only need this single timer and don't need to receive any other events of any sort) then use a timerfd: https://pastebin.com/KauR5djq Mar 14 15:22:09 and are calls to ok cool Mar 14 15:22:09 thanks Mar 14 15:36:42 Hey there Mar 14 15:37:07 hi! Mar 14 15:37:19 Can i develop a startup idea while working with you Mar 14 15:37:30 ? Mar 14 15:38:27 Kindly acknowledge my query Mar 14 15:41:41 oO( ACK? ) Mar 14 15:42:18 RST Mar 14 15:42:23 FIN Mar 14 15:44:07 anyone knows a good guide to compile Linux kernel for the BeagleBone Blue? Mar 14 15:44:28 RCNs wiki should explain that well Mar 14 15:44:40 you might need to adjust the DTS Mar 14 15:45:26 The official repo doesn't work? Mar 14 15:45:33 https://github.com/beagleboard/linux Mar 14 15:46:07 I tried to compile with make bb.org_defconfig Mar 14 15:46:27 there is a boneblue.dts file Mar 14 15:46:46 "doesn't work" Mar 14 15:47:13 tbr: "it sits on the couch all day and watches tv." Mar 14 15:47:32 ARCH=arm? Mar 14 15:47:47 which branch? which compiler? Mar 14 15:47:48 I use buildroot to compile actually Mar 14 15:47:56 on 4.4 branch Mar 14 15:49:37 4.4, 4.9 and 4.14 are all good. Mar 14 15:49:51 https://i.imgur.com/5PjGeYL.png Mar 14 15:50:12 https://i.imgur.com/Pi0nMGb.png Mar 14 15:50:17 here is my buildroot config Mar 14 15:50:40 I have no idea about de partitions Mar 14 15:51:25 I'm not sure about the bb.org_defconfig Mar 14 15:51:37 or the image format (vmlinux?) Mar 14 15:52:49 are patches needed? Mar 14 15:54:06 look for a buildroot support channel? Mar 14 15:54:19 #buildroot Mar 14 15:54:50 this isn't buildroot related Mar 14 15:55:11 I did https://github.com/jadonk/buildroot/tree/add-pocketbeagle recently Mar 14 15:55:14 fully beaglebone blue dependant Mar 14 15:55:33 would boot on Blue equally. Mar 14 15:56:49 what's different from the official buildroot repository? Mar 14 15:57:21 I already tried the beaglebone_defconfig board file from buildroot without success Mar 14 15:57:28 but I base my new board config on it Mar 14 16:03:41 https://github.com/cyrilfr/buildroot/tree/master/board/beagleboneblue Mar 14 16:04:06 https://github.com/cyrilfr/buildroot/blob/master/configs/beagleboneblue_defconfig Mar 14 16:09:14 this sd card image boots : Mar 14 16:09:15 https://eewiki.net/display/linuxonarm/BeagleBone+Blue Mar 14 16:09:37 but this is totally different from what you have on your buildroot Mar 14 16:10:13 it doesn't use the official linux kernel by the way Mar 14 17:03:04 Hello zmatt Mar 14 17:03:15 I have my BeagleBone Black now. Mar 14 17:03:20 Are you around? Mar 14 17:07:15 I have my uEnv.txt Mar 14 17:07:36 unmodified pasted here. https://pastebin.com/LSqRL18R Mar 14 17:07:58 This is a new board. No SW update or nothing. Just as is. Mar 14 17:08:18 step 1: reflash it with a recent image Mar 14 17:08:22 this is something really ancient Mar 14 17:08:25 root@beaglebone:/boot# uname -a Linux beaglebone 4.1.15-ti-rt-r43 #1 SMP PREEMPT RT Thu Jan 21 20:13:58 UTC 2016 armv7l GNU/Linux Mar 14 17:08:37 exactly, more than 2 years old Mar 14 17:09:24 OK. the one I used earlier is OK right? bone-debian-9.3-iot-armhf-2018-03-05-4gb.img Mar 14 17:09:50 yes, that's fine Mar 14 17:10:07 I will be gone for 30 mins or something because of this new SW update. Mar 14 17:10:18 is it that slow? damn Mar 14 17:10:31 slow sd card? Mar 14 17:10:43 Well, the sites say about 30-45 mins. Mar 14 17:10:54 65MBps Strontium Mar 14 17:11:03 SD card is prepared. Mar 14 17:11:10 I'm only occasionally around btw. but in general don't ask if someone is around, just ask your question (other people may be able to help) Mar 14 17:11:38 I don't think it takes that long, but maybe I'm wrong Mar 14 17:11:40 I try my last known good source first :-) Mar 14 17:12:09 I'm not your personal assistant Mar 14 17:12:28 Now, I just uncomment the line #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh Mar 14 17:12:39 I know. I am sorry, I did not mean to offend you. Mar 14 17:13:38 I regard you as a person who knows things about BBB. I seek you help and advice. Mar 14 17:16:41 I just meant: it's kinda pointless to ask if I'm around or not. just ask your question Mar 14 17:17:04 if you don't, there's nothing for me to help you with. if you do, then maybe I'll see it or maybe someone else can help you Mar 14 17:19:13 I agree. Mar 14 17:19:20 I will do so. Mar 14 17:29:23 debian@beaglebone:~$ uname -a Linux beaglebone 4.9.82-ti-r102 #1 SMP PREEMPT Thu Feb 22 01:16:12 UTC 2018 armv7l GNU/Linux d Mar 14 17:30:00 So, I am no a new kernel. Mar 14 17:33:03 Uncommenting this line #disable_uboot_overlay_video=1 in /boot/uEnv.txt Mar 14 17:33:50 hey there! Mar 14 17:34:17 is it somehow possible to dump a series of "download" packages at once? Mar 14 17:34:21 :D Mar 14 17:34:41 around 2000 packages, would take a while to do that by hand xD Mar 14 17:35:47 it is an .tdc capture - using data center Mar 14 17:37:49 sudo config-pin p9.11 uart Mar 14 17:37:57 sudo config-pin p9.13 uart Mar 14 17:41:57 are you talking to me Ravi_ ? The problem is, it is already captured and i cannot do it again Mar 14 17:42:44 i am searching for something like a script which does "search for next download block" -> "export" Mar 14 17:42:58 No @ flo_od Mar 14 17:43:06 I am am seeking help here myself. Mar 14 17:43:25 I am trying to get all the 4 UARTs to function as UARTs. Mar 14 17:43:41 flo_od_: What kind of download packages are you talking about exactly? Mar 14 17:44:22 it's an firmware updated :) Mar 14 17:44:39 i want to extract the firmware since i am developing a driver Mar 14 17:44:57 and I would like to dig a bit deeper to find undocumented functions Mar 14 17:45:40 https://i.imgur.com/UCpuwId.png Mar 14 17:48:02 flo_od_: why are you asking about some random usb capture program here? and more importantly, why did you think anyone would be able to guess from your question that that was what it was about? Mar 14 17:50:07 zmatt: I don't own an beagle board, but the capture is made with one - therefore i googled and found that "data center" seems to be the tool which creates those "tdc" files Mar 14 17:50:34 i thought that it is the "default" application Mar 14 17:50:41 isn't it? Mar 14 17:52:49 lol wait, beagleboard != beagle xD Mar 14 17:53:19 sorry, i was talking about the beagle analyzer Mar 14 17:53:37 lol Mar 14 17:53:44 okay now it makes sense Mar 14 17:53:45 ^^ Mar 14 17:53:48 damn it Mar 14 17:53:55 yeah, no, sorry, wrong beagle :) Mar 14 17:53:58 thank you anyway! :D Mar 14 17:54:03 :-) Mar 14 17:54:17 I didn't actually think of that, even though we have a beagle usb analyzer too Mar 14 17:56:08 okay, i will search for expertise somewhere else then ;D bye! Mar 14 17:59:46 in case anyone happens to want an example of a periodic timer using sd-event, here: https://pastebin.com/Y8UCF8pn (originally made it for someone who already left, so I'll just leave it for the irc logs I guess) Mar 14 18:17:30 @zmatt - the changes and the procedure you gave worked. I am now able to do a loop back on UART4. (P9.11 and P9.13) Mar 14 18:18:13 Is there a way to make the config-pin "permanent" until changed again? Mar 14 18:18:46 https://pastebin.com/83PQczfp Mar 14 18:21:15 Internet says, edit your bashrc file. Mar 14 18:22:07 any other methods? Mar 14 18:27:39 I edited the .bashrc and it worked fine for UART4. I will do the same for the other UARTs. Mar 14 18:27:51 and report back. Mar 14 18:29:31 uhh .bashrc makes no sense Mar 14 18:29:36 you'll want to put it in /etc/rc.local Mar 14 18:51:08 I checked out all the 4 UARTs I want to use - UART1, UART2, UART4 and UART5 Mar 14 18:51:41 They all work now. Thanks for all the help. Mar 14 18:51:53 I will now move the changes to rc.local. Mar 14 18:56:54 There is no rc.local in my BBB Mar 14 19:06:05 Ok, created this file, changed the permissions and reboot. It works like I want it to. Mar 14 19:08:28 Signing off! Bye for now. Thanks for all the help zmatt. Mar 14 19:09:45 ls Mar 14 19:09:48 oops. Mar 14 19:09:52 Hello! Mar 14 19:50:49 2nd C++ program situated on Eclipse. Boo! Mar 14 19:50:54 But...heh? I got it. Mar 14 19:51:18 That damn software gives me bad feelings. I am going to keep using it. Mar 14 19:51:27 ... Mar 14 19:51:31 42 was the answer. Mar 14 19:51:40 ... Mar 14 19:52:06 Anyway...I 3D Printed a shaft holder for my BBG/Motor Bridge Cape mini mower. Mar 14 19:52:34 <<<< getting closer to idea formulation every, single day. Mar 14 21:22:23 Hi. Somehow my PRU code does not change any values in the shared ram. What could be the problem? https://hastebin.com/mojawusori.cpp Mar 14 21:25:12 here is shared_ram.h: https://hastebin.com/nemepagiri.cpp Mar 14 21:26:10 I don't see anything obvious wrong with it Mar 14 21:26:21 hm Mar 14 21:26:30 you're sure your code successfully runs at all? Mar 14 21:27:02 can you confirm the pc is at your infinite while-loop ? Mar 14 21:27:04 It compiles fine in ccs so I thought it would be correct. How could I check if it runs successfully? Mar 14 21:27:57 how are you loading the code onto the pru? Mar 14 21:28:47 It looks like the code in the while loop does not do anything if I check the outputs with an logic analyzer. Mar 14 21:29:15 what do you mean? Mar 14 21:29:20 zmatt: I run the code the same way I did it before. Before I used pasm to compile. Mar 14 21:29:46 Oh, sorry, my complete code toogles some bits in __R30 Mar 14 21:30:40 pasm produces a raw binary that people typically load using uio, clpru produces an ELF executable Mar 14 21:30:40 zmatt: https://hastebin.com/vogeqogaqo.cpp Mar 14 21:31:03 I use this function: prussdrv_exec_program(1, "toggle_led.out"); Mar 14 21:31:19 well that explains why the pru is crashing Mar 14 21:31:55 oh, okay Mar 14 21:32:18 what am I making wrong then? Mar 14 21:33:38 clpru produces an ELF executable and therefore requires an ELF loader, such as remoteproc-pru (I've started a tiny bit of work on a ELF loader for uio-pruss but haven't had much time) Mar 14 21:33:54 you may be able to extract the raw code and data sections and load it via prussdrv Mar 14 21:38:03 I found a sample code here:http://catch22.eu/beaglebone/beaglebone-pru-ipc/ Mar 14 21:38:25 I thought compiling will be straight forward as it was with pasm. Mar 14 21:38:34 you can use readelf -l toggle_led.out to determine the segments that need to be loaded into pru memory (the LOAD segment with flags "R E" is for iram, other LOAD segments are for dram) Mar 14 21:38:49 this isn't about compiling, it's about loading it onto pru Mar 14 21:39:15 and no, it isn't as straightforward Mar 14 21:41:51 zmatt: readelf -l looks like this: https://hastebin.com/imiqisiqal.pas Mar 14 21:43:10 okay? Mar 14 21:44:32 Can I now convert the out-file to a bin file which can be loaded with prussdrv_exec_program? Mar 14 21:47:01 so this is saying you need to copy 0xb0 (MemSiz) bytes from offset 0x34 (Offset) in the file to address 0x0 (PhysAddr) in iram Mar 14 21:48:15 the second LOAD statement says 0x100 bytes (MemSiz) are allocated at address 0 in dram, but the FileSiz is zero for that so nothing needs to be copied from file Mar 14 21:48:35 maybe it needs to be zeroed, not sure, might be a good idea to do that Mar 14 21:49:02 and the entry point is at 0x0 Mar 14 21:50:26 I just checked the kernel: if FileSiz < MemSiz then the remaining part of that segment is indeed zeroed Mar 14 21:53:46 I still don't understand why this is so complicated. Are there some compiler options to create the correct file directly? I don't wanna do these steps every time I test a new code. :-/ Or can I use an other command instead of prussdrv_exec_program? Mar 14 22:02:21 TI's envisioned way of using pru is by using clpru to compile code and remoteproc-pru to load it Mar 14 22:02:52 they don't care anymore about uio-pruss users Mar 14 22:02:59 (nor pasm users for that matter) Mar 14 22:03:39 of course you don't have to agree with either of these... I'd still use pasm and uio-pruss, but if you're going to mix the two approaches you may have to get creative Mar 14 22:08:32 I switched to C because I had a problem with my ASM code where I was not able to change a value inside the shared ram on the host side and then read it in the pru. The other ways around it was no problem. I was able to send 3,200,000 Bytes per second. Mar 14 22:09:03 I thought it is a problem with caches and so I decided to try C code. Mar 14 22:09:17 switching to a different programming language because you have a bug in your program sounds rather radical Mar 14 22:09:23 :-D Mar 14 22:10:03 learning by doing and failures. Mar 14 22:11:18 When I write a value to the shared ram before I start the pru binary I can read that value inside the pru. When I change a value in the shared ram while the pru is running the pru does not see the change. Mar 14 22:11:46 The other way around it works flawlessly. Mar 14 22:12:58 without source code I can't guess what you might be doing wrong Mar 14 22:18:10 Of course. But I don't want to publish my code publicly. Mar 14 22:47:08 that is your choice, then you'll just need to figure out the bug yourself Mar 14 22:49:27 Maybe I try to minify my code and then paste it again. But this will take a while. Mar 14 22:50:12 or make a simple test that works and then figure out what your main program is doing wrong Mar 14 22:53:35 I have a structure which is mapped to the shared memory and write to it. Reading on the same structure is no problem when the pru changed something in it. Mar 14 22:53:44 I will try it with a simpler program again. Mar 14 22:57:34 just have pru copy from one location to another in a loop Mar 14 22:59:58 I don't use any pru copy functions. I use prussdrv_map_extmem in the beginning Mar 14 23:04:52 I mean, as a simple test have pru just copy some value from one shared memory location to another in an infinite loop Mar 14 23:05:25 then on the arm core, while the pru is running, write the first location and verify it shows up in the other location Mar 14 23:06:02 yes. That's my idea too Mar 14 23:06:22 Like this: http://credentiality2.blogspot.de/2015/09/beaglebone-pru-ddr-memory-access.html Mar 14 23:11:52 ddr? Mar 14 23:12:01 you weren't using ddr in your C code example Mar 14 23:13:49 unless I misunderstood what you meant Mar 14 23:14:17 you hadn't mentioned ddr memory until now anyway Mar 14 23:21:23 ddr works fine for me too Mar 14 23:22:40 oh he left Mar 15 00:30:37 I hate it when that happens Mar 15 01:17:21 hah, I didn't know you could monitor for hostname changes by opening /proc/sys/kernel/hostname and sticking it into a poll()/epoll based event loop Mar 15 01:31:51 hmm... someone pinged me, but my scrollback doesn't go far enough to see my mention Mar 15 01:35:24 I take it you don't have a continuous log to a file. Mar 15 01:57:46 2018-03/2018-03-08.log.bz2:02:56:35 < jkridner|p> calculus: I'm in Pasadena! Mar 15 01:57:46 2018-03/2018-03-08.log.bz2:02:56:42 < jkridner|p> calculus: you coming to SCaLE tomorrow? Mar 15 02:03:17 thanks zmatt, totally missed the messages, but I did see jkridner at SCaLE this past weekend Mar 15 02:03:36 GenTooMan: nope, no log to file **** ENDING LOGGING AT Thu Mar 15 03:00:01 2018