2f3b5469b2
This simplifies the uboot script and updates it to use correct address offsets for kernel, ramdisk and fdt. Appending the dtb to the kernel is no longer necessary. This also changes the dtb to the one used on PureOS.
20 lines
592 B
Batchfile
20 lines
592 B
Batchfile
setenv bootargs init=/init.sh rw console=ttymxc0,115200 cma=256M PMOS_NO_OUTPUT_REDIRECT PMOS_FORCE_PARTITION_RESIZE
|
|
setenv mmcdev 0
|
|
setenv mmcpart 1
|
|
|
|
printenv
|
|
echo Loading DTB
|
|
ext2load mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} imx8mq-librem5-devkit.dtb
|
|
|
|
echo Loading Initramfs
|
|
ext2load mmc ${mmcdev}:${mmcpart} ${ramdisk_addr_r} uInitrd-purism-librem5dev
|
|
|
|
echo Loading Kernel
|
|
ext2load mmc ${mmcdev}:${mmcpart} ${kernel_addr_r} vmlinuz-purism-librem5dev
|
|
|
|
echo Resizing FDT
|
|
fdt addr ${fdt_addr_r}
|
|
fdt resize
|
|
|
|
echo Booting kernel
|
|
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
|