Nishanth Menon | efee070 | 2023-08-25 13:02:54 -0500 | [diff] [blame] | 1 | #include <env/ti/ti_common.env> |
Simon Glass | c484095 | 2023-07-30 21:01:45 -0600 | [diff] [blame] | 2 | #include <env/ti/mmc.env> |
| 3 | #include <env/ti/k3_dfu.env> |
Nikhil M Jain | 18efa42 | 2023-03-30 14:24:09 +0530 | [diff] [blame] | 4 | |
Nikhil M Jain | 18efa42 | 2023-03-30 14:24:09 +0530 | [diff] [blame] | 5 | name_kern=Image |
| 6 | console=ttyS2,115200n8 |
| 7 | args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000 ${mtdparts} |
| 8 | run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr} |
| 9 | |
Roger Quadros | ed5fbaf | 2023-10-05 16:06:42 +0300 | [diff] [blame] | 10 | boot_targets=mmc1 mmc0 usb pxe dhcp |
Nikhil M Jain | 18efa42 | 2023-03-30 14:24:09 +0530 | [diff] [blame] | 11 | boot=mmc |
| 12 | mmcdev=1 |
| 13 | bootpart=1:2 |
| 14 | bootdir=/boot |
| 15 | rd_spec=- |
Nikhil M Jain | 18efa42 | 2023-03-30 14:24:09 +0530 | [diff] [blame] | 16 | |
| 17 | args_usb=run finduuid;setenv bootargs console=${console} |
| 18 | ${optargs} |
| 19 | root=PARTUUID=${uuid} rw |
| 20 | rootfstype=${mmcrootfstype} |
| 21 | init_usb=run args_all args_usb |
| 22 | get_fdt_usb=load usb ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt} |
| 23 | get_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; |
| 31 | get_kern_usb=load usb ${bootpart} ${loadaddr} |
| 32 | ${bootdir}/${name_kern} |
| 33 | get_fit_usb=load usb ${bootpart} ${addr_fit} |
| 34 | ${bootdir}/${name_fit} |
| 35 | usbboot=setenv boot usb; |
| 36 | setenv bootpart 0:2; |
| 37 | usb start; |
Nikhil M Jain | 18efa42 | 2023-03-30 14:24:09 +0530 | [diff] [blame] | 38 | run init_usb; |
| 39 | run get_kern_usb; |
| 40 | run get_fdt_usb; |
| 41 | run run_kern; |
MD Danish Anwar | f1b3288 | 2024-06-12 16:37:49 +0530 | [diff] [blame] | 42 | |
| 43 | #if CONFIG_TI_ICSSG_PRUETH |
| 44 | storage_interface=mmc |
| 45 | fw_dev_part=1:2 |
| 46 | #endif |