Ming
DIIDevHeads IoT Integration Server
•Created by ZacckOsiemo on 12/26/2024 in #📦-middleware-and-os
can you show me a rudimentary hardware driver in linux?
You have only chosen one of the most complex type of driver out there if you were wanting to write your own....
For camera drivers from scratch, you would need to:
- Look at the bus subsystem o talk to the camera
- Write the interfaces to talk to the camera
- Look at the Video4Linux2 subsystem so that it can be picked up and used by most of the userspace applications
- Interface between the camera & V4L2 (this normally involves lots of IOCTLs!)
Here is the driver for the imx219 as an example
https://elixir.bootlin.com/linux/v6.12.6/source/drivers/media/i2c/imx219.c
To contrast with that, here is a simple GPIO LED driver:
42 replies