Re: [edk2] EDK2 build using Visual Studio

2017-06-08 Thread GN Keshava
t; to link in floating point libraries. EFI edk2 code does not support > floating point, so you may run into porting issues from tool chain to > toolchain if you use floating point. > > Thanks, > > Andrew Fish > > > > Thanks > > Liming > > From: GN Kesha

Re: [edk2] Issue in ConvertHandleIndexToHandle and ConvertHandleToHandleIndex

2017-06-06 Thread GN Keshava
ll > want access to the handle index concept that I can think of. > > > > I think that your current solution is the best one. > > > > -Jaben > > > > *From:* GN Keshava [mailto:keshava...@gmail.com] > *Sent:* Tuesday, June 06, 2017 9:32 AM > &

Re: [edk2] Issue in ConvertHandleIndexToHandle and ConvertHandleToHandleIndex

2017-06-06 Thread GN Keshava
t; > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > > GN Keshava > > Sent: Tuesday, June 06, 2017 9:12 AM > > To: Carsey, Jaben ; edk2-devel@lists.01.org > > Subject: Re: [edk2] Issue in ConvertHandleIndexToHandle and > > ConvertHandleTo

Re: [edk2] Issue in ConvertHandleIndexToHandle and ConvertHandleToHandleIndex

2017-06-06 Thread GN Keshava
l Message- > > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > > GN Keshava > > Sent: Tuesday, June 06, 2017 3:20 AM > > To: edk2-devel@lists.01.org > > Subject: [edk2] Issue in ConvertHandleIndexToHandle and > > ConvertHandleToHandleIn

[edk2] Issue in ConvertHandleIndexToHandle and ConvertHandleToHandleIndex

2017-06-06 Thread GN Keshava
Hi, Thanks all for your kind help. I'm doing few operations using serial port. So, I've done a small serial driver by referring FTDI code, and I'm accessing this using serialIO from my application. and it was working fine with older EFI shell. Now I'm using the latest UEFI shell. Now It's workin

Re: [edk2] EDK2 build using Visual Studio

2017-06-05 Thread GN Keshava
on, 5 Jun 2017 at 18:13 Gao, Liming wrote: > Keshava: > You can build platform with -t VS2015 or -t VS2015x86 to enable VS2015 > tool chain. > > > -Original Message- > > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > GN Keshava > &

[edk2] EDK2 build using Visual Studio

2017-06-05 Thread GN Keshava
Hi, I was able to build EDK2 using VS2008. Did anyone used VS2015 and built the EDK2? If yes, I want to know how I can do it. Thanks. With regards, Keshava ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-de

Re: [edk2] Unmount and mount a mass storage from shell

2017-05-31 Thread GN Keshava
t;map -r" to generate a new > mapping. > > Reconnecting drivers is standard user behavior after plug in a USB > device. It is not expected to happen automatically. > > -Jaben > > > -Original Message- > > From: edk2-devel [mailto:edk2-devel-boun...@lists.01

Re: [edk2] Unmount and mount a mass storage from shell

2017-05-30 Thread GN Keshava
of the change. > It is not designed to automatically do detection of added/removed/changed > devices. > > > > I think that your solution to use the code from mount makes the most sense. > > > > -Jaben > > > > *From:* GN Keshava [mailto:keshava...@gmail.com] &g

Re: [edk2] Unmount and mount a mass storage from shell

2017-05-25 Thread GN Keshava
e driver > You can do "map -d" to delete a mapping > > I am unsure what your goals are for mount/unmount > > -Jaben > > > -Original Message- > > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > > GN Keshava > >

[edk2] Unmount and mount a mass storage from shell

2017-05-24 Thread GN Keshava
How can I unmount and mount a mass storage fs from UEFI shell? In older EFI shells, I can do with "mount" command. But it just does "mapping" in newer shell. It doesn't actually remounting the device. Please help. thanks ___ edk2-devel mailing list edk

Re: [edk2] UEFI shell vs UEFI BIOS version compatibility

2017-05-23 Thread GN Keshava
> > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of GN > Keshava > Sent: 23 May 2017 17:01 > To: edk2-devel@lists.01.org > Subject: [edk2] UEFI shell vs UEFI BIOS version compatibility > > Hi all, > > I wa

[edk2] UEFI shell vs UEFI BIOS version compatibility

