blob: 0f940bd68f894b2e6c3448ef685facb73fe99a6f [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
20bootdelay=2
21bootfstype=fat
22bootm_low=0
23bootm_size=0x80000000
24distro_bootcmd=scsi_need_init=; for target in ${boot_targets}; do run bootcmd_${target}; done
25efi_dtb_prefixes=/ /dtb/ /dtb/current/
26fdt_addr_r=0x40000000
27fdt_high=0x10000000
28fileaddr=0x18000000
29initrd_high=0x79000000
30kernel_addr_r=0x18000000
31load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
32mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi
33pxefile_addr_r=0x10000000
34ramdisk_addr_r=0x02100000
35scan_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;
36scan_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
37scan_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
38scan_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
39scan_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
40script_offset_f=0x3e80000
41script_size_f=0x80000
42scriptaddr=0x20000000
43usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi
44preboot=setenv boot_targets; setenv modeboot; run board_setup
45
46# SOM specific boot methods
47som_cc_boot=if test ${card1_name} = SCK-KV-G; then setenv boot_targets mmc1 usb0 usb1 usb2 usb3 pxe dhcp && run distro_bootcmd; elif test ${card1_name} = SCK-KR-G; then setenv boot_targets usb0 usb1 usb2 usb3 pxe dhcp && run distro_bootcmd; else test ${card1_name} = SCK-KD-G; setenv boot_targets usb0 usb1 usb2 usb3 pxe dhcp && run distro_bootcmd; fi;"
48som_mmc_boot=setenv boot_targets mmc0 && run distro_bootcmd
49
50k26_starter=SMK-K26-XCL2G
51k24_starter=SMK-K24-XCL2G
52bootcmd=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
53
54usb_hub_init=mw 1000 0056 && sleep 1 && i2c write 1000 2d aa 2 -s
55
56# usb hub init
57kv260_setup=i2c dev 1 && run usb_hub_init
58# usb hub init
59kr260_setup=i2c dev 1 && run usb_hub_init; i2c dev 2 && run usb_hub_init;
60# usb hub init with enabling PM nodes for ...
Michal Simekf219fd32023-12-18 14:08:36 +010061kd240_setup=i2c dev 1 && run usb_hub_init;zynqmp pmufw node 33; zynqmp pmufw node 47
Venkatesh Yadav Abbarapu965c0182023-11-09 09:54:07 +053062
Michal Simek00e7b552024-01-11 14:49:02 +010063tpm_setup=tpm autostart;
64
Venkatesh Yadav Abbarapu965c0182023-11-09 09:54:07 +053065board_setup=\
66if test ${card1_name} = SCK-KV-G; then run kv260_setup; fi;\
67if test ${card1_name} = SCK-KR-G; then run kr260_setup; fi;\
Michal Simek00e7b552024-01-11 14:49:02 +010068if test ${card1_name} = SCK-KD-G; then run kd240_setup; fi;\
69run tpm_setup