Nikhil M Jain | 49d6b9c | 2023-03-21 18:23:30 +0530 | [diff] [blame] | 1 | #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 | |
| 8 | findfdt= |
Andrew Davis | 5e1f436 | 2023-07-14 11:22:30 +0530 | [diff] [blame^] | 9 | setenv name_fdt ti/k3-am654-base-board.dtb; |
Nikhil M Jain | 49d6b9c | 2023-03-21 18:23:30 +0530 | [diff] [blame] | 10 | setenv fdtfile ${name_fdt} |
| 11 | name_kern=Image |
| 12 | console=ttyS2,115200n8 |
| 13 | args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000 |
| 14 | ${mtdparts} |
| 15 | run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr} |
| 16 | |
| 17 | boot=mmc |
| 18 | mmcdev=1 |
| 19 | bootpart=1:2 |
| 20 | bootdir=/boot |
| 21 | rd_spec=- |
| 22 | init_mmc=run args_all args_mmc |
| 23 | get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt} |
| 24 | get_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; |
| 32 | get_kern_mmc=load mmc ${bootpart} ${loadaddr} |
| 33 | ${bootdir}/${name_kern} |
| 34 | get_fit_mmc=load mmc ${bootpart} ${addr_fit} |
| 35 | ${bootdir}/${name_fit} |
| 36 | partitions=name=root,start=0,size=-,uuid=${uuid_gpt_rootfs} |
| 37 | |
| 38 | init_ubi= |
| 39 | run args_all args_ubi; |
| 40 | sf probe; |
| 41 | ubi part ospi.rootfs; |
| 42 | ubifsmount ubi:rootfs; |
| 43 | get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern} |
| 44 | get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt} |
| 45 | args_ubi=setenv bootargs console=${console} ${optargs} |
| 46 | rootfstype=ubifs root=ubi0:rootfs rw ubi.mtd=ospi.rootfs |
| 47 | |