From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id EC705780091 for ; Mon, 1 Apr 2024 15:07:18 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=hHN7CHdzFC+VLtK9uk1gC9emeaO+SPe82bW/oOwUFao=; 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=1711984037; v=1; b=GhCTu3dm1n152QqU+nb9dpw4qUIGSM5J/0eMEpMQ01k6gXER6YpkfChu82WpR3t8Hm2mi1Oo +dxi1BLyjnUyi8spvG2fvGv1foc99dq/qOHnVJq9TIpHA7tIc21Cvd7IkUEh6OODPXenUJYBp04 PSTBLwfYZxGCaPRu6S6oNgb+n5iOoYsoXoVvXJOe1ZxBHp3ODWNyXgLXjrAZAJHr5mwWtRJ57lU jrLMZDplHNmgZ8ppBn5BacqGGxA84xqyBdmrh9q6tvzKQu+7k12EWHI+smTrUsl7CjJRgK4b4So rAgpHORM/jfgpC4o/FD5Qdi9ycwE2oiBR+PR3L7GTLsCw== X-Received: by 127.0.0.2 with SMTP id CAyHYY7687511x2um0RtLBXU; Mon, 01 Apr 2024 08:07:17 -0700 X-Received: from rn-mailsvcp-mx-lapp03.apple.com (rn-mailsvcp-mx-lapp03.apple.com [17.179.253.24]) by mx.groups.io with SMTP id smtpd.web11.39745.1711984036791720245 for ; Mon, 01 Apr 2024 08:07:16 -0700 X-Received: from rn-mailsvcp-mta-lapp01.rno.apple.com (rn-mailsvcp-mta-lapp01.rno.apple.com [10.225.203.149]) by rn-mailsvcp-mx-lapp03.rno.apple.com (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28 2023)) with ESMTPS id <0SB900O1ERC48C10@rn-mailsvcp-mx-lapp03.rno.apple.com> for devel@edk2.groups.io; Mon, 01 Apr 2024 08:07:16 -0700 (PDT) X-Received: from rn-mailsvcp-mmp-lapp04.rno.apple.com (rn-mailsvcp-mmp-lapp04.rno.apple.com [17.179.253.17]) by rn-mailsvcp-mta-lapp01.rno.apple.com (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28 2023)) with ESMTPS id <0SB9010K8RC4MZF0@rn-mailsvcp-mta-lapp01.rno.apple.com>; Mon, 01 Apr 2024 08:07:16 -0700 (PDT) X-Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp04.rno.apple.com by rn-mailsvcp-mmp-lapp04.rno.apple.com (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28 2023)) id <0SB900U00R024J00@rn-mailsvcp-mmp-lapp04.rno.apple.com>; Mon, 01 Apr 2024 08:07:16 -0700 (PDT) X-Va-A: X-Va-T-CD: 6a24260988ff4c7771286df56eb9e085 X-Va-E-CD: 16ac8ebe155b29385efb935ad329a370 X-Va-R-CD: 66677f5cc8d0db4865e8c53e91fe14ad X-Va-ID: 1d740b96-caab-4b32-988f-1c7cb4a6a979 X-Va-CD: 0 X-V-A: X-V-T-CD: 6a24260988ff4c7771286df56eb9e085 X-V-E-CD: 16ac8ebe155b29385efb935ad329a370 X-V-R-CD: 66677f5cc8d0db4865e8c53e91fe14ad X-V-ID: cb1ab03b-c2e7-49f4-9151-c15784dd6717 X-V-CD: 0 X-Received: from smtpclient.apple (unknown [17.11.152.104]) by rn-mailsvcp-mmp-lapp04.rno.apple.com (Oracle Communications Messaging Server 8.1.0.23.20230328 64bit (built Mar 28 2023)) with ESMTPSA id <0SB900754RC38D00@rn-mailsvcp-mmp-lapp04.rno.apple.com>; Mon, 01 Apr 2024 08:07:16 -0700 (PDT) From: "Andrew Fish via 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: Mon, 01 Apr 2024 08:07:10 -0700 References: <2C326D09-30A2-4421-ADA2-EFE6D3910C67@apple.com> <23235.1711942787716839645@groups.io> To: edk2-devel-groups-io , yuinyee.chew@starfivetech.com In-reply-to: <23235.1711942787716839645@groups.io> Message-id: <89ED0653-81D3-4926-A29E-2E6912F8694D@apple.com> Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Mon, 01 Apr 2024 08:07:16 -0700 Reply-To: devel@edk2.groups.io,afish@apple.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: MLiMcez3J4MWc2EPEnTTFMjwx7686176AA= Content-type: multipart/alternative; boundary="Apple-Mail=_FBEF0028-ABF4-4A97-9961-19787557D1F6" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=GhCTu3dm; 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=_FBEF0028-ABF4-4A97-9961-19787557D1F6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 31, 2024, at 8:39=E2=80=AFPM, John Chew wrote: >=20 > On Sat, Mar 30, 2024 at 06:10 AM, Andrew Fish wrote: > You can make a ReadOnly file system out of contents on an FV (Firmware Vo= lume): 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, b= ut no directories.=20 > Hi Andrew, >=20 > =20 > I forgot to mention earlier, that I'm developing for RISC-V architecture. >=20 > It seems like the semihosting lib in edk2 does not have support for RISC-= V yet. >=20 > =20 > Thanks for the FvSimpleFileSystemDxe suggestion. >=20 > Actually, I'm trying to TFTP "initramfs" (1MB) and "linux.efi" (25MB) int= o a filesystem. So, it requires to support write to the filesystem.=20 >=20 > =20 > Do you have other suggestions? >=20 The source code Mike linked. I forgot the place it lived.=20 I think we are really enough in the RISC-V that some older things have not = been ported. It should not be that hard to port to edk2. That would probabl= y get RISC-V working. Thanks, Andrew Fish > =20 > Thanks! =3D) >=20 > John >=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 (#117296): https://edk2.groups.io/g/devel/message/117296 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=_FBEF0028-ABF4-4A97-9961-19787557D1F6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8


On Ma= r 31, 2024, at 8:39=E2=80=AFPM, John Chew <yuinyee.chew@starfivetech.com= > wrote:

On Sat, Mar 3= 0, 2024 at 06:10 AM, Andrew Fish wrote:
You can make a ReadOnly file system out of contents on an FV (Firmware= Volume): https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Univ= ersal/FvSimpleFileSystemDxe
FV is defined in the PI Spec as a layout for flash that contains files= , but no directories. 

Hi Andrew,

 

I forgot to mention earlier, that I'm developing for RISC-V a= rchitecture.

It seems like the semihosting lib in edk2 does not have = support for RISC-V yet.

 

Thanks for the FvSimpleFileSystemDxe suggestion.

Actu= ally, I'm trying to TFTP "initramfs" (1MB) and "linux.efi" (25MB) into a fi= lesystem. So, it requires to support write to the filesystem. 

 

Do you have other su= ggestions?

The source code Mike linked. I forgot= the place it lived. 

I think we are really e= nough in the RISC-V that some older things have not been ported. It should = not be that hard to port to edk2. That would probably get RISC-V working.

Thanks,

Andrew Fish
<= br>
 

Thanks! =3D)

John


_._,_._,_

Groups.io Links:

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

View/Reply Online (#117296) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--Apple-Mail=_FBEF0028-ABF4-4A97-9961-19787557D1F6--