Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bob Ham
uboot-imx
Commits
18dd577b
Commit
18dd577b
authored
Nov 24, 2018
by
Angus Ainslie (Purism)
Browse files
autoboot.c : allow fastboot to send u-boot commands
parent
8aaacfc9
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/autoboot.c
View file @
18dd577b
...
...
@@ -312,12 +312,9 @@ const char *bootdelay_process(void)
bootdelay
=
s
?
(
int
)
simple_strtol
(
s
,
NULL
,
10
)
:
CONFIG_BOOTDELAY
;
#if defined(is_boot_from_usb)
if
(
is_boot_from_usb
()
&&
getenv
(
"bootcmd_mfg"
))
{
disconnect_from_pc
();
printf
(
"Boot from USB for mfgtools
\n
"
);
if
(
is_boot_from_usb
())
{
printf
(
"Boot from USB for fastboot
\n
"
);
bootdelay
=
0
;
set_default_env
(
"Use default environment for \
mfgtools
\n
"
);
}
else
{
printf
(
"Normal Boot
\n
"
);
}
...
...
@@ -350,9 +347,9 @@ const char *bootdelay_process(void)
s
=
getenv
(
"bootcmd"
);
#if defined(is_boot_from_usb)
if
(
is_boot_from_usb
()
&&
getenv
(
"bootcmd_mfg"
)
)
{
s
=
getenv
(
"bootcmd
_mfg
"
);
printf
(
"Run bootcmd
_mfg
: %s
\n
"
,
s
);
if
(
is_boot_from_usb
())
{
s
=
getenv
(
"bootcmd"
);
printf
(
"Run bootcmd: %s
\n
"
,
s
);
}
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment