简体   繁体   中英

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. The gps is ublox NEO M8N and I have it connected to UART6. I need help to start communicating to the 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.

The ublox GNSS receiver support seems to be available from 4.19 Linux kernel release. You can see the driver here and it's device tree compatible ID's points to the support of ublox Neo M8 here .

Also have a look at the device tree binding documentation here .

If you need help understanding device trees, see Thomas Petazzoni's presentation here . I am assuming you know how to know compile and deploy custom kernel images for your device.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM