blob: c9a3b3dfae62a10988b69bb4c6517660d03cbbb2 [file] [log] [blame]
Nikhil M Jainae5011d2023-01-24 10:46:02 +05301loadaddr=0x82000000
2kernel_addr_r=0x82000000
3fdtaddr=0x88000000
4dtboaddr=0x89000000
5fdt_addr_r=0x88000000
6fdtoverlay_addr_r=0x89000000
7rdaddr=0x88080000
8ramdisk_addr_r=0x88080000
9scriptaddr=0x80000000
10pxefile_addr_r=0x80100000
11bootm_size=0x10000000
12boot_fdt=try
13
14mmcrootfstype=ext4 rootwait
15finduuid=part uuid ${boot} ${bootpart} uuid
16args_mmc=run finduuid;setenv bootargs console=${console}
17 ${optargs}
18 root=PARTUUID=${uuid} rw
19 rootfstype=${mmcrootfstype}
20loadbootscript=load mmc ${mmcdev} ${loadaddr} boot.scr
21bootscript=echo Running bootscript from mmc${mmcdev} ...;
22 source ${loadaddr}
23bootenvfile=uEnv.txt
24importbootenv=echo Importing environment from mmc${mmcdev} ...;
25 env import -t ${loadaddr} ${filesize}
26loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenvfile}
27loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
28loadfdt=load ${devtype} ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
29envboot=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;
45mmcloados=
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;
59mmcboot=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
74default_device_tree=k3-am625-sk.dtb
75findfdt=
76 setenv name_fdt ${default_device_tree};
77 setenv fdtfile ${name_fdt}
78name_kern=Image
79console=ttyS2,115200n8
80args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000
81 ${mtdparts}
82run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
83
84boot=mmc
85mmcdev=1
86bootpart=1:2
87bootdir=/boot
88rd_spec=-
89init_mmc=run args_all args_mmc
90get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}
91get_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;
99get_kern_mmc=load mmc ${bootpart} ${loadaddr}
100 ${bootdir}/${name_kern}
101get_fit_mmc=load mmc ${bootpart} ${addr_fit}
102 ${bootdir}/${name_fit}
103partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
Nikhil M Jainbc39b0a2023-01-31 15:35:18 +0530104
105splashfile=ti.gz
106splashimage=0x82000000
107splashpos=m,m
108splashsource=mmc