Hmmmm.. the pwm path appears to have changed for the 4.4 kernel. 
 Bonescript uses

*/sys/devices/platform/ocp/48304000.epwmss/48304200.ehrpwm/pwm/pwmchip6*, 
but the new 4.4 kernel path is

*/sys/devices/platform/ocp/48304000.epwmss/48304200.pwm/pwm/pwmchip6*  (the 
ehr is missing).

A quick hack is to edit : 
*/usr/local/lib/node_modules/bonescript/src/hw_mainline.js* and remove the 
*ehr* from line 95.

--Mark

On Tuesday, May 24, 2016 at 3:52:21 AM UTC-4, Baozhu Zuo wrote:
>
> I think there are some wrong with pwm driver on linux-v4.4 kernel. 
> run:
> var b = require('bonescript');
> b.pinMode('P9_14', b.OUTPUT);
> b.analogWrite('P9_14', 0.7, 2000.0, printStatus);
> function printStatus(x) {
>     console.log('x.value = ' + x.value);
>     console.log('x.err = ' + x.err);
> }
> output:
> x.err = error updating PWM freq and value: undefined/pwm0, Error: ENOENT, 
> no such file or directory 'undefined/pwm0/period'
>
> root@beaglebone:~/workspace# ls /sys/class/pwm/
> pwmchip0  pwmchip2  pwmchip4  pwmchip5    pwmchip6
>
> the export and unexport file disappeared.
>
>
> 在 2016年5月6日星期五 UTC+8上午5:27:39,robert nelson写道:
>>
>>
>>
>> On Thu, May 5, 2016 at 1:18 PM, Robert Nelson <[email protected]> 
>> wrote:
>>
>>> Just a heads up, TI just landed two large changes to the v4.4.x tree 
>>> today:
>>>
>>>
>>> https://github.com/RobertCNelson/ti-linux-kernel/compare/584991ea2c87ead7ce1e0ef145a9e66a4408a9d5...ee87bb1741b3e2f05a5ff46b1ad59ca82b8f2514
>>>
>>> remoteproc_pruss & sgx
>>>
>>> remoteproc_pruss: this should be compatible with v4.1.x-ti
>>>
>>> sgx: the "modules" should build and enter the archive when the kernel 
>>> *.deb get's built..
>>>
>>
>> The sgx modules for stretch were successfully built, the build farm is 
>> currently working on all of them, so they should get pushed to the deb repo 
>> later tonight..
>>
>> Thus, the sgx flag in the ./update_kernel.sh script is now set, so it'll 
>> install the sgx modules by default for v4.4.x-ti kernel's going forward..
>>
>> Regards,
>>
>> -- 
>> Robert Nelson
>> https://rcn-ee.com/
>>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/7b06ae48-5a2d-417c-aaf9-b1b8c1128706%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to