开发者

How to patch linux kernel to add gyroscope support

开发者 https://www.devze.com 2023-03-19 08:25 出处:网络
I\'m trying to use MPU3000/3050 by Invensense with embedded linux (ARM-based LPC3141 board, Embedded Artists).

I'm trying to use MPU3000/3050 by Invensense with embedded linux (ARM-based LPC3141 board, Embedded Artists). I found this interesting patch on the Internet

开发者_开发问答https://patchwork.kernel.org/patch/703991/

how can I implement it in my kernel?


Read this article for detailed instructions on how to apply a patch.

Warning: kernel patches are quite often highly specific to the version of Linux they were developed for, so if your kernel version is different from the one the patch was originally made for you may encounter some problems.

Edit: I had a look at this particular patch and essentially it creates a new file (mpu3050.c) and modifies drivers/input/misc/Makefile and drivers/input/misc/Kconfig. Even if everything else fails the new file should be created, and the mods to the existing files can probably be done manually.


I don't know about the details, but you should download the kernel from www.kernel.org, patch it with the 'patch' utility and configure it to compile it. You should search some manuals for the configuration.

I am not sure if you already knew this, though.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号