I have just been working on this problem myself. You need to download
the setup-scripts as you did, but you need to run:
$ MACHINE=beaglebone ./oebb.sh config beaglebone
$ MACHINE=beaglebone ./oebb.sh update
$ MACHINE=beaglebone ./oebb.sh bitbake virtual/kernel
These will build the actual images for the bone, when you want to
deploy:
$ MACHINE=beaglebone ./oebb.sh bitbake console-image
$ MACHINE=beaglebone ./oebb.sh bitbake systemd-gnome-image
This will setup the whole kernel source, not just the images, so it
builds all of the modules and the cross compiler toolchain. This
takes several GB of space and it will take a little while to complete.
From there you can download the driver...I forked the repo in the
article you posted and made some changes in it, as the kernel version
it was design for is older, and the drivers would not compile on the
bone (i.e. in later versions of the kernel the .ioctl kernel call must
be .unlocked_ioctl). You can get it from:
$ git clone git://
github.com/jyore/omap3-pwm.git
$ cd omap3-pwm
I was able to get the driver to build and load on the BeagleBone,
however, it errored during use, as I expected do to the fact that I
had not messed with the pin configs yet.
Which brings me to this point: I am having trouble tracking down the
correct place to modify the pin configuration and device
configuration. I believe the CONFIG_OMAP_RESET_CLOCKS parameter must
be changed, and the pin mux must be set in order for the driver to
work correctly...anyone have any suggestions on this part?
-joey
On Feb 5, 12:29 am, Arthur Neves <
arthu...@gmail.com> wrote:
> Hi,
>
> I have been trying to work with PWM in my beaglebone for a while, and
> no success at all!
>
> So here are the things I have tried and no success:
>
> 1 - I tried to use the Cloud9 IDE and write a simple script which uses
> GPIO - P8_13 ! but clearly it didn't work because I am using
> digitalWrite which is not the PWM ideal write, as far as I am
> concerned PWM need a analogWrite, which I didnt find in that Node.js
> API.
>
> 2 - I tried to use thishttp://
dominion.thruhere.net/koen/cms/using-the-analog-pins-on-a-beag...
> to use anolog input, but it didnt work either.
>
> 3 - I have tried thishttp://
elinux.org/BeagleBoard/GSoC/2010_Projects/Pulse_Width_Modulation