This commit is contained in:
Pratham Patel 2023-10-05 05:30:41 +05:30
parent 0b9c4909df
commit 6a5cf64486
No known key found for this signature in database
3 changed files with 6 additions and 2 deletions

View File

@ -6,13 +6,14 @@
setenv load_addr "0x9000000" setenv load_addr "0x9000000"
setenv overlay_error "false" setenv overlay_error "false"
# default values # default values
setenv rootdev "/dev/mmcblk0p1"
setenv verbosity "1" setenv verbosity "1"
setenv console "both" setenv console "both"
setenv bootlogo "false" setenv bootlogo "false"
setenv rootfstype "ext4" setenv rootfstype "ext4"
setenv docker_optimizations "on" setenv docker_optimizations "on"
setenv earlycon "off" setenv earlycon "off"
setenvrootdev
setenvunamer
echo "Boot script loaded from ${devtype} ${devnum}" echo "Boot script loaded from ${devtype} ${devnum}"

View File

@ -34,6 +34,10 @@ set -xeuf -o pipefail
if [ -f /boot/.uname ]; then if [ -f /boot/.uname ]; then
UNAME_R=$(</boot/.uname) UNAME_R=$(</boot/.uname)
BOOT_PART=$(grep '/ ' /etc/fstab | awk '{print $1}') BOOT_PART=$(grep '/ ' /etc/fstab | awk '{print $1}')
echo "${BOOT_PART}" >> /boot/uEnv.txt-%{full_ver}
sed -i "s/setenvrootdev/setenv rootdev \"${BOOT_PART}\"/" /boot/boot.cmd-%{full_ver}
sed -i "s/setenvunamer/setenv unamer \"${UNAME_R}\"/" /boot/boot.cmd-%{full_ver}
else else
echo "ERROR: No /boot/.uname found to extract 'uname -r' from." echo "ERROR: No /boot/.uname found to extract 'uname -r' from."
fi fi

View File

@ -2,5 +2,4 @@ verbosity=1
bootlogo=false bootlogo=false
overlay_prefix=rockchip-rk3588 overlay_prefix=rockchip-rk3588
fdtfile=rockchip/rk3588s-orangepi-5.dtb fdtfile=rockchip/rk3588s-orangepi-5.dtb
rootdev=UUID=5fe11b68-cab3-4c7c-8382-ea27cb923344
rootfstype=ext4 rootfstype=ext4