blob: 286b9c300c057c430be5bdf8b12c4049263df778 [file] [log] [blame]
Nishanth Menonefee0702023-08-25 13:02:54 -05001#include <env/ti/ti_common.env>
Simon Glassc4840952023-07-30 21:01:45 -06002#include <env/ti/mmc.env>
3#include <env/ti/k3_dfu.env>
Nikhil M Jain49d6b9c2023-03-21 18:23:30 +05304#if CONFIG_CMD_REMOTEPROC
Simon Glassc4840952023-07-30 21:01:45 -06005#include <env/ti/k3_rproc.env>
Nikhil M Jain49d6b9c2023-03-21 18:23:30 +05306#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=-
Nikhil M Jain49d6b9c2023-03-21 18:23:30 +053022
23init_ubi=
24 run args_all args_ubi;
25 sf probe;
26 ubi part ospi.rootfs;
27 ubifsmount ubi:rootfs;
28get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}
29get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}
30args_ubi=setenv bootargs console=${console} ${optargs}
31rootfstype=ubifs root=ubi0:rootfs rw ubi.mtd=ospi.rootfs
32