mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
7c0aa811ec
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
17 lines
531 B
Batchfile
17 lines
531 B
Batchfile
@set EFI_BOOT_DISK=%1
|
|
@echo on
|
|
|
|
:CreateUsb_FAT32
|
|
@echo Format %EFI_BOOT_DISK% ...
|
|
@echo.> FormatCommandInput.txt
|
|
@format /FS:FAT32 /q %EFI_BOOT_DISK% < FormatCommandInput.txt > NUL
|
|
@del FormatCommandInput.txt
|
|
@echo Create boot sector ...
|
|
@Genbootsector.exe -i %EFI_BOOT_DISK% -o UsbBs32.bin
|
|
@Bootsectimage.exe -g UsbBs32.bin boot1f32.bin -f
|
|
@Genbootsector.exe -o %EFI_BOOT_DISK% -i boot1f32.bin
|
|
@Genbootsector.exe -m -o %EFI_BOOT_DISK% -i boot0.bin
|
|
@del usbbs32.bin
|
|
@echo Done.
|
|
@echo RePlug device before using it!
|