Jump to content

Clover General discussion


ErmaC
29,867 posts in this topic

Recommended Posts

6 hours ago, Matgen84 said:

 

Great job :) button Reset = restart, Space + button Reset = Clear CMOS, right?

On my case with AMI Aptio UEFI 2.0 (Asus), I set BIOS / firmware Password (Admin + User). Then booting Clover r5064, press SpaceBar with Clicking Left Mouse on "Restart" function (CMIIW). Once mach reboot, my Startup key gives prev. boot entries, but BIOS still asks for Password. Weird is on BIOS - Boot: I lost all my boot entries hah haa..

Edited by Badruzeus
  • Confused 1
Link to comment
Share on other sites

1 hour ago, Badruzeus said:

On my case with AMI Aptio UEFI 2.0 (Asus), I set BIOS / firmware Password (Admin + User). Then booting Clover r5064, press SpaceBar with Clicking Left Mouse on "Restart" function (CMIIW). Once mach reboot, my Startup key gives prev. boot entries, but BIOS still asks for Password. Weird is on BIOS - Boot: I lost all my boot entries hah haa..

 

Reset CMOS, you means lost boot order entries in BIOS... Logical, ha, ha, ha. I don't understand why this new function exists in Clover and his utility?

Link to comment
Share on other sites

11 minutes ago, Matgen84 said:

 

Reset CMOS, you means lost boot order entries in BIOS... Logical, ha, ha, ha. I don't understand why this new function exists in Clover and his utility?

No, Boot entries should remain here. But different BIOSes may behave differently.

  • Like 1
Link to comment
Share on other sites

16 minutes ago, Slice said:

No, Boot entries should remain here. But different BIOSes may behave differently.

 

I talk about boot order in BIOS for my two rigs. As you said:  "different BIOSes may behave differently"

 

Can you tell me the utility of this function in Clover, because I don't understand. I've always reset BIOS setting in hardware way or by loading default optimized values, directly.

Link to comment
Share on other sites

2 hours ago, telepati said:

When Start-Up my rig it is waiting 17 sec on the splash screen is that normal? I reset my BIOS with 2 pin header and also removed CMOS battery but nothing change. Does anyone know why this happening? 

Splash screen from BIOS? I think it has no relation with bootloader then. Hmmb, you may consider powering mach on with any disk plugged out and see the diff..

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

59 minutes ago, Matgen84 said:

 

I talk about boot order in BIOS for my two rigs. As you said:  "different BIOSes may behave differently"

 

Can you tell me the utility of this function in Clover, because I don't understand. I've always reset BIOS setting in hardware way or by loading default optimized values, directly.

main.c: 2655

            //do clear cmos as for AMI BIOS
            // not sure for more robust method
            IoWrite8 (PCAT_RTC_ADDRESS_REGISTER, 0x10);
            IoWrite8 (PCAT_RTC_DATA_REGISTER, 0x0);
            IoWrite8 (PCAT_RTC_ADDRESS_REGISTER, 0x11);
            IoWrite8 (PCAT_RTC_DATA_REGISTER, 0x0);

 

  • Like 1
Link to comment
Share on other sites

FYI for the record!

 

was able to download edk2-edk2-stable201908 zip

and then

build and run r5069.

 

a lot less space used!

 

did get a bunch of warnings like this:

 the files are there ( when case insensitive )

 

$ ls -l  /extra/clover_install/clovergrowerpro/edk2/clover/cloverefi/osxacpitabledxe/acpisdt.h /Extra/Clover_Install/CloverGrowerPro/edk2/Clover/CloverEFI/OsxAcpiTableDxe/AcpiTableDxe.inf

-rw-rw-r--  1 tluck  wheel   1984 Sep  4 13:09 /Extra/Clover_Install/CloverGrowerPro/edk2/Clover/CloverEFI/OsxAcpiTableDxe/AcpiTableDxe.inf

-rw-rw-r--  1 tluck  wheel  25629 Sep  4 13:09 /extra/clover_install/clovergrowerpro/edk2/clover/cloverefi/osxacpitabledxe/acpisdt.h

 

Processing meta-data 

Active Platform          = /Extra/Clover_Install/CloverGrowerPro/edk2/Clover/Clover.dsc

