Page MenuHomeFreeBSD

[SPI Flash] Add interface to fetch flash size
AbandonedPublic

Authored by mizhka on May 6 2016, 5:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 10:43 PM
Unknown Object (File)
Fri, Apr 26, 10:43 PM
Unknown Object (File)
Fri, Apr 26, 8:43 PM
Unknown Object (File)
Jan 14 2024, 8:22 AM
Unknown Object (File)
Nov 22 2023, 11:21 AM
Unknown Object (File)
Nov 21 2023, 9:20 AM
Unknown Object (File)
Nov 21 2023, 8:56 AM
Unknown Object (File)
Nov 21 2023, 7:57 AM
Subscribers

Details

Reviewers
imp
adrian
Summary

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

Test Plan

Tested on ASUS RT-N53 (SPI flash) and ASUS RT-N16 (CFI flash)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

mizhka retitled this revision from to [SPI Flash] Add interface to fetch flash size.
mizhka updated this object.
mizhka edited the test plan for this revision. (Show Details)
mizhka added a reviewer: adrian.
mizhka set the repository for this revision to rS FreeBSD src repository - subversion.

Wait, why can't we get the size via a GEOM call?

Wait, why can't we get the size via a GEOM call?

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!

Wait, why can't we get the size via a GEOM call?

D6400 to add geom call for this purpose

mizhka abandoned this revision.

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.

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?

Hi Warner

Could you have a look at this revision?

Thank you in advance

(to trigger notifications: @imp @adrian )

mizhka abandoned this revision.