Skip to content

Commit

Permalink
env: add nvme boot
Browse files Browse the repository at this point in the history
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR committed Dec 2, 2024
1 parent c2e128c commit c17cfbb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion board/spacemit/k1-x/k1-x.env
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,15 @@ fdt_addr_r=0x1F000000
extlinux_addr_r=0x08000000
default_mmcdev=0
mmcbootpart=5
default_nvmedev=0
nvmebootpart=5
fdt_dir=spacemit
boot_conf_file=/extlinux/extlinux.conf
mmc_select=if test -e mmc ${default_mmcdev}:${mmcbootpart} ${boot_conf_file}; then setenv mmcdev 0; else setenv mmcdev 2; fi

mmc_boot_extlinux=run mmc_select; sysboot mmc ${mmcdev}:${mmcbootpart} any ${extlinux_addr_r} ${boot_conf_file}
nvme_boot_extlinux=nvme scan; if test -e nvme ${default_nvmedev}:${nvmebootpart} ${boot_conf_file}; then \
sysboot nvme ${default_nvmedev}:${nvmebootpart} any ${extlinux_addr_r} ${boot_conf_file}; else echo "nvme start failed"; fi
#fdtfile=spacemit/k1-x_deb1.dtb

// Common boot args
Expand Down Expand Up @@ -207,7 +211,7 @@ autoboot=if test ${boot_device} = nand; then \
fi;

// bootcmd=run autoboot; echo "run autoboot"
bootcmd=run detect_fdt; run mmc_boot_extlinux; echo "run mmc_boot_extlinux"
bootcmd=run detect_fdt; run nvme_boot_extlinux; run mmc_boot_extlinux; echo "run mmc_boot_extlinux"

// Boot menu definitions
boot_default=echo "Current Boot Device: ${boot_device}"
Expand Down

0 comments on commit c17cfbb

Please sign in to comment.