Add F5 Tools ---> Hardware Information menu

This commit is contained in:
longpanda
2022-04-06 19:12:59 +08:00
parent c3c8100866
commit 132649c4e5
31 changed files with 668 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,5 +1,6 @@
source $prefix/power.cfg
source $prefix/hwinfo.cfg
source $prefix/keyboard.cfg
submenu "Resolution Configuration" --class=debug_resolution --class=F5tool {

View File

@@ -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
View 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
}

View File

@@ -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

View File

@@ -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.

Binary file not shown.

View File

@@ -54,6 +54,7 @@
*sha256sum: hashsum
*sha512sum: hashsum
*sleep: sleep
*smbios: smbios
*submenu: normal
*syslinux_configfile: syslinuxcfg
*syslinux_source: syslinuxcfg

Binary file not shown.

View File

@@ -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

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -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

View File

@@ -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.

Binary file not shown.