forked from m13253/tianocore_uefi_duet_installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Usage_Linux.txt
44 lines (22 loc) · 1.78 KB
/
Usage_Linux.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Setting up DUET USB flash drive in Linux :-
NOTE : All the commands in Linux (and other Unix systems) are Case-Sensitive. This is true for any command typed in the terminal.
1) Plug in your USB flash drive and unplug any other USB flash drive and/or any USB external Harddrives. Only the USB flash drive to be setup, should be connected to the computer and rest of the USB ports should be free.
2) Note down the device file name of your USB device. Let it be 'DEVICE' (for example /dev/sdc).
3) Create a msdos or MBR disklabel in the USB device using using util-linux fdisk. Let the partition be 'PART' (for example /dev/sdc1).
4) Create a partition spanning the entire USB drive using util-linux fdisk. Note down the Start LBA of that partition. Let it be 'STARTLBA'.
5) Create a FAT32 filesystem in that partition using
sudo mkfs.vfat -F32 -h ${STARTLBA} ${PART}
6) Write the bootsector into the partition
sudo dd if="${UEFI_DUET_DIR}/BootSector/bd32.bin" of="${PART}" bs=1 skip=90 seek=90 count=420
7)
cd ${UEFI_DUET_DIR}/Linux_Source/C
make clean
make
cd ${UEFI_DUET_DIR}
sudo ${UEFI_DUET_DIR}/Linux_Source/C/bin/GnuGenBootSector --mbr -o ${DEVICE} -i ${UEFI_DUET_DIR}/BootSector/Mbr.com
Safely Remove and Replug the USB flash drive. This step is important before running Step 2. Do not close the terminal Window.
8) For step2 type "./copy_duet_files.sh [PARTITION_MOUNTPOINT] [DUET_BUILD]" (without quotes).
Example :- "./copy_duet_files.sh /media/UEFI_DUET UDK_X64" (without quotes).
The possible arguments for DUET_BUILD are UDK_X64 or EDK_UEFI64 (should be in CAPS).
9) Safely Remove the USB flash drive and restart the system.
10) Plug in the USB flash drive when the system reboots and set "Boot from USB" as the first option in your system's BIOS Boot order option.