update readme

This commit is contained in:
a1ive 2021-02-01 10:49:25 +08:00
parent 2fd9f77f2e
commit cedc09d218
No known key found for this signature in database
GPG Key ID: FA597A6B760D3A1D
3 changed files with 37 additions and 5 deletions

View File

@ -1,4 +1,4 @@
VERSION := v1.0.1
VERSION := v1.0.2
OBJECTS := prefix.o startup.o callback.o vsprintf.o string.o
OBJECTS += int13.o vdisk.o cpio.o stdio.o misc.o efimain.o
OBJECTS += efiblock.o cmdline.o peloader.o main.o efidisk.o

View File

@ -22,11 +22,11 @@
```
title Boot Windows NT6+ PE
uuid (hdx,y)
kernel /ntloader uuid=%?% file=/path/to/winpe.wim
kernel /ntloader uuid=%?_UUID% file=/path/to/winpe.wim
initrd /initrd.lz1
```
- a1ive GRUB2
- a1ive GRUB2
```
menuentry "Boot Windows NT6+ PE" {
probe -s dev_uuid -u (hdx,y);
@ -61,11 +61,11 @@ menuentry "Boot Windows NT6+ PE" {
```
title Boot Windows NT6+ PE
uuid (hdx,y)
kernel /ntloader uuid=%?%
kernel /ntloader uuid=%?_UUID%
initrd /initrd.lz1
```
- a1ive GRUB2
- a1ive GRUB2
```
menuentry "Boot Windows NT6+ PE" {
probe -s dev_uuid -u (hdx,y);
@ -96,6 +96,34 @@ menuentry "Boot Windows NT6+ PE" {
### Advanced options
- Enable *Test Signing* mode
```
kernel /ntloader uuid=%?% file=/xxx.vhd testmode=1
```
- Use the highest graphical resolution
```
kernel /ntloader uuid=%?% file=/xxx.wim hires=1
```
- Configure *Physical Address Extension* (PAE)
```
kernel /ntloader uuid=%?% pae=Enable|Disable|Default
```
- Configure *Data Execution Prevention* (DEP)
```
kernel /ntloader uuid=%?% nx=OptIn|OptOut|AlwaysOff|AlwaysOn
```
- Set Windows load options
```
kernel /ntloader uuid=%?% file=/xxx.vhd loadopt=XXX
```
- Specify the path of `winload.exe` or `winload.efi`
```
kernel /ntloader uuid=%?% winload=\\Windows\\System32\\winload.efi
```
- Specify system root
```
kernel /ntloader uuid=%?% file=/xxx.vhd sysroot=\\Windows
```
- Disable debug messages
You can disable debug messages by using the 'quiet' command-line option.
For example:

View File

@ -270,6 +270,10 @@ void efi_linuxentry (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *systab,
efi_image_handle = image_handle;
efi_systab = systab;
/* Initialise stack cookie */
init_cookie ();
/* Print welcome banner */
print_banner ();
DBG ("type: linuxefi\n");