[英]Linux device driver for a gps module
I am fairly new to linux, I am currently trying to integrate a gps module to a linux ARM controller. 我对linux还是很陌生,我目前正在尝试将gps模块集成到linux ARM控制器中。 The gps is ublox NEO M8N and I have it connected to UART6.
gps是ublox NEO M8N,我已将其连接到UART6。 I need help to start communicating to the gps.
我需要帮助才能开始与GPS通讯。 I have searched for some documents but I couldn't find any relevant ones.
我已经搜索了一些文档,但是找不到任何相关文档。 I understand that I first need to write a kernel device driver for it, however I have no idea where to start.
我知道我首先需要为其编写一个内核设备驱动程序,但是我不知道从哪里开始。 Could somebody point me to the right direction or tell me how I can write the device driver and start reading the latitude and longitude from gps.
有人可以指出我正确的方向还是告诉我如何编写设备驱动程序并开始从gps中读取纬度和经度。
The ublox GNSS receiver support seems to be available from 4.19 Linux kernel release. ublox GNSS接收器支持似乎可以从4.19 Linux内核发行版中获得。 You can see the driver here and it's device tree compatible ID's points to the support of ublox Neo M8 here .
您可以在此处看到驱动程序,它的设备树兼容ID指向此处的ublox Neo M8支持。
Also have a look at the device tree binding documentation here . 也可以在此处查看设备树绑定文档。
If you need help understanding device trees, see Thomas Petazzoni's presentation here . 如果您需要帮助来了解设备树,请参阅此处的 Thomas Petazzoni的演示。 I am assuming you know how to know compile and deploy custom kernel images for your device.
我假设您知道如何为您的设备编译和部署自定义内核映像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.