mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-28 00:11:15 +00:00
Add F5 Tools ---> Hardware Information menu
This commit is contained in:
Binary file not shown.
BIN
INSTALL/grub/arm64-efi/fwload.mod
Normal file
BIN
INSTALL/grub/arm64-efi/fwload.mod
Normal file
Binary file not shown.
Binary file not shown.
BIN
INSTALL/grub/arm64-efi/smbios.mod
Normal file
BIN
INSTALL/grub/arm64-efi/smbios.mod
Normal file
Binary file not shown.
@@ -1,5 +1,6 @@
|
||||
|
||||
source $prefix/power.cfg
|
||||
source $prefix/hwinfo.cfg
|
||||
source $prefix/keyboard.cfg
|
||||
|
||||
submenu "Resolution Configuration" --class=debug_resolution --class=F5tool {
|
||||
|
@@ -2267,6 +2267,11 @@ else
|
||||
terminal_output gfxterm
|
||||
fi
|
||||
|
||||
if [ "$grub_platform" = "efi" ]; then
|
||||
set mouse_delta=4000
|
||||
# terminal_input --append mouse
|
||||
fi
|
||||
|
||||
if [ -n "$VTOY_DEFAULT_KBD_LAYOUT" ]; then
|
||||
set_keyboard_layout "$VTOY_DEFAULT_KBD_LAYOUT"
|
||||
fi
|
||||
|
61
INSTALL/grub/hwinfo.cfg
Normal file
61
INSTALL/grub/hwinfo.cfg
Normal file
@@ -0,0 +1,61 @@
|
||||
menuentry 'Hardware Information' --class=debug_hwinfo --class=F5tool {
|
||||
smbios -t 4 -s 0x10 --set=cpu_brand
|
||||
|
||||
set system_vendor="-";
|
||||
smbios -t 1 -s 0x04 --set=system_vendor;
|
||||
set system_product="-";
|
||||
smbios -t 1 -s 0x05 --set=system_product;
|
||||
set system_version="-";
|
||||
smbios -t 1 -s 0x06 --set=system_version;
|
||||
|
||||
set board_vendor="-";
|
||||
smbios -t 2 -s 0x04 --set=board_vendor;
|
||||
set board_product="-";
|
||||
smbios -t 2 -s 0x05 --set=board_product;
|
||||
set board_version="-";
|
||||
smbios -t 2 -s 0x06 --set=board_version;
|
||||
|
||||
set bios_vendor="-";
|
||||
smbios -t 0 -s 0x04 --set=bios_vendor;
|
||||
set bios_version="-";
|
||||
smbios -t 0 -s 0x05 --set=bios_ver;
|
||||
set bios_date="-";
|
||||
smbios -t 0 -s 0x08 --set=bios_date;
|
||||
set bios_size="-";
|
||||
smbios -t 0 -b 0x09 --set=bios_size;
|
||||
|
||||
|
||||
echo "Platform $grub_cpu-$grub_platform"
|
||||
if [ "$grub_platform" != "pc" ]; then
|
||||
echo "UEFI Version $grub_uefi_version"
|
||||
if vt_check_secureboot_var; then
|
||||
echo "Secure Boot Enabled"
|
||||
else
|
||||
echo "Secure Boot Disabled"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "CPU Model $cpu_brand"
|
||||
echo "Physical RAM $grub_total_ram MB"
|
||||
|
||||
echo ""
|
||||
echo "Manufacture $system_vendor"
|
||||
echo "Product Name $system_product"
|
||||
echo "Version $system_version"
|
||||
|
||||
echo ""
|
||||
echo "Board Manufacture $board_vendor"
|
||||
echo "Board Name $board_product"
|
||||
echo "Board Version $board_version"
|
||||
|
||||
echo ""
|
||||
echo "BIOS Manufacture $bios_vendor"
|
||||
echo "BIOS Version $bios_ver"
|
||||
echo "BIOS Date $bios_date"
|
||||
echo "BIOS ROM Size $bios_size"
|
||||
|
||||
|
||||
echo -e "\n\n\npress ENTER to exit ..."
|
||||
read vtInputKey
|
||||
}
|
@@ -12,6 +12,8 @@
|
||||
*extract_syslinux_entries_source: syslinuxcfg
|
||||
*file: file
|
||||
*functional_test: functional_test
|
||||
*fwconnect: fwload
|
||||
*fwload: fwload
|
||||
*gettext: gettext
|
||||
*hashsum: hashsum
|
||||
*hdparm: hdparm
|
||||
@@ -50,6 +52,7 @@
|
||||
*sha256sum: hashsum
|
||||
*sha512sum: hashsum
|
||||
*sleep: sleep
|
||||
*smbios: smbios
|
||||
*submenu: normal
|
||||
*syslinux_configfile: syslinuxcfg
|
||||
*syslinux_source: syslinuxcfg
|
||||
|
@@ -49,6 +49,7 @@ test_blockarg: extcmd normal
|
||||
true:
|
||||
affs: fshelp
|
||||
iso9660: fshelp
|
||||
smbios: extcmd
|
||||
exfat: fshelp
|
||||
setjmp_test: setjmp functional_test
|
||||
gfxterm: font video
|
||||
@@ -120,7 +121,7 @@ ehci: cs5536 usb boot
|
||||
crypto:
|
||||
part_bsd: part_msdos
|
||||
cs5536:
|
||||
ventoy: fshelp ext2 elf btrfs font crypto gcry_md5 exfat udf div extcmd datetime normal video gcry_sha1 iso9660
|
||||
ventoy: ext2 fshelp elf btrfs font crypto gcry_md5 exfat udf div extcmd datetime normal video gcry_sha1 mmap iso9660
|
||||
gcry_sha512: crypto
|
||||
password: crypto normal
|
||||
fshelp:
|
||||
@@ -181,6 +182,7 @@ usbtest: usb
|
||||
relocator: mmap
|
||||
acpi: extcmd mmap
|
||||
tga: bufio bitmap
|
||||
fwload: extcmd
|
||||
reboot:
|
||||
serial: extcmd terminfo
|
||||
zfscrypt: crypto pbkdf2 extcmd zfs gcry_sha1 gcry_rijndael
|
||||
|
Binary file not shown.
BIN
INSTALL/grub/i386-efi/smbios.mod
Normal file
BIN
INSTALL/grub/i386-efi/smbios.mod
Normal file
Binary file not shown.
@@ -54,6 +54,7 @@
|
||||
*sha256sum: hashsum
|
||||
*sha512sum: hashsum
|
||||
*sleep: sleep
|
||||
*smbios: smbios
|
||||
*submenu: normal
|
||||
*syslinux_configfile: syslinuxcfg
|
||||
*syslinux_source: syslinuxcfg
|
||||
|
Binary file not shown.
@@ -50,6 +50,7 @@ test_blockarg: extcmd normal
|
||||
true:
|
||||
affs: fshelp
|
||||
iso9660: fshelp
|
||||
smbios: extcmd acpi
|
||||
exfat: fshelp
|
||||
setjmp_test: setjmp functional_test
|
||||
gfxterm: font video
|
||||
|
BIN
INSTALL/grub/i386-pc/smbios.mod
Normal file
BIN
INSTALL/grub/i386-pc/smbios.mod
Normal file
Binary file not shown.
Binary file not shown.
BIN
INSTALL/grub/mips64el-efi/fwload.mod
Normal file
BIN
INSTALL/grub/mips64el-efi/fwload.mod
Normal file
Binary file not shown.
Binary file not shown.
BIN
INSTALL/grub/mips64el-efi/smbios.mod
Normal file
BIN
INSTALL/grub/mips64el-efi/smbios.mod
Normal file
Binary file not shown.
@@ -12,6 +12,8 @@
|
||||
*extract_syslinux_entries_source: syslinuxcfg
|
||||
*file: file
|
||||
*functional_test: functional_test
|
||||
*fwconnect: fwload
|
||||
*fwload: fwload
|
||||
*gettext: gettext
|
||||
*hashsum: hashsum
|
||||
*hdparm: hdparm
|
||||
@@ -50,6 +52,7 @@
|
||||
*sha256sum: hashsum
|
||||
*sha512sum: hashsum
|
||||
*sleep: sleep
|
||||
*smbios: smbios
|
||||
*submenu: normal
|
||||
*syslinux_configfile: syslinuxcfg
|
||||
*syslinux_source: syslinuxcfg
|
||||
|
@@ -49,6 +49,7 @@ test_blockarg: extcmd normal
|
||||
true:
|
||||
affs: fshelp
|
||||
iso9660: fshelp
|
||||
smbios: extcmd
|
||||
exfat: fshelp
|
||||
setjmp_test: setjmp functional_test
|
||||
gfxterm: font video
|
||||
@@ -120,7 +121,7 @@ ehci: cs5536 usb boot
|
||||
crypto:
|
||||
part_bsd: part_msdos
|
||||
cs5536:
|
||||
ventoy: fshelp ext2 elf btrfs font crypto gcry_md5 exfat udf div extcmd datetime normal video gcry_sha1 iso9660
|
||||
ventoy: ext2 fshelp elf btrfs font crypto gcry_md5 exfat udf div extcmd datetime normal video gcry_sha1 mmap iso9660
|
||||
gcry_sha512: crypto
|
||||
password: crypto normal
|
||||
fshelp:
|
||||
@@ -183,6 +184,7 @@ relocator: mmap
|
||||
acpi: extcmd mmap
|
||||
tga: bufio bitmap
|
||||
reboot:
|
||||
fwload: extcmd
|
||||
serial: extcmd terminfo
|
||||
zfscrypt: crypto pbkdf2 extcmd zfs gcry_sha1 gcry_rijndael
|
||||
efi_uga: video video_fb
|
||||
|
Binary file not shown.
BIN
INSTALL/grub/x86_64-efi/smbios.mod
Normal file
BIN
INSTALL/grub/x86_64-efi/smbios.mod
Normal file
Binary file not shown.
Reference in New Issue
Block a user