u-boot/include/env/ti/ufs.env
Simon Glass 5e541a05f7 env: Use include/env for text-environment includes
The 'environment' word is too long. We mostly use 'env' in U-Boot, so use
that as the name of the include directory too.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> # Intel Edison
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2023-08-09 23:31:12 +08:00

22 lines
679 B
Bash

scsirootfstype=ext4 rootwait
ufs_finduuid=part uuid scsi ${bootpart} uuid
args_ufs=setenv devtype scsi;setenv bootpart 1:1;
run ufs_finduuid;
setenv bootargs console = ${console}
${optargs}
root=PARTUUID=${uuid} rw
rootfstype=${scsirootfstype};
setenv devtype scsi;
setenv bootpart 1:1
init_ufs=ufs init; scsi scan; run args_ufs
get_kern_ufs=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
get_fdt_ufs=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
get_overlay_ufs=
fdt address ${fdtaddr};
fdt resize 0x100000;
for overlay in $name_overlays;
do;
load scsi ${bootpart} ${dtboaddr} ${bootdir}/${overlay} &&
fdt apply ${dtboaddr};
done;