---
name: "cfi"
section: "4"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/cfi"
---

# cfi(4)

driver for Common Flash Interface (CFI) NOR flash

## NAME

**cfi**, **cfid** – driver for Common Flash Interface (CFI) NOR flash

## SYNOPSIS

**device cfi** **device cfid** **options CFI\_SUPPORT\_STRATAFLASH** **options CFI\_ARMEDANDDANGEROUS**

In */boot/device.hints*: **hint.cfi.0.at="nexus0"** **hint.cfi.0.maddr=0x74000000** **hint.cfi.0.msize=0x4000000**

In DTS file: **flash@74000000** **{**   **compatible =** "cfi-flash";   **reg = \<0x74000000 0x4000000\>;** **};**

## DESCRIPTION

The **cfi** device driver provides a management interface to NOR flash devices supporting the Common Flash Interface (CFI) specification. Its companion device **cfid** provides a [geom(4)](/geom/4.md) disk interface to the device.

Special support for features of the Intel StrataFlash line are available with the **CFI\_SUPPORT\_STRATAFLASH** kernel option. Additional support for write-once bits to switch part of Intel StrataFlash devices to read-only can be enabled by the **CFI\_ARMEDANDDANGEROUS** kernel option.

## SEE ALSO

[led(4)](/led/4.md)

## HISTORY

The **cfi** device driver first appeared in FreeBSD 8.0.

## AUTHORS

The **cfi** driver was written by Juniper Networks with StrataFlash support by Sam Leffler. This manual page was written by SRI International and the University of Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237) (“CTSRD”), as part of the DARPA CRASH research programme.
