There are also utilities to partition and format.

https://www.intel.com/content/www/us/en/download/714351/uefi-shell-disk-utilities.html

Mike

From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Andrew Fish via 
groups.io
Sent: Friday, March 29, 2024 3:11 PM
To: devel@edk2.groups.io; yuinyee.c...@starfivetech.com
Subject: Re: [edk2-devel] Is there a way to create filesystem in UEFI Shell ?

MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf is a virtual storage 
device, so it just emulates an unformatted disk. You would need to partition or 
initialize the file system given you have a RAM disk.

The file system driver lives here: 
https://github.com/tianocore/edk2/tree/master/FatPkg/EnhancedFatDxe

The ArmPkg has a driver that lets you do a file system over JTAG: 
https://github.com/tianocore/edk2/blob/master/ArmPkg/Filesystem/SemihostFs/Arm/

You can make a ReadOnly file system out of contents on an FV (Firmware Volume): 
https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Universal/FvSimpleFileSystemDxe
FV is defined in the PI Spec as a layout for flash that contains files, but no 
directories.

Thanks,

Andrew Fish


On Mar 29, 2024, at 1:21 AM, John Chew 
<yuinyee.c...@starfivetech.com<mailto:yuinyee.c...@starfivetech.com>> wrote:

[cid:attach_0_17C12E88E9BAF705_29633@groups.io]




-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#117247): https://edk2.groups.io/g/devel/message/117247
Mute This Topic: https://groups.io/mt/105212723/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to