**** BEGIN LOGGING AT Fri May 02 02:59:58 2014 May 02 05:04:52 panto: pls have a look at this post and present your views https://groups.google.com/forum/#!topic/beaglepilot/m6ygbC2Km80 May 02 10:18:36 [beaglepilot] vmayoral pushed 1 commit to master [+0/-0/±1] http://git.io/VZYkow May 02 10:18:38 [beaglepilot] vmayoral a9b05a5 - update victor's report May 02 10:21:28 [beaglepilot] vmayoral pushed 1 commit to master [+0/-0/±1] http://git.io/4cnXMw May 02 10:21:30 [beaglepilot] vmayoral 3888b9a - update victor's report May 02 10:23:23 [beaglepilot] vmayoral pushed 1 commit to master [+0/-0/±1] http://git.io/PPHlxw May 02 10:23:25 [beaglepilot] vmayoral fc5db25 - update victor's report May 02 11:57:30 panto: can i get the hacked up minicom to communicate with the PRU firmware you created? also can you share with me code to send values using C May 02 12:01:55 sidbh, yes May 02 12:01:58 what code? May 02 12:02:28 to send pwm values from userspace May 02 12:03:11 do i have to export values to some file in /sys/class/pwm May 02 12:05:45 */sys/class/pwm/pwmchip0 May 02 12:06:06 you just cat values to sysfs May 02 12:15:30 i'm getting: base device npwm power subsystem uevent May 02 12:15:52 i expected "ops" file too, but i'm not getting one May 02 12:16:01 am i going in the right direction May 02 12:16:03 ? May 02 12:22:36 cat npwm May 02 12:22:49 are you seeing any pwmchip entries? May 02 12:22:56 yeah 15 May 02 12:23:10 go into one of the directories May 02 12:23:12 ls May 02 12:23:33 base device npwm power subsystem uevent May 02 12:24:18 cd device May 02 12:24:20 downcall0 driver modalias pwm remoteproc1 subsystem May 02 12:24:20 downcall1 load power remoteproc0 reset uevent May 02 12:27:16 cat pwm May 02 12:27:36 cat: pwm: Is a directory May 02 12:28:28 cd pwm May 02 12:28:48 ls May 02 12:28:52 pwmchip0 May 02 12:29:16 https://www.kernel.org/doc/Documentation/pwm.txt May 02 12:29:34 cd pwmchip0 May 02 12:29:46 ls May 02 12:29:47 base device npwm power subsystem uevent May 02 12:29:48 cat period May 02 12:30:11 find /sys/class/pwm -name duty_cycle May 02 12:31:02 blank May 02 12:31:16 hmm, is that a 3.8 kernel? May 02 12:31:33 uname -a May 02 12:31:47 Linux beaglebone 3.8.13-bone47 #1 SMP Fri Apr 11 01:36:09 UTC 2014 armv7l GNU/Linux May 02 12:32:20 oh I see May 02 12:32:21 hang on May 02 12:32:28 should i post dmesg May 02 12:33:51 dmesg May 02 12:33:52 http://pastebin.com/CZSH8AyM May 02 12:33:54 cd /sys/class/pwm/pwm1 May 02 12:33:59 ls May 02 12:34:09 ahh May 02 12:34:15 you need to export the pwm first :) May 02 12:34:19 echo 1 > /sys/class/pwm/export May 02 12:35:48 did it May 02 12:36:00 what do you see? May 02 12:36:05 pwm1 May 02 12:36:08 cd pwm1 May 02 12:36:09 ok, that's it May 02 12:36:40 so i echo to files in pwm1 May 02 12:38:24 yes May 02 12:38:52 and i can add chennels by writing into export May 02 12:38:59 *channels May 02 12:40:07 thanks, can you mail me the minicom too May 02 12:42:41 sure, but not now May 02 12:42:44 I'm awfully busy May 02 12:43:38 ok, whenever you are free... May 02 16:17:01 panto: i needed some help with the dts. am33xx.dtsi, am335x-bone-common.dtsi & am335x-boneblack.dts are the 3 files i’ll need to change, right ? or could I just make changes in am335x-boneblack.dts and keep the rest same ? May 02 16:18:22 copy the file May 02 16:18:30 and then modify it May 02 16:19:02 cp am335x-boneblack.dts beaglepilot.dts May 02 16:19:52 panto thanks. also is this http://pinmux.tking.org/index.html reliable or should i just stick to spruh73j.pdf May 02 16:23:31 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/am335x-boneblack.dts?id=refs/tags/v3.12 , http://lxr.free-electrons.com/source/arch/arm/boot/dts/am335x-boneblack.dts , https://github.com/derekmolloy/boneDeviceTree/blob/master/DTSource3.8.11/am335x-boneblack.dts also a bit confused as to which I should use May 02 16:32:23 panto: or should I check the debian git repos? I am a bit lost on this one tbh. May 02 16:38:09 use the one shipping with your distro May 02 16:40:01 panto: I couldn’t find the .dts file. only the dtbo. is that to be expected ? May 02 16:42:06 *dtb May 02 16:43:21 on the filesystem? May 02 16:43:23 yes May 02 16:44:55 i checked the uboot folder in boot. May 02 16:45:22 only the compiled form is on the device May 02 16:49:22 ahh .. so https://github.com/beagleboard/linux/blob/3.8/arch/arm/boot/dts/am335x-boneblack.dts May 03 01:12:58 cq **** ENDING LOGGING AT Sat May 03 02:59:58 2014