Installing Windows 7 on the pure UEFI systems without CSM

Discussion in 'Windows 7' started by PrimeExpert Software, Jan 2, 2020.

  1. killa339

    killa339 MDL Novice

    Nov 26, 2016
    6
    0
    0
    First off, I am using Flashboot Pro, which is amazing and the only way I have gotten Windows 7 installed on newer hardware (i.e. hardware after Intel 200 (6th gen) series). Note that I choose the options to bundle usb 3.X drivers when using Flasboot Pro, which without I would not even have keyboard/mouse to get through the Win 7 setup.

    My question though is have folks had success installing Windows 7 on Intel Rocket Lake (11th gen) hardware? I have tried a few different Asus B560M, as well as B460, motherboards and while Windows 7 installs fine and I have USB keyboard/mouse throughout setup, I lose keyboard support *once I am in Windows*. Various USB mice all work fine, but none of my USB keyboards work. And they are super generic, no media keys, etc.

    Under the Device and Printers panel, I see the keyboards as an "Unspecified" device at the bottom. Going into the properties for any of the keyboards I try, it says "the drivers for this device are not installed: code 28”. Again, these are the most basic keyboard and have been plug and play just fine on my prior Windows 7 machines, under older hardware.

    I've tried the USB drivers from the 'USB 3/XHCI driver stack for Windows 7' thread on this forum, but no dice.

    I *can* successfully use a PS/2 keyboard, but I would like to avoid that, heh. It's also kinda crazy that I can use usb flash drives, usb mice, usb ethernet adapters all just fine with this new system, but I can't get a usb keyboard working with it.

    Any thoughts? Much appreciated, thanks!
     
  2. JKDC

    JKDC MDL Novice

    Feb 17, 2021
    5
    1
    0
    You could get an Asmedia USB controller as it has drivers for Win7. The keyboard should work fine after that. I tried installing Win7 on a Z490 and had the same problem as you....no gaming keyboard support. Everything else I think worked.

    You could have also used the Gigabyte tool that came out for the Z370 to slipstream the USB and NVME drivers.
     
  3. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    3,754
    2,681
    120
    Did you try asus ez installer? It's supposed to modify correctly the W7 install media with all the correct drivers.

    That said given the minimal cost an addon USB2/3 pcie card would solve your keyboard problem.

    Alternatively you can use a usb to ps2 adapter, it should be releatively cheap as well.
     
  4. killa339

    killa339 MDL Novice

    Nov 26, 2016
    6
    0
    0
    @JKDC: Ah, thank you for a specific USB controller chipset (ASMedia) that works with Win 7. I did some research of available cards and other chipsets that claim to also work under Win 7. Does the Gigabyte tool offer USB drivers that are different (e.g. more compatible) than what is offered from the 'USB 3/XHCI driver stack for Windows 7' thread on this forum? The big issue is that with UEFI-3 motherboards and no CSM mode (as talked about in this thread) you are hosed without something like Flashboot Pro or other similar methods that deal with the vga 10H handler situation. Otherwise, you run into the Windows logo freeze situation.

    @acer-5100: I haven't tried Asus-ez installer. Sounds like the Asus version of the Gigabyte tool JKDC mentioned above? I fear the whole UEFI-3 situation still applies here. Agreed that a USB pcie card is likely the way to go. ASMedia (ASM3142) seems to be the compatible chipset of choice. In regards to ps2 adapters, that is a possibility, but those adapters only work if the keyboard itself has a chipset that actually does ps2/usb. Older keyboards are more likely to support that or find a USB one that also says PS/2 compatible (e.g. 'V7 CKU200US'). But yeah, unfortunately the vast sea of USB keyboards on the market today won't actually work with a ps/2 adapter.

    Thanks guys. I'm still baffled why it's just the keyboard that doesn't work but I think there are enough options (compatible pcie usb controller or m.2 usb controller) to get this going. Key was finding a motherboard with Realtek integrated audio and ethernet, since drivers still work with Win 7. Then just get a video card (e.g. NVIDIA has Win 7 drivers as of May 2022 - v473.62), since Intel integrated video chipset beyond UHD630 (10th gen cpu) just won't work with Win 7. And even getting that to work requires modified Intel 6th gen drivers.

    Note that my experience is pure Intel CPU/motherboards here. Maybe an AMD path is a happier experience with modern hardware from them + Win 7?
     
  5. acer-5100

    acer-5100 MDL Guru

    Dec 8, 2018
    3,754
    2,681
    120
    I never used it, I don't have any HW to test it, and perhaps if I can't avoid UEFI, I install al my OSes on MBR formatted native VHDs. I just mentioned something that *may* work better.

    Testing it is the only way to tell.

    Nope, you are confusing the passive adapters (the small green/purple things), that came bundled with early USB Logitech keyboards (they cost less than 1$), with proper active converters, which actually includes electronics in it, and requires power to work (usually taken from PS2 or USB itself), those usually cost from 10 to 20$.
     
  6. killa339

    killa339 MDL Novice

    Nov 26, 2016
    6
    0
    0
  7. killa339

    killa339 MDL Novice

    Nov 26, 2016
    6
    0
    0
    #307 killa339, Jul 30, 2022
    Last edited: Jul 31, 2022
    An update to this.

    So in device manager there should be a section called "Keyboards" At least that is what I see on my laptop and desktop that run Windows 7. However, I don't see that on the machine in question here when keyboards are plugged in. And that's highly suspect. However, if I go into "Devices and Printers" I do see an icon for the keyboard plugged in. Sometimes it's under an "Unspecified" section and other times it'll say for example "Dell USB Wired Keyboard". At least in a prior round it would, now they're always under "Unspecified". But the description always includes the word keyboard.

    When you click properties on this icon, it says no drivers are installed for the device. It's also listed as an unknown HID device.

    You can 'update/install' a driver for a device by pointing the prompt to a directory of driver files. I've tried this path many times with all kinds of generic USB 3.x drivers. Never did anything for the keyboard.

    Just now though, I clicked the option that says "Let me pick from a list of device driver on my computer". It then asks what kind of device. In that list is an option for "Keyboard" Then it asks what kind of driver. There is driver for a "Standard keyboards" manufacturer with a model "HID Keyboard Device". Cool. Sounds super generic and just what we need. Choosing that it installs the driver and boom, the keyboard works now! Now I have to do these steps for each of the USB ports the keyboard could be plugged into (whether it's ones on the motherboard or the pcie cards), but once I do those prior mentioned manual steps it finally works and I can type.

    Why on Earth can't it do this itself, like every other Win 7 machine I have ever interacted with. I'm choosing the most generic driver already on the system from that list. It's almost like it doesn't actually know this is specifically a keyboard being plugged in until I physically tell it so. Like I said, it was always being listed as unknown HID device.

    I wish I tried this before wasting time with so many different motherboards and USB installers. But hey, maybe this will help future people that stop by here with this problem.
     
  8. Dzyszla

    Dzyszla MDL Novice

    Jul 31, 2022
    1
    1
    0
    #308 Dzyszla, Jul 31, 2022
    Last edited: Aug 1, 2022
    I have installed Windows 7 with CMS option. Now I try to switch CMS off. With FlashBoot creating USB like in description on @PrimeExpert Software page, then copied *.efi files to my boot partition.
    1. If I turn on Above 4G Decoding in BIOS, get message about unsupported hardware. If it disabled - screen looks normal. But never mind what configured, a have second problem:
    2. After loading on login screen, picture not refresh - stay on loading progress and freeze. But Windows works - I can login, run all and I see desktop via RDP. But on monitor still same picture just before login.
    What do I wrong?

    Previously try disabling VGA services, but same effect like in point 2.

    Ryzen 2600, Windows 7 + SP1 (CD with SP1 too), RX 6600XT and last driver for Win7, SSD SATA (no NVMe), B450 from Asus, graphic card connected via DP with monitor.

    Can someone help or hint me, what can I do else?

    PS. Can't run system from USB created in Flashboot - blue screen and PAGE_FAULT during loading drivers in fimsfs.sys.
     
  9. JKDC

    JKDC MDL Novice

    Feb 17, 2021
    5
    1
    0
    #309 JKDC, Aug 1, 2022
    Last edited: Aug 1, 2022
    Yeah in Win 7 you have to hunt drivers and configure it yourself. I just had to do the same thing for raid support. It tried to install an older driver, which wouldn't start so I had to manually find it since windows update doesn't work anymore. Even then I had to force it to use it since it didn't recognize that it would work. I went with motherboards I could find on Ebay like X299 and Z370 that are 100% compatible with Win7 as my builds. Z370 has to be coaxed to accept the drivers, but they all work. X299 is supported out of the box.

    I used the Gigabyte tool in on my X299 and Z370 so I don't know if it works for newer hardware, but my Win7 USB boot drive supported my mice and keyboard just fine.
     
  10. raiderman

    raiderman MDL Novice

    Nov 28, 2007
    32
    22
    0
    #310 raiderman, Sep 24, 2022
    Last edited: Sep 24, 2022
    I purchased Flashboot Pro, but unable to get anything installed on my HP Probook 435 w/Ryzen Pro 5850. Any help from the dev would be appreciated.

    Edit: Got it working! Didnt integrate any drivers except Nvme, and USB that were included. For some reason when I try and use a modified installation ie, updated with the newest patches, it wont install. If I use a barebones SP1 disk, then it works.
     
  11. raiderman

    raiderman MDL Novice

    Nov 28, 2007
    32
    22
    0
    So any ISO that has been slipstreamed with all of the updates will not work to install windows 7? I used NT lite to do this, and created an updated ISO, but flashboot says it will not install the VGA patch, because the loader does not belong to Windows 7 x64??
    Is there a way to check the installation media and determine if the patch is integrated?

    flashboot.jpg
     
  12. PrimeExpert Software

    Dec 3, 2019
    27
    56
    0
    #312 PrimeExpert Software, Sep 24, 2022
    Last edited: Sep 24, 2022
    (OP)
    Patched UEFI loader for Windows 7 has changes in major version number (6.1.something.something replaced with 11.1.something.something) so it always wins any version comparison in the context of Windows 7 setup (and Windows 10/11 automatic updates won't overwrite this file in dual-boot configurations).
     
  13. raiderman

    raiderman MDL Novice

    Nov 28, 2007
    32
    22
    0
    Hmmm, I know the vga patch is not installing on updated/slipstreamed disks. Is this a known issue? Is there going to be a fix for this? I want to create an ISO with your vga bypass, with all the current updates, and the driver files I would require, and possibly the bcEdit to remove driver signature. What I dont get, is why someone doesnt release an ISO with all of this done already?
     
  14. PrimeExpert Software

    Dec 3, 2019
    27
    56
    0
    #314 PrimeExpert Software, Sep 24, 2022
    Last edited: Sep 24, 2022
    (OP)
    If version of UEFI loader is 10.0.something.something (Windows 10) instead of 6.1.something.something (Windows 7), then VGA patch is not applied by FlashBoot Pro.

    This may happen because nowadays some third-party customizations of Windows 7 include certain components from Windows 10 (such as Setup, Recovery, UEFI Loader). And then these chimeras are detected as Windows 10 by FlashBoot, hence no UEFI loader patch option.

    Solution is to revert loader to version 6.1 from version 10.0 manually (in all images of \sources\boot.wim and \sources\install.wim).

    Personally I prefer to install vanilla Windows 7 SP1 x64 from untouched MSDN ISO files with known-good hash, patch loader if necessary for modern hardware, and then manually install known-good hotfixes (KB3020369, KB3172605, KB2670838, KB2506143, KB3140245, KB4012212, KB2990941, KB3087873). And nothing else. If I trusted unconditionally everything Microsoft releases these days, then I'd just install Windows 11.
     
  15. raiderman

    raiderman MDL Novice

    Nov 28, 2007
    32
    22
    0

    Lol, ya I trust MS about as far as they can be thrown. Drivers are just getting more, and more difficult to come by now. Not enough people modifying them to keep up.
     
  16. DUT

    DUT MDL Novice

    May 14, 2020
    23
    10
    0
    @PrimeExpert Software
    Microsoft released a new bootmgfw.efi(version:6.1.7601.26022)in kb5017361,it has a SHA256 Microsoft Signature。
    So win7 can work when secure boot is enabled now.
    But FlashBoot's patch for UEFI loader destroyed Microsoft Signature.
     
  17. PrimeExpert Software

    Dec 3, 2019
    27
    56
    0
    Yes, I see. Thanks for letting me know. Unfortunately there's no way to patch the UEFI loader without invalidating the signature, that's why it's stripped by FlashBoot Pro.
     
  18. George King

    George King MDL Expert

    Aug 5, 2009
    1,858
    2,197
    60
    Try to sign it with custom certificate and import it into system. It should be enough.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. DUT

    DUT MDL Novice

    May 14, 2020
    23
    10
    0
    Can Patch for UEFI loader be created as a separate a file like Uefiseven?
    So that signature will not be invalidated.
     
  20. PrimeExpert Software

    Dec 3, 2019
    27
    56
    0
    #320 PrimeExpert Software, Sep 29, 2022
    Last edited: Sep 29, 2022
    (OP)
    It can be done, technically. But from political point of view, I'm pretty sure Microsoft will never sign such separate loader for Secure Boot :)

    And when firmware can boot unsigned separate loader (i.e. when Secure Boot signature check can be disabled in firmware options), then there's no point in having a separate loader: the same firmware can easily boot unseparated patched loader without signature.