@@ -399,7 +399,30 @@ unsigned long get_board_ddr_clk(void);
399
399
"kernelheader_size=0x40000\0" \
400
400
"BOARD=ls2088aqds\0" \
401
401
"mcmemsize=0x70000000 \0" \
402
+ "scriptaddr=0x80000000\0" \
403
+ "scripthdraddr=0x80080000\0" \
402
404
IFC_MC_INIT_CMD \
405
+ BOOTENV \
406
+ "boot_scripts=ls2088aqds_boot.scr\0" \
407
+ "boot_script_hdr=hdr_ls2088aqds_bs.out\0" \
408
+ "scan_dev_for_boot_part=" \
409
+ "part list ${devtype} ${devnum} devplist; " \
410
+ "env exists devplist || setenv devplist 1; " \
411
+ "for distro_bootpart in ${devplist}; do " \
412
+ "if fstype ${devtype} " \
413
+ "${devnum}:${distro_bootpart} " \
414
+ "bootfstype; then " \
415
+ "run scan_dev_for_boot; " \
416
+ "fi; " \
417
+ "done\0" \
418
+ "boot_a_script=" \
419
+ "load ${devtype} ${devnum}:${distro_bootpart} " \
420
+ "${scriptaddr} ${prefix}${script}; " \
421
+ "env exists secureboot && load ${devtype} " \
422
+ "${devnum}:${distro_bootpart} " \
423
+ "${scripthdraddr} ${prefix}${boot_script_hdr} " \
424
+ "&& esbc_validate ${scripthdraddr};" \
425
+ "source ${scriptaddr}\0" \
403
426
"nor_bootcmd=echo Trying load from nor..;" \
404
427
"cp.b $kernel_addr $load_addr " \
405
428
"$kernel_size ; env exists secureboot && " \
@@ -445,21 +468,27 @@ unsigned long get_board_ddr_clk(void);
445
468
#endif /* CONFIG_SECURE_BOOT */
446
469
447
470
#ifdef CONFIG_TFABOOT
471
+ #define BOOT_TARGET_DEVICES (func ) \
472
+ func(USB, usb, 0) \
473
+ func(MMC, mmc, 0) \
474
+ func(SCSI, scsi, 0) \
475
+ func(DHCP, dhcp, na)
476
+ #include <config_distro_bootcmd.h>
448
477
#define SD_BOOTCOMMAND \
449
478
"env exists mcinitcmd && env exists secureboot "\
450
479
"&& mmcinfo && mmc read $load_addr 0x3600 0x800 " \
451
480
"&& esbc_validate $load_addr; " \
452
481
"env exists mcinitcmd && run mcinitcmd " \
453
482
"&& mmc read 0x80d00000 0x6800 0x800 " \
454
483
"&& fsl_mc lazyapply dpl 0x80d00000; " \
455
- "run sd_bootcmd; " \
484
+ "run distro_bootcmd;run sd_bootcmd; " \
456
485
"env exists secureboot && esbc_halt;"
457
486
458
487
#define IFC_NOR_BOOTCOMMAND \
459
488
"env exists mcinitcmd && env exists secureboot "\
460
489
"&& esbc_validate 0x5806C0000; env exists mcinitcmd "\
461
490
"&& fsl_mc lazyapply dpl 0x580d00000;" \
462
- "run nor_bootcmd; " \
491
+ "run distro_bootcmd;run nor_bootcmd; " \
463
492
"env exists secureboot && esbc_halt;"
464
493
#endif
465
494
0 commit comments