mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* Add plymouth-theme-armbian package * Adjust all bootscripts to adapt plymouth * Auto show logo accroding to BOOT_LOGO * Enable plymouth detail mode when bootlogo=false * Add a new board config var - HAS_VIDEO_OUTPUT This var is used to indicate whether device has a HW video output. If it's set to "no", we will disable kernel bootsplash, plymouth and BUILD_DESKTOP * Rename package to be aligned with others * Disable kernel bootloader, but keep the code for it * Rather keep bootlogo in the kernel for a while, otherwise kernel upgrade will turn bootup into the darkness Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com> Co-authored-by: Igor <igor@armbian.com>
44 lines
1.6 KiB
Batchfile
44 lines
1.6 KiB
Batchfile
# DO NOT EDIT THIS FILE
|
|
#
|
|
# Please edit /boot/armbianEnv.txt to set supported parameters
|
|
#
|
|
|
|
setenv load_addr "0x6000000"
|
|
#setenv fdt_addr_r "0x4000_0000"
|
|
setenv overlay_error "false"
|
|
# default values
|
|
setenv console "serial"
|
|
setenv rootfstype "ext4"
|
|
setenv devnum "0"
|
|
setenv rootdev "/dev/vda1"
|
|
setenv earlycon "on"
|
|
setenv devtype "virtio"
|
|
setenv prefix "/boot/"
|
|
setenv bootlogo "off"
|
|
#if virtio dev ${devnum}; then devtype=virtio; run scan_dev_for_boot_part; fi
|
|
part uuid virtio ${devnum}:1 partuuid;
|
|
|
|
echo "Boot script loaded from ${devtype}"
|
|
if test -e ${devtype} ${devnum} ${prefix}armbianEnv.txt; then
|
|
load ${devtype} ${devnum} ${load_addr} ${prefix}armbianEnv.txt
|
|
env import -t ${load_addr} ${filesize}
|
|
fi
|
|
|
|
if test "${console}" = "display" || test "${console}" = "both"; then setenv consoleargs "console=ttyAMA0 console=tty1"; fi
|
|
if test "${console}" = "serial"; then setenv consoleargs "console=ttyAMA0"; 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
|
|
|
|
setenv bootargs "root=${rootdev} rw rootdelay=5 rootwait rootfstype=${rootfstype} ${consoleargs} loglevel=7 apparmor=0 nousb selinux=0 ${extraargs} ${extraboardargs}"
|
|
load ${devtype} ${devnum} ${ramdisk_addr_r} ${prefix}uInitrd
|
|
load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}Image
|
|
|
|
booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr}
|
|
|
|
# Recompile with:
|
|
# mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
|