Failing to apply an kernel patch from Teknoman117 to make use of the eQEP

Hi everybody,

I am trying to build my first kernel with the patch to enable the eQEP module from Teknoman117. I think I did everything correct but obvious not, since I get the following errors.

roderick@roderick-Z68AP-D3:~/beaglebone/linux-dev/KERNEL$ git apply …/…/…/Downloads/beaglebot-master/encoders/patches/0001-tieqep-driver.patch
…/…/…/Downloads/beaglebot-master/encoders/patches/0001-tieqep-driver.patch:24: trailing whitespace.

…/…/…/Downloads/beaglebot-master/encoders/patches/0001-tieqep-driver.patch:40: trailing whitespace.

…/…/…/Downloads/beaglebot-master/encoders/patches/0001-tieqep-driver.patch:56: trailing whitespace.

…/…/…/Downloads/beaglebot-master/encoders/patches/0001-tieqep-driver.patch:76: trailing whitespace.

…/…/…/Downloads/beaglebot-master/encoders/patches/0001-tieqep-driver.patch:158: trailing whitespace.
#define QUPRD 0x0020
error: patch failed: arch/arm/boot/dts/am33xx.dtsi:539
error: arch/arm/boot/dts/am33xx.dtsi: patch does not apply
error: patch failed: drivers/misc/Kconfig:510
error: drivers/misc/Kconfig: patch does not apply
error: patch failed: drivers/misc/Makefile:51
error: drivers/misc/Makefile: patch does not apply
error: drivers/misc/tieqep.c: already exists in working directory

Can someone point me in the right direction here?

Well it was added in bone48:

https://github.com/RobertCNelson/bb-kernel/commit/b7bc988c048b69f03b71c72f7c544f2348f378d0

build the am33x-v3.8 branch of:

https://github.com/RobertCNelson/bb-kernel/

Regards,

Hi RobertCNelson,

Oke I didn’t know that. Will have a look.

Thanks,