Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
40fdfa66
Commit
40fdfa66
authored
Oct 21, 2020
by
longpanda
Browse files
Optimization for Linux vDisk boot in Legacy BIOS mode
parent
9ddee739
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
INSTALL/grub/grub.cfg
INSTALL/grub/grub.cfg
+1
-1
IPXE/ipxe_mod_code/ipxe-3fe683e/src/arch/x86/core/ventoy_vdisk.c
...xe_mod_code/ipxe-3fe683e/src/arch/x86/core/ventoy_vdisk.c
+6
-0
IPXE/ipxe_mod_code/ipxe-3fe683e/src/arch/x86/interface/pcbios/ventoy_int13.c
...ipxe-3fe683e/src/arch/x86/interface/pcbios/ventoy_int13.c
+1
-1
IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ventoy.h
IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ventoy.h
+1
-0
No files found.
INSTALL/grub/grub.cfg
View file @
40fdfa66
...
...
@@ -1046,7 +1046,7 @@ function vtoyboot_common_func {
if [ -n "$vtoy_chain_mem_addr" ]; then
if [ "$grub_platform" = "pc" ]; then
vt_acpi_param ${vtoy_chain_mem_addr} 512
linux16 $vtoy_path/ipxe.krn ${vtdebug_flag} sector512 mem:${vtoy_chain_mem_addr}:size:${vtoy_chain_mem_size}
linux16 $vtoy_path/ipxe.krn ${vtdebug_flag}
bios80
sector512 mem:${vtoy_chain_mem_addr}:size:${vtoy_chain_mem_size}
boot
else
ventoy_acpi_param ${vtoy_chain_mem_addr} 512
...
...
IPXE/ipxe_mod_code/ipxe-3fe683e/src/arch/x86/core/ventoy_vdisk.c
View file @
40fdfa66
...
...
@@ -26,6 +26,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
int
g_debug
=
0
;
int
g_hddmode
=
0
;
int
g_bios_disk80
=
0
;
char
*
g_cmdline_copy
;
void
*
g_initrd_addr
;
size_t
g_initrd_len
;
...
...
@@ -697,6 +698,11 @@ int ventoy_boot_vdisk(void *data)
{
g_hddmode
=
1
;
}
if
(
strstr
(
g_cmdline_copy
,
"bios80"
))
{
g_bios_disk80
=
1
;
}
g_chain
=
(
ventoy_chain_head
*
)
g_initrd_addr
;
g_chunk
=
(
ventoy_img_chunk
*
)((
char
*
)
g_chain
+
g_chain
->
img_chunk_offset
);
...
...
IPXE/ipxe_mod_code/ipxe-3fe683e/src/arch/x86/interface/pcbios/ventoy_int13.c
View file @
40fdfa66
...
...
@@ -1425,7 +1425,7 @@ unsigned int ventoy_int13_hook (ventoy_chain_head *chain)
if
(
g_hddmode
)
{
natural_drive
=
num_drives
|
0x80
;
natural_drive
=
g_bios_disk80
?
0x80
:
(
num_drives
|
0x80
)
;
}
else
{
...
...
IPXE/ipxe_mod_code/ipxe-3fe683e/src/include/ventoy.h
View file @
40fdfa66
...
...
@@ -187,6 +187,7 @@ typedef struct ventoy_sector_flag
extern
int
g_debug
;
extern
int
g_hddmode
;
extern
int
g_bios_disk80
;
extern
char
*
g_cmdline_copy
;
extern
void
*
g_initrd_addr
;
extern
size_t
g_initrd_len
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment