load dtb, unitrd and vmlinuz from second part
This commit is contained in:
parent
9b47feb86e
commit
d7b9b67616
18
boot.cmd
18
boot.cmd
@ -42,34 +42,34 @@ if test "${docker_optimizations}" = "on"; then setenv bootargs "${bootargs} cgro
|
|||||||
|
|
||||||
#load ${devtype} ${devnum} ${ramdisk_addr_r} ${prefix}uInitrd
|
#load ${devtype} ${devnum} ${ramdisk_addr_r} ${prefix}uInitrd
|
||||||
#load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}Image
|
#load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}Image
|
||||||
load ${devtype} ${devnum} ${ramdisk_addr_r} ${prefix}uInitrd${unamer}
|
load ${devtype} ${devnum}:1 ${ramdisk_addr_r} ${prefix}uInitrd${unamer}
|
||||||
load ${devtype} ${devnum} ${kernel_addr_r} ${prefix}vmlinuz${unamer}
|
load ${devtype} ${devnum}:1 ${kernel_addr_r} ${prefix}vmlinuz${unamer}
|
||||||
|
|
||||||
load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb${unamer}/${fdtfile}
|
load ${devtype} ${devnum}:1 ${fdt_addr_r} ${prefix}dtb${unamer}/${fdtfile}
|
||||||
fdt addr ${fdt_addr_r}
|
fdt addr ${fdt_addr_r}
|
||||||
fdt resize 65536
|
fdt resize 65536
|
||||||
for overlay_file in ${overlays}; do
|
for overlay_file in ${overlays}; do
|
||||||
if load ${devtype} ${devnum} ${load_addr} ${prefix}dtb${unamer}/rockchip/overlay/${overlay_prefix}-${overlay_file}.dtbo; then
|
if load ${devtype} ${devnum}:1 ${load_addr} ${prefix}dtb${unamer}/rockchip/overlay/${overlay_prefix}-${overlay_file}.dtbo; then
|
||||||
echo "Applying kernel provided DT overlay ${overlay_prefix}-${overlay_file}.dtbo"
|
echo "Applying kernel provided DT overlay ${overlay_prefix}-${overlay_file}.dtbo"
|
||||||
fdt apply ${load_addr} || setenv overlay_error "true"
|
fdt apply ${load_addr} || setenv overlay_error "true"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for overlay_file in ${user_overlays}; do
|
for overlay_file in ${user_overlays}; do
|
||||||
if load ${devtype} ${devnum} ${load_addr} ${prefix}overlay-user/${overlay_file}.dtbo; then
|
if load ${devtype} ${devnum}:1 ${load_addr} ${prefix}overlay-user/${overlay_file}.dtbo; then
|
||||||
echo "Applying user provided DT overlay ${overlay_file}.dtbo"
|
echo "Applying user provided DT overlay ${overlay_file}.dtbo"
|
||||||
fdt apply ${load_addr} || setenv overlay_error "true"
|
fdt apply ${load_addr} || setenv overlay_error "true"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if test "${overlay_error}" = "true"; then
|
if test "${overlay_error}" = "true"; then
|
||||||
echo "Error applying DT overlays, restoring original DT"
|
echo "Error applying DT overlays, restoring original DT"
|
||||||
load ${devtype} ${devnum} ${fdt_addr_r} ${prefix}dtb${unamer}/${fdtfile}
|
load ${devtype} ${devnum}:1 ${fdt_addr_r} ${prefix}dtb${unamer}/${fdtfile}
|
||||||
else
|
else
|
||||||
if load ${devtype} ${devnum} ${load_addr} ${prefix}dtb${unamer}/rockchip/overlay/${overlay_prefix}-fixup.scr; then
|
if load ${devtype} ${devnum}:1 ${load_addr} ${prefix}dtb${unamer}/rockchip/overlay/${overlay_prefix}-fixup.scr; then
|
||||||
echo "Applying kernel provided DT fixup script (${overlay_prefix}-fixup.scr)"
|
echo "Applying kernel provided DT fixup script (${overlay_prefix}-fixup.scr)"
|
||||||
source ${load_addr}
|
source ${load_addr}
|
||||||
fi
|
fi
|
||||||
if test -e ${devtype} ${devnum} ${prefix}fixup.scr; then
|
if test -e ${devtype} ${devnum}:1 ${prefix}fixup.scr; then
|
||||||
load ${devtype} ${devnum} ${load_addr} ${prefix}fixup.scr
|
load ${devtype} ${devnum}:1 ${load_addr} ${prefix}fixup.scr
|
||||||
echo "Applying user provided fixup script (fixup.scr)"
|
echo "Applying user provided fixup script (fixup.scr)"
|
||||||
source ${load_addr}
|
source ${load_addr}
|
||||||
fi
|
fi
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: opi5-efi
|
Name: opi5-efi
|
||||||
Version: 0.0.4
|
Version: 0.0.4
|
||||||
Release: 0%{?dist}
|
Release: 1%{?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}
|
||||||
|
Loading…
Reference in New Issue
Block a user