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

Reply
  • 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

Children
Related