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)
Sun, Dec 22, 1:24 PM
Unknown Object (File)
Oct 14 2024, 7:31 AM
Unknown Object (File)
Oct 1 2024, 12:18 PM
Unknown Object (File)
Sep 27 2024, 7:55 AM
Unknown Object (File)
Sep 24 2024, 3:33 AM
Unknown Object (File)
Sep 2 2024, 8:33 PM
Unknown Object (File)
Aug 19 2024, 3:05 AM
Unknown Object (File)
Aug 10 2024, 10:52 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.