cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
milan_mian
Explorer
Explorer
8,969 Views
Registered: ‎11-21-2014

Fail to run "5.2.3 Take a Test Drive! Li nux Booting Using JTAG Mode" ug873-zynq-ctt.pdf

Jump to solution

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.

Tags (5)
0 Kudos
Reply
1 Solution

Accepted Solutions
sampatd
Scholar
Scholar
11,042 Views
Registered: ‎09-05-2011

Can you use the attached set of files?

 

You will find all the files in the unzipped folder

 

 

View solution in original post

Screenshot-4.png
11 Replies
ashishd
Xilinx Employee
Xilinx Employee
8,964 Views
Registered: ‎02-14-2014
Hello,

Please check similar discussion on these threads
http://forums.xilinx.com/t5/Embedded-Linux/Wrong-Image-Format-for-bootm-command/td-p/435860
http://forums.xilinx.com/t5/Embedded-Linux/unable-to-boot-linux-from-flash-non-petalinux-flow-Wrong-Image/td-p/468988
Regards,
Ashish
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Reply
sampatd
Scholar
Scholar
8,952 Views
Registered: ‎09-05-2011
Are you using zImage or uImage?

I believe u-boot expects uImage format.
0 Kudos
Reply
milan_mian
Explorer
Explorer
8,948 Views
Registered: ‎11-21-2014

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.

0 Kudos
Reply
sampatd
Scholar
Scholar
8,943 Views
Registered: ‎09-05-2011

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. 

0 Kudos
Reply
milan_mian
Explorer
Explorer
8,934 Views
Registered: ‎11-21-2014

 

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.

0 Kudos
Reply
sampatd
Scholar
Scholar
8,927 Views
Registered: ‎09-05-2011
if you are not downloading a bit file then you may skip this step. ps7_post_config sets the level shifters after configuring the PL section.
...
...
ps7_init
dow u-boot.elf
....
..
..
0 Kudos
Reply
milan_mian
Explorer
Explorer
8,922 Views
Registered: ‎11-21-2014

Hi @sampatd  as per your suggestion, I skipped ps7_post_config. I followed all other steps. Still I get the same errorUntitled2.png

 

 

XMD console commands and logs:

 

Untitled3.png

Untitled4.png

 

Thanks again for your help.

0 Kudos
Reply
sampatd
Scholar
Scholar
8,891 Views
Registered: ‎09-05-2011
At 0x3000000 uboot (bootm) expects the linux kernel image uImage.. Could you please replace BOOT.bin with uImage?
0 Kudos
Reply
milan_mian
Explorer
Explorer
8,878 Views
Registered: ‎11-21-2014

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.Untitled5.png

 

Using the boot.bin from above, does not help either. Could you tell me how to generate uImage?

Thanks a lot your help.

0 Kudos
Reply
sampatd
Scholar
Scholar
11,043 Views
Registered: ‎09-05-2011

Can you use the attached set of files?

 

You will find all the files in the unzipped folder

 

 

View solution in original post

Screenshot-4.png
milan_mian
Explorer
Explorer
5,266 Views
Registered: ‎11-21-2014

Hi @sampatd , thanks a lot for your help. I am very happy. It is up and working. :)

0 Kudos
Reply