Jump to content











Photo
- - - - -

Screen defect - Win7PE 64-bit on pure UEFI PC


  • Please log in to reply
16 replies to this topic

#1 reboot12

reboot12

    Frequent Member

  • Advanced user
  • 287 posts
  • Interests:WinXP, Debian, OpenWrt, gPXE, iPXE, BIOS, UEFI, Coreboot, MS VirtualPC, VMware
  •  
    Poland

Posted 15 August 2022 - 05:26 AM

  • I built ISO image Win7 PE SP1 64-bit from this builder: Win7PE_SE_2021-05-04.zip
  • With Rufus I made a 16GB FAT32 pendrive in MBR partition scheme for UEFI (with GPT it is the same)
  • I replaced loader UEFI on UefiSeven in the efi\boot folder - I deleted all files and copied these 3:
    bootx64.efi

    bootx64.original.efi (renamed bootmgfw.efi from Win7 SP1 64-bit Ultimate)
    UefiSeven.ini
  • I boot a PC from this pendrive in pure UEFI mode (CSM disabled) and I have such a screen defect - photos taken with a digital camera:
    Attached File  bad1.jpg   136.93KB   3 downloads Attached File  bad2.jpg   134.53KB   2 downloads
    And this is what the screen shot looks like with the Print Screen key and pasted to the Paint and saved to .png file:
    Attached File  sshot.png   928.21KB   2 downloads

And now an interesting thing!

If I replace the sources\boot.wim file with KB3AIK_PL.iso\WinPE.cab\F3_WINPE.WIM and rename to boot.wim, there is no screen defect default_ohmy.png :
Attached File  wpeinit.png   390.33KB   1 downloads

The boot.wim file from KBAIK is based on Win7 SP0 but I also built Win7 PE SP0 and there is the same problem.

The same graphic driver is used in both boot.wim files: vga.sys 5.2.3790.1830 (VgaSave service)

 

Conclusion:

 

boot.wim from Win7 PE - screen defect
boot.wim from KBAIK - screen OK

 

Why? What could be the reason? default_unsure.png



#2 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 15 August 2022 - 07:36 AM

Since the desktop icons look OK.

It seems the problem is just your wallpaper.

So what format is the wallpaper file in?

Try a known good wallpaper file?



#3 reboot12

reboot12

    Frequent Member

  • Advanced user
  • 287 posts
  • Interests:WinXP, Debian, OpenWrt, gPXE, iPXE, BIOS, UEFI, Coreboot, MS VirtualPC, VMware
  •  
    Poland

Posted 15 August 2022 - 08:29 AM

It seems the problem is just your wallpaper.

No, this is not a problem only with wallpaper. The problem is also with the shadow of the mouse cursor on the taskbar or on menu start and also icon in menu start - I marked with yellow frames where the problem is:

Attached File  menu_start_problem.png   1.2MB   1 downloads

 

The image comes from the recording with the USB HDMI Video Capture:

Attached File  hdmi_video_capture.png   86.62KB   0 downloads

 

P.S. I tested the same WinPE also in legacy BIOS mode and there is no problem. The problem is only with pure UEFI



#4 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 15 August 2022 - 08:54 AM

OK. I don't understand what UefiSeven is or why you changed the boot files.

Why not use MS boot files?



#5 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 15 August 2022 - 09:03 AM

Does log files of UEFISeven look the same for both?

In all cases are you testing with a pure flat file system - i.e. not booting to any intermediate boot loader or booting from ISO or WIM etc. Just pure EFI - BCD - winloader.efi boot chain (apart from UEFISeven EFI first)?



#6 reboot12

reboot12

    Frequent Member

  • Advanced user
  • 287 posts
  • Interests:WinXP, Debian, OpenWrt, gPXE, iPXE, BIOS, UEFI, Coreboot, MS VirtualPC, VMware
  •  
    Poland

Posted 15 August 2022 - 09:06 AM

@ steve6375

 

Win7 not support GOP and pure UEFI. UefiSeven allows Win7 to work with pure UEFI:

https://github.com/m...efiseven#readme

https://forums.mydigitallife.net/threads/uefiseven-easily-boot-windows-7-on-uefi-class-3-devices.82137/

 

Without loader UefiSeven PC is restarting and UEFI AMI BIOS turns on CSM mode showing the message:

