cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
1,452 Views
Registered: ‎10-10-2018

ZCU102 Yocto - BOOT.bin generation

Jump to solution

Hello,

 

I'm using Yocto 2.4 to generate a Linux OS image for ZCU102 ultrascale+.

After compilation successfully, it generate for me all files separately (atf, u-boot, Image, fsbl ...).

How can I inform yocto to concat all these files and generate the required BOOT.bin file to start Linux kernel after compilation ?

 

Any help please ?

 

---

Thanks

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
1,409 Views
Registered: ‎04-24-2017

Re: ZCU102 Yocto - BOOT.bin generation

Jump to solution

Hi @chepner,

 

NOTE: This is something Yocto upstream doesn't support. This is just a hook.

 

In 2018.x yocto add below variable in local.conf to wire up FIT Image.

 

# Remove source files after build is finished
# Comment this if you are source or object files for debugging
#INHERIT += "rm_work"

# Specify the HDF location path using local file or subversion path
# Add system HDF/DSA
HDF_EXT = "hdf"

# Using local file
HDF_BASE = "file://"
HDF_PATH = "/2018.1/xilinx-zcu102-2018.1/xilinx-zcu102-2018.1.sdk/system.hdf"

# Using GIT Subversion
#HDF_BASE = "git://"
#HDF_PATH = "<path-to-HDF-in-git>" //ex: HDF_PATH = "github.com/hdf-base.git"

IMAGE_CLASSES_remove = "image-types-xilinx-qemu qemuboot-xilinx"
IMAGE_FSTYPES_remove = "wic.qemu-sd"

EXTRA_IMAGEDEPENDS_remove = "qemu-helper-native"

# Add FIT image dependency
KERNEL_CLASSES += "kernel-fitimage"
KERNEL_IMAGETYPES += "fitImage vmlinux"

# Specify FIT image variables
# Kernel entrypoint and load address is mandatory for FIT image creation
# Load address for DTB and RootFS is optional
UBOOT_ENTRYPOINT  = "0x80000"
UBOOT_LOADADDRESS = "0x80000"

INITRAMFS_IMAGE_BUNDLE = "1"
INITRAMFS_IMAGE = "petalinux-image-minimal"
INITRAMFS_MAXSIZE = "524288"

# Image level user/group configuration.
# Inherit extrausers to make the setting of EXTRA_USERS_PARAMS effective.
INHERIT += "extrausers"

# Add user and password
EXTRA_USERS_PARAMS = "usermod -P root root; "

# Add additional packages to image
IMAGE_INSTALL_append += " \
    dhcpcd \
    "

  

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
Highlighted
Moderator
Moderator
1,426 Views
Registered: ‎09-12-2007

Re: ZCU102 Yocto - BOOT.bin generation

Jump to solution
0 Kudos
Highlighted
Moderator
Moderator
1,410 Views
Registered: ‎04-24-2017

Re: ZCU102 Yocto - BOOT.bin generation

Jump to solution

Hi @chepner,

 

NOTE: This is something Yocto upstream doesn't support. This is just a hook.

 

In 2018.x yocto add below variable in local.conf to wire up FIT Image.

 

# Remove source files after build is finished
# Comment this if you are source or object files for debugging
#INHERIT += "rm_work"

# Specify the HDF location path using local file or subversion path
# Add system HDF/DSA
HDF_EXT = "hdf"

# Using local file
HDF_BASE = "file://"
HDF_PATH = "/2018.1/xilinx-zcu102-2018.1/xilinx-zcu102-2018.1.sdk/system.hdf"

# Using GIT Subversion
#HDF_BASE = "git://"
#HDF_PATH = "<path-to-HDF-in-git>" //ex: HDF_PATH = "github.com/hdf-base.git"

IMAGE_CLASSES_remove = "image-types-xilinx-qemu qemuboot-xilinx"
IMAGE_FSTYPES_remove = "wic.qemu-sd"

EXTRA_IMAGEDEPENDS_remove = "qemu-helper-native"

# Add FIT image dependency
KERNEL_CLASSES += "kernel-fitimage"
KERNEL_IMAGETYPES += "fitImage vmlinux"

# Specify FIT image variables
# Kernel entrypoint and load address is mandatory for FIT image creation
# Load address for DTB and RootFS is optional
UBOOT_ENTRYPOINT  = "0x80000"
UBOOT_LOADADDRESS = "0x80000"

INITRAMFS_IMAGE_BUNDLE = "1"
INITRAMFS_IMAGE = "petalinux-image-minimal"
INITRAMFS_MAXSIZE = "524288"

# Image level user/group configuration.
# Inherit extrausers to make the setting of EXTRA_USERS_PARAMS effective.
INHERIT += "extrausers"

# Add user and password
EXTRA_USERS_PARAMS = "usermod -P root root; "

# Add additional packages to image
IMAGE_INSTALL_append += " \
    dhcpcd \
    "

  

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

0 Kudos
Highlighted
Contributor
Contributor
1,348 Views
Registered: ‎10-10-2018

Re: ZCU102 Yocto - BOOT.bin generation

Jump to solution

Ok thank you it works.

0 Kudos