load zImage, dtb, and rootfs to RAM
set bootargs for linux
bootz zImage_addr rootfs_addr dtb_addr, if don't need rootfs, please put "-"
boot from emmc(ext4 format), emmc partition 2 exist rootfs.
The U-Boot Documentation — Das U-Boot unknown version documentation
uboot > mmc rescan;
uboot > ext4load mmc 0:2 0x10000000 /boot/zImage;
uboot > ext4load mmc 0:2 0x11000000 /boot/uboot-board-C.dtb
uboot > setenv bootargs "console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw"
uboot > bootz 0x10000000 - 0x11000000
boot from SD card (fat32 format), the rootfs isn't exist.
uboot > mmc rescan;
uboot > fatload mmc 0 0x10000000 zImage;
uboot > fatload mmc 0 0x11000000 uboot-board-C.dtb
uboot > fatload mmc 0 0x12000000 u-rootfs
uboot > setenv bootargs "console=ttyPS0,115200 earlyprintk "
uboot > bootz 0x10000000 0x12000000 0x11000000
boot from qspi, the rootfs isn't exist.
uboot > sf probe
uboot > sf read 0x10000000 <zImage_addr> <zImage_size>
uboot > sf read 0x11000000 <dtb_addr> <dtb_size>
uboot > sf read 0x12000000 <rootfs_addr> <rootfs_size>
uboot > bootz 0x10000000 0x12000000 0x11000000
boot from nand flash, the rootfs isn't exist.
uboot > nand read 0x10000000 <zImage_addr> <zImage_size>
uboot > nand read 0x11000000 <dtb_addr> <dtb_size>
uboot > nand read 0x12000000 <rootfs_addr> <rootfs_size>
uboot > bootz 0x10000000 0x12000000 0x11000000
boot from nor flash, the rootfs isn't exist.
uboot > cp.b <zImage_addr> 0x10000000 <zImage_size>
uboot > cp.b <dtb_addr> 0x11000000 <dtb_size>
uboot > cp.b <rootfs_addr> 0x12000000 <rootfs_size>
uboot > bootz 0x10000000 0x12000000 0x11000000