Attached File  csm_on.jpg   81KB   2 downloads



#7 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 15 August 2022 - 09:07 AM

Maybe areas that you outlined in yellow is where some transparency is used?

Other areas appear fine - so only areas affected are Desktop wallpaper or where transparency and Desktop underneath?



#8 reboot12

reboot12

    Frequent Member

  • Advanced user
  • 287 posts
  • Interests:WinXP, Debian, OpenWrt, gPXE, iPXE, BIOS, UEFI, Coreboot, MS VirtualPC, VMware
  •  
    Poland

Posted 15 August 2022 - 09:15 AM

Maybe areas that you outlined in yellow is where some transparency is used?

Other areas appear fine - so only areas affected are Desktop wallpaper or where transparency and Desktop underneath?

But from legacy Bios everything works ok.



#9 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 15 August 2022 - 09:18 AM

sure - problem is probably either uefiSeven or your wallpaper file.

So try a known good wallpaper file that you have used in another WinPE that works OK with UEFISeven.

If that fails in same way, then maybe look at UEFISeven (maybe different versions?).



#10 reboot12

reboot12

    Frequent Member

  • Advanced user
  • 287 posts
  • Interests:WinXP, Debian, OpenWrt, gPXE, iPXE, BIOS, UEFI, Coreboot, MS VirtualPC, VMware
  •  
    Poland

Posted 15 August 2022 - 10:00 AM

sure - problem is probably either uefiSeven or your wallpaper file.

So try a known good wallpaper file that you have used in another WinPE that works OK with UEFISeven.

If that fails in same way, then maybe look at UEFISeven (maybe different versions?).

 

Wallpaper is OK and is:

Attached File  wallpaper.bmp   2.25MB   7 downloads

 

If replace boot.wim to AIK, use UefiSeven loader then PC boot and screen is OK - mspaint display same wallpaper.bmp OK:

Attached File  boot_wim_from_AIK.jpg   110.84KB   0 downloads



#11 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 15 August 2022 - 10:08 AM

Paint can handle many different formats - maybe Win7 Desktop cannot?

Is the wallpaper file a .bmp file? 24-bit colour?

.jpg? Progressive web format?

or what?



#12 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 15 August 2022 - 10:29 AM

Could it be that the display is in 1024x768 256 colour mode (8 bit) and is trying to display a 24-bit colour bmp?



#13 reboot12

reboot12

    Frequent Member

  • Advanced user
  • 287 posts
  • Interests:WinXP, Debian, OpenWrt, gPXE, iPXE, BIOS, UEFI, Coreboot, MS VirtualPC, VMware
  •  
    Poland

Posted 15 August 2022 - 10:49 AM

Paint can handle many different formats - maybe Win7 Desktop cannot?

Is the wallpaper file a .bmp file? 24-bit colour?

.jpg? Progressive web format?

or what?

Not true! I launched mspaint, opened the wallpaper.bmp, using the File menu -> Set as Background I set the wallpaper in the system and is displayed ok:

Attached File  set_background_ok.png   775.32KB   0 downloads

 

You have wallpaper in the previous post in the wallpaper.bmp attachment.

Anyway, the original wallpaper is in the .png format and after selecting it in WinBuilder is converted to .bmp

 

I built a new WinPE without wallpaper:

Attached File  no_wallpaper_built.png   63.78KB   0 downloads

 

and there is still a problem on taskbar and menu start:

Attached File  taskbar_menustart.jpg   35.55KB   0 downloads



#14 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 15 August 2022 - 10:57 AM

OK - so not a wallpaper issue.

 

Can you tell what graphicsmode the display is in on the 'bad' WinPE?

What does the UefiSeven log file show if you enable all error reporting and log all errors?

Any difference between the 'good' WinPE and 'bad' WinPE (log file and resolution when booted)?

If you boot to 'bad' WinPE and then load  a bmp in paint - can you see a 24-bit bmp OK and an 8-bit bmp OK?

If 24-bit bmp looks bad - save it as 8-bit color and then see if it looks OK (on the same bad winPE OS)?



#15 reboot12

reboot12

    Frequent Member

  • Advanced user
  • 287 posts
  • Interests:WinXP, Debian, OpenWrt, gPXE, iPXE, BIOS, UEFI, Coreboot, MS VirtualPC, VMware
  •  
    Poland

Posted 15 August 2022 - 11:52 AM

Could it be that the display is in 1024x768 256 colour mode (8 bit) and is trying to display a 24-bit colour bmp?

No, I checked - desktop work in 32-bit mode

 

It is very strange that only the defect can be seen on the screen. If I make a screenshot with a print scr key, I will paste into a paint, save to a file and open on another PC the image is ok - this is screenshot from bad displayed screen but ok if opened in other PC:

Attached File  32bit_mode.png   59.69KB   0 downloads

 

This is log from UefiSeven:

fs1:\EFI\BOOT> u7
  UefiMain UefiSeven 1.30
  UefiMain You are running in verbose mode, press Enter to continue
Initialize Found a GOP display adapter
SwitchVide Set mode 4 with desired 1024x768 resolution.
PrintVideo Current mode:
PrintVideo   HorizontalResolution = 1024
PrintVideo   VerticalResolution = 768
PrintVideo   PixelFormat = 1
PrintVideo   PixelsPerScanLine = 1024
PrintVideo   FrameBufferBase = E0000000
PrintVideo   FrameBufferSize = 3145728
PrintVideo Available modes (MaxMode = 12):
PrintVideo   Mode0: 2560x1440
PrintVideo   Mode1: 1280x960
PrintVideo   Mode2: 640x480
PrintVideo   Mode3: 800x600
PrintVideo   Mode4: 1024x768
PrintVideo   Mode5: 1280x1024
PrintVideo   Mode6: 1400x1050
PrintVideo   Mode7: 1600x1200
PrintVideo   Mode8: 1792x1344
PrintVideo   Mode9: 1856x1392
PrintVideo   Mode10: 1920x1440
PrintVideo   Mode11: 1152x864
IsInt10hHa Int10h IVT entry points at location (9000:0000) outside VGA ROM memory area (C0000..D0000), rejecting handler
EnsureMemo Success unlocking memory at C0000 with EfiLegacyRegionProtocol
  UefiMain VESA information filled in, Int10h handler address=C0200 (C000:0200)
EnsureMemo Success locking memory at C0000 with EfiLegacyRegionProtocol
  UefiMain Int10h IVT entry modified to point at C000:0200
IsInt10hHa Int10h IVT entry points at location within VGA ROM memory area (C000:0200)
IsInt10hHa First Int10h handler instruction at C000:0200 (3D) valid, accepting handler
  UefiMain Pre-boot Int10h sanity check success
FileExists Opened file '\EFI\BOOT\u7.original.efi' for reading
  UefiMain Found Windows Boot Manager at '\EFI\BOOT\u7.original.efi'
    Launch Loaded 'PciRoot(0x0)/Pci(0x1A,0x0)/USB(0x1,0x0)/USB(0x2,0x0)/HD(1,MBR,0x00000000,0x800,0x3BB800)/\EFI\BOOT\u7.original.efi'
    Launch Addresss behind FileImageHandle=7900D018
CheckBootM Found 9DEA862C-5CDD-4E70-ACC1-F32B344D4795
    Launch File matches an EFI loader signature
WaitForEnt Press Enter to continue


#16 steve6375

steve6375

    Platinum Member

  • Developer
  • 7566 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films
  •  
    United Kingdom

Posted 15 August 2022 - 03:22 PM

See what a 24-bit bmp looks like in MS paint and an 8-bit bmp (on a bad WinPE).



#17 reboot12

reboot12

    Frequent Member

  • Advanced user
  • 287 posts
  • Interests:WinXP, Debian, OpenWrt, gPXE, iPXE, BIOS, UEFI, Coreboot, MS VirtualPC, VMware
  •  
    Poland

Posted 15 August 2022 - 05:29 PM

@steve6375
I saved wallpaper.bmp 24-bit as 8-bit 256 colors and wallpaper looks the same in the bad WinPE and in the normal Windows OS.
 
The 8-bit image (256 colors) looks completely different:
Attached File  wallpaper8bit.png   73.21KB   1 downloads
spacer.png
 
And once again, for comparison, the screen with a defect looks:
spacer.png
Attached File  bad1.jpg   136.93KB   1 downloads






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users