From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=50.245.10.177; helo=microway.com; envelope-from=rick@microway.com; receiver=edk2-devel@lists.01.org Received: from microway.com (mail1.microway.com [50.245.10.177]) by ml01.01.org (Postfix) with ESMTP id 3103221E0B9F5 for ; Mon, 12 Feb 2018 13:01:45 -0800 (PST) Received: from jungle.microway.com (jungle.microway.com [10.100.100.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by microway.com (Postfix) with ESMTPSA id 231609F48B for ; Mon, 12 Feb 2018 16:07:35 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microway.com; s=verified; t=1518469655; bh=7NFddDuKXuODbWC++udKIN6epimk3pBSjyp66dTNIYs=; h=To:From:Subject:Date; b=eqYMUuAk+R813MZ9oxMsTnlbTAcCG2/aAUf8v48ERO9oTU+eJWqD9C/rjUkSD0Clq b86mq0lyMmKKjLwbQiktf1SbTUN3ZfSZqwYdJTzn7oQ27ebPeljJar/HOrnyCx2x72 PtuE7yG01bVvsdsMT56mBj6lWGPG8QBnLAPanE0I= To: edk2-devel@lists.01.org From: Rick Warner Message-ID: Date: Mon, 12 Feb 2018 16:07:34 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Subject: how do I use RamDiskDxe? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Feb 2018 21:01:46 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Hi All, I'm trying to develop a tool for automated BIOS flashing from the EFI shell using IPMI serial over lan to drive it.  To accomplish this, my plan is to use a network booted EFI shell with a tftp client and a ramdisk to download the flash tools and ROM into as a workspace and then run the flash commands from that ram disk. I've been able to successfully build and boot an efi shell from the edk 2 sources including the tftp client.  I've also been able to separately build the RamDiskDxe driver from the MdeModulePkg. Loading the RamDiskDxe.efi driver file results in a successful message, but I do not get any usable ram disk made available to me? How do I get a usable drive letter/name (ie blk0: or any other name) from the RamDiskDxe driver? Once I've done that, will it be possible to include the RamDiskDxe driver as part of the network bootable efi shell image?  I assume I'll need to modify the .dsc file for the ShellPkg to include the MdeModulePkg pieces. If anyone has any other suggestions for this, I'm open to ideas. The only way I've been successful in network booting EFI shell is using just that file directly.  I tried creating a dos filesystem image with the efi shell file in it just like would work with a USB key, but that would not boot over the network stack. If there is some way of creating a network bootable EFI shell filesystem image (similar to how Linux can network boot a separate vmlinuz kernel and initrd image)? Are there any docs that I've missed (I've tried looking in the user docs and on the wiki) regarding setting up RamDiskDxe? Thanks! Rick Warner