blob: 491ec973bbc6a53f6a9b5368054bd378d0ad612e [file] [log] [blame]
Nikhil M Jaind47da362023-03-20 22:32:08 +05301#include <environment/ti/ti_armv7_common.env>
2#include <environment/ti/mmc.env>
3
Andrew Davis5e1f4362023-07-14 11:22:30 +05304default_device_tree=ti/k3-am62a7-sk.dtb
Nikhil M Jaind47da362023-03-20 22:32:08 +05305findfdt=
6 setenv name_fdt ${default_device_tree};
7 setenv fdtfile ${name_fdt}
8name_kern=Image
9console=ttyS2,115200n8
10args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000
11 ${mtdparts}
12run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
13
14boot=mmc
15mmcdev=1
16bootpart=1:2
17bootdir=/boot
18rd_spec=-
19init_mmc=run args_all args_mmc
Nikhil M Jaind47da362023-03-20 22:32:08 +053020get_overlay_mmc=
21 fdt address ${fdtaddr};
22 fdt resize 0x100000;
23 for overlay in $name_overlays;
24 do;
25 load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} &&
26 fdt apply ${dtboaddr};
27 done;
28get_kern_mmc=load mmc ${bootpart} ${loadaddr}
29 ${bootdir}/${name_kern}
30get_fit_mmc=load mmc ${bootpart} ${addr_fit}
31 ${bootdir}/${name_fit}
32partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}