Writing a basic Linux device driver when you know nothing about Linux drivers
1–10 of 72 posts
Re: Writing a basic Linux device driver when you know nothing about Linux drivers
#2[deleted]
Re: Writing a basic Linux device driver when you know nothing about Linux drivers
#3It’s a userspace USB HID driver in rust, which is honestly more interesting/applicable to me than a kernel driver, which is what I thought it meant from the title.
Re: Writing a basic Linux device driver when you know nothing about Linux drivers
#4> I also thought I’d message the vendor and ask them if they could share any specifications or docs regarding their protocol. To my surprise, Nanoleaf tech support responded to me within 4 hours, with a full description of the protocol that’s used both by the Desk Dock as well as their RGB strips.
How cool is that? Too many vendors still think that they have valuable intellectual property in such relative trivialities. And that handing out the specs freely helps their competitors more than themselves.
Re: Writing a basic Linux device driver when you know nothing about Linux drivers
#5Thanks for this. Good read and also kinda inspiring.
Re: Writing a basic Linux device driver when you know nothing about Linux drivers
#6> I also thought I’d message the vendor and ask them if they could share any specifications or docs regarding their protocol. To my surprise, Nanoleaf tech support responded to me within 4 hours, with a full description of the protocol that’s used both by the Desk Dock as well as their RGB strips. How cool is that? Too many vendors still think that they have valuable intellectual property in such relative trivialitie…
I had the same reaction. Nano leaf is extremely cool for that.
Re: Writing a basic Linux device driver when you know nothing about Linux drivers
#7I really enjoyed the way this post was written, i.e. it includes the code, how it was run, the false paths, etc. You almost get to live through the author's journey and how he figured out just enough to get something working.
Re: Writing a basic Linux device driver when you know nothing about Linux drivers
#8I enjoyed this post, but I'm eager to hear what the next step would be for a real "production" userspace driver. Are these typically just daemons that are configured to run at start up? And then some configuration GUI communicates with it over a socket or something?
Re: Writing a basic Linux device driver when you know nothing about Linux drivers
#9> Let’s run it again to make sure it was not a fluke!
I understood that reference
Re: Writing a basic Linux device driver when you know nothing about Linux drivers
#10I want to run FreeBSD on my laptop, but they don't have a [complete] driver for my wifi card. I've thought about diving into AI coding-assistant agents just to see if I could use one to finish throwing together a working driver... but figuring out the AI agents is frictiony enough that I'm leaving it be. (I'm not a VSCode user)