Hi all,
Yes I did it ^^, I successfully made my BBB ( Kernel 3.8.x ) work with the RS485 CAP ( I was able to talk with my PC with a USB<>RS485 adaptater )
To do it, I modified the Kernel (omap serial driver) and I tested it on a Ubuntu Distribution ( Why ? Because I don’t know how to modify the source code of the kernel with an angstrom distribution. And Robert Nelson explain very well how to do it with a Ubuntu distribution).
It’s true, that the eMMC use the GPIO1_0 & GPIO1_4 of the BBB and the RS485 cap need them, but it’s also easy to disable the virtual cap eMMC! Just a simple echo -4 > $SLOTS do the trick.
And I also had to create my own rs485 virtual cap to enable the GPIO1_0 & GPIO1_4 & UART1_TX & UART1_RX
But now, for my project I need to cross compile, and it looks like that there is no toolchain on the ubuntu distribution (working with the Robert Nelson Ubuntu distribution).
So I’m going back to the Angstrom distribution, but my problem is that I don’t know where to put my patch ? Will it work ? I don’t know how to create a patch, I just did this command : " sudo git diff > …/rs485.patch" ( Robert Nelson => on your KERNEL folder )
I read here => http://downloads.angstrom-distribution.org/demo/beaglebone/
That i can create my own image, with this :
git clone git://[github.com/Angstrom-distribution/setup-scripts.git](http://github.com/Angstrom-distribution/setup-scripts.git)
cd setup-scripts
./oebb.sh config beaglebone
MACHINE=beaglebone ./oebb.sh bitbake systemd-image
My question is where I can put my patch ? Or where I can modify the Kernel ?
Thx you every one, It’s because of your help, That I was able to make this Work !
I will soon explain my work on this project in my blog.
Michael Musset,
rs485 (1).patch (8.41 KB)