This commit is contained in:
Pratham Patel 2023-10-08 13:17:46 +05:30
parent 99064ba8ad
commit 532f9ece58
No known key found for this signature in database
2 changed files with 6 additions and 4 deletions

View File

@ -14,11 +14,12 @@ setenv docker_optimizations "on"
setenv earlycon "off" setenv earlycon "off"
setenvrootdev setenvrootdev
setenvuname_r setenvuname_r
setenvefiver
echo "Boot script loaded from ${devtype} ${devnum}" echo "Boot script loaded from ${devtype} ${devnum}"
if test -e ${devtype} ${devnum} uEnv.txt; then if test -e ${devtype} ${devnum}:1 uEnv.txt-${efi_ver}; then
load ${devtype} ${devnum} ${load_addr} uEnv.txt load ${devtype} ${devnum}:1 ${load_addr} uEnv.txt-${efi_ver}
env import -t ${load_addr} ${filesize} env import -t ${load_addr} ${filesize}
fi fi
@ -43,7 +44,7 @@ if test "${docker_optimizations}" = "on"; then setenv bootargs "${bootargs} cgro
#load ${devtype} ${devnum}:2 ${ramdisk_addr_r} uInitrd #load ${devtype} ${devnum}:2 ${ramdisk_addr_r} uInitrd
#load ${devtype} ${devnum}:2 ${kernel_addr_r} Image #load ${devtype} ${devnum}:2 ${kernel_addr_r} Image
load ${devtype} ${devnum}:2 ${ramdisk_addr_r} uInitrd-${uname_r} load ${devtype} ${devnum}:2 ${ramdisk_addr_r} uInitrd-${uname_r}
load ${devtype} ${devnum}:2 ${kernel_addr_r} vmlinuz-${uname_r} load ${devtype} ${devnum}:2 ${kernel_addr_r} vmlinuz-${uname_r}.old
load ${devtype} ${devnum}:2 ${fdt_addr_r} dtb-${uname_r}/${fdtfile} load ${devtype} ${devnum}:2 ${fdt_addr_r} dtb-${uname_r}/${fdtfile}
fdt addr ${fdt_addr_r} fdt addr ${fdt_addr_r}

View File

@ -5,7 +5,7 @@
Name: opi5-efi Name: opi5-efi
Version: 0.0.4 Version: 0.0.4
Release: 4%{?dist} Release: 5%{?dist}
Summary: Necessary files for booting from vendor U-Boot on Orange Pi 5 Summary: Necessary files for booting from vendor U-Boot on Orange Pi 5
License: GPL License: GPL
Provides: %{name}-%{version} Provides: %{name}-%{version}
@ -33,6 +33,7 @@ cp %{SOURCE0} $RPM_BUILD_ROOT/opt/opi5-efi/boot.cmd
cp %{SOURCE1} $RPM_BUILD_ROOT/opt/opi5-efi/uEnv.txt cp %{SOURCE1} $RPM_BUILD_ROOT/opt/opi5-efi/uEnv.txt
cp %{SOURCE2} $RPM_BUILD_ROOT/opt/opi5-efi/post.sh cp %{SOURCE2} $RPM_BUILD_ROOT/opt/opi5-efi/post.sh
sed -i "s/replacewithfullver/FULL_VER=%{full_ver}/" $RPM_BUILD_ROOT/opt/opi5-efi/post.sh sed -i "s/replacewithfullver/FULL_VER=%{full_ver}/" $RPM_BUILD_ROOT/opt/opi5-efi/post.sh
sed -i "s/setenvefiver/setenv efi_ver %{full_ver}/" $RPM_BUILD_ROOT/opt/opi5-efi/boot.cmd
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT