Get the latest tech news

Writing a basic Linux device driver when you know nothing about Linux drivers


USB A couple of months ago I bought the Nanoleaf Pegboard Desk Dock, the latest and greatest in USB-hub-with-RGB-LEDs-and-hooks-for-gadgets technology. This invention unfortunately only supports the real gamer operating systems of Windows and macOS, which necessitated the development of a Linux driver.

Over the past few posts I’ve set up a Windows VM with USB passthrough, and attempted to reverse-engineer the official drivers, As I was doing that, I also thought I’d message the vendor and ask them if they could share any specifications or docs regarding their protocol. This requires you to have write access to the device, so if you did not do the udev song and dance from earlier in this article, prepare to prefix all future invocations of your driver with sudo. Yeah, so if you happen to be following along, and you ran the same binary twice, you’ll notice that the firmware of the pegboard crashes unceremoniously, and shortly after reverts to its default animation.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Linux

Linux

Photo of linux drivers

linux drivers

Related news:

News photo

Reading NFC Passport Chips in Linux

News photo

Microsoft Edit

News photo

Microsoft Releases Classic MS-DOS Editor For Linux