2017-05-23 Thread GN Keshava
Hi all, I was using older version of UEFI shell (older EFI shell inside EdkShellBinPkg). It was working fine with my testing PCs (Intel core i5 (Dell Optiplex 7020) (UEFI ver 2.31) as well as Intel Gigabit motherboard (UEFI ver 2.4)). I'm able to load any driver efi and use it. Now I'm trying new

[edk2] Strange issue in USB mass storage device

2017-05-22 Thread GN Keshava
Hi all, I'm testing a USB mass storage device (A linux CDC gadget, which has serial and mass storage with FAT32 filesystem) which works fine with Windows. I'm booting to UEFI shell using another mass storage device (a thumb drive). My device under test (A linux CDC gadget, which has serial and ma

[edk2] Serial port flush in UEFI

2017-01-09 Thread GN Keshava
Hi, >From my UEFI application, I want to flush serial port (both TX and RX) similar to PurgeComm function in Windows . Can somebody suggest a way to do this on UEFI? Thanks! Regards, Keshava G N ___

Re: [edk2] LocateHandle for gEfiShellProtocolGuid is failing in my application

2016-12-27 Thread GN Keshava
aben wrote: > I wonder if the firmware supplier is using an older version of the shell > binary? Maybe it is EDK Shell and not UEFI Shell? I am unsure how to fix > the issue. > > -Jaben > > > -Original Message- > > From: edk2-devel [mailto:edk2-devel-bo

Re: [edk2] LocateHandle for gEfiShellProtocolGuid is failing in my application

2016-12-22 Thread GN Keshava
eas LocaetProtocol would be just getting a pointer to > the protocol. > > > > Which version of the UEFI Shell are you using? (what does “ver” command > say) > > > > -Jaben > > > > *From:* GN Keshava [mailto:keshava...@gmail.com] > *Sent:* Thursday, December 2

Re: [edk2] LocateHandle for gEfiShellProtocolGuid is failing in my application

2016-12-22 Thread GN Keshava
> gEfiShellProtocol = NULL; > } > > Are you running the UEFI Shell and then your application? > > > -Jaben > > > > > > -Original Message- > > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of > > GN

Re: [edk2] LocateHandle for gEfiShellProtocolGuid is failing in my application

2016-12-22 Thread GN Keshava
mp;gEfiShellProtocolGuid, > NULL, > (VOID **)&gEfiShellProtocol > ); > if (EFI_ERROR(Status)) { > gEfiShellProtocol = NULL; > } > > Are you running the UEFI Shell and then your application? > > > -Jaben > > > > > >

Re: [edk2] LocateHandle for gEfiShellProtocolGuid is failing in my application

2016-12-21 Thread GN Keshava
Thanks a lot, Andrew and Jaben. I will check these and get back... Thanks again. :) Regards, Keshava On ಗುರು, ಡಿಸೆಂ 22, 2016 12:43 ಪೂರ್ವಾಹ್ನ Andrew Fish wrote: > On Dec 20, 2016, at 11:32 PM, GN Keshava wrote: > > Hi, > > I'm developing a shell application. A call

[edk2] LocateHandle for gEfiShellProtocolGuid is failing in my application

2016-12-20 Thread GN Keshava
Hi, I'm developing a shell application. A call to LocateHandle for gEfiShellProtocolGuid is failing with Status 0x0E. Below is my code. Please let me know what I'm doing wrong. Status = gBS->LocateHandle(ByProtocol, &gEfiShellProtocolGuid, NULL, &BufferSize, Buffer); // Get BufferSize if (EFI_ER

[edk2] VFAT mounting inconsistency in UEFI

2016-11-24 Thread GN Keshava
Hi, I'm connecting my Linux device to UEFI-running PC using USB Mass storage. Linux is enumerated as Mass storage on host (UEFI). Sometimes, the mass storage is not detecting/mounting on UEFI. Linux has partitioned it as VFAT. It is always being mounted on Windows/Linux. Has anybody tested this?

[edk2] map -r command

2016-11-21 Thread GN Keshava
Hi, Whether "map -r" command remounts the partitions? (does it unmount and mount again the partitions?) Thanks. Regards, Keshava ___ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel

[edk2] COM port usage in UEFI

