Files
pmaports-rtwo/device/archived/device-odroid-hc2/uboot-script.cmd
T
Aster Boese 1979057699 odroid-hc2: move to archived
The maintainer is okay with this device being archived due to
not having current device access nor time to work on this port.
 As such, this device is to be archived.

Closes pmaports#4725

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9215>
2026-09-05 13:06:33 -04:00

39 lines
1.3 KiB
Batchfile

setenv kernel_addr_r "0x40008000"
setenv initrd_addr_r "0x42000000"
setenv fdt_addr_r "0x44000000"
setenv kernel_image "vmlinuz"
setenv initrd_image "uInitrd"
setenv dtb_file "exynos5422-odroidhc1.dtb"
printenv
echo Setting bootargs
setenv bootargs init=/init.sh rw console=tty0 console=ttySAC2,115200 panic=10 consoleblank=0 loglevel=9 cma=256M initcall_blacklist=exynos_drm_init no_bL_switcher PMOS_FORCE_PARTITION_RESIZE
if test -e mmc ${mmcbootdev}:${mmcbootpart} ${kernel_image}; then
echo Loading Kernel: vmlinuz
load mmc ${mmcbootdev}:${mmcbootpart} ${kernel_addr_r} ${kernel_image};
fi
if test -e mmc ${mmcbootdev}:${mmcbootpart} ${kernel_image}-stable; then
echo Loading Kernel: vmlinuz-stable
load mmc ${mmcbootdev}:${mmcbootpart} ${kernel_addr_r} ${kernel_image}-stable
fi
if test -e mmc ${mmcbootdev}:${mmcbootpart} ${kernel_image}-edge; then
echo Loading Kernel: vmlinuz-edge
load mmc ${mmcbootdev}:${mmcbootpart} ${kernel_addr_r} ${kernel_image}-edge
fi
echo Loading Initramfs
load mmc ${mmcbootdev}:${mmcbootpart} ${initrd_addr_r} ${initrd_image}
echo Loading DTB
load mmc ${mmcbootdev}:${mmcbootpart} ${fdt_addr_r} ${dtb_file}
echo Resizing FDT
fdt addr ${fdt_addr_r}
echo Booting kernel
bootz ${kernel_addr_r} ${initrd_addr_r} ${fdt_addr_r}