03-18-2020 09:54 PM - edited 03-18-2020 10:30 PM
I am unable to see any output from SPL uboot.elf generated using ezynq.
If I flash fsbl.elf, I can see the output on console. However, if I flash the uboot.elf, then
I can't see anything on the console. I am using Xilinx software command line tools to flash the
uboot.elf - JTAG.
Here, are my commands.
I have generated ps7_init.tcl from the Xilinx SDK.
connect
xsct% targets
target 2
source ps7_init.tcl
my ps7_init.tcl download the uboot.elf file.
Here is my ps7_init.tcl file. Please help, what am I missing here.
03-19-2020 02:16 AM
I see you are sourcing the ps7_init.tcl, but I dont see where you are running the procedures; ps7_init and ps7_post_config
The first would be needed to init the ddr (where your u-boot would reside).
If you want to boot over jatg, there is a utility in Petalinux that will generate the script for you. For example:
petalinux-boot --jtag --tcl kernel.tcl
I have copied the commands upto u-boot for you:
connect
fpga download.bit
after 2000
targets -set -nocase -filter {name =~ "arm*#0"}
source ps7_init.tcl; ps7_post_config
catch {stop}
set mctrlval [string trim [lindex [split [mrd 0xF8007080] :] 1]]
puts "mctrlval=$mctrlval"
puts stderr "INFO: Downloading ELF file: /home/stephenm/cases/zynq_jtag/xilinx-zc702-2019.2/pre-built/linux/images/zynq_fsbl.elf to the target."
dow zynq_fsbl.elf
after 2000
con
after 3000; stop
targets -set -nocase -filter {name =~ "arm*#0"}
dow u-boot.elf
after 2000
con
after 2000; stop
03-19-2020 09:21 PM
03-20-2020 01:12 AM
I would suggest that you try with the BSP image the microzed board. Or use Petalinux to create your image, this way you will have a u-boot binary that works.
The error you are seeing could be the devicetree
03-20-2020 05:02 PM
I have generated uboot using ezynq and I could boot the uboot and the entire image using sd card boot. But in that case I have boot.bin, uboot.bin, device tree, uimage and rootfs. However, when I am using JTAG mode, I can't use my uboot.elf. what is the best thing I can do. What could be the reason it is not working. Is there a utility to convert boot.bin to boot.elf. This way I know that something is working and then I can use uboot.elf.
03-23-2020 06:56 AM
Use 'bootgen -spilt' option to create .bin files for the different files contained within boot.bin. This will create uboot.bin based on uboot.elf.