Jump to content
  • 0

How to Bulid petalinux for Zybo Z7 in 2021.2


chaitusvk

Question

HI

i am  to embedded Linux i am trying to Build petalinux on  Zybo Z7 with just Zynq

 

These Steps i followed

 

1. Create Viavdo project With Zynq with TTC0 Enabled generated xsa

2. Created Petalinux project with "petalinux-create --type project --template zynq --name test_peta"

3. configured Petalinux with "petalinux-config --get-hw-description ../ "

      enabled

a.image packing configuration to EXT4 (SD card) 

b. premirror url to downlaoded files

c. local state feeds to to downloded local sstate

4. Bulid petalinux with : " petalinux-build" i am able to see files generated in images/linux with out any error

5. Packaged with "petalinux-package --boot --fsbl images/linux/zynq_fsbl.elf --fpga project-spec/hw-description/design_1_wrapper.bit --uboot --force" i am able to see boot.bin generated

6. formated the SD in to Two BOOT:fat32, rootfs:ext4 ..

7. copied "BOOT.BIN,image.ub,boot.scr" to BOOT

8. tar xvf rootfs.tar.gz -C /media/rootfs

 

But , i am unable to boot petalinux, previously i used 2019.1 with that i amble to boot ...my green led was glowing then , now not glowing any thing extra i have to activate

please help ...

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

A nice quick tip is that you can also boot over JTAG which is a bit less of a hassle. Just have the board connected to some JTAG, typically over the USB/Serial connection/cable on  dev boards.

From the petalinux project root:

petalinux-build

petalinux-package --boot --fsbl images/linux/zynq_fsbl.elf --u-boot --fpga images/linux/system.bit --force

petalinux-package --prebuilt --force

petalinux-boot --jtag --prebuilt 3

And connect to it normally over the serial cable. The base image is something like 16MB. so its not too bad to load onto to it with JTAG, but if the image starts to get larger from packages whatnot it might take a while, and depending on the RAM, I'm not sure if it will load at all.

 

I still can't get TFTP boot to work, so JTAG will have to do for me for now.

Edited by RyanW
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...