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 |
| 20 | bootdelay=2 |
| 21 | bootfstype=fat |
| 22 | bootm_low=0 |
| 23 | bootm_size=0x80000000 |
| 24 | distro_bootcmd=scsi_need_init=; for target in ${boot_targets}; do run bootcmd_${target}; done |
| 25 | efi_dtb_prefixes=/ /dtb/ /dtb/current/ |
| 26 | fdt_addr_r=0x40000000 |
| 27 | fdt_high=0x10000000 |
| 28 | fileaddr=0x18000000 |
| 29 | initrd_high=0x79000000 |
| 30 | kernel_addr_r=0x18000000 |
| 31 | load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile} |
| 32 | mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi |
| 33 | pxefile_addr_r=0x10000000 |
| 34 | ramdisk_addr_r=0x02100000 |
| 35 | 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; |
| 36 | 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 |
| 37 | 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 |
| 38 | 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 |
| 39 | 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 |
| 40 | script_offset_f=0x3e80000 |
| 41 | script_size_f=0x80000 |
| 42 | scriptaddr=0x20000000 |
| 43 | usb_boot=usb start; if usb dev ${devnum}; then devtype=usb; run scan_dev_for_boot_part; fi |
| 44 | preboot=setenv boot_targets; setenv modeboot; run board_setup |
| 45 | |
| 46 | # SOM specific boot methods |
| 47 | som_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;" |
| 48 | som_mmc_boot=setenv boot_targets mmc0 && run distro_bootcmd |
| 49 | |
| 50 | k26_starter=SMK-K26-XCL2G |
| 51 | k24_starter=SMK-K24-XCL2G |
| 52 | 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 |
| 53 | |
| 54 | usb_hub_init=mw 1000 0056 && sleep 1 && i2c write 1000 2d aa 2 -s |
| 55 | |
| 56 | # usb hub init |
| 57 | kv260_setup=i2c dev 1 && run usb_hub_init |
| 58 | # usb hub init |
| 59 | kr260_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 Simek | f219fd3 | 2023-12-18 14:08:36 +0100 | [diff] [blame] | 61 | 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] | 62 | |
Michal Simek | 00e7b55 | 2024-01-11 14:49:02 +0100 | [diff] [blame] | 63 | tpm_setup=tpm autostart; |
| 64 | |
Venkatesh Yadav Abbarapu | 965c018 | 2023-11-09 09:54:07 +0530 | [diff] [blame] | 65 | board_setup=\ |
| 66 | if test ${card1_name} = SCK-KV-G; then run kv260_setup; fi;\ |
| 67 | if test ${card1_name} = SCK-KR-G; then run kr260_setup; fi;\ |
Michal Simek | 00e7b55 | 2024-01-11 14:49:02 +0100 | [diff] [blame] | 68 | if test ${card1_name} = SCK-KD-G; then run kd240_setup; fi;\ |
| 69 | run tpm_setup |