...build: : warning: Module MetaFile [Sources] is missing local header!

    Local Header: /extra/clover_install/clovergrowerpro/edk2/clover/cloverefi/osxacpitabledxe/acpisdt.h not found in /Extra/Clover_Install/CloverGrowerPro/edk2/Clover/CloverEFI/OsxAcpiTableDxe/AcpiTableDxe.inf

build: : warning: Module MetaFile [Sources] is missing local header!

    Local Header: /extra/clover_install/clovergrowerpro/edk2/clover/cloverefi/osxacpitabledxe/acpisdt.h not found in /Extra/Clover_Install/CloverGrowerPro/edk2/Clover/CloverEFI/OsxAcpiTableDxe/AcpiTableDxe.inf

.build: : warning: Module MetaFile [Sources] is missing local header!

 ...

Link to comment
Share on other sites

2 hours ago, tluck said:

FYI for the record!

 

was able to download edk2-edk2-stable201908 zip

and then

build and run r5069.

 

No problem compiling r5069 and boot6 with edk2-stable201908 and ./ebuild.sh -fr -D NO_GRUB_DRIVERS_EMBEDDED -t GCC53

 

However I get the error below trying to compile boot7 with ./ebuild.sh -fr -mc --no-usb -D NO_GRUB_DRIVERS_EMBEDDED -t GCC53...

Mac-Pro:Clover fusion71au$ ./ebuild.sh -fr -mc --no-usb -D NO_GRUB_DRIVERS_EMBEDDED -t GCC53
TOOLCHAIN_DIR: /Users/fusion71au/src/edk2/Clover/../../opt/local
NASM_PREFIX: /Users/fusion71au/src/edk2/Clover/../../opt/local/bin/
NASM_VER: 2.14.02
Initializing workspace
Loading previous configuration from /Users/fusion71au/src/edk2/Conf/BuildEnv.sh
WORKSPACE: /Users/fusion71au/src/edk2
EDK_TOOLS_PATH: /Users/fusion71au/src/edk2/BaseTools
CONF_PATH: /Users/fusion71au/src/edk2/Conf

Running edk2 build for CloverX64 using the command:
build  -D DISABLE_USB_SUPPORT -D NO_GRUB_DRIVERS_EMBEDDED -D USE_BIOS_BLOCKIO -D USE_LOW_EBDA -p Clover/Clover.dsc  -a X64 -b RELEASE -t GCC53 -n 5 

Build environment: Darwin-17.7.0-x86_64-i386-64bit
Build start time: 09:41:49, Sep.05 2019

WORKSPACE        = /Users/fusion71au/src/edk2
EDK_TOOLS_PATH   = /Users/fusion71au/src/edk2/BaseTools
CONF_PATH        = /Users/fusion71au/src/edk2/Conf



Processing meta-data Architecture(s)  = X64
.Build target     = RELEASE
Toolchain        = GCC53

Active Platform          = /Users/fusion71au/src/edk2/Clover/Clover.dsc
..

build.py...
/Users/fusion71au/src/edk2/Clover/LegacyBios/BlockIoDxe/BlockIoDxe.inf(-1): error 4000: Value of Guid [gBlockIoVendorGuid] is not found under [Guids] section in
	/Users/fusion71au/src/edk2/Clover/CloverPkg.dec
	/Users/fusion71au/src/edk2/MdePkg/MdePkg.dec
 

- Failed -
Build end time: 09:41:51, Sep.05 2019
Build total time: 00:00:03

 

  • Like 2
Link to comment
Share on other sites

4 hours ago, fusion71au said:

 

No problem compiling r5069 and boot6 with edk2-stable201908 and ./ebuild.sh -fr -D NO_GRUB_DRIVERS_EMBEDDED -t GCC53

 

However I get the error below trying to compile boot7 with ./ebuild.sh -fr -mc --no-usb -D NO_GRUB_DRIVERS_EMBEDDED -t GCC53...

Uhmmmb..., errors output is different on my case. I'm sure I missed something, so let me know. What I did previously:

mkdir ~/src
cd ~/src
git clone https://github.com/tianocore/edk2 -b edk2-stable201908 --depth 1 edk2
cd edk2
git clone https://github.com/CloverHackyColor/CloverBootloader Clover
make -C BaseTools/Source/C
./edksetup.sh
cd Clover
./buildgettext.sh
./buildmtoc.sh
cp -R Patches_for_EDK2/* ../
./ebuild.sh -fr --x64-mcp

...where `Patches_for_EDK2` are taken from here, #CMIIW

I use Xcode 10.1 along with git 2.23, svn 1.12.2 under 10.13.6 (17G8030). Thanks.

Screen Shot 2019-09-05 at 10.55.04.jpg

  • Thanks 1
Link to comment
Share on other sites

@Zenith432 Oh, I see. Then I just refresh edk2 2019 stable from github, still svn co Clover from sf project. ./ebuild.sh for boot6 & boot7 works just fine on my case (ignoring some header missing warnings when build #atm). Thanks for r5070 fix.

Edited by Badruzeus
Link to comment
Share on other sites

Hi

 

How can I solve this issue to build r5070, please.

 

TOOLCHAIN_DIR: /Users/mathieu/src/opt/local
MTOC_PREFIX: /usr/local/bin/
NASM_PREFIX: /Users/mathieu/src/opt/local/bin/
NASM_VER: 2.14.02
Building from: /Users/mathieu/src/EDK2
Build environment: Darwin-18.7.0-x86_64-i386-64bit
Build start time: 11:21:35, Sep.05 2019

WORKSPACE        = /Users/mathieu/src/EDK2
EDK_TOOLS_PATH   = /Users/mathieu/src/EDK2/BaseTools
CONF_PATH        = /Users/mathieu/src/EDK2/Conf

Processing meta-data ... done!


build.py...
 : error C0DE: Unknown fatal error when processing [/Users/mathieu/src/EDK2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf]
	
(Please send email to devel@edk2.groups.io for help, attaching following call stack trace!)

(Python 2.7.10 on darwin) Traceback (most recent call last):
  File "/Users/mathieu/src/EDK2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2493, in Main
    MyBuild.Launch()
  File "/Users/mathieu/src/EDK2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2287, in Launch
    self._BuildPlatform()
  File "/Users/mathieu/src/EDK2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1742, in _BuildPlatform
    self._BuildPa(self.Target, Pa, FfsCommand=CmdListDict,PcdMaList=PcdMaList)
  File "/Users/mathieu/src/EDK2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1236, in _BuildPa
    AutoGenObject.CreateCodeFile(True)
  File "/Users/mathieu/src/EDK2/BaseTools/Source/Python/Common/caching.py", line 18, in CallMeHere
    Value = self._function(obj, *args,**kwargs)
  File "/Users/mathieu/src/EDK2/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py", line 171, in CreateCodeFile
    Ma.CreateCodeFile(CreateModuleCodeFile)
  File "/Users/mathieu/src/EDK2/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py", line 1847, in CreateCodeFile
    LibraryAutoGen.CreateCodeFile()
  File "/Users/mathieu/src/EDK2/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py", line 1892, in CreateCodeFile
    with GlobalData.cache_lock:
AttributeError: __exit__

 

Link to comment
Share on other sites

@Matgen84: Do a clean build, including the basetools.  Start from edk2-stable201908 from the repository, then Clover 5070 under it, then source edksetup.sh in EDK2 directory (to create files in Conf), then copy Clover/Patches_for_EDK2 over EDK2.  If you have leftover build products or Conf/.cache or old build tools it can give errors like that.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

5 hours ago, Badruzeus said:

Uhmmmb..., errors output is different on my case. I'm sure I missed something, so let me know. What I did previously:


mkdir ~/src
cd ~/src
git clone https://github.com/tianocore/edk2 -b edk2-stable201908 --depth 1 edk2
cd edk2
git clone https://github.com/CloverHackyColor/CloverBootloader Clover
make -C BaseTools/Source/C
./edksetup.sh
cd Clover
./buildgettext.sh
./buildmtoc.sh
cp -R Patches_for_EDK2/* ../
./ebuild.sh -fr --x64-mcp

...where `Patches_for_EDK2` are taken from here, #CMIIW

I use Xcode 10.1 along with git 2.23, svn 1.12.2 under 10.13.6 (17G8030). Thanks.

 

I think

cp -R Patches_for_EDK2/* ../

should be before

make -C BaseTools/Source/C

B)

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

30 minutes ago, Slice said:

I think

cp -R Patches_for_EDK2/* ../

should be before

make -C BaseTools/Source/C

B)

Sorry, but TBH.. I just followed your instruction here previously, guessing it needs to be updated.. or could be obsolete soon once Clover project moved to Github.

Uhmmb, did you mean (if from `edk2`root) seems like this one?

cp -R Clover/Patches_for_EDK2/* ~/src/edk2/

  • Like 1
Link to comment
Share on other sites

Hi @Zenith432

 

Another issue (no manually copy files but with script)

 

TOOLCHAIN_DIR: /Users/mathieu/src/opt/local
MTOC_PREFIX: /usr/local/bin/
NASM_PREFIX: /Users/mathieu/src/opt/local/bin/
NASM_VER: 2.14.02
Building from: /Users/mathieu/src/EDK2
Build environment: Darwin-18.7.0-x86_64-i386-64bit
Build start time: 14:44:47, Sep.05 2019

WORKSPACE        = /Users/mathieu/src/EDK2
EDK_TOOLS_PATH   = /Users/mathieu/src/EDK2/BaseTools
CONF_PATH        = /Users/mathieu/src/EDK2/Conf

Processing meta-data ... done!


build.py...
 : error C0DE: Unknown fatal error when processing [/Users/mathieu/src/EDK2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf]
	
(Please send email to devel@edk2.groups.io for help, attaching following call stack trace!)

(Python 2.7.10 on darwin) Traceback (most recent call last):
  File "/Users/mathieu/src/EDK2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2493, in Main
    MyBuild.Launch()
  File "/Users/mathieu/src/EDK2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2287, in Launch
    self._BuildPlatform()
  File "/Users/mathieu/src/EDK2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1742, in _BuildPlatform
    self._BuildPa(self.Target, Pa, FfsCommand=CmdListDict,PcdMaList=PcdMaList)
  File "/Users/mathieu/src/EDK2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1236, in _BuildPa
    AutoGenObject.CreateCodeFile(True)
  File "/Users/mathieu/src/EDK2/BaseTools/Source/Python/Common/caching.py", line 18, in CallMeHere
    Value = self._function(obj, *args,**kwargs)
  File "/Users/mathieu/src/EDK2/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py", line 171, in CreateCodeFile
    Ma.CreateCodeFile(CreateModuleCodeFile)
  File "/Users/mathieu/src/EDK2/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py", line 1847, in CreateCodeFile
    LibraryAutoGen.CreateCodeFile()
  File "/Users/mathieu/src/EDK2/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py", line 1892, in CreateCodeFile
    with GlobalData.cache_lock:
AttributeError: __exit__

- Failed -

 

Link to comment
Share on other sites

26 minutes ago, vector sigma said:

@Matgen84 have you tried Clover from github?

 

What is the difference between discard local change and stash local change? The repo don't contain patches_edk2 folder, it's normal.

Where Opt and Tools folders aren't present in src/EDK2?

 

Yes, I try your script: works fine except issue below. I can't make PKG

 

========= Translating Resources ========
/Users/mathieu/src/EDK2/Clover/CloverPackage/package/../../../opt/local
Updating 'en' strings file for CloverUpdater... <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.ibtool.errors</key>
	<array>
		<dict>
			<key>description</key>
			<string>Interface Builder could not open the document MainMenu.xib" because it does not exist.</string>
		</dict>
	</array>
</dict>
</plist>
Generation failed. Not extracting locale strings from source XIB file
Updating 'en' strings file for Clover Preference Panel... <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.ibtool.errors</key>
	<array>
		<dict>
			<key>description</key>
			<string>Interface Builder could not open the document CloverPrefpane.xib" because it does not exist.</string>
		</dict>
	</array>
</dict>
</plist>
Generation failed. Not extracting locale strings from source XIB file
Updating strings file for Clover Preference Panel... done
stat: ../CloverUpdater/CloverUpdater.strings: stat: No such file or directory
stat: ../CloverPrefpane/CloverPrefpane.strings: stat: No such file or directory
po4a-clover.cfg:12: The '../CloverUpdater/CloverUpdater.strings' master file does not exist.

make: *** [pkg] Error 2
logout

 

Edited by Matgen84
Link to comment
Share on other sites

×
×
  • Create New...