[edk2-devel] How to set I2C host controller address/input clock frequency for MinnowBoard?

2022-09-23 Thread gordontcp
In 'MdeModulePkg\Bus\I2c\I2cDxe', since the following protocol is not installed: gEfiI2cMasterProtocolGuid gEfiI2cEnumerateProtocolGuid gEfiI2cBusConfigurationManagementProtocolGuid So I refer to the example of \edk2-platforms\Silicon\Marvell\Drivers\I2c\MvI2cDxe and add the following related

[edk2-devel] How to switch SMBus/I2c bus number in EDK2?

2022-09-06 Thread gordontcp
Hi all, My platform information is as follows: Minnowboard Max. I use i2cdetect under Linux to detect multiple I2c buses, such as: I2c-0 Synopsys DesignWare I2C adapter I2c-10 SMBus I801 adapter at 2000 I can scan the I2c-10 SMbus slave address 0x50 from the SpdRead code in the UEFI shell to

[edk2-devel] How to Enable I2c configuration in edk2

2022-09-06 Thread gordontcp
Hi all, I use the \MdeModulePkg\Bus\I2c\I2cDxe driver and load the driver with the following command: load I2cDxe.efi As a result, both I2cHostDriverSupported and I2cBusDriverSupported get the returned value Unsupported. The code is as follows: I2cHostDriverSupported ( IN

[edk2-devel] How to access I2C IO?

2022-08-11 Thread gordontcp
Hi all, I set following command to load i2cdxe.efi: load I2cDxe.efi. Then, I set ‘drivers’ in UEFI shell, and the number of devices connected to this driver is 0. After I loaded I2cDXe.efi, it showed the messages that I2cBusDriverSupported and I2cHostDriverSupported returned the values

[edk2-devel] How to operate I2C in UEFI app?

2022-08-01 Thread gordontcp
There is has an example of I2cDxe driver in edk2, the path is \MdeModulePkg\Bus\I2c\I2cDxe. However, I can't find an I2C example related to the app. I use the following function, try to get the I2C handle: EFI_STATUS LocateI2CIO(void) { EFI_STATUS Status; EFI_HANDLE* I2CIOHandleBuffer = NULL;

[edk2-devel] Capsule update with USBIO in FmpDxe

2022-07-28 Thread gordontcp
In \FmpDevicePkg\Library\FmpDeviceLibNull\FmpDeviceLib.c There are comments for RegisterFmpInstaller: /** Used to pass the FMP install function to this lib. This allows the library to have control of the handle that the FMP instance is installed on. This allows the library to use

[edk2-devel] Capsule update with USBIO in FmpDxe.

2022-07-26 Thread gordontcp
Hi all, In \FmpDevicePkg\Library\FmpDeviceLibNull\FmpDeviceLib.c There are comments for RegisterFmpInstaller: /** Used to pass the FMP install function to this lib. This allows the library to have control of the handle that the FMP instance is installed on. This allows the library to use

Re: [edk2-devel] ‘EmbeddedDrivers’ option in Capsule file.

2022-07-26 Thread gordontcp
Hi Michael, Thanks for your reply. A few more questions please: 1. In general, not in the Minnowboard environment, but in the Microsoft Windows environment, are EmbeddedDrivers usually specified? 2. Should the ‘EmbeddedDrivers’ parameter be assigned to ‘FmpDxe.efi’? or assigned to

Re: [edk2-devel] [PATCH v1 1/1] FmpDevicePkg: FmpDeviceLib interface change for Driver Unload support

2022-07-22 Thread gordontcp
Hi, I would like to handle ‘DriverBinding protocol’ model in ‘RegisterFmpInstaller’ to get control of USBIO. Since there is no corresponding example for EDK2, this part is not easy to implement. Can you provide an example of how RegisterFmpInstaller handles the DriverBinding protocol, so as to

[edk2-devel] ‘EmbeddedDrivers’ option in Capsule file.

2022-07-21 Thread gordontcp
Hi all, I can generate Red1.cap capsule file from GenerateCapsule.py of edk2, and execute CapsuleApp Red1.cap on Minnowboard to complete the process of capsule update. Build capsule file command: \BaseTools\Source\Python\Capsule>GenerateCapsule.py -e -j red1.json -o red1.cap --capflag

[edk2-devel] How to handle ‘RegisterFmpInstaller’ in FmpDxe to operate USBIO when updating capsule?

2022-07-21 Thread gordontcp
Hi all, In \FmpDevicePkg\Library\FmpDeviceLibNull\FmpDeviceLib.c There are comments for RegisterFmpInstaller : /** Used to pass the FMP install function to this lib. This allows the library to have control of the handle that the FMP instance is installed on. This allows the library to use

[edk2-devel] How to handle USBIO operation during FmpDxe update capsule flow?

2022-07-20 Thread gordontcp
Hi all, According to the instructions of edk2-platforms, I can build MinnowMax.cap and CapsuleApp.efi. Build command: build -a IA32 -a X64 -n 5 -t VS2019 -b DEBUG -p Vlv2TbltDevicePkg\PlatformPkgX64.dsc reference:

Re: [edk2-devel] CapsuleApp built form 'edk2-platforms' didn't work in Galileo Gen2 board.

2022-07-12 Thread gordontcp
Thank you for your response! Since I don't have SF-100, is there any other way to flash the  FW image for Galileo Gen2 board? Thanks! Gordon -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#91236):

[edk2-devel] CapsuleApp built form 'edk2-platforms' didn't work in Galileo Gen2 board.

2022-07-11 Thread gordontcp
Hi all, According to the instructions of edk2-platforms, I built QUARKFIRMWAREUPDATECAPSULEFMPPKCS7.Cap and CapsuleApp.efi, Build command:  build -a IA32 -t VS2019 -p QuarkPlatformPkg/Quark.dsc -D CAPSULE_ENABLE Reference:

[edk2-devel] [edk2-platforms]Vlv2TbltDevicePkg built failed.

2022-05-29 Thread gordontcp
Hi all, I compiled Vlv2TbltDevicePkg and operated according to the following URL: https://github.com/tianocore/edk2-platforms/tree/master/Platform/Intel/Vlv2TbltDevicePkg The compiled command is as follows: build -a IA32 -a X64 -n 5 -t VS2019 -b DEBUG -p Vlv2TbltDevicePkg\PlatformPkgX64.dsc The

[edk2-devel] System hang by loading FmpDxexxx.efi.

2022-05-26 Thread gordontcp
System hang by loading FmpDxexxx.efi. Hi all, I built FmpDevicePkg in tianocore/edk2. Then, I load FmpDxexxx.eif in EmulatorX64 and Minnow Board. It both crashed. I traced the code and found out it hang at follows: 1. PcdGetBool (PcdTestKeyUsed); 2. PcdSetBoolS (PcdTestKeyUsed, TRUE);

[edk2-devel] [FMP]How to generate UEFI FMP capsule image and test UEFI capsule update?

2022-05-26 Thread gordontcp
Hi all, We are planning to develop UEFI FMP capsule F/W update, and we have seen \FmpDevicePkg\FmpDxe and MdeModulePkg\Application\CapsuleApp in https://github.com/tianocore/edk2. The examples are both related to capsule update issue. The problems we have are: * How to generate capsule image?