2016-10-25 Thread GN Keshava
Hi all, In my UEFI application, I'm using Serial protocol to access COM port. I'm able to access COM port successfully. But I'm confused on how we can get user input regarding which COM port the user wants to access. *Example, I have already a Windows application for the same, where user selects

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-13 Thread GN Keshava
Got it. Thanks for the help, Laszlo. Regards, Keshava On Thu, 13 Oct 2016 at 14:03 Laszlo Ersek wrote: > On 10/13/16 03:29, GN Keshava wrote: > > Thanks Laszlo. > > > > Is it possible to run RM (or any shell command) from my C application > > code? Something like &

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread GN Keshava
map -nostartup -noversion -_exit [CMD OR FILE] > > Thanks > Michael > > On Thu, Oct 13, 2016 at 3:29 AM, GN Keshava wrote: > > Thanks Laszlo. > > Is it possible to run RM (or any shell command) from my C application code? > Something like "System()" in

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread GN Keshava
Thanks Laszlo. Is it possible to run RM (or any shell command) from my C application code? Something like "System()" in Linux? Whether we can use LoadImage for this purpose? Thanks again. Regards, Keshava On Wed 12 Oct, 2016 11:10 pm Laszlo Ersek, wrote: > On 10/12/16 19:34, GN

Re: [edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread GN Keshava
Thanks Laszlo, I'll check it out. I think I need to combine the LS implementation and RM implementation, isn't it? So there is no "format this volume" function or command exists, right? Thanks again! Regards, Keshava On Wed 12 Oct, 2016 8:01 pm Laszlo Ersek, wrote: >

[edk2] Format a volume in UEFI (or delete all files)

2016-10-12 Thread GN Keshava
Hi all, I need to format fs1: (or delete all files and folders in root directory) from my UEFI application. I'm able to use file system APIs such as Open, Write or Delete too. But Delete API needs File (file path) as argument, but what I want is delete all files (irrespective of file name). What

Re: [edk2] How to open a file by it's full path in UEFI

2016-09-29 Thread GN Keshava
name passed > through the command line using the Shell. > > > thanks, > Laurie > > laurie.jarlst...@intel.com > > Intel SSG/STO/EBP > (503) 712-9395 > > > > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of

Re: [edk2] Use fprintf in UEFI

2016-09-29 Thread GN Keshava
Thank you for detailed answer. Laszlo. Regards, Keshava On Thu, 29 Sep 2016 at 13:01 Laszlo Ersek wrote: > CC Jaben > > On 09/29/16 08:01, GN Keshava wrote: > > Hi, > > > > There is fprintf function in Stdio library. But how to use it? The first > > ar

[edk2] Use fprintf in UEFI

2016-09-28 Thread GN Keshava
Hi, There is fprintf function in Stdio library. But how to use it? The first argument is "FILE" type. But I have "EFI_FILE_PROTOCOL* File" which I got from "EFIOpenFile" function. How to map to "FILE" type? Sorry if this is silly. A newbie here. Didn't get much idea in internet search. :) Thanks

Re: [edk2] How to open a file by it's full path in UEFI

2016-09-27 Thread GN Keshava
; > > > > thanks, > > Laurie > > > > laurie.jarlst...@intel.com > > > > Intel SSG/STO/EBP > > (503) 712-9395 > > > > > > > > -Original Message- > > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of &

Re: [edk2] How to open a file by it's full path in UEFI

2016-09-27 Thread GN Keshava
Thank you Laszlo. I'll check it out. :) Thanks again. Regards, Keshava On Tue, 27 Sep 2016 at 16:47 Laszlo Ersek wrote: > On 09/27/16 12:46, GN Keshava wrote: > > Hi Laszlo, > > > > Thank you for the answer. It was helpful. > > > > Considering option

Re: [edk2] How to open a file by it's full path in UEFI

2016-09-27 Thread GN Keshava
programatically from my C file? Thanks again for the help. :) With regards, Keshava On Tue, 27 Sep 2016 at 15:19 Laszlo Ersek wrote: > On 09/27/16 11:25, GN Keshava wrote: > > Hi Laszlo, > > > > Thanks for the reply. I meant I have complete file path. I believe the > > &qu

Re: [edk2] How to open a file by it's full path in UEFI

2016-09-27 Thread GN Keshava
file? Thanks. With regards, Keshava On Tue, 27 Sep 2016 at 14:37 Andrew Fish wrote: > On Sep 27, 2016, at 2:03 AM, GN Keshava wrote: > > Hi all, > > > I'm trying to open a file from my UEFI application. The path of file is > > fs1:/myfolder/myfile.txt > > >

