Skip to content

Commit

Permalink
Merge pull request #677 from kernelkit/uboot-improvements
Browse files Browse the repository at this point in the history
Uboot improvements
  • Loading branch information
wkz authored Oct 1, 2024
2 parents 63c1f36 + a127925 commit 14234a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 6 additions & 2 deletions board/common/uboot/scripts/ixboot.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
echo "Press Ctrl-C NOW to enter boot menu"
echo "Press Ctrl-C NOW to override the default boot sequence"
if sleep "${ixbootdelay}"; then
run ixbootorder

Expand All @@ -7,8 +7,12 @@ if sleep "${ixbootdelay}"; then
reset
fi

bootmenu
if test "${dev_mode}" != "yes"; then
bootmenu
pause "Console shell access PROHIBITED. Press any key to reset..."
reset
fi

echo
echo 'Run "bootmenu" to interactively select a boot device'
echo
7 changes: 5 additions & 2 deletions board/common/uboot/scripts/ixprepdhcp.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
setenv autoload no

if dhcp; then
if test -n "${ipaddr}" -a -n "${netmask}" -a -n "${serverip}" -a -n "${bootfile}" || dhcp; then
setenv proto tftp
setenv dltool tftpboot

if setexpr proto sub "^(http|tftp)://.*" "\\1" "${bootfile}" && setexpr bootfile sub "^(http|tftp)://([^/]+?)/(.*)" "\2:\3"; then
if setexpr proto sub "^(http|tftp)://.*" "\\1" "${bootfile}"; then
if test "${proto}" = "http"; then
setenv dltool wget
setexpr bootfile sub "^http://([^/]+?)/(.*)" "\1:/\2"
else
setexpr bootfile sub "^tftp://([^/]+?)/(.*)" "\1:\2"
fi
fi

Expand Down

0 comments on commit 14234a9

Please sign in to comment.