blob: 9a8812d4ee54fe25637da04212f7b788c788fbf3 [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 Jain18efa422023-03-30 14:24:09 +05304
Nikhil M Jain18efa422023-03-30 14:24:09 +05305name_kern=Image
6console=ttyS2,115200n8
7args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000 ${mtdparts}
8run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
9
Roger Quadrosed5fbaf2023-10-05 16:06:42 +030010boot_targets=mmc1 mmc0 usb pxe dhcp
Nikhil M Jain18efa422023-03-30 14:24:09 +053011boot=mmc
12mmcdev=1
13bootpart=1:2
14bootdir=/boot
15rd_spec=-
Nikhil M Jain18efa422023-03-30 14:24:09 +053016
17args_usb=run finduuid;setenv bootargs console=${console}
18 ${optargs}
19 root=PARTUUID=${uuid} rw
20 rootfstype=${mmcrootfstype}
21init_usb=run args_all args_usb
22get_fdt_usb=load usb ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}
23get_overlay_usb=
24 fdt address ${fdtaddr};
25 fdt resize 0x100000;
26 for overlay in $name_overlays;
27 do;
28 load usb ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && fdt apply
29 ${dtboaddr};
30 done;
31get_kern_usb=load usb ${bootpart} ${loadaddr}
32 ${bootdir}/${name_kern}
33get_fit_usb=load usb ${bootpart} ${addr_fit}
34 ${bootdir}/${name_fit}
35usbboot=setenv boot usb;
36 setenv bootpart 0:2;
37 usb start;
Nikhil M Jain18efa422023-03-30 14:24:09 +053038 run init_usb;
39 run get_kern_usb;
40 run get_fdt_usb;
41 run run_kern;