如何在Shell中关机
2024.05.18
好笨,调试UEFI一直是长按电源键关的机,越想越不对
AI也没训练到这个问题:
还是问传统搜索:
how to shutdown in UEFI shell
第一次从UEFI Shell 看到幽兰下电的log:
Shell> reset -?
Resets the system.
RESET [-w [string]]
RESET [-s [string]]
RESET [-c [string]]
-s - Performs a shutdown.
-w - Performs a warm boot.
-c - Performs a cold boot.
string - Describes a reason for the reset.
NOTES:
1. This command resets the system.
2. The default is to perform a cold reset unless the -w parameter is
specified.
3. If a reset string is specified, it is passed into the Reset()
function, and the system records the reason for the system reset.
Shell> reset -s
Reset with <null string> (0 bytes)GpioPinSetDirection Group:0 Pin:24 Direction:1
PartitionDriverBindingStop: FlushBlocksEx returned with Success
Cc.En: 0
Cc.Css: 0
Cc.Mps: 0
Cc.Ams: 0
Cc.Shn: 0
Cc.Iosqes: 6
Cc.Iocqes: 4
NVMe controller is disabled with status [Success].
Private->Buffer = [00000000EEB9E000]
Admin Submission Queue size (Aqa.Asqs) = [00000001]
Admin Completion Queue size (Aqa.Acqs) = [00000001]
Admin Submission Queue (SqBuffer[0]) = [00000000EEB9E000]
Admin Completion Queue (CqBuffer[0]) = [00000000EEB9F000]
Sync I/O Submission Queue (SqBuffer[1]) = [00000000EEBA0000]
Sync I/O Completion Queue (CqBuffer[1]) = [00000000EEBA1000]
Async I/O Submission Queue (SqBuffer[2]) = [00000000EEBA2000]
Async I/O Completion Queue (CqBuffer[2]) = [00000000EEBA3000]
Aqa.Asqs: 1
Aqa.Acqs: 1
Asq: EEB9E000
Acq: EEB9F000h
Cc.En: 1
Cc.Css: 0
Cc.Mps: 0
Cc.Ams: 0
Cc.Shn: 0
Cc.Iosqes: 6
Cc.Iocqes: 4
NVMe controller is enabled with status [Success].
== NVME IDENTIFY CONTROLLER DATA ==
PCI VID : 0x1F03
PCI SSVID : 0x1F03
SN : 230407210000000332
MN : S3000
FR : 0x30323248
TNVMCAP (high 8-byte) : 0x0
TNVMCAP (low 8-byte) : 0x773C256000
RAB : 0x0
IEEE : 0x0
AERL : 0x3
SQES : 0x66
CQES : 0x44
NN : 0x1
PartitionDriverBindingStop: FlushBlocksEx returned with Success
Cc.En: 0
Cc.Css: 0
Cc.Mps: 0
Cc.Ams: 0
Cc.Shn: 0
Cc.Iosqes: 6
Cc.Iocqes: 4
NVMe controller is disabled with status [Success].
Private->Buffer = [00000000EEB9E000]
Admin Submission Queue size (Aqa.Asqs) = [00000001]
Admin Completion Queue size (Aqa.Acqs) = [00000001]
Admin Submission Queue (SqBuffer[0]) = [00000000EEB9E000]
Admin Completion Queue (CqBuffer[0]) = [00000000EEB9F000]
Sync I/O Submission Queue (SqBuffer[1]) = [00000000EEBA0000]
Sync I/O Completion Queue (CqBuffer[1]) = [00000000EEBA1000]
Async I/O Submission Queue (SqBuffer[2]) = [00000000EEBA2000]
Async I/O Completion Queue (CqBuffer[2]) = [00000000EEBA3000]
Aqa.Asqs: 1
Aqa.Acqs: 1
Asq: EEB9E000
Acq: EEB9F000h
Cc.En: 1
Cc.Css: 0
Cc.Mps: 0
Cc.Ams: 0
Cc.Shn: 0
Cc.Iosqes: 6
Cc.Iocqes: 4
NVMe controller is enabled with status [Success].
== NVME IDENTIFY CONTROLLER DATA ==
PCI VID : 0x1F03
PCI SSVID : 0x1F03
SN : 230407210000000332
MN : S3000
FR : 0x30323248
TNVMCAP (high 8-byte) : 0x0
TNVMCAP (low 8-byte) : 0x773C256000
RAB : 0x0
IEEE : 0x0
AERL : 0x3
SQES : 0x66
CQES : 0x44
NN : 0x1
Cc.En: 0
Cc.Css: 0
Cc.Mps: 0
Cc.Ams: 0
Cc.Shn: 0
Cc.Iosqes: 6
Cc.Iocqes: 4
NVMe controller is disabled with status [Success].
Private->Buffer = [00000000EEB9E000]
Admin Submission Queue size (Aqa.Asqs) = [00000001]
Admin Completion Queue size (Aqa.Acqs) = [00000001]
Admin Submission Queue (SqBuffer[0]) = [00000000EEB9E000]
Admin Completion Queue (CqBuffer[0]) = [00000000EEB9F000]
Sync I/O Submission Queue (SqBuffer[1]) = [00000000EEBA0000]
Sync I/O Completion Queue (CqBuffer[1]) = [00000000EEBA1000]
Async I/O Submission Queue (SqBuffer[2]) = [00000000EEBA2000]
Async I/O Completion Queue (CqBuffer[2]) = [00000000EEBA3000]
Aqa.Asqs: 1
Aqa.Acqs: 1
Asq: EEB9E000
Acq: EEB9F000h
Cc.En: 1
Cc.Css: 0
Cc.Mps: 0
Cc.Ams: 0
Cc.Shn: 0
Cc.Iosqes: 6
Cc.Iocqes: 4
NVMe controller is enabled with status [Success].
== NVME IDENTIFY CONTROLLER DATA ==
PCI VID : 0x1F03
PCI SSVID : 0x1F03
SN : 230407210000000332
MN : S3000
FR : 0x30323248
TNVMCAP (high 8-byte) : 0x0
TNVMCAP (low 8-byte) : 0x773C256000
RAB : 0x0
IEEE : 0x0
AERL : 0x3
SQES : 0x66
CQES : 0x44
NN : 0x1
XhcClearBiosOwnership: called to clear BIOS ownership
XhcClearBiosOwnership: called to clear BIOS ownership
XhcClearBiosOwnership: called to clear BIOS ownership
EhcAsyncInterruptTransfer: remove old transfer - Success
EhcAsyncInterruptTransfer: remove old transfer - Success
Platform shutdown.
学习还是得慢、细、笨,一日练一日功,一日不练十日空。如果有仔细练习过每一条Shell命令,早就解决了。如果早些想到纠正,也早些解决了。勿以善小而不为,勿以恶小而为之。
作者:朱博渊 创建时间:2024-05-18 22:38
最后编辑:朱博渊 更新时间:2024-11-15 17:44
最后编辑:朱博渊 更新时间:2024-11-15 17:44