finalfinalllll
This commit is contained in:
parent
5a3a5b8fcf
commit
644f7e870a
15
boot.cmd
15
boot.cmd
@ -14,7 +14,6 @@ setenv docker_optimizations "on"
|
|||||||
setenv earlycon "off"
|
setenv earlycon "off"
|
||||||
setenv devtype "mmc"
|
setenv devtype "mmc"
|
||||||
setenvrootdev
|
setenvrootdev
|
||||||
setenvuname_r
|
|
||||||
|
|
||||||
if test -e ${devtype} ${devnum}:1 uEnv.txt; then
|
if test -e ${devtype} ${devnum}:1 uEnv.txt; then
|
||||||
load ${devtype} ${devnum}:1 ${load_addr} uEnv.txt
|
load ${devtype} ${devnum}:1 ${load_addr} uEnv.txt
|
||||||
@ -39,16 +38,14 @@ setenv bootargs "root=${rootdev} rootwait rootfstype=${rootfstype} ${consoleargs
|
|||||||
|
|
||||||
if test "${docker_optimizations}" = "on"; then setenv bootargs "${bootargs} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1"; fi
|
if test "${docker_optimizations}" = "on"; then setenv bootargs "${bootargs} cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1"; fi
|
||||||
|
|
||||||
#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} vmlinuz
|
||||||
load ${devtype} ${devnum}:2 ${ramdisk_addr_r} uInitrd-${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/${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}:2 ${load_addr} dtb-${uname_r}/rockchip/overlay/${overlay_prefix}-${overlay_file}.dtbo; then
|
if load ${devtype} ${devnum}:2 ${load_addr} dtb/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
|
||||||
@ -61,9 +58,9 @@ for overlay_file in ${user_overlays}; do
|
|||||||
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}:2 ${fdt_addr_r} dtb-${uname_r}/${fdtfile}
|
load ${devtype} ${devnum}:2 ${fdt_addr_r} dtb/${fdtfile}
|
||||||
else
|
else
|
||||||
if load ${devtype} ${devnum}:2 ${load_addr} dtb-${uname_r}/rockchip/overlay/${overlay_prefix}-fixup.scr; then
|
if load ${devtype} ${devnum}:2 ${load_addr} dtb/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
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Name: opi5-efi
|
Name: opi5-efi
|
||||||
Version: 0.0.4
|
Version: 0.0.4
|
||||||
Release: 6%{?dist}
|
Release: 7%{?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}
|
||||||
|
1
post.sh
1
post.sh
@ -21,7 +21,6 @@ fi
|
|||||||
|
|
||||||
echo "rootdev=${BOOT_PART}" >> "/boot/efi/uEnv.txt"
|
echo "rootdev=${BOOT_PART}" >> "/boot/efi/uEnv.txt"
|
||||||
sed -i "s/setenvrootdev/setenv rootdev \"${BOOT_PART}\"/" "/boot/efi/boot.cmd"
|
sed -i "s/setenvrootdev/setenv rootdev \"${BOOT_PART}\"/" "/boot/efi/boot.cmd"
|
||||||
sed -i "s/setenvuname_r/setenv uname_r \"${UNAME_R}\"/" "/boot/efi/boot.cmd"
|
|
||||||
|
|
||||||
mkimage -A arm -T ramdisk -C none -n uInitrd -d "/boot/initramfs-${UNAME_R}.img" "/boot/uInitrd-${UNAME_R}"
|
mkimage -A arm -T ramdisk -C none -n uInitrd -d "/boot/initramfs-${UNAME_R}.img" "/boot/uInitrd-${UNAME_R}"
|
||||||
mkimage -C none -A arm -T script -d "/boot/efi/boot.cmd" "/boot/efi/boot.scr"
|
mkimage -C none -A arm -T script -d "/boot/efi/boot.cmd" "/boot/efi/boot.scr"
|
||||||
|
Loading…
Reference in New Issue
Block a user