2021-06-13 09:56:45 +00:00
|
|
|
setenv kernel_addr_r "0x40008000"
|
|
|
|
setenv initrd_addr_r "0x42000000"
|
|
|
|
setenv fdt_addr_r "0x44000000"
|
|
|
|
setenv kernel_image "vmlinuz-odroid-hc2"
|
|
|
|
setenv initrd_image "uInitrd-odroid-hc2"
|
|
|
|
setenv dtb_file "exynos5422-odroidhc1.dtb"
|
|
|
|
|
|
|
|
printenv
|
|
|
|
|
|
|
|
echo Setting bootargs
|
2021-07-06 18:48:55 +00:00
|
|
|
setenv bootargs init=/init.sh rw console=tty0 console=ttySAC2,115200 panic=10 consoleblank=0 loglevel=9 cma=256M PMOS_NO_OUTPUT_REDIRECT PMOS_FORCE_PARTITION_RESIZE
|
2021-06-13 09:56:45 +00:00
|
|
|
|
|
|
|
echo Loading Kernel
|
|
|
|
load mmc ${mmcbootdev}:${mmcbootpart} ${kernel_addr_r} ${kernel_image}
|
|
|
|
|
|
|
|
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}
|