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 61259780091 for ; Mon, 1 Apr 2024 03:39:50 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=vCGENRJ8J6r9N9jg61Wn6poK2LKoz5j8A4XvXLVj6pU=; c=relaxed/simple; d=groups.io; h=Subject:To:From:User-Agent:MIME-Version:Date:References:In-Reply-To:Message-ID:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20240206; t=1711942789; v=1; b=Y5XbDyku2PP8XmkH3nCajAM/hzPx/NxY6pacTBCgmwHXWgRha1nKN3X0zFp1q5OPPr6+yT2v dSnNEqqKhN03x1CGCk9yeWQRj2WOsR85L/v7zL6A6BbnQhiBX5Xg9VVDr9T3vNSWl7SlV/lwUku ggim47vA79ncJ7IrcjGCgXFUxeARyYJloNCbfcfInNao73agn77euei7ElgF0asdQwSsVBaiWe3 fOK1dZLqnzsUyY//N+rw427bj9YZbbbf5lvF4uPnt7CMYnSEwARLQvU9x4OcX+jFHt6fkyRPOlf MNfXJcmpOItZBD9RKlZoXwkra3URn9JJ8DLnMyg8VfW3A== X-Received: by 127.0.0.2 with SMTP id dHT1YY7687511x0xU0snPhee; Sun, 31 Mar 2024 20:39:49 -0700 Subject: Re: [edk2-devel] Is there a way to create filesystem in UEFI Shell ? To: "Andrew Fish" , devel@edk2.groups.io From: "John Chew" X-Originating-Location: Banting, Selangor, MY (202.188.176.82) X-Originating-Platform: Windows Chrome 123 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Sun, 31 Mar 2024 20:39:47 -0700 References: <2C326D09-30A2-4421-ADA2-EFE6D3910C67@apple.com> In-Reply-To: <2C326D09-30A2-4421-ADA2-EFE6D3910C67@apple.com> Message-ID: <23235.1711942787716839645@groups.io> 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 Reply-To: devel@edk2.groups.io,yuinyee.chew@starfivetech.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: pHB2GVP0emXlV3vOhuG5uePQx7686176AA= Content-Type: multipart/alternative; boundary="HfX5mhFlbJTahmWuGOhv" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=Y5XbDyku; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io --HfX5mhFlbJTahmWuGOhv Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Sat, Mar 30, 2024 at 06:10 AM, Andrew Fish wrote: >=20 > You can make a ReadOnly file system out of contents on an FV (Firmware > Volume): https://github.com/tianocore/edk2/tree/master/MdeModulePkg/Unive= rsal/FvSimpleFileSystemDxe >=20 > FV is defined in the PI Spec as a layout for flash that contains files, > but no directories. >=20 Hi Andrew, I forgot to mention earlier, that I'm developing for RISC-V architecture. It seems like the semihosting lib in edk2 does not have support for RISC-V = yet. Thanks for the=C2=A0FvSimpleFileSystemDxe suggestion. Actually, I'm trying to TFTP "initramfs" (1MB) and "linux.efi" (25MB) into = a filesystem. So, it requires to support write to the filesystem. Do you have other suggestions? Thanks! =3D) John -=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 (#117275): https://edk2.groups.io/g/devel/message/117275 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- --HfX5mhFlbJTahmWuGOhv Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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= 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 architecture= .

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

 

Thanks for the FvSimpleFileSystemDxe suggestion.

Actually, I'm trying to TFTP "initramfs" (1MB) and "linux.efi" (25MB) in= to a filesystem. So, it requires to support write to the filesystem. <= /p>

 

Do you have other suggestions?

 

Thanks! =3D)

John

_._,_._,_

Groups.io Links:

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

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

_._,_._,_
--HfX5mhFlbJTahmWuGOhv--