how to run fwupd on Ubuntu

Hi there, I have an nrf52840 DK and I wonder if it is possible to upgrade my own application firmware via fwupd tool on Ubuntu.I want to successfully upgrade the development kit on unbutu using fwupd.But I find that there is no actual tutorial that shows me how to upgrade step by step.What firmware should I burn so that unbutu recognizes that this is a hid device

I refer to the following links but to no avail.

 https://devzone.nordicsemi.com/f/nordic-q-a/111310/fwupd-on-ubuntu 

developer.nordicsemi.com/.../fwupd.html

fwupd.org/.../search

Parents
  • Hi,

    Have you tried this feature in the nRF Desktop sample?

    Is your device a HID device already, or are you trying to make it a HID device?

    Regards,
    Sigurd Hellesvik

  • Thank you for your answer. Of course, I have tried to use ncs 2.6.0 hid mouse demo, prj.conf configuration is as follows, I test using the development kit key can control the mouse pointer, but it is still not recognized on fedora system (use fwupdmgr get-devices command), And I noticed that the plugin configuration on github uses the hidraw protocol. I don't know if I need to support this protocol in order to recognize it, even when I use the official firmware of lvfs (burned with nrfjprog and nRF Connect for Desktop Programmer application), I can't recognize it. I wonder how nordic officially tested the fwpud upgrade on linux?

    prj.conf

    CONFIG_USB_DEVICE_STACK=y
    CONFIG_USB_DEVICE_HID=y
    CONFIG_USB_DEVICE_PRODUCT="Zephyr HID mouse sample"
    CONFIG_USB_DEVICE_VID=0x1915
    CONFIG_USB_DEVICE_PID=0x521f
    CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
    
    CONFIG_LOG=y
    CONFIG_USB_DRIVER_LOG_LEVEL_ERR=y
    CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y
    
    CONFIG_GPIO=y
    CONFIG_INPUT=y
    
    CONFIG_USE_SEGGER_RTT=y      # 启用RTT
    CONFIG_LOG_BACKEND_RTT=y     # 日志后端选用RTT
    CONFIG_LOG_BACKEND_UART=n    # 日志后端不选用串口
    CONFIG_LOG_PRINTK=y          # 不启用PRINTK日志

    https://github.com/fwupd/fwupd/blob/main/plugins/nordic-hid/nordic-hid.quirk

    # Nordic Semiconductor ASA HID Devices
    [HIDRAW\VEN_1915]
    Plugin = nordic_hid
    Flags = no-generic-guids
    GType = FuNordicHidCfgChannel
    NordicHidBootloader = B0
    NordicHidGeneration = default

  • Hi,

    I try to run the nRF Desktop app out of the box on my ubuntu machine.

    I have fwupd installed via snap, and I changed nothing.

    Then I run the following commands with the following outputs.

    Do you see the same?

    sihe@sihe-desktop:~$ fwupdmgr get-plugins | grep nordic -A10
    nordic_hid:
      Flags:                • Enabled
    
    sihe@sihe-desktop:~$ fwupdmgr get-devices | grep -i nordic -A10
    ├─Nordic Semiconductor ASA Mouse nRF52 Desktop:
    │     Device ID:          a81ce6ee31b759a7e0fe8b31f7dcdd22f2e44092
    │     Current version:    0.0.0.1
    │     Vendor:             Nordic (HIDRAW:0x1915)
    │     GUIDs:              6add44d5-0143-5a41-973a-94caa37ed58e
    │                         f47ffdec-9a23-5da0-8bee-0c6cf09b8422
    │                         22952036-c346-5755-9646-7bf766b28922
    │     Device Flags:       • Updatable
    │                         • Supported on remote server
    

Reply
  • Hi,

    I try to run the nRF Desktop app out of the box on my ubuntu machine.

    I have fwupd installed via snap, and I changed nothing.

    Then I run the following commands with the following outputs.

    Do you see the same?

    sihe@sihe-desktop:~$ fwupdmgr get-plugins | grep nordic -A10
    nordic_hid:
      Flags:                • Enabled
    
    sihe@sihe-desktop:~$ fwupdmgr get-devices | grep -i nordic -A10
    ├─Nordic Semiconductor ASA Mouse nRF52 Desktop:
    │     Device ID:          a81ce6ee31b759a7e0fe8b31f7dcdd22f2e44092
    │     Current version:    0.0.0.1
    │     Vendor:             Nordic (HIDRAW:0x1915)
    │     GUIDs:              6add44d5-0143-5a41-973a-94caa37ed58e
    │                         f47ffdec-9a23-5da0-8bee-0c6cf09b8422
    │                         22952036-c346-5755-9646-7bf766b28922
    │     Device Flags:       • Updatable
    │                         • Supported on remote server
    

Children
Related