Skip to content

Commit e541be3

Browse files
committed
tools/linux.py: Speed u-boot boot up
Drop 'preboot' env variable and set bootdelay to 0. When booting via u-boot there is no need to start USB via the preboot command. Probing all USB ports takes u-boot quite a while. It is not needed when booting kernel and initramfs from memory. Signed-off-by: Janne Grunau <j@jannau.net>
1 parent a340aa6 commit e541be3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

proxyclient/tools/linux.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494
bootenv = list(filter(lambda x: not (
9595
x.startswith("baudrate") or
9696
x.startswith("boot_") or
97+
x.startswith("bootdelay=") or
98+
x.startswith("preboot=") or
9799
x.startswith("bootcmd")
98100
), bootenv))
99101

@@ -109,6 +111,7 @@
109111
if tty_dev is not None:
110112
bootenv.append("baudrate=%d" % tty_dev.baudrate)
111113
bootenv.append(bootcmd)
114+
bootenv.append("bootdelay=0")
112115
if args.bootargs is not None:
113116
bootenv.append("bootargs=" + args.bootargs)
114117

0 commit comments

Comments
 (0)