Nikhil M Jain | ae5011d | 2023-01-24 10:46:02 +0530 | [diff] [blame] | 1 | loadaddr=0x82000000 |
| 2 | kernel_addr_r=0x82000000 |
| 3 | fdtaddr=0x88000000 |
| 4 | dtboaddr=0x89000000 |
| 5 | fdt_addr_r=0x88000000 |
| 6 | fdtoverlay_addr_r=0x89000000 |
| 7 | rdaddr=0x88080000 |
| 8 | ramdisk_addr_r=0x88080000 |
| 9 | scriptaddr=0x80000000 |
| 10 | pxefile_addr_r=0x80100000 |
| 11 | bootm_size=0x10000000 |
| 12 | boot_fdt=try |
| 13 | |
| 14 | mmcrootfstype=ext4 rootwait |
| 15 | finduuid=part uuid ${boot} ${bootpart} uuid |
| 16 | args_mmc=run finduuid;setenv bootargs console=${console} |
| 17 | ${optargs} |
| 18 | root=PARTUUID=${uuid} rw |
| 19 | rootfstype=${mmcrootfstype} |
| 20 | loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr |
| 21 | bootscript=echo Running bootscript from mmc${mmcdev} ...; |
| 22 | source ${loadaddr} |
| 23 | bootenvfile=uEnv.txt |
| 24 | importbootenv=echo Importing environment from mmc${mmcdev} ...; |
| 25 | env import -t ${loadaddr} ${filesize} |
| 26 | loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile} |
| 27 | loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile} |
| 28 | loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile} |
| 29 | envboot=mmc dev ${mmcdev}; |
| 30 | if mmc rescan; then |
| 31 | echo SD/MMC found on device ${mmcdev}; |
| 32 | if run loadbootscript; then |
| 33 | run bootscript; |
| 34 | else |
| 35 | if run loadbootenv; then |
| 36 | echo Loaded env from ${bootenvfile}; |
| 37 | run importbootenv; |
| 38 | fi; |
| 39 | if test -n $uenvcmd; then |
| 40 | echo Running uenvcmd ...; |
| 41 | run uenvcmd; |
| 42 | fi; |
| 43 | fi; |
| 44 | fi; |
| 45 | mmcloados= |
| 46 | if test ${boot_fdt} = yes || test ${boot_fdt} = try; then |
| 47 | if run loadfdt; then |
| 48 | bootz ${loadaddr} - ${fdtaddr}; |
| 49 | else |
| 50 | if test ${boot_fdt} = try; then |
| 51 | bootz; |
| 52 | else |
| 53 | echo WARN: Cannot load the DT; |
| 54 | fi; |
| 55 | fi; |
| 56 | else |
| 57 | bootz; |
| 58 | fi; |
| 59 | mmcboot=mmc dev ${mmcdev}; |
| 60 | devnum=${mmcdev}; |
| 61 | devtype=mmc; |
| 62 | if mmc rescan; then |
| 63 | echo SD/MMC found on device ${mmcdev}; |
| 64 | if run loadimage; then |
| 65 | run args_mmc; |
| 66 | if test ${boot_fit} -eq 1; then |
| 67 | run run_fit; |
| 68 | else |
| 69 | run mmcloados; |
| 70 | fi; |
| 71 | fi; |
| 72 | fi; |
| 73 | |
| 74 | default_device_tree=k3-am625-sk.dtb |
| 75 | findfdt= |
| 76 | setenv name_fdt ${default_device_tree}; |
| 77 | setenv fdtfile ${name_fdt} |
| 78 | name_kern=Image |
| 79 | console=ttyS2,115200n8 |
| 80 | args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000 |
| 81 | ${mtdparts} |
| 82 | run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr} |
| 83 | |
| 84 | boot=mmc |
| 85 | mmcdev=1 |
| 86 | bootpart=1:2 |
| 87 | bootdir=/boot |
| 88 | rd_spec=- |
| 89 | init_mmc=run args_all args_mmc |
| 90 | get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt} |
| 91 | get_overlay_mmc= |
| 92 | fdt address ${fdtaddr}; |
| 93 | fdt resize 0x100000; |
| 94 | for overlay in $name_overlays; |
| 95 | do; |
| 96 | load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && |
| 97 | fdt apply ${dtboaddr}; |
| 98 | done; |
| 99 | get_kern_mmc=load mmc ${bootpart} ${loadaddr} |
| 100 | ${bootdir}/${name_kern} |
| 101 | get_fit_mmc=load mmc ${bootpart} ${addr_fit} |
| 102 | ${bootdir}/${name_fit} |
| 103 | partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs} |
Nikhil M Jain | bc39b0a | 2023-01-31 15:35:18 +0530 | [diff] [blame] | 104 | |
| 105 | splashfile=ti.gz |
| 106 | splashimage=0x82000000 |
| 107 | splashpos=m,m |
| 108 | splashsource=mmc |