Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe write a plugin for fwupd and upload firmware to the LVFS #8

Open
hughsie opened this issue Dec 9, 2019 · 7 comments
Open

Maybe write a plugin for fwupd and upload firmware to the LVFS #8

hughsie opened this issue Dec 9, 2019 · 7 comments

Comments

@hughsie
Copy link

hughsie commented Dec 9, 2019

I'm the developer for fwupd. Would you like to write a plugin for fwupd, so that the hardware can be updated easily using the built-in tool for the Linux distro? I'd be happy to help you, but I don't have any hardware myself for testing. If this sounds interesting to you please see https://www.fwupd.org/ and if needed I can create you an account so you can have a play.

Richard. (LVFS and fwupd maintainer)

@hughsie
Copy link
Author

hughsie commented Jan 7, 2020

If it helps, I've got a PoC 100% untested branch of fwupd that adds support for the novatek devices. I'd need a lot more support (and hardware!) to be able to upstream something that's actually going to work.

@hughsie
Copy link
Author

hughsie commented Jun 24, 2020

Of course, the other issue is that the code is currently MIT and fwupd requires all plugins to be LGPLv2+ -- but if you own the code outright (i.e. you wrote it all) then it's easy enough to just tell me I can use the existing flashing code as LGPLv2+.

@barthalion
Copy link

I'd be happy to send my PBP to Richard if anyone from Pine64 is interested in supporting fwupd officially.

@tllim
Copy link

tllim commented Oct 2, 2020

@hughsie, I am TL Lim, PINE64 community founder. Please email your shipping address, phone (shipping purpose) and email, I will ship the Pinebook Pro to you. Thanks to Aleix Pol ping me and bring up this attention.

@hughsie
Copy link
Author

hughsie commented Oct 4, 2020

Hey @tllim -- you have email! Before sending hardware I had a few hardware and legal questions, but it's all in the email. Thanks.

@hughsie
Copy link
Author

hughsie commented Nov 4, 2020

I've been working on a plugin for a few hours now. I've got one question about the source code which might explain some issues other people are hitting: #22

@hughsie
Copy link
Author

hughsie commented Nov 9, 2020

Hi @tllim. Many thanks for the hardware, it arrived last week. I’ve written a new plugin and created a pull request against fwupd: fwupd/fwupd#2495 – the plugin mostly works, but is incomplete; I need some more information to enumerate the hardware more completely so that it can work with firmware metadata from the LVFS.

  • How do you get the keyboard version from runtime mode? The USB descriptor REV already sets this to v1.0 which might be correct but seems super coincidental.
  • How do you get the touchpad firmware version from runtime mode? There nothing in the HID descriptor either.
  • How do you tell apart the ISO/ANSI keyboards from runtime mode? I suppose I could read and parse the HID descriptor if that’s different, but ideally I could ask the device directly with a command on either of the HID interfaces and add the appropriate GUID to the fwupd device.

Thanks,

Richard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants