blob: 3c583b77fd1e17527fa8251d4901be95b33d3748 [file] [log] [blame]
Nikhil M Jain49d6b9c2023-03-21 18:23:30 +05301#include <environment/ti/ti_armv7_common.env>
2#include <environment/ti/mmc.env>
3#include <environment/ti/k3_dfu.env>
4#if CONFIG_CMD_REMOTEPROC
5#include <environment/ti/k3_rproc.env>
6#endif
7
8findfdt=
Andrew Davis5e1f4362023-07-14 11:22:30 +05309 setenv name_fdt ti/k3-am654-base-board.dtb;
Nikhil M Jain49d6b9c2023-03-21 18:23:30 +053010 setenv fdtfile ${name_fdt}
11name_kern=Image
12console=ttyS2,115200n8
13args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000
14 ${mtdparts}
15run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
16
17boot=mmc
18mmcdev=1
19bootpart=1:2
20bootdir=/boot
21rd_spec=-
22init_mmc=run args_all args_mmc
23get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}
24get_overlay_mmc=
25 fdt address ${fdtaddr};
26 fdt resize 0x100000;
27 for overlay in $name_overlays;
28 do;
29 load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} &&
30 fdt apply ${dtboaddr};
31 done;
32get_kern_mmc=load mmc ${bootpart} ${loadaddr}
33 ${bootdir}/${name_kern}
34get_fit_mmc=load mmc ${bootpart} ${addr_fit}
35 ${bootdir}/${name_fit}
36partitions=name=root,start=0,size=-,uuid=${uuid_gpt_rootfs}
37
38init_ubi=
39 run args_all args_ubi;
40 sf probe;
41 ubi part ospi.rootfs;
42 ubifsmount ubi:rootfs;
43get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}
44get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}
45args_ubi=setenv bootargs console=${console} ${optargs}
46rootfstype=ubifs root=ubi0:rootfs rw ubi.mtd=ospi.rootfs
47