User: Password:
Subscribe / Log in / New account

Firmware loading and suspend/resume

Firmware loading and suspend/resume

Posted Aug 16, 2012 5:18 UTC (Thu) by kugel (subscriber, #70540)
Parent article: Firmware loading and suspend/resume

I'm surprised to hear that firmware loading depends on user space, on a helper process in particular. Does that refer to FUSE or something else?

(Log in to post comments)

Firmware loading and suspend/resume

Posted Aug 16, 2012 6:28 UTC (Thu) by JohnLenz (subscriber, #42089) [Link]

Firmware loading happens through udev. The kernel raises a hotplug event which udev sees. See this README. On Ubuntu, /lib/udev/rules.d/50-firmware contains the udev rule, which runs the /lib/udev/firmware binary whenever the kernel requests a firmware file.

The reason is because the kernel can run in strange environments: read only root file system, running with containers with locked down root filesystems, etc. With filesystem namespaces, there is no single filesystem so the kernel has no idea where to look for files. Even calling into custom filesystem code from somewhere else in the kernel is somewhat icky. Instead the kernel just requests userspace take care of it.

Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds