Skip to content

Support firmware loading #17

@lu-zero

Description

@lu-zero
  • look for FIRMWARE entries in the UEvent
  • On Add try to load the firmware according to linux/Documentation/firmware_class/README

mdev summarizes it this way:

/*
 * Firmware loading works like this:
 * - kernel sets FIRMWARE env var
 * - userspace checks /lib/firmware/$FIRMWARE
 * - userspace waits for /sys/$DEVPATH/loading to appear
 * - userspace writes "1" to /sys/$DEVPATH/loading
 * - userspace copies /lib/firmware/$FIRMWARE into /sys/$DEVPATH/data
 * - userspace writes "0" (worked) or "-1" (failed) to /sys/$DEVPATH/loading
 * - kernel loads firmware into device
 */

Metadata

Metadata

Assignees

No one assigned

    Labels

    mdev-parityFeature present in busybox mdev

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions