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

please include AppStream metainfo XML #142

Open
josch opened this issue Sep 9, 2024 · 9 comments
Open

please include AppStream metainfo XML #142

josch opened this issue Sep 9, 2024 · 9 comments

Comments

@josch
Copy link

josch commented Sep 9, 2024

If you install this file into /usr/share/metainfo/com.github.raspberrypi.picotool.metainfo.xml:

<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
  <id>com.github.raspberrypi.picotool</id>
  <metadata_license>MIT</metadata_license>
  <name>picotool</name>
  <summary>interact with RP2040/RP2350 devices or binaries</summary>
  <description>
    <p>Tool for interacting with a RP2040/RP2350 device in BOOTSEL mode, or
    with a RP2040/RP2350 binary. It allows one to load programs onto the
    device or save programs from flash to a file. It allows one to
    verify device contents or reboot the device.</p>
  </description>
  <url type="homepage">https://github.com/raspberrypi/picotool/</url>
  <provides>
    <modalias>usb:v2E8Ap0003d*</modalias>
    <modalias>usb:v2E8Ap0009d*</modalias>
    <modalias>usb:v2E8Ap000Ad*</modalias>
    <modalias>usb:v2E8Ap000Fd*</modalias>
  </provides>
</component>

Then tools like isenkram will be able to propose the installation of the picotool package on distributions that support this mechanism once a rp2040 is plugged into the user's system, see https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-provides

@lurch
Copy link
Contributor

lurch commented Sep 11, 2024

Picotool is now useful for both RP2040 and RP2350? 😉

@josch
Copy link
Author

josch commented Sep 11, 2024

Picotool is now useful for both RP2040 and RP2350? 😉

Good point! What would be the correct modalias entry for the RP2350? You can find out by looking at the contents of the modalias file in the /sys/devices folder for the attached device.

@lurch
Copy link
Contributor

lurch commented Sep 11, 2024

I don't have an RP2350 to hand right now, but those look suspiciously like USB PIDs, and you can find a full list of those at https://github.com/raspberrypi/usb-pid

@josch
Copy link
Author

josch commented Sep 11, 2024

Thank you! I adjusted the description to include rp2350 and added 0x000F as the rp2350 usb product id.

@lurch
Copy link
Contributor

lurch commented Sep 11, 2024

If 0x000A is included, you probably ought to include 0x0009 too? 🤔

@josch
Copy link
Author

josch commented Sep 12, 2024

From the table I don't spot what the difference between the 0x000A and the 0x0009 rows is. The lower row has RP2040 appended to the description and the other does not. I do not have an RP2350 to see its usb product id.

@lurch
Copy link
Contributor

lurch commented Sep 12, 2024

Using "git blame" I found raspberrypi/usb-pid#18
Pre-emptively pinging @will-v-pi in case more information is needed?

@will-v-pi
Copy link

A is for RP2040 only, as it behaves differently on Windows compared to RP2350 so needed a way to distinguish it (eg for picotool … -f commands). 9 is for RP2350, so both should probably be added to this file, else it won’t detect RP2350 devices using USB CDC

@josch
Copy link
Author

josch commented Sep 12, 2024

Thank you. I updated my original post. Please do with it what you like. I do not need any attribution for this. So if you want to ship this file, just somebody take the credit and commit it, thanks!

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