Re: [edk2] How to open a file by it's full path in UEFI

2016-09-27 Thread GN Keshava
Hi Laszlo, Thanks for the reply. I meant I have complete file path. I believe the "device path" is different. Is it possible to obtain DevicePath using my full file path? Thanks. Regards, Keshava On Tue, 27 Sep 2016 at 14:46 Laszlo Ersek wrote: > On 09/27/16 11:03, GN Keshava

[edk2] How to open a file by it's full path in UEFI

2016-09-27 Thread GN Keshava
Hi all, I'm trying to open a file from my UEFI application. The path of file is fs1:/myfolder/myfile.txt The code : efiStatus = bs->LocateHandleBuffer(ByProtocol, &sfspGuid, NULL, &handleCo

Re: [edk2] UEFI Sample application for read/write serial IO

2016-09-01 Thread GN Keshava
Thanks, Michael and Andrew... On Thu, 1 Sep 2016 at 20:56 Andrew Fish wrote: > > > On Sep 1, 2016, at 4:48 AM, GN Keshava wrote: > > > > Thanks Michael, > > > > By sample I mean is there any code which uses Serial IO Protocol to > > read/write to UART i

Re: [edk2] UEFI Sample application for read/write serial IO

2016-09-01 Thread GN Keshava
; I can't give you sample code but if you're familiar with using UEFI > protocols it's actually very easy. You just have to use > the gEfiSerialIoProtocolGuid protocol which can be found in: > MdePkg/Include/Protocol/SerialIo.h > > Thanks > Michael > > On Thu,

[edk2] UEFI Sample application for read/write serial IO

2016-09-01 Thread GN Keshava
Hi all, I want to write UEFI application which reads/writes to serial IO. Is there a sample UEFI application code available which demonstrates Serial IO read/write? Thanks. With regards, Keshava ___ edk2-devel mailing list edk2-devel@lists.01.org https:

Re: [edk2] USB 3.1 Support in UEFI

2016-08-16 Thread GN Keshava
Thanks, Feng! J On Wed, 17 Aug 2016 at 11:25 Tian, Feng wrote: > DP support depends on the graphic card you are using. You need consult IHV > rather than usJ > > > > Thanks > > Feng > > > > *From:* GN Keshava [mailto:keshava...@gmail.com] > *Sent:* Tuesday

Re: [edk2] USB 3.1 Support in UEFI

2016-08-15 Thread GN Keshava
e-C, it's > totally transparent for UEFI USB host controller driver and usb device > driver. It should be supported by platform/silicon driver to switch the MUX. > > Thanks > Feng > > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org]

[edk2] USB 3.1 Support in UEFI

2016-08-13 Thread GN Keshava
Hi all, I heard that UEFI supports USB3.0. Please confirm. Also let me know if *USB3.1 is supported in UEFI?* Als, It would be helpful if anybody please let me know DisplayPort or USB type C is supported in UEFI. Thanks, With regards, Keshava ___ edk2-

Re: [edk2] UEFI driver for USB CDC ACM Serial device

2016-07-07 Thread GN Keshava
Thank you so much, Feng. Regards, Keshava On Fri, 8 Jul 2016 at 07:14 Tian, Feng wrote: > No other nearer drivers you can refer to except this one. > > Thanks > Feng > > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf O

Re: [edk2] UEFI driver for USB CDC ACM Serial device

2016-07-07 Thread GN Keshava
wrote: > You could refer to OptionRomPkg\Bus\Usb\FtdiUsbSerialDxe, which is a > usb2serial driver. It will produce SerialIo based on UsbIo. > > > > Thanks > > Feng > > > > *From:* GN Keshava [mailto:keshava...@gmail.com] > *Sent:* Thursday, July 7, 2016 1

Re: [edk2] UEFI driver for USB CDC ACM Serial device

2016-07-06 Thread GN Keshava
to see > UsbIo protocol is installed for this board. You could locate this UsbIo to > see if it provides available endpoints for your serial output usage. > > Thanks > Feng > > -Original Message- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of GN

[edk2] UEFI driver for USB CDC ACM Serial device

2016-07-05 Thread GN Keshava
Hi all, I'm new to UEFI development. So far, I have learnt about UEFI shell, build procedure and application basics. My task is to communicate to a custom board from UEFI using uefi app through a USB serial cable from the PC. Currently, the PC is booted to UEFI shell and connected the board thro