Venkatesh Yadav Abbarapu | 965c018 | 2023-11-09 09:54:07 +0530 | [diff] [blame] | 1 | autoload=no |
| 2 | baudrate=115200 |
| 3 | boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} |
| 4 | boot_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 |
| 5 | boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf} |
| 6 | boot_net_usb_start=usb start |
| 7 | boot_prefixes=/ /boot/ |
| 8 | boot_script_dhcp=boot.scr.uimg |
| 9 | boot_scripts=boot.scr.uimg boot.scr |
| 10 | boot_syslinux_conf=extlinux/extlinux.conf |
| 11 | bootcmd_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; |
| 12 | bootcmd_jtag=echo JTAG: Trying to boot script at ${scriptaddr} && source ${scriptaddr}; echo JTAG: SCRIPT FAILED: continuing...; |
| 13 | bootcmd_mmc0=devnum=0; run mmc_boot |
| 14 | bootcmd_mmc1=devnum=1; run mmc_boot |
| 15 | bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi |
| 16 | bootcmd_usb0=devnum=0; run usb_boot |
| 17 | bootcmd_usb1=devnum=1; run usb_boot |
| 18 | bootcmd_usb2=devnum=2; run usb_boot |
| 19 | bootcmd_usb3=devnum=3; run usb_boot |
Shubhangi Shrikrushna Mahalle | d0eceb5 | 2024-03-20 12:24:16 +0100 | [diff] [blame] | 20 | bootcmd_usb4=devnum=4; run usb_boot |
Venkatesh Yadav Abbarapu | 965c018 | 2023-11-09 09:54:07 +0530 | [diff] [blame] | 21 | bootdelay=2 |
| 22 | bootfstype=fat |
| 23 | bootm_low=0 |
| 24 | bootm_size=0x80000000 |
| 25 | distro_bootcmd=scsi_need_init=; for target in ${boot_targets}; do run bootcmd_${target}; done |
| 26 | efi_dtb_prefixes=/ /dtb/ /dtb/current/ |
| 27 | fdt_addr_r=0x40000000 |
| 28 | fdt_high=0x10000000 |
| 29 | fileaddr=0x18000000 |
| 30 | initrd_high=0x79000000 |
| 31 | kernel_addr_r=0x18000000 |
| 32 | load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile} |
| 33 | mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi |
| 34 | pxefile_addr_r=0x10000000 |
| 35 | ramdisk_addr_r=0x02100000 |
| 36 | scan_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; |
| 37 | scan_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 |
| 38 | scan_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 |
| 39 | scan_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 |
| 40 | scan_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 |
| 41 | script_offset_f=0x3e80000 |
| 42 | script_size_f=0x80000 |
| 43 | scriptaddr=0x20000000 |
| 44 | usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi |
| 45 | preboot=setenv boot_targets; setenv modeboot; run board_setup |
| 46 | |
| 47 | # SOM specific boot methods |
Venkatesh Yadav Abbarapu | 97c62e5 | 2024-03-05 16:32:56 +0530 | [diff] [blame] | 48 | usb_boot_devices='usb0 usb1 usb2 usb3 usb4' |
| 49 | som_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 Abbarapu | 965c018 | 2023-11-09 09:54:07 +0530 | [diff] [blame] | 50 | som_mmc_boot=setenv boot_targets mmc0 && run distro_bootcmd |
| 51 | |
| 52 | k26_starter=SMK-K26-XCL2G |
| 53 | k24_starter=SMK-K24-XCL2G |
| 54 | bootcmd=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 | |
| 56 | usb_hub_init=mw 1000 0056 && sleep 1 && i2c write 1000 2d aa 2 -s |
| 57 | |
| 58 | # usb hub init |
| 59 | kv260_setup=i2c dev 1 && run usb_hub_init |
| 60 | # usb hub init |
| 61 | kr260_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 Simek | f219fd3 | 2023-12-18 14:08:36 +0100 | [diff] [blame] | 63 | kd240_setup=i2c dev 1 && run usb_hub_init;zynqmp pmufw node 33; zynqmp pmufw node 47 |
Venkatesh Yadav Abbarapu | 965c018 | 2023-11-09 09:54:07 +0530 | [diff] [blame] | 64 | |
Michal Simek | 00e7b55 | 2024-01-11 14:49:02 +0100 | [diff] [blame] | 65 | tpm_setup=tpm autostart; |
| 66 | |
Venkatesh Yadav Abbarapu | 965c018 | 2023-11-09 09:54:07 +0530 | [diff] [blame] | 67 | board_setup=\ |
Michal Simek | 6408566 | 2024-06-03 15:09:01 +0200 | [diff] [blame] | 68 | zynqmp mmio_write 0xFFCA0010 0xfff 0; \ |
Venkatesh Yadav Abbarapu | 965c018 | 2023-11-09 09:54:07 +0530 | [diff] [blame] | 69 | if test ${card1_name} = SCK-KV-G; then run kv260_setup; fi;\ |
| 70 | if test ${card1_name} = SCK-KR-G; then run kr260_setup; fi;\ |
Michal Simek | 00e7b55 | 2024-01-11 14:49:02 +0100 | [diff] [blame] | 71 | if test ${card1_name} = SCK-KD-G; then run kd240_setup; fi;\ |
| 72 | run tpm_setup |