Right now there is no way to fetch serial flash size. To fix it, new
interface is proposed and implementation for known serial flash
implementations: mx25l and at45d
Details
Details
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
I'm newbie with geom, but geom_flashmap fetches device_t from consumer and pass it to callback. So there is only information about device_t in slicer function callback.
But I think it's easy to implement geom_disk function to fetch disk by device softc. Is it similar to what you expect?
Thanks!
Comment Actions
I would like to resurrect this revision due to new discovered issues. WiFi & ethernet drivers requires information from NVRAM which is part of flash device. To scan & parse it, we need to know flash size before GEOM is initialized.
So we need this flash interface to fetch sizing.
Comment Actions
hi warner,
Michael requests this so he can get the flash size for doing SPROM parsing before GEOM is up (ie, very very early in device boot.) How's this look?