- 配置环境变量
source Xilinx/Vivado/2023.01/setting64.sh
- 进入xsdb
在petalinux生成的镜像目录执行xsdb
cd project/images/linux xsdb
- 执行流程如下
- boot脚本如下
connect
rst -system
targets -set -nocase -filter {name =~ “PSU”}
mask_write 0xFFCA0038 0x1C0 0x1C0
fpga -no-revision-check -f system.bit
targets -set -nocase -filter {name =~ “MicroBlaze PMU”}
puts stderr “INFO: Downloading ELF file to the target.”
dow pmufw.elf
after 1000
con
targets -set -nocase -filter {name =~ “APU”}
mwr 0xffff0000 0x14000000
mwr 0xff41a040 0x3
mask_write 0xFD1A0104 0x501 0x0
targets -set -nocase -filter {name =~ “A53#0”}
source psu_init.tcl
puts stderr “INFO: Downloading ELF file to the target.”
dow zynqmp_fsbl.elf
after 1000
con
after 8000; stop; catch {stop}; psu_ps_pl_isolation_removal; psu_ps_pl_reset_config
targets -set -nocase -filter {name =~ “A53#0”}
dow -data image.ub 0x00080000
after 1000
targets -set -nocase -filter {name =~ “A53#0”}
dow -data system.dtb 0x1407f000
after 1000
targets -set -nocase -filter {name =~ “A53#0”}
puts stderr “INFO: Downloading ELF file to the target.”
dow u-boot.elf
after 1000
targets -set -nocase -filter {name =~ “A53#0”}
puts stderr “INFO: Downloading ELF file to the target.”
dow bl31.elf
after 1000
con
```
- 启动kernel
bootm 0x80000
https://blog.csdn.net/founderHAN/article/details/110198626