Jump to content

dgsga

Members
  • Content Count

    232
  • Joined

  • Last visited

About dgsga

  • Rank
    All these moments will be lost like tears in rain.

Profile Information

  • Gender
    Male

Recent Profile Visitors

8,873 profile views
  1. dgsga

    Clover General discussion

    @slice Is it possible to use a different sound.wav file when using the embedded theme, it always seems to use the embedded sound (sound.c) even when a sound.wav file is placed in the embedded theme folder Thanks!
  2. dgsga

    Clover problems report & features request

    @vit9696 I have tried to compile the latest commit of AppleSupportPkg on GitHub using gcc 8.2 rather than Xcode 10 and get the following error: [CC] DevicePathUtilities ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c: In function 'OcOverflowAddUN': ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c:44:34: error: passing argument 3 of 'OcOverflowAddU32' from incompatible pointer type [-Werror=incompatible-pointer-types] return OcOverflowAddU32 (A, B, Result); ^~~~~~ In file included from ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c:19: ~/edk2/OcSupportPkg/Include/Library/OcOverflowLib.h:51:12: note: expected 'UINT32 *' {aka 'unsigned int *'} but argument is of type 'UINTN *' {aka 'long long unsigned int *'} UINT32 *Result ~~~~~~~~~^~~~~~ ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c: In function 'OcOverflowSubUN': ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c:58:34: error: passing argument 3 of 'OcOverflowSubU32' from incompatible pointer type [-Werror=incompatible-pointer-types] return OcOverflowSubU32 (A, B, Result); ^~~~~~ In file included from ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c:19: ~/edk2/OcSupportPkg/Include/Library/OcOverflowLib.h:58:12: note: expected 'UINT32 *' {aka 'unsigned int *'} but argument is of type 'UINTN *' {aka 'long long unsigned int *'} UINT32 *Result ~~~~~~~~~^~~~~~ ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c: In function 'OcOverflowMulUN': ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c:72:34: error: passing argument 3 of 'OcOverflowMulU32' from incompatible pointer type [-Werror=incompatible-pointer-types] return OcOverflowMulU32 (A, B, Result); ^~~~~~ [CC] Allocate In file included from ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c:19: ~/edk2/OcSupportPkg/Include/Library/OcOverflowLib.h:65:12: note: expected 'UINT32 *' {aka 'unsigned int *'} but argument is of type 'UINTN *' {aka 'long long unsigned int *'} UINT32 *Result ~~~~~~~~~^~~~~~ ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c: In function 'OcOverflowAddSN': ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c:86:34: error: passing argument 3 of 'OcOverflowAddS32' from incompatible pointer type [-Werror=incompatible-pointer-types] return OcOverflowAddS32 (A, B, Result); ^~~~~~ In file included from ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c:19: ~/edk2/OcSupportPkg/Include/Library/OcOverflowLib.h:104:11: note: expected 'INT32 *' {aka 'int *'} but argument is of type 'INTN *' {aka 'long long int *'} INT32 *Result ~~~~~~~~^~~~~~ ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c: In function 'OcOverflowSubSN': ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c:100:34: error: passing argument 3 of 'OcOverflowSubS32' from incompatible pointer type [-Werror=incompatible-pointer-types] return OcOverflowSubS32 (A, B, Result); ^~~~~~ [SLINK] UefiRuntimeServicesTableLib In file included from ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c:19: ~/edk2/OcSupportPkg/Include/Library/OcOverflowLib.h:111:11: note: expected 'INT32 *' {aka 'int *'} but argument is of type 'INTN *' {aka 'long long int *'} INT32 *Result ~~~~~~~~^~~~~~ ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c: In function 'OcOverflowMulSN': Building ... ~/edk2/MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf [X64] ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c:114:34: error: passing argument 3 of 'OcOverflowMulS32' from incompatible pointer type [-Werror=incompatible-pointer-types] return OcOverflowMulS32 (A, B, Result); ^~~~~~ In file included from ~/edk2/OcSupportPkg/Library/OcOverflowLib/NativeOverflow.c:19: ~/edk2/OcSupportPkg/Include/Library/OcOverflowLib.h:118:11: note: expected 'INT32 *' {aka 'int *'} but argument is of type 'INTN *' {aka 'long long int *'} INT32 *Result ~~~~~~~~^~~~~~ cc1: all warnings being treated as errors make: *** [~/edk2/Build/AppleSupportPkg/RELEASE_GCC82/X64/OcSupportPkg/Library/OcOverflowLib/OcOverflowLib/OUTPUT/NativeOverflow.obj] Error 1 build.py... : error 7000: Failed to execute command make tbuild [~/edk2/Build/AppleSupportPkg/RELEASE_GCC82/X64/OcSupportPkg/Library/OcOverflowLib/OcOverflowLib] build.py... : error F002: Failed to build module ~/edk2/OcSupportPkg/Library/OcOverflowLib/OcOverflowLib.inf [X64, GCC82, RELEASE] - Failed - Build end time: 19:26:54, Oct.09 2018 Build total time: 00:00:05 I've tried to fix these errors but with my limited coding skills I have so far failed. Is it possible to tweak the code to compile using gcc or would you prefer just to stick to Xcode?
  3. dgsga

    Clover problems report & features request

    I can confirm the fix works. Thanks savvas...
  4. dgsga

    Clover problems report & features request

    I have the problem on the latest Mojave build (18A389) using Xcode 10 to compile. If I revert to the last Release build of AppleSupportPkg all works fine.
  5. dgsga

    Clover problems report & features request

    With the latest AppleSupportPkg compiled from GitHub master branch I get a black background in the EFI login screen (I am using FileVault 2). The users and password box are drawn OK, just the background image is missing. Does anyone else have this issue?
  6. dgsga

    Clover problems report & features request

    Thanks RacerMaster, you are a gentleman...
  7. dgsga

    Clover problems report & features request

    When using Filevault2 and clover does anyone know how to achieve UIScaling in the EFI unlock screen? At the moment both mouse cursor, user image and the password box appear unscaled and so very small (the Apple logo is also unscaled before EFI unlock screen appears). Thanks. I have EfiLoginHiDpi set to 1 and UIScale set to 2 in config.plist
  8. dgsga

    VirtualSMC — SMC Emulator

    @ vit9696, vandroiy2012 Just wanted to say thanks for this latest masterpiece, you and your team are on fire...
  9. dgsga

    Clover problems report & features request

    Thanks Slice. Here you go... bdmesg.txt
  10. dgsga

    Clover problems report & features request

    Can anyone explain why I get no icon for my main APFS Mojave beta volume when using the new embedded theme (just the yellow and gray striped 'no image' box). The volume is located on the NVME SSD in my hack. All the other APFS volumes show up fine (including a clone of the main volume on another SATA SSD) Thanks very much for any help here...
  11. Google "AMIBCP 5.02.0023"... By the way, in all my 13 years of hackintoshing this is one of the best guides I have ever seen. Great job!
  12. @KGP If you open your bios with AmiBCP.exe in windows you can unhide the hidden thunderbolt options. On my Asrock board one of these is Native OS Hot Plug which is disabled by default. Enable it and the rest as they say is history. You must use the newest version of AmiBCP for Aptio V (Google is your friend) and change the Access/Use value for the option you want to unhide from Default to USER then 'save as' the modified bios. I usually run the modded bios through Intel's Flash Image Tool (FIT) to make sure it's kosher and unlock the descriptor and ME regions so the bios can easily be flashed using FPT. For more info on all this I recommend you visit Fernando's Win-RAID forum, a mine of useful information...
  13. dgsga

    Clover General discussion

    Does anyone know if it's possible to get UIScaling on the Clover boot selection screen as well as on Stage 1 and Stage 2 loading? I have a 4k monitor and at the moment the icons and text on the clover boot screen are tiny as they appear at the native resolution of 3840x2160. I am running on full UEFI mode. Thanks!
  14. dgsga

    Clover General discussion

    Here's an alternative and simpler mountESP script for 10.13.4 Beta 1, it wouldn't work on earlier macOS versions with APFS though . It would be possible to add the changes as an 'if OS ver > 10.13.3' clause... #!/bin/bash DEST_VOL="${1}" EFI_ROOT_DIR="${2:-${DEST_VOL%*/}/EFIROOTDIR}" partutil="./partutil" DiskDevice=$(LC_ALL=C diskutil info "${DEST_VOL}" 2>/dev/null | \ sed -n 's/.*Part [oO]f Whole: *//p') if [[ -z "$DiskDevice" ]]; then echo "Can't find volume with the name ${DEST_VOL}" exit 1 fi # check if target volume is a logical Volume instead of physical if [[ "$(echo $(LC_ALL=C diskutil list | grep -i 'Logical Volume' | \ awk '{print tolower($0)}'))" == *"logical volume"* ]]; then # ok, we have a logical volume somewhere.. so that can assume that we can use "diskutil cs" LC_ALL=C diskutil cs info $DiskDevice > /dev/null 2>&1 if [[ $? -eq 0 ]] ; then # logical volumes does not have an EFI partition (or not suitable for us?) echo "$DiskDevice is a logical volume" # find the partition uuid UUID=$(LC_ALL=C diskutil info "${DiskDevice}" 2>/dev/null | \ sed -n 's/.*artition UUID: *//p') # with the partition uuid we can find the real disk in in diskutil list output if [[ -n "$UUID" ]]; then realDisk=$(LC_ALL=C diskutil list | \ grep -B 1 "$UUID" | \ grep -i 'logical volume' | awk '{print $4}' | \ sed -e 's/,//g' | sed -e 's/ //g') if [[ -n "$realDisk" ]]; then DiskDevice=$(LC_ALL=C diskutil info "${realDisk}" 2>/dev/null | \ sed -n 's/.*Part [oO]f Whole: *//p') fi fi fi fi # check if target volume is APFS, and therefore part of an APFS container if [[ "$(echo $(LC_ALL=C diskutil list "$DiskDevice" | grep -i 'EF57347C-0000-11AA-AA11-00306543ECAC' | \ awk '{print tolower($0)}'))" == *"ef57347c-0000-11aa-aa11-00306543ecac"* ]]; then # ok, this disk is an APFS partition, extract physical store device realDisk=$(LC_ALL=C diskutil list 2>/dev/null | \ sed -n "s/.*Container $DiskDevice *//p" | \ cut -d' ' -f5) echo Target volume "$1" on "$DiskDevice" is APFS on physical store "$realDisk" DiskDevice=$(LC_ALL=C diskutil info "$realDisk" 2>/dev/null | \ sed -n 's/.*Part [oO]f Whole: *//p') fi # echo "realDisk = $realDisk" # echo "UUID = $UUID" # echo "DiskDevice = $DiskDevice" # Check if the disk is a GPT disk disk_partition_scheme=$("$partutil" --show-partitionscheme "$DiskDevice") if [[ "$disk_partition_scheme" = "GUID_partition_scheme" ]]; then plistbuddy='/usr/libexec/PlistBuddy' # Get the index of the ESP device index=$(LC_ALL=C /usr/sbin/gpt -r show "/dev/$DiskDevice" 2>/dev/null | \ awk 'toupper($7) == "C12A7328-F81F-11D2-BA4B-00A0C93EC93B" {print $3; exit}') [[ -z "$index" ]] && index=1 # if not found use the index 1 # Define the ESPDevice ESPDevice="${DiskDevice}s${index}" # Get the ESP mount point if the partition is currently mounted ESPMountPoint=$("$partutil" --show-mountpoint "$ESPDevice") if [[ -n "$ESPMountPoint" ]]; then # If already mounted it's okay exitcode=0 else # Else try to mount the ESP partition ESPMountPoint="/Volumes/ESP" exitcode=1 fstype=$($partutil --show-fstype $ESPDevice) if [[ -n "$fstype" ]]; then [[ ! -d "${ESPMountPoint}" ]] && mkdir -p "${ESPMountPoint}" mount -t $fstype /dev/$ESPDevice "${ESPMountPoint}" 2>&1 exitcode=$? fi fi if [[ $exitcode -ne 0 ]]; then echo echo "ERROR: can't mount ESP partition ($ESPDevice) !" echo "Check that the partition is well formated in HFS or Fat32." echo echo "To format as HFS use command like:" echo "sudo newfs_hfs -v EFI /dev/r$ESPDevice" echo echo "For format as Fat32 use command like:" echo "sudo newfs_msdos -v EFI -F 32 /dev/r$ESPDevice" else ln -sf "$ESPMountPoint" "$EFI_ROOT_DIR" fi else # Disk is not GPT use the DEST_VOL as EFI_ROOT_DIR ln -sf "${DEST_VOL}" "$EFI_ROOT_DIR" exitcode=0 fi exit $exitcode
×