【U-Boot】修改Hit any key to stop autoboot等待的时间

说明

搞嵌入式Linux的都知道,在u-boot启动的时候会有一个等待按按键进入u-boot的环节

Hit any key to stop autoboot: 4

调试的时候我们为了节省时间,可以将u-boot的等待时间改短。因为调试的时候经常要重启设备,每次等待4s可以说浪费非常多的时间了
有两种方式可以配置这个启动的时间:

  • 配置u-boot。
  • 如果已经编译出来u-boot了,可以尝试配置u-boot下的环境变量

配置u-boot

那么我们配置一下u-boot

petalinux-config -c u-boot

delay in seconds before automatically booting
如图,这里我们将4改成2就可以了(手速比较快的同学也可以改成1哈,另外不建议改成0)
Save && Exit
重新build一下
文章参考:
https://forums.xilinx.com/t5/嵌入式-工具-软件开发/如何关闭boot启动网络检测和Hit-any-key-to-stop-autoboot/td-p/1040561
里面的Explorer的回答

配置环境变量

posted @ 2026-07-01 11:55  '昵称'undeclared  阅读(9)  评论(0)    收藏  举报