blob: 69e333c538870b7414e98d57ba15c2ca871fae9c [file] [log] [blame]
Venkatesh Yadav Abbarapu965c0182023-11-09 09:54:07 +05301autoload=no
2baudrate=115200
3boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
4boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr ${fdtcontroladdr};fi;load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootaa64.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
5boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
6boot_net_usb_start=usb start
7boot_prefixes=/ /boot/
8boot_script_dhcp=boot.scr.uimg
9boot_scripts=boot.scr.uimg boot.scr
10boot_syslinux_conf=extlinux/extlinux.conf
11bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00011:UNDI:003000;setenv bootp_arch 0xb;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci;
12bootcmd_jtag=echo JTAG: Trying to boot script at ${scriptaddr} && source ${scriptaddr}; echo JTAG: SCRIPT FAILED: continuing...;
13bootcmd_mmc0=devnum=0; run mmc_boot
14bootcmd_mmc1=devnum=1; run mmc_boot
15bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
16bootcmd_usb0=devnum=0; run usb_boot
17bootcmd_usb1=devnum=1; run usb_boot
18bootcmd_usb2=devnum=2; run usb_boot
19bootcmd_usb3=devnum=3; run usb_boot
Shubhangi Shrikrushna Mahalled0eceb52024-03-20 12:24:16 +010020bootcmd_usb4=devnum=4; run usb_boot
Venkatesh Yadav Abbarapu965c0182023-11-09 09:54:07 +053021bootdelay=2
22bootfstype=fat
23bootm_low=0
24bootm_size=0x80000000
25distro_bootcmd=scsi_need_init=; for target in ${boot_targets}; do run bootcmd_${target}; done
26efi_dtb_prefixes=/ /dtb/ /dtb/current/
27fdt_addr_r=0x40000000
28fdt_high=0x10000000
29fileaddr=0x18000000
30initrd_high=0x79000000
31kernel_addr_r=0x18000000
32load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
33mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
34pxefile_addr_r=0x10000000
35ramdisk_addr_r=0x02100000
36scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi;
37scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done; setenv devplist
38scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootaa64.efi; then echo Found EFI removable media binary efi/boot/bootaa64.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
39scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
40scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
41script_offset_f=0x3e80000
42script_size_f=0x80000
43scriptaddr=0x20000000
44usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi
45preboot=setenv boot_targets; setenv modeboot; run board_setup
46
47# SOM specific boot methods
Venkatesh Yadav Abbarapu97c62e52024-03-05 16:32:56 +053048usb_boot_devices='usb0 usb1 usb2 usb3 usb4'
49som_cc_boot=if test ${card1_name} = SCK-KV-G; then setenv boot_targets mmc1 ${usb_boot_devices} pxe dhcp jtag && run distro_bootcmd; elif test ${card1_name} = SCK-KR-G; then setenv boot_targets ${usb_boot_devices} pxe dhcp jtag && run distro_bootcmd; else test ${card1_name} = SCK-KD-G; setenv boot_targets ${usb_boot_devices} pxe dhcp jtag && run distro_bootcmd; fi;"
Venkatesh Yadav Abbarapu965c0182023-11-09 09:54:07 +053050som_mmc_boot=setenv boot_targets mmc0 && run distro_bootcmd
51
52k26_starter=SMK-K26-XCL2G
53k24_starter=SMK-K24-XCL2G
54bootcmd=setenv model $board_name && if setexpr model gsub .*$k24_starter* $k24_starter || setexpr model gsub .*$k26_starter* $k26_starter; then run som_cc_boot; else run som_mmc_boot; run som_cc_boot; fi
55
56usb_hub_init=mw 1000 0056 && sleep 1 && i2c write 1000 2d aa 2 -s
57
58# usb hub init
59kv260_setup=i2c dev 1 && run usb_hub_init
60# usb hub init
61kr260_setup=i2c dev 1 && run usb_hub_init; i2c dev 2 && run usb_hub_init;
62# usb hub init with enabling PM nodes for ...
Michal Simekf219fd32023-12-18 14:08:36 +010063kd240_setup=i2c dev 1 && run usb_hub_init;zynqmp pmufw node 33; zynqmp pmufw node 47
Venkatesh Yadav Abbarapu965c0182023-11-09 09:54:07 +053064
Michal Simek00e7b552024-01-11 14:49:02 +010065tpm_setup=tpm autostart;
66
Venkatesh Yadav Abbarapu965c0182023-11-09 09:54:07 +053067board_setup=\
Michal Simek64085662024-06-03 15:09:01 +020068zynqmp mmio_write 0xFFCA0010 0xfff 0; \
Venkatesh Yadav Abbarapu965c0182023-11-09 09:54:07 +053069if test ${card1_name} = SCK-KV-G; then run kv260_setup; fi;\
70if test ${card1_name} = SCK-KR-G; then run kr260_setup; fi;\
Michal Simek00e7b552024-01-11 14:49:02 +010071if test ${card1_name} = SCK-KD-G; then run kd240_setup; fi;\
72run tpm_setup