Re: [edk2] Using a Ram Disk created during boot time when the OS has been loaded

Subject: Re: [edk2] Using a Ram Disk created during boot time when the OS has been loaded

From: Daniel Moral <daniel.moral@ericsson.com>

To: "edk2-devel@lists.sourceforge.net" <edk2-devel@lists.sourceforge.net>

Date: 2011-09-28 23:53:13

Thank you for your response. I am having a look at the InstallConfigurationTable boot service and I think I could be able to publish this entry with the requested information.
 
I would need more help about the modifications to the OS ramdisk driver. Could you give me any ideas or any insight concerning this issue? I mean which driver to modify, how to access this table in the OS etc...
 
Thank you very much

BR
 
Daniel


From: Cohen, Eugene [mailto:eugene@hp.com]
Sent: Wednesday, September 28, 2011 3:36 PM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] Using a Ram Disk created during boot time when the OS has been loaded

You can publish an entry in the Configuration Table (describing the ramdisk base address and size) and then write (or modify) an OS ramdisk driver to obtain this info from the Configuration Table.  Look at the InstallConfigurationTable boot service description in the UEFI spec for more information.

 

From: Daniel Moral [mailto:daniel.moral@ericsson.com]
Sent: Wednesday, September 28, 2011 6:56 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] Using a Ram Disk created during boot time when the OS has been loaded

 

Hi,

 

I have a board which loads a Ram Disk and creates a FAT16 filesystem during boot time using a modified EFI toolkit ramdisk driver. I allocate the memory needed to run it using runtime memory:

 

Status = pBS->AllocatePages(AllocateAnyPages,EfiRuntimeServicesData,NumPages,&RamDiskDev->Start);

 

Then I boot a SUSE Enterprise Server Linux 2.6.39.1.

 

I would like to know how could I make this Ram Disk filesystem available for the OS as a FAT16 filesystem so I can store the changes I made while working on the pre-boot environment.

 

I would really appreciarte your help.

 

BR

 

Daniel