cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
304 Views
Registered: ‎11-02-2019

Xen JTAG boot with Petalinux 2019.1 on ZCU102

Jump to solution

Hi!

I am booting Xen built with Petalinux 2019.1 on the Zynq ZCU102 board. I am able to boot it successfully with SD card, but not with JTAG.

I get the following error in prompt:

 

ZynqMP> setenv serverip 192.168.1.100
ZynqMP> setenv ipaddr 192.168.1.10
ZynqMP> tftpb 1280000 system.dtb; tftpb 0x80000 Image; tftpb 1400000 xen.ub; tftpb 9000000 rootfs.cpio.gz.u-boot; bootm 1400000 9000000 1280000

Using ethernet@ff0e0000 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.10
Filename 'system.dtb'.
Load address: 0x1280000
Loading: *
ARP Retry count exceeded; starting again
Using ethernet@ff0e0000 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.10
Filename 'Image'.
Load address: 0x80000
Loading: *
ARP Retry count exceeded; starting again
Using ethernet@ff0e0000 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.10
Filename 'xen.ub'.
Load address: 0x1400000
Loading: *
ARP Retry count exceeded; starting again
Using ethernet@ff0e0000 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.10
Filename 'rootfs.cpio.gz.u-boot'.
Load address: 0x9000000
Loading: *
ARP Retry count exceeded; starting again
Wrong Image Format for bootm command
ERROR: can't get kernel image!

 

What can I be doing wrong?

Thank you!

 

0 Kudos
1 Solution

Accepted Solutions
prem
Visitor
Visitor
72 Views
Registered: ‎03-29-2021

Hi,

Please make sure your tftp is setup correctly. I used this link to set it up. https://linuxhint.com/install_tftp_server_ubuntu/

Then go to your Petalinux Root Dir: petalinux-boot --jtag --u-boot --fpga --bitstream images/linux/system.bit --hw_server-url tcp:127.0.0.1:3121  //to boot 

setenv ipaddr 192.168.1.5 (for target)

setenv serverip 192.168.1.2 (for host)

ping 192.168.1.2

tftpb 0xc00000 xen_boot_tftp.scr

source 0xc00000

 

This wiki link is also useful https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/384663561/Building+Xen+Hypervisor+with+Petalinux+2020.1+and+2020.2 

Hope this helps.

Best Regards,

Prem

 

 

View solution in original post

4 Replies
220 Views
Registered: ‎11-02-2019

I have tried to ping server and I don't get any errors (copied above), but when I do tftp I still get the same error. Does someone has any idea of what could be happening?

 

ZynqMP> ping $serverip

Using ethernet@ff0e0000 device
host 192.168.1.100 is alive

0 Kudos
prem
Visitor
Visitor
153 Views
Registered: ‎03-29-2021

Wrong Image Format for bootm command

Are you sure you have the correct image and other files required for xen to boot in your tftp folder?

0 Kudos
85 Views
Registered: ‎11-02-2019

Hi @prem 

I created manually the tftpboot folder and when I built the petalinux project the files were copied there automatically. They are the same image and files I use to boot xen from SD and it works, so I think they are correct.

Maybe when I created the tftpboot file I did it in the wrong directory. I have my petalinux project in "/home/user/Petalinux/petalinux_project" and the tftpboot file's directory is "/tftpboot". Should the tftpboot file be inside the petalinux project? Could this be my problem?

Thank you

0 Kudos
prem
Visitor
Visitor
73 Views
Registered: ‎03-29-2021

Hi,

Please make sure your tftp is setup correctly. I used this link to set it up. https://linuxhint.com/install_tftp_server_ubuntu/

Then go to your Petalinux Root Dir: petalinux-boot --jtag --u-boot --fpga --bitstream images/linux/system.bit --hw_server-url tcp:127.0.0.1:3121  //to boot 

setenv ipaddr 192.168.1.5 (for target)

setenv serverip 192.168.1.2 (for host)

ping 192.168.1.2

tftpb 0xc00000 xen_boot_tftp.scr

source 0xc00000

 

This wiki link is also useful https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/384663561/Building+Xen+Hypervisor+with+Petalinux+2020.1+and+2020.2 

Hope this helps.

Best Regards,

Prem

 

 

View solution in original post