]> git.proxmox.com Git - mirror_edk2.git/blob - DuetPkg/ReadMe.txt
Update ReadMe file for we use the binaries of boot sector directly instead of buildin...
[mirror_edk2.git] / DuetPkg / ReadMe.txt
1 Developer's UEFI Emulation (DUET) on Edk2
2
3 A. Build DUET image on Windows Platform
4 ========================================
5 1. Tools preparation
6
7 To build DUET image, following tools are required:
8
9 1). *Visual Studio 2005*
10 Assume installed at <VS_PATH>,
11 e.g.: C:\Program Files\Microsoft Visual Studio .NET 2003\.
12 2). WinDDK
13 Assume installed at <WIN_DDK_PATH>, e.g.: C:\WINDDK\3790.1830\.
14
15 2. Build steps
16
17 2.1 Build Duet Platform module
18
19 1). run cmd.exe to open command line window.
20 2). enter workspace root directory such as c:\edk2_tree
21 2). run "edksetup.bat"
22 3). run "build -p DuetPkg\DuetPkg.dsc -a IA32" for IA32 architecture platform or
23 "build -p DuetPkg\DuetPkg.dsc -a X64" for X64 architecture platform.
24
25 2.2 Execute post build actions
26 1). enter <Workspace>\DuetPkg directory.
27 2). run "PostBuild.bat IA32" for IA32 architecture platform or
28 "PostBuild.bat X64" for X64 architecture platform.
29
30 Create bootable disk
31 ======================
32
33 3. Create boot disk
34 The following steps are same for IA32 architecture platform or X64 architecture platform.
35
36 3.1 Create floppy boot disk
37 1). enter <Workspace>\DuetPkg directory.
38 2). Insert a floppy disk to drive
39 3). run "CreateBootDisk.bat floppy a: FAT12" if floppy drive is a: disk.
40
41 3.2 Create usb boot disk
42 1). enter <Workspace>\DuetPkg directory.
43 2). Plugin usb disk
44 3). run "CreateBootDisk.bat usb e: FAT16" if usb drive is e: and FAT format is FAT16 or
45 "CreateBootDisk.bat usb e: FAT32" if usb drive is e: and FAT format is FAT32
46 4). UnPlug usb disk and plugin it again.
47 5). run "CreateBootDisk.bat usb e: FAT16 step2" if usb drive is e: and FAT format is FAT16 or
48 "CreateBootDisk.bat usb e: FAT32 step2" if usb drive is e: and FAT format is FAT32.
49
50
51 B. Build DUET image on Linux Platform
52 ======================================
53 1. Tools preparation
54
55 To build DUET image, Mingw GCC is required:
56
57 1). Check out build tools project from svn repository: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools
58 2). Assume check out directory is /R9/BaseTools, enter /R9/BaseTools/gcc directory. Please refer to README.txt install all the necessary
59 build packages following:
60 * Python 2.5
61 * texinfo
62 * bison
63 * flex
64 * libmpfr
65 * libgmp
66 * As well as (possibly) others tools and development packages
67
68 3). Run mingw-gcc-install.py from gcc folder, this script will download/build/install MingwGCC and BinUtil automatically
69 4). Create symbol link in linux environment at /opt to match default setting in tools_def.txt
70 "ln -s /R9/BaseTools/gcc/symlinks/ar /opt/tiano/i386-tiano-pe/i386-tiano-pe/bin/ar"
71 "ln -s /R9/BaseTools/gcc/symlinks/gcc /opt/tiano/i386-tiano-pe/i386-tiano-pe/bin/gcc"
72 "ln -s /R9/BaseTools/gcc/symlinks/ld /opt/tiano/i386-tiano-pe/i386-tiano-pe/bin/ld"
73
74
75 2. Build steps
76
77 2.1 Build Duet Platform module
78
79 1). run cmd.exe to open command line window.
80 2). enter workspace root directory such as /R9_tree
81 2). run "edksetup.sh BaseTools"
82 3). run "build -p DuetPkg/DuetPkg.dsc -a IA32 -t UNIXGCC" for IA32 architecture platform or
83 "build -p DuetPkg/DuetPkg.dsc -a X64 -t UNIXGCC" for X64 architecture platform.
84
85 2.2 Execute post build actions
86 1). enter /R9_tree/DuetPkg directory.
87 2). run "./PostBuild.sh IA32" for IA32 architecture platform or
88 "./PostBuild.sh X64" for X64 architecture platform.
89
90 NOTE: After post build action, you should check the size of EfiLdr at $WORKSPACE/Build/DuetPkg/DEBUG_UNIXGCC directory, it must less than 470k.
91 If not, you should manually remove some unnecessary drivers at DuetPkg.fdf file.
92
93 3. Create bootable disk
94 The following steps are same for IA32 architecture platform or X64 architecture platform.
95 Now only support floopy.
96
97 3.1 Create floppy boot disk
98 1). enter /R9_tree/DuetPkg directory.
99 2). Insert a floppy disk to drive
100 3). run "CreateBootDisk.sh" to build floppy drive
101 such as "./CreateBootDisk.sh floppy /media/floppy0 /dev/fd0 FAT12"