Murali,
Map names in the shell are like "FS0" or "FS1" and represent each file system.
Unless you need to do raw writing, it's a lot easier to let the other
drivers/applications help you.
I would use ShellProtocol functions:
GetDevicePathFromMap() (for each map item)
Then determine which device path has the SCSI node that you are interested in.
Use DevicePathLib to help enumerate through the path provided.
And the ShellLib functions:
ShellOpenFileByName () (make up any filename starting with the map you
specified above).
ShellWriteFile
ShellCloseFile
Will help you write data.
-Jaben
From: Murali Selvaraj [mailto:murali.selvaraj2...@gmail.com]
Sent: Monday, September 16, 2013 9:55 AM
To: edk2-devel@lists.sourceforge.net; Carsey, Jaben
Subject: Re: edk2-devel Digest, Vol 45, Issue 67
Importance: High
Hi Jaben,
<Jaben> Is there a reason that you are writing a drive and not a UEFI Shell
application?
<Murali> I don't have any specific reason.Please help on my query?
On Mon, Sep 16, 2013 at 9:59 PM,
<edk2-devel-requ...@lists.sourceforge.net<mailto:edk2-devel-requ...@lists.sourceforge.net>>
wrote:
Send edk2-devel mailing list submissions to
edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/edk2-devel
or, via email, send a message with subject or body 'help' to
edk2-devel-requ...@lists.sourceforge.net<mailto:edk2-devel-requ...@lists.sourceforge.net>
You can reach the person managing the list at
edk2-devel-ow...@lists.sourceforge.net<mailto:edk2-devel-ow...@lists.sourceforge.net>
When replying, please edit your Subject line so it is more specific
than "Re: Contents of edk2-devel digest..."
Today's Topics:
1. Re: SCSI read/write help (Carsey, Jaben)
2. PCI-SAS controller (Murali Selvaraj)
3. Re: PCI-SAS controller (Carsey, Jaben)
----------------------------------------------------------------------
Message: 1
Date: Mon, 16 Sep 2013 15:41:26 +0000
From: "Carsey, Jaben" <jaben.car...@intel.com<mailto:jaben.car...@intel.com>>
Subject: Re: [edk2] SCSI read/write help
To: "edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>"
<edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>>
Message-ID:
<cb6e33457884fa40993f35157061515c41046...@fmsmsx103.amr.corp.intel.com<mailto:cb6e33457884fa40993f35157061515c41046...@fmsmsx103.amr.corp.intel.com>>
Content-Type: text/plain; charset="us-ascii"
Are you planning to write a UEFI Shell Application, UEFI Application (without
shell), or a UEFI Driver?
There are many possible methods to do what you're trying to do.
-Jaben
From: parmeshwr_pra...@dell.com<mailto:parmeshwr_pra...@dell.com>
[mailto:parmeshwr_pra...@dell.com<mailto:parmeshwr_pra...@dell.com>]
Sent: Monday, September 16, 2013 8:03 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: [edk2] SCSI read/write help
Dell - Internal Use - Confidential
Hi All,
I need to search the SCSI in system and then want to write some data on HDD.
Can anybody help me how to proceed with that.
Some idea I have like
1- From gBS openprotocol for scsi
2- Then get device type
Required
1- How to get HDD ID to select particular HDD to write ?
2- How to select particular block to write ?
3- How to read back the data ?
Best Regards,
Parmeshwr Prasad
Tel : +91-9743262018
[cid:image002.png@01CE781A.38F61FE0]
-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6104 bytes
Desc: image001.png
------------------------------
Message: 2
Date: Mon, 16 Sep 2013 21:54:42 +0530
From: Murali Selvaraj
<murali.selvaraj2...@gmail.com<mailto:murali.selvaraj2...@gmail.com>>
Subject: [edk2] PCI-SAS controller
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Message-ID:
<CAODFaZ5Xepu5SNprZTBnB_y2tr4-BHxBuB_CGsg1X=f2yiw...@mail.gmail.com<mailto:f2yiw...@mail.gmail.com>>
Content-Type: text/plain; charset="iso-8859-1"
Hi All,
My intel board has multiple PCIe slots,one of slots connected with PCI
Express to 4-Port Serial Attached SCSIController.On this SAS controller
I have connected three SCSI devices from the on board SAS slots.
I need to write a driver which will display the connected scsi devices with
the following information.
1) Device Type 2) Size of the Hard disk
Query:
1) Do I need to implement SCSI host controller driver or SCSI bus driver
or SCSI device driver?
2) Do I need to implement PCI root bridge driver or PCI bus driver or PCI
driver?
3) My driver will load from EFI shell <efi shell> load driver.efi
The output should display the connected end devices list with the above
information.
4) Please suggests me how to start to implement with any reference code
with respect to my requirement.
Thanks
Murali.S
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 3
Date: Mon, 16 Sep 2013 16:28:52 +0000
From: "Carsey, Jaben" <jaben.car...@intel.com<mailto:jaben.car...@intel.com>>
Subject: Re: [edk2] PCI-SAS controller
To: "edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>"
<edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>>
Message-ID:
<cb6e33457884fa40993f35157061515c41046...@fmsmsx103.amr.corp.intel.com<mailto:cb6e33457884fa40993f35157061515c41046...@fmsmsx103.amr.corp.intel.com>>
Content-Type: text/plain; charset="us-ascii"
Is there a reason that you are writing a drive and not a UEFI Shell application?
-Jaben
From: Murali Selvaraj
[mailto:murali.selvaraj2...@gmail.com<mailto:murali.selvaraj2...@gmail.com>]
Sent: Monday, September 16, 2013 9:25 AM
To: edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
Subject: [edk2] PCI-SAS controller
Hi All,
My intel board has multiple PCIe slots,one of slots connected with PCI Express
to 4-Port Serial Attached SCSIController.On this SAS controller
I have connected three SCSI devices from the on board SAS slots.
I need to write a driver which will display the connected scsi devices with the
following information.
1) Device Type 2) Size of the Hard disk
Query:
1) Do I need to implement SCSI host controller driver or SCSI bus driver or
SCSI device driver?
2) Do I need to implement PCI root bridge driver or PCI bus driver or PCI
driver?
3) My driver will load from EFI shell <efi shell> load driver.efi
The output should display the connected end devices list with the above
information.
4) Please suggests me how to start to implement with any reference code with
respect to my requirement.
Thanks
Murali.S
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net<mailto:edk2-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/edk2-devel
End of edk2-devel Digest, Vol 45, Issue 67
******************************************
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel