mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Try to fix XU4 boot script for the separate /boot setup
This commit is contained in:
@@ -231,8 +231,15 @@ setenv hdmi_phy_control "hdmi_tx_amp_lvl=${hdmi_tx_amp_lvl} hdmi_tx_lvl_ch0=${hd
|
||||
# Load kernel, initrd and dtb in that sequence
|
||||
ext4load mmc 0:1 0x40008000 /boot/zImage || fatload mmc 0:1 0x40008000 zImage || ext4load mmc 0:1 0x40008000 zImage
|
||||
ext4load mmc 0:1 0x42000000 /boot/uInitrd || fatload mmc 0:1 0x42000000 uInitrd || ext4load mmc 0:1 0x42000000 uInitrd
|
||||
# If we load mainline kernel we need some other approach
|
||||
if ext4load mmc 0:1 0x00000000 "/boot/.next"; then echo "Found mainline kernel configuration"; ext4load mmc 0:1 0x44000000 /boot/dtb/exynos5422-odroidxu4.dtb || fatload mmc 0:1 0x44000000 dtb/exynos5422-odroidxu4.dtb || ext4load mmc 0:1 0x44000000 dtb/exynos5422-odroidxu4.dtb; else echo "Found legacy kernel configuration"; ext4load mmc 0:1 0x44000000 /boot/dtb/exynos5422-odroidxu3.dtb || fatload mmc 0:1 0x44000000 dtb/exynos5422-odroidxu3.dtb || ext4load mmc 0:1 0x44000000 dtb/exynos5422-odroidxu3.dtb; fi
|
||||
|
||||
# this is for mainline only
|
||||
if test "${board_name}" = "xu4"; then setenv fdtfile "exynos5422-odroidxu4.dtb"; fi
|
||||
if test "${board_name}" = "xu3"; then setenv fdtfile "exynos5422-odroidxu3.dtb"; fi
|
||||
if test "${board_name}" = "xu3l"; then setenv fdtfile "exynos5422-odroidxu3-lite.dtb"; fi
|
||||
|
||||
# legacy shares a single DT for all boards
|
||||
if ext4load mmc 0:1 0x00000000 "/boot/.next" || fatload mmc 0:1 0x00000000 ".next" || ext4load mmc 0:1 0x00000000 ".next"; then echo "Found mainline kernel configuration"; else setenv config_type "legacy"; setenv fdtfile "exynos5422-odroidxu3.dtb"; fi
|
||||
ext4load mmc 0:1 0x44000000 /boot/dtb/${fdtfile} || fatload mmc 0:1 0x44000000 dtb/${fdtfile} || ext4load mmc 0:1 0x44000000 dtb/${fdtfile}
|
||||
|
||||
# set FDT address
|
||||
fdt addr 0x44000000
|
||||
|
||||
Reference in New Issue
Block a user