UefiSeven: Easily boot Windows 7 on UEFI class 3 devices

Discussion in 'Windows 7' started by manatails, Aug 3, 2020.

  1. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,451
    60
    @Gelip You can see in commit nothing more was touched, just added support for dynamic resolution “hack” through INI instead hardcoded one. Results should be same..

    But build environment was changed, that could be cause
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    319
    139
    10
    #502 Gelip, Aug 15, 2024
    Last edited: Aug 15, 2024
    @George King
    Yes, I noticed it:
    diff.png
    Strange that UefiSeven 1.31 works differently than 1.30 :confused:
     
  3. George King

    George King MDL Expert

    Aug 5, 2009
    1,961
    2,451
    60
    I think where could be this issue. Are you able to set build environment?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    319
    139
    10
    #504 Gelip, Aug 15, 2024
    Last edited: Aug 15, 2024
    I successfully compile version 1.24 on Ubuntu 16.04.6 LTS

    U7 1.30 has a changed code and not work on same OS :(. I tried use UefiSeven.c from 1.30 in sources 1.24 but compilation errors.
    Compiling 1.24 is simple - after downloading source uefiseven-1.24.tar.gz just to do:
    Code:
    tar -xvf 1.24.tar.gz
    mv uefiseven-1.24 MyWorkspace
    cd MyWorkspace
    make -C BaseTools
    . edksetup.sh
    build -a X64 -t GCC49 -b RELEASE -p MdeModulePkg/MdeModulePkg.dsc
    and after about 8 minutes I have compiled UefiSeven :)

    U7 1.30 need edk2 source and brotli submodule source. I tried git clone but errors, I tried manually download and unpack brotli-1.1.0.tar.gz to BaseTools\Source\C\BrotliCompress\brotli
    but still compile errors :mad: :mad:
     
  5. CheeseWithTheSheesh

    CheeseWithTheSheesh MDL Novice

    Apr 10, 2023
    10
    8
    0
    What build error(s) did you get? I might be able to help.
     
  6. CheeseWithTheSheesh

    CheeseWithTheSheesh MDL Novice

    Apr 10, 2023
    10
    8
    0
    I'll try to build the 1.24 version and backport any patches (without upgrading the edk2 repo) that has been made to the repo after 1.24 to see if it still has the bugs when i got the time to do so.
     
  7. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    319
    139
    10
    #507 Gelip, Aug 17, 2024
    Last edited: Aug 23, 2024

    Attached Files:

  8. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    319
    139
    10
    #509 Gelip, Aug 17, 2024
    Last edited: Aug 17, 2024
    @Alexandros C. Couloumbis
    Yea, U7 1.31 and set other res than 1024x768 in UefiSeven.ini only makes sense if we also patch bootmgfw.efi or winload.efi because with any other resolution not work because bootmgfw.efi (bootx64.original.efi) switch back to 1024x768

    But my compiled version 1.31 work OK if set default 1024x768 in UefiSeven.ini :)
     
  9. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    319
    139
    10
  10. Alexandros C. Couloumbis

    May 19, 2018
    127
    35
    10
    thank you for this correct clarification

    I wonder what are the differencies of an (actual) disabled CSM UEFI system to an UEFI Class3 system.

    there are cases that talk about CSM not fully disabled on some systems that offer CSM even when disabled in bios and that you may also have to enable fast boot etc.

    in my case, when booted with CSM disabled, win7 display output is frozen on the win dimming logo
     
  11. pm67310

    pm67310 MDL Guru

    Sep 6, 2011
    3,326
    2,507
    120
    Pure uefi = class 3

    Uefi / csm uefi 2 ...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    319
    139
    10
  13. Gelip

    Gelip MDL Senior Member

    Feb 28, 2011
    319
    139
    10
    I installed Ubuntu 16.04.6 LTS server once again. OS is already pre-installed python 3.5 but old python is needed for BaseTools compile. This is a minimal list of things that need to be installed to build UefiSeven 1.31:
    Code:
    apt-get update
    apt-get install build-essential uuid-dev iasl nasm tofrodos python p7zip-full
    
    I edited also post #507
     
  14. ibay770

    ibay770 MDL Member

    Oct 9, 2015
    168
    45
    10
    Practically, I haven't yet seen a working edition of win7 on a class 3 device. Going to try to look for the pre release builds of win8 which mostly look like 7 and see which ones work.
     
  15. Alexandros C. Couloumbis

    May 19, 2018
    127
    35
    10