2005-04-17 02:20:36 +04:00
|
|
|
#
|
|
|
|
# mtools configuration file for "make (b)zdisk"
|
|
|
|
#
|
|
|
|
|
|
|
|
# Actual floppy drive
|
|
|
|
drive a:
|
|
|
|
file="/dev/fd0"
|
|
|
|
|
|
|
|
# 1.44 MB floppy disk image
|
|
|
|
drive v:
|
|
|
|
file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=18 filter
|
|
|
|
|
|
|
|
# 2.88 MB floppy disk image (mostly for virtual uses)
|
|
|
|
drive w:
|
|
|
|
file="@OBJ@/fdimage" cylinders=80 heads=2 sectors=36 filter
|
|
|
|
|
2021-09-11 03:39:06 +03:00
|
|
|
# Hard disk (h: for the filesystem, p: for format - old mtools bug?)
|
x86/boot: Modernize genimage script; hdimage+EFI support
The image generation scripts in arch/x86/boot are pretty out of date,
except for the isoimage target. Update and clean up the
genimage.sh script, and make it support an arbitrary number of
initramfs files in the image.
Add a "hdimage" target, which can be booted by either BIOS or
EFI (if the kernel is compiled with the EFI stub.) For EFI to be able
to pass the command line to the kernel, we need the EFI shell, but the
firmware builtin EFI shell, if it even exists, is pretty much always
the last resort boot option, so search for OVMF or EDK2 and explicitly
include a copy of the EFI shell.
To make this all work, use bash features in the script. Furthermore,
this version of the script makes use of some mtools features,
especially mpartition, that might not exist in very old version of
mtools, but given all the other dependencies on this script this
doesn't seem such a big deal.
Finally, put a volume label ("LINUX_BOOT") on all generated images.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210510082840.628372-1-hpa@zytor.com
2021-05-10 11:28:40 +03:00
|
|
|
drive h:
|
2021-09-11 03:39:06 +03:00
|
|
|
file="@OBJ@/hdimage" offset=32768 mformat_only
|
|
|
|
drive p:
|
x86/boot: Modernize genimage script; hdimage+EFI support
The image generation scripts in arch/x86/boot are pretty out of date,
except for the isoimage target. Update and clean up the
genimage.sh script, and make it support an arbitrary number of
initramfs files in the image.
Add a "hdimage" target, which can be booted by either BIOS or
EFI (if the kernel is compiled with the EFI stub.) For EFI to be able
to pass the command line to the kernel, we need the EFI shell, but the
firmware builtin EFI shell, if it even exists, is pretty much always
the last resort boot option, so search for OVMF or EDK2 and explicitly
include a copy of the EFI shell.
To make this all work, use bash features in the script. Furthermore,
this version of the script makes use of some mtools features,
especially mpartition, that might not exist in very old version of
mtools, but given all the other dependencies on this script this
doesn't seem such a big deal.
Finally, put a volume label ("LINUX_BOOT") on all generated images.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210510082840.628372-1-hpa@zytor.com
2021-05-10 11:28:40 +03:00
|
|
|
file="@OBJ@/hdimage" partition=1 mformat_only
|