cleanup
This commit is contained in:
parent
751c8f7b77
commit
c48860c3f2
18
boot.cmd
18
boot.cmd
@ -1,11 +1,6 @@
|
|||||||
setenv load_addr "0x9000000"
|
setenv load_addr "0x9000000"
|
||||||
setenv overlay_error "false"
|
setenv overlay_error "false"
|
||||||
# default values
|
# default values
|
||||||
setenv verbosity "1"
|
|
||||||
setenv console "both"
|
|
||||||
setenv bootlogo "false"
|
|
||||||
setenv rootfstype "ext4"
|
|
||||||
setenv earlycon "off"
|
|
||||||
setenvrootdev
|
setenvrootdev
|
||||||
setenvunamer
|
setenvunamer
|
||||||
setenv envfile "${prefix}uEnv.txt-${unamer}"
|
setenv envfile "${prefix}uEnv.txt-${unamer}"
|
||||||
@ -23,22 +18,9 @@ if test -e ${devtype} ${devnum} ${envfile}; then
|
|||||||
echo "${envfile} imported into environment"
|
echo "${envfile} imported into environment"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "${logo}" = "disabled"; then setenv logo "logo.nologo"; fi
|
|
||||||
|
|
||||||
if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=tty1"; fi
|
|
||||||
if test "${console}" = "serial" || test "${console}" = "both"; then setenv consoleargs "console=ttyS2,1500000 ${consoleargs}"; fi
|
|
||||||
if test "${earlycon}" = "on"; then setenv consoleargs "earlycon ${consoleargs}"; fi
|
|
||||||
if test "${bootlogo}" = "true"; then
|
|
||||||
setenv consoleargs "splash plymouth.ignore-serial-consoles ${consoleargs}"
|
|
||||||
else
|
|
||||||
setenv consoleargs "splash=verbose ${consoleargs}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# get PARTUUID of first partition on SD/eMMC the boot script was loaded from
|
# get PARTUUID of first partition on SD/eMMC the boot script was loaded from
|
||||||
if test "${devtype}" = "mmc"; then part uuid mmc ${devnum}:1 partuuid; fi
|
if test "${devtype}" = "mmc"; then part uuid mmc ${devnum}:1 partuuid; fi
|
||||||
|
|
||||||
setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${consoleargs} consoleblank=0 loglevel=${verbosity} ubootpart=${partuuid} usb-storage.quirks=${usbstoragequirks} ${extraargs} ${extraboardargs}"
|
|
||||||
|
|
||||||
load ${devtype} ${devnum} ${ramdisk_addr_r} ${prefix}uInitrd-${unamer}
|
load ${devtype} ${devnum} ${ramdisk_addr_r} ${prefix}uInitrd-${unamer}
|
||||||
load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}vmlinuz-${unamer}
|
load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}vmlinuz-${unamer}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user