- How are firmware and device driver different and related? I think both control devices?
- Is firmware always self-booting, while driver must be run/booted by OS?
|
feedback
|
Most commonly, devices with firmware have the firmware programmed into the device (either with a ROM chip, or a programmable ROM chip), but there are some devices where the firmware is loaded into the device at initialization time. I can think of some network cards and webcams that operate this way, but I'm sure there are others as well. | |||||||
feedback
|
|
The modern definition or common usage of firmware has nothing to do with a specific software functionality. Firmware is simply software that is stored in non-volatile semiconductor memory (e.g. PROM, EEPROM or flash) chips rather than a mass storage device such as a hard drive. The stored software could be a monolithic linked binary, or consist of loader, kernel and application modules. (OTOH I've seen some TV tuner cards for PCs that require loading of "firmware" by the Linux kernel in order to complete initialization.) The origin of the term has to do with processor-controlled logic versus hardwired logic. Software stored on hard drives could be easily modified and updated. Revisions and updates to hardwired logic required board or module redesign and replacement. The middle ground was a processor executing software to control hardware. The software was called *firm*ware to reflect the middle ground between *soft*ware versus *hard*wired logic. Originally the firmware was stored in ROM, PROM or EPROM chips in order to maintain board modularity. The advancement of EEPROM and flash chips allowed in-circuit and on-board updates of the firmware. As processors (and peripherals) got smaller and cheaper and less power hungry, the possibilities for embedding them in every kind of device/appliance expanded. In order to make the software to operate these devices rugged and secure, the software is stored in flash memory chips rather than a hard drive; it also makes the device smaller and a lot cheaper. The term firmware has been expanded to encompass all software in devices/appliances with embedded processors, even though some parts of the stored code could have no relationship to replacing hardwired logic. | ||||
|
feedback
|
|
Firmware implements low-level details that are required to operate the hardware, and provides an API/ABI to a higher level. A device driver provides an adapter between the OS and the API/ABI exposed by the firmware. | |||||
feedback
|