Page MenuHomeFreeBSD

flash: add w25n (nand flash) support
ClosedPublic

Authored by adrian on Feb 13 2025, 12:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 17 2025, 2:09 AM
Unknown Object (File)
Oct 13 2025, 8:23 PM
Unknown Object (File)
Sep 17 2025, 3:39 PM
Unknown Object (File)
Aug 22 2025, 6:11 PM
Unknown Object (File)
Aug 5 2025, 6:20 PM
Unknown Object (File)
Aug 5 2025, 1:13 AM
Unknown Object (File)
Jul 25 2025, 7:59 AM
Unknown Object (File)
Jul 24 2025, 9:14 PM
Subscribers

Details

Summary

This adds read only support for the W25N series of flash parts.

Specifically starting with the W25N01GV, a 128MiB SPI NAND flash.

This doesn't currently support writing or erasing, as this requires
a NAND flash layer that we don't currently have. There are also
plenty of other commands that aren't currently supported - notably
maintaining the on-chip flash translation layer, flash wear statistics,
etc.

But read support is fine enough for now; it at least allows for
reading the boot / config / calibration flash on my ASUS IPQ4018 based
router.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62410
Build 59294: arc lint + arc unit

Event Timeline

OK. This is fine.

But... the commands are likely part of a larger family of parts...

But this also looks pretty basic, so it's fine. There's no larger framework for NAND like we need to do this completely... but that's a huge lift and I don't want to hold this up.

I don't see anything here that's bad for 'basic' support that this targets.

This revision is now accepted and ready to land.Feb 14 2025, 11:49 PM
This revision was automatically updated to reflect the committed changes.