幽兰支持非常丰富的启动方式,在Linux系统中可以使用reboot命令来指定重启的目标。这个功能是在RK官方固件的基础上格蠹又加以扩展二而变得日益丰富和强大。

RK官方定义的启动目标有如下一些:

reboot_mode: reboot-mode {
compatible = “syscon-reboot-mode”;
offset = <0x80>;
mode-bootloader = <(0x5242C300 + 1)>;
mode-charge = <(0x5242C300 + 11)>;
mode-fastboot = <(0x5242C300 + 9)>;
mode-loader = <(0x5242C300 + 1)>;
mode-normal = <(0x5242C300 + 0)>;
mode-recovery = <(0x5242C300 + 3)>;
mode-ums = <(0x5242C300 + 12)>;
mode-panic = <(0x5242C300 + 7)>;
mode-watchdog = <(0x5242C300 + 8)>;
mode-quiescent = <(0x5242C300 + 14)>;

mode-winusb = <(0x5242C300 + 15)>;
};

格蠹进一步扩展的有:
&reboot_mode {

mode-nvme-old = <0x5242c310>;
mode-emmc-old = <0x5242c311>;

mode-nvme = <0x5242c360>;
mode-emmc = <0x5242c361>;
mode-sdc = <0x5242c362>;
mode-usb = <0x5242c363>;
mode-console = <0x5242c364>;
mode-kdbg = <0x5242c365>; // kernel debug
mode-krnl5 = <0x5242c366>; 
mode-krnl6 = <0x5242c367>;
mode-kasan = <0x5242c368>; 
mode-udbg = <0x5242c369>; // U-BOOT/UEFI debug
mode-adbg = <0x5242c36A>; // ATF debug
mode-vdbg = <0x5242c36B>; // VMM debug

};
使用的基本方法就是在reboot命令后面跟上mode-后面的目标名,比如要重启到nvme硬盘,那么只需要sudo reboot nvme

作者:Zhang Yinkui  创建时间:2025-08-07 15:03
最后编辑:Zhang Yinkui  更新时间:2025-08-27 17:17