diff options
author | Petr Štetiar <ynezz@true.cz> | 2020-03-18 15:00:22 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-03-28 13:03:02 +0100 |
commit | 5f2ff607e286ab92ede986d62b39391557d36c61 (patch) | |
tree | 1ca55ae132bb6d60863f71c5cb4e8a34f1cb3459 | |
parent | 90897df61a6ae7aa1512d666d16395cfdd84c5bc (diff) | |
download | upstream-5f2ff607e286ab92ede986d62b39391557d36c61.tar.gz upstream-5f2ff607e286ab92ede986d62b39391557d36c61.tar.bz2 upstream-5f2ff607e286ab92ede986d62b39391557d36c61.zip |
uboot-sunxi: a64: allow booting directly from eMMC
Current boot script uses hardcoded bootdevice, which allows booting from
SD card only, so this patch allows booting directly from eMMC as well.
While at it, replace fixed root device with more flexible UUID based
probing, so from now on probing order of MMC device doesn't matter.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
-rw-r--r-- | package/boot/uboot-sunxi/uEnv-a64.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/package/boot/uboot-sunxi/uEnv-a64.txt b/package/boot/uboot-sunxi/uEnv-a64.txt index 7a717fdc0f..a47ebda613 100644 --- a/package/boot/uboot-sunxi/uEnv-a64.txt +++ b/package/boot/uboot-sunxi/uEnv-a64.txt @@ -1,5 +1,7 @@ -setenv loadkernel fatload mmc 0 \$kernel_addr_r uImage -setenv loaddtb fatload mmc 0 \$fdt_addr_r dtb -setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait earlycon=uart,mmio32,0x01c28000 +setenv mmc_rootpart 2 +part uuid mmc ${mmc_bootdev}:${mmc_rootpart} uuid +setenv loadkernel fatload mmc \$mmc_bootdev \$kernel_addr_r uImage +setenv loaddtb fatload mmc \$mmc_bootdev \$fdt_addr_r dtb +setenv bootargs console=ttyS0,115200 earlyprintk root=PARTUUID=${uuid} rootwait earlycon=uart,mmio32,0x01c28000 setenv uenvcmd run loadkernel \&\& run loaddtb \&\& booti \$kernel_addr_r - \$fdt_addr_r run uenvcmd |