Project

General

Profile

Actions

Feature #328

open

Add RAM disk/filesystem in SPI flash for tianocore

Added by xinhua wang 5 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
12/30/2021
Due date:
% Done:

0%

Estimated time:
Affected versions:
Needs backport to:
Affected hardware:
Affected OS:

Description

Add RAM disk/filesystem in SPI flash for tianocore

Actions #1

Updated by Paul Menzel 5 months ago

What would TianoCore use it for? Does TianoCore already have the necessary drivers?

Actions #2

Updated by King Sumo 2 months ago

Paul Menzel wrote in #note-1:

What would TianoCore use it for? Does TianoCore already have the necessary drivers?

Looks like they added a SpiFlashLib which supports the Intel SPI hardware sequencing stuff, I guess this is common for all Intel CPU targets. But looks like this lib is supported only by SBL due to a missing HOB which defines the base address for the SPI HW. They have implemented SMM's for accessing the Firmware Volume block so the SMMSTORE driver is not needed... But I guess all this stuff was tested only using SBL and maybe also using the new UniversalPayload mode which is not supported by coreboot right? Probably using UniversalPayload mode is a requirement...

Could coreboot create HOB's like SBL or this must be implement in a sort of compability mode inside UefiPayloadPkg? Below is the structure of the missing HOB:

typedef struct {
UINT8 Revision;
UINT8 Reserved;
UINT16 Flags;
PLD_GENERIC_ADDRESS SpiAddress;
} SPI_FLASH_INFO;

kind regards

Actions

Also available in: Atom PDF