- the same Hardware Abstraction Layer (HAL)
- the same disk controller driver
This topic refers to the topic - Does Windows XP have EFI? in which I managed to run the system on the ThinkPad X220.
For X220 we also need to implement the AnaPa VBE Miniport graphic driver.
In order for the computer to start with EFI we need a FAT partition, so it is best to install the system on one partition as small as possible, e.g. 1.5GB
In VMware, create a Windows XP Professional x64 Edition machine with parameters:
- Hardware Compatibility 5.x
- Do not use a network connection
- Memory 1GB
- Processors 2
- Hard Disk 2GB (IDE 0:0) (Store virtual disk as a single file)
- CD/DVD (IDE 1:0)
- delete Floppy
- delete USB Controller
- delete Sound Card
Copy to the system on the C partition:
Drivers
|-Chipset - AHCI drivers X220
|-Video - VBE Miniport VBE30 drivers
EFI - EFI files from Beta Server Longhorn
Sysprep - files from DEPLOY.CAB from WinXP x64 media and sysprep.inf:
Code: Select all
;SetupMgrTag
[Unattended]
OemSkipEula=Yes
OemPnPDriversPath=Drivers\Chipset;Drivers\Video
ConfirmHardware=No
DriverSigningPolicy=Ignore
OEMPreinstall=Yes
UpdateInstalledDrivers=Yes
[GuiUnattended]
AdminPassword="insert own pass"
EncryptedAdminPassword=NO
OEMSkipRegional=1
TimeZone=100
OemSkipWelcome=1
[UserData]
ProductKey=insert own key
FullName="insert own name"
OrgName="insert own name"
ComputerName=efixp
[TapiLocation]
CountryCode=48
Dialing=Tone
AreaCode=0
LongDistanceAccess="0"
[RegionalSettings]
LanguageGroup=2
SystemLocale=00000415
UserLocale=00000415
InputLocale=0415:00000415
[Identification]
JoinWorkgroup=GRUPA_ROBOCZA
[Networking]
InstallDefaultComponents=Yes
[SysprepMassStorage]
PCI\VEN_8086&DEV_1C03&CC_0106 = "C:\Drivers\Chipset\iaAHCI.inf", "C:\Drivers\Chipset"
Now start Sysprep and Reseal the system with the default options - after a moment, the system should turn off.
Mount the VMDK WinXP drive in read/write mode using the Map Virtual Disks... option in VMware and delete file display.inf from WINDOWS\Inf and delete two services vga & VgaSave from registry in ControlSet001 key - use the Load Hive option in the registry editor by loading the WINDOWS\system32\config\system file.
Create a disk image, e.g. in Debian 6 32-bit, using the dd command - from the beginning of the disk to the end of the partition cylinder:
Restore disk image on X220 machine using Debian 9 64-bit EFI mode:
Code: Select all
dd if=/mnt/mp/prep.img of=/dev/sda
It works for me . The deployment process is done without a screen because we removed the VGA driver - problematic in EFI. It takes about 1 minute and laptop restart itself.
Of course, instead of Debian, you can use other disk cloning\imaging tools.
Soon I will try to record a video of how it goes