From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bounce+27952+117245+7686176+12367111@groups.io>
Received: from mail02.groups.io (mail02.groups.io [66.175.222.108])
	by spool.mail.gandi.net (Postfix) with ESMTPS id 4462F740035
	for <rebecca@openfw.io>; Fri, 29 Mar 2024 22:10:58 +0000 (UTC)
DKIM-Signature: a=rsa-sha256; bh=0MRUi8rP0cv3sXP9DjLCKul+MpWhP1q0mx5QfjEgQGc=;
 c=relaxed/simple; d=groups.io;
 h=From:MIME-version:Subject:Date:References:To:In-reply-to:Message-id:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-type;
 s=20240206; t=1711750256; v=1;
 b=D+8+W0ZT0aj663eAaswEDb1kBV1bZLv0Fx6+aeSpLh5TP5ep0MZP0BertDm2QZEuDbJuoMLF
 9rbCsBQuzZipgiSbAx55446ilPmvsNU8Gu6x8b2UFL9oUdi9up6mFiAb/gIJGYHjURUWBaXC/eb
 VSlbGUAQMyHSmkvaFnmlyocmj0dziJ+kDxtxtMEM2ChkatvjDMqRQznVRWhbtqaiKrmiQGgp/Lo
 HdO8kEVPU5kUJnNx12kHMvGrjXYqUyWhKsy1PENDuVW2jXFEsvugUVxfdpF4zzQHEYhFAcTjUbp
 U8lXoHIQzbkObe2TVxlUhi7GW014wnCR+57wquwzWOpHw==
X-Received: by 127.0.0.2 with SMTP id QRc5YY7687511xDPvj9ERsXX; Fri, 29 Mar 2024 15:10:56 -0700
X-Received: from ma-mailsvcp-mx-lapp01.apple.com (ma-mailsvcp-mx-lapp01.apple.com [17.32.222.22])
 by mx.groups.io with SMTP id smtpd.web11.3277.1711750256278411657
 for <devel@edk2.groups.io>;
 Fri, 29 Mar 2024 15:10:56 -0700
X-Received: from rn-mailsvcp-mta-lapp02.rno.apple.com
 (rn-mailsvcp-mta-lapp02.rno.apple.com [10.225.203.150])
 by ma-mailsvcp-mx-lapp01.apple.com
 (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28
 2023)) with ESMTPS id <0SB400V5XQY56H20@ma-mailsvcp-mx-lapp01.apple.com> for
 devel@edk2.groups.io; Fri, 29 Mar 2024 15:10:55 -0700 (PDT)
X-Received: from rn-mailsvcp-mmp-lapp03.rno.apple.com
 (rn-mailsvcp-mmp-lapp03.rno.apple.com [17.179.253.16])
 by rn-mailsvcp-mta-lapp02.rno.apple.com
 (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28
 2023)) with ESMTPS id <0SB4011HRQY1TVN0@rn-mailsvcp-mta-lapp02.rno.apple.com>;
 Fri, 29 Mar 2024 15:10:49 -0700 (PDT)
X-Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp03.rno.apple.com by
 rn-mailsvcp-mmp-lapp03.rno.apple.com
 (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28
 2023)) id <0SB400Y00QXH3M00@rn-mailsvcp-mmp-lapp03.rno.apple.com>; Fri,
 29 Mar 2024 15:10:49 -0700 (PDT)
X-Va-A: 
X-Va-T-CD: fdd7933760d892ef8c3e1f604d85e2a8
X-Va-E-CD: 16ac8ebe155b29385efb935ad329a370
X-Va-R-CD: 10c2fc0eaf5a989fd894765b7c87f1ae
X-Va-ID: d9a0da9d-819c-402c-8214-760d3755a14b
X-Va-CD: 0
X-V-A: 
X-V-T-CD: fdd7933760d892ef8c3e1f604d85e2a8
X-V-E-CD: 16ac8ebe155b29385efb935ad329a370
X-V-R-CD: 10c2fc0eaf5a989fd894765b7c87f1ae
X-V-ID: 52a166b6-abb3-439e-816f-2c5755725216
X-V-CD: 0
X-Received: from smtpclient.apple (unknown [17.234.114.154])
 by rn-mailsvcp-mmp-lapp03.rno.apple.com
 (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28
 2023))
 with ESMTPSA id <0SB400RMNQY0WC00@rn-mailsvcp-mmp-lapp03.rno.apple.com>; Fri,
 29 Mar 2024 15:10:49 -0700 (PDT)
From: "Andrew Fish via groups.io" <afish=apple.com@groups.io>
MIME-version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\))
Subject: Re: [edk2-devel] Is there a way to create filesystem in UEFI Shell ?
Date: Fri, 29 Mar 2024 15:10:36 -0700
References: <QxQh.1711700498925714243.bpxd@groups.io>
To: devel@edk2.groups.io, yuinyee.chew@starfivetech.com
In-reply-to: <QxQh.1711700498925714243.bpxd@groups.io>
Message-id: <2C326D09-30A2-4421-ADA2-EFE6D3910C67@apple.com>
Precedence: Bulk
List-Subscribe: <mailto:devel+subscribe@edk2.groups.io>
List-Help: <mailto:devel+help@edk2.groups.io>
Sender: devel@edk2.groups.io
List-Id: <devel.edk2.groups.io>
Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io
Resent-Date: Fri, 29 Mar 2024 15:10:56 -0700
Reply-To: devel@edk2.groups.io,afish@apple.com
List-Unsubscribe-Post: List-Unsubscribe=One-Click
List-Unsubscribe: <https://edk2.groups.io/g/devel/leave/12367111/7686176/1913456212/plugh>
X-Gm-Message-State: EwmijdwDFqCzPBv4M67fnhCKx7686176AA=
Content-type: multipart/alternative;
 boundary="Apple-Mail=_5968056D-B1B9-4411-A503-9FE598E0EC3B"
X-GND-Status: LEGIT
Authentication-Results: spool.mail.gandi.net;
	dkim=pass header.d=groups.io header.s=20240206 header.b=D+8+W0ZT;
	dmarc=pass (policy=none) header.from=groups.io;
	spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io

--Apple-Mail=_5968056D-B1B9-4411-A503-9FE598E0EC3B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

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

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

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

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

Thanks,

Andrew Fish

> On Mar 29, 2024, at 1:21=E2=80=AFAM, John Chew <yuinyee.chew@starfivetech=
.com> wrote:
>=20
>=20



-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#117245): https://edk2.groups.io/g/devel/message/117245
Mute This Topic: https://groups.io/mt/105212723/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-



--Apple-Mail=_5968056D-B1B9-4411-A503-9FE598E0EC3B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=
=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; -webkit-nbsp-mod=
e: space; line-break: after-white-space;">MdeModulePkg/Universal/Disk/RamDi=
skDxe/RamDiskDxe.inf is a virtual storage device, so it just emulates an un=
formatted disk. You would need to partition or initialize the file system g=
iven you have a RAM disk.&nbsp;<div><br></div><div>The file system driver l=
ives here:&nbsp;<a href=3D"https://github.com/tianocore/edk2/tree/master/Fa=
tPkg/EnhancedFatDxe">https://github.com/tianocore/edk2/tree/master/FatPkg/E=
nhancedFatDxe</a></div><div><br></div><div></div><div>The ArmPkg has a driv=
er that lets you do a file system over JTAG:&nbsp;<a href=3D"https://github=
.com/tianocore/edk2/blob/master/ArmPkg/Filesystem/SemihostFs/Arm/">https://=
github.com/tianocore/edk2/blob/master/ArmPkg/Filesystem/SemihostFs/Arm/</a>=
</div><div><br></div><div>You can make a ReadOnly file system out of conten=
ts on an FV (Firmware Volume):&nbsp;<a href=3D"https://github.com/tianocore=
/edk2/tree/master/MdeModulePkg/Universal/FvSimpleFileSystemDxe">https://git=
hub.com/tianocore/edk2/tree/master/MdeModulePkg/Universal/FvSimpleFileSyste=
mDxe</a></div><div>FV is defined in the PI Spec as a layout for flash that =
contains files, but no directories.&nbsp;<br><div><br></div><div>Thanks,</d=
iv><div><br></div><div>Andrew Fish</div><div><div><br><blockquote type=3D"c=
ite"><div>On Mar 29, 2024, at 1:21=E2=80=AFAM, John Chew &lt;yuinyee.chew@s=
tarfivetech.com&gt; wrote:</div><br class=3D"Apple-interchange-newline"><di=
v><img src=3D"cid:attach_0_17C12E88E9BAF705_29633@groups.io" alt=3D"" width=
=3D"469" height=3D"366" style=3D"caret-color: rgb(0, 0, 0); font-family: He=
lvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; fo=
nt-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px=
; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-tex=
t-stroke-width: 0px; text-decoration: none;"></div></blockquote></div><br><=
/div></div></body></html>

<div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div>
<hr>


Groups.io Links:<p>


 =20
    You receive all messages sent to this group.
 =20
 =20


<p>
<a target=3D"_blank" href=3D"https://edk2.groups.io/g/devel/message/117245"=
>View/Reply Online (#117245)</a> |


 =20

|

  <a target=3D"_blank" href=3D"https://groups.io/mt/105212723/7686176">Mute=
 This Topic</a>


| <a href=3D"https://edk2.groups.io/g/devel/post">New Topic</a>

<br>




<a href=3D"https://edk2.groups.io/g/devel/editsub/7686176">Your Subscriptio=
n</a> |
<a href=3D"mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |

<a href=3D"https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>

 [rebecca@openfw.io]<br>
<div width=3D"1" style=3D"color:white;clear:both">_._,_._,_</div>


--Apple-Mail=_5968056D-B1B9-4411-A503-9FE598E0EC3B--