12-04-2014 06:47 AM
Hi,
I am trying to boot linux from JTAG mode following the pdf from
http://www.xilinx.com/support/documentation/sw_manuals/xilinx14_4/ug873-zynq-ctt.pdf.
Everything looks fine, but when i run bootm 0x3000000 0x2000000 0x2A00000 in terminal window. I get error
" wrong image format for bootm command
ERROR: can't get kernel image!"
I tried so many things if I made error. If anybody have similar issues with this tutorial also, please reply.
Please somebody reply.
12-05-2014 01:05 AM
Can you use the attached set of files?
You will find all the files in the unzipped folder
12-04-2014 06:50 AM
12-04-2014 07:21 AM
12-04-2014 07:24 AM
Hi @ashishd, I looked into the forums you suggested. But they did not help. I don't think I missed any steps.
first, fpga is programmed with bit file.
then,
in XMD console,
connect arm hw
dow C:/ug873_design/zynq_fsbl_0.elf
source C:/ug873_design/ps7_init.tcl
ps7_init
ps7_post_config
source C:/ug873_design/stub.tcl
dow -data C:/ug873_design/BOOT.bin 0x3000000
dow -data C:/ug873_design/ramdisk8M.image.gz 0x2000000
dow -data C:/ug873_design/devicetree.dtb 0x2A00000
dow C:/ug873_design/u-boot.elf
con
pause uboot autoboot(in terminal by hitting some key)
typed bootm 0x3000000 0x2000000 0x2A00000 in terminal
then got error.
@sampatd , I used image from ug873_design_files.zip.
Please help.
12-04-2014 07:32 AM
Try this sequence in xmd console (make sure that the mode pins on the board are set to jtag)
connect arm hw
source ps7_init.tcl
ps7_init
fpga -f download.bit (if you have a bit file; otherwise skip this step)
ps7_post_config
dow u-boot.elf
con
//prese a key on the serial terminal now to stop autoboot from u-boot and you should see a command prompt on the serial terminal//
dow -data directory/uImage.bin 0x3000000
dow -data directory/uramdisk.image.gz 0x2000000
dow -data directory/devicetree.dtb 0x2A00000
con
bootm 0x3000000 0x2000000 ( on serial terminal)
when you are using the ps7_init.tcl to initialize the ps system, you do not need to download the fsbl.elf, which does the samething when booting from a flash.
12-04-2014 07:49 AM
Hi @sampatd
Thanks for your answer.
I tried multiple times. I got invalid command name "ps7_post_config" when i run the ps7_post_config command after ps7_init command.
12-04-2014 08:00 AM
12-04-2014 08:18 AM
Hi @sampatd as per your suggestion, I skipped ps7_post_config. I followed all other steps. Still I get the same error
XMD console commands and logs:
Thanks again for your help.
12-04-2014 04:30 PM
12-05-2014 12:51 AM
Hi @sampatd, I used zImage from ug873_design_files.zip(uImage is not found in the zip archive). I still get same error. Besides, I also used "Create Zynq Boot Image" to get new boot image. The boot image can be save either in bin or mcs format.
Using the boot.bin from above, does not help either. Could you tell me how to generate uImage?
Thanks a lot your help.
12-05-2014 01:05 AM
Can you use the attached set of files?
You will find all the files in the unzipped folder
12-05-2014 01:50 AM
Hi @sampatd , thanks a lot for your help. I am very happy. It is up and working. :)