Jump to content
  • 0

how to add i2c drivers for Eclypse Z7 bsp build?


Question

Posted

how to add i2c drivers for Eclypse Z7 bsp build?

what is the machine id to build Eclypse Z7 bsp? 

Does Eclypse Z7 bsp have latest 2023 petalinux or 2019 version of petalinux?

9 answers to this question

Recommended Posts

  • 0
Posted

Hi @Mani,

I believe the most recent Petalinux build for the Eclypse Z7 is 2019, at least based on the material here: https://github.com/Digilent/Eclypse-Z7-OS.

In terms of adding I2C support, you'll want to add an I2C driver to your Block Diagram within Vivado alongside the Zynq Processor. After you have all of the supported material that you want enabled, you can then export the .xsa and build your BSP within Petalinux based off of that.

There is a small guide on adding I2C to an intended Petalinux design here: https://www.adiuvoengineering.com/post/microzed-chronicles-petalinux-i2c-in-the-ps-and-axi-iic, as well as some additional material on creating your own .xsa / BSP file available here: https://forum.digilent.com/topic/27087-creating-xsa-file-for-petalinux/.

Let me know if you have any questions.

Thanks,
JColvin

 

  • 0
Posted (edited)

Thanks , Can i port zc702 machine id to build image for eclypse board since its same zync architecture? 

Is there any option to build  Eclypse Z7 BSP for latest petalinux ? If not, then Can i import xsa file from Vivado 2023 design to petalinux 2019 build ?

Eclypse Z7 BSP has QEMU build also in it ?

Edited by Mani
  • 0
Posted

Hi @Mani,

No, you will not be able to port the zc702 to the Eclypse. The main reason for this is that although they both use a Zynq 7020 chip, the pinouts and settings to the different peripherals (buttons, DDR, etc) are very likely not going to match between the two boards, making them incompatible.

You can create your own BSP within PetaLinux, as per the details mentioned in this thread: https://forum.digilent.com/topic/27087-creating-xsa-file-for-petalinux/. Unfortunately, you would not be able to back-port the .xsa from 2023 to an older version of the tools as backwards compatibility is not something typically available within the Xilinx tool suite.
Referencing your other thread, .xsa and .hdf files are "basically" the same as far as the end user is concerned, but Xilinx tools will make a distinction between the two

I do not know if QEMU is integrated with the 2019 Eclypse Z7 BSP. I will ask the engineer more experienced with Petalinux about this.

Thanks,
JColvin

  • 0
Posted (edited)

ok Thanks, CAn I build 2019 Eclypse Z7 BSP on ubuntu 22 ? or it needs only ubuntu 18

I built on 18 successfully, but it does not have qemu feature.

When i click the link to install vivado i get latest software of 2023 , i can i use it with petalinux eclypse z7 bsp ?  Looks like it can be done from this link Release Eclypse Z7 Low Level Lowpass Filter Demo Vivado 2023.1 · Digilent/Eclypse-Z7 · GitHub

Does  eclypse z7 bsp take xsa file also for petalinux-config --get-hw-description=<location-of-your-hdf> ?

 

 

Edited by Mani
  • 0
Posted (edited)

Actually i received one xsa file from 2023.1 vivado design suite and also file called  project_1.xpr.zip , and they wanted the design to be integrated it into Eclypse-Z7 Petalinux OS build , how to proceed ?

Edited by Mani
  • 0
Posted

 

Quote

ok Thanks, CAn I build 2019 Eclypse Z7 BSP on ubuntu 22 ? or it needs only ubuntu 18

petalinux 2019.1 latest supported ubuntu version is 18.04.1 (64bit)

Newer version of petalinux supports newer version. Select version of petaliunx on this link https://docs.xilinx.com/r/en-US/ug1144-petalinux-tools-reference-guide/Setting-Up-Your-Environment

Quote

Actually i received one xsa file from 2023.1 vivado design suite and also file called  project_1.xpr.zip , and they wanted the design to be integrated it into Eclypse-Z7 Petalinux OS build , how to proceed ?

Assuming you have created a new petalinux 2023.1 project

petalinux-config --get-hw-description=/path/to/directory/containing/.xsa/file/

This steps imports your hardware descrption in your petalinux zynq project
Building the project should generate a base OS which is a starting point for development. However it dose not contain the software required to use the hardware designed in Vivado

Xilinx XSDK was replaced by Xilinx Vitis
For your newly generated OS you can create an SDK that can be used in Vitis by running petalinux-build --sdk
 

As a reference you can search https://github.com/Digilent/Eclypse-Z7 and sub repositories to find how various thing are achieved.

  • 0
Posted

I tried the steps as you mentioned i get this error 

ERROR: qemu-xilinx-native-v7.1.0-xilinx-v2023.1+gitAUTOINC+21adc9f99e-r0 do_fetch: gitsm: submodule download failed: FetchError Fetcher failure for URL: 'gitsm://github.com/pyca/cryptography.git;protocol=https;name=pyca.cryptography;subpath=pyca.cryptography;bareclone=1;nobranch=1'. Unable to fetch URL from any source.

WARNING: qemu-xilinx-native-v7.1.0-xilinx-v2023.1+gitAUTOINC+21adc9f99e-r0 do_fetch: Failed to fetch URL gitsm://github.com/openssl/openssl;protocol=https;name=CryptoPkg/Library/OpensslLib/openssl;subpath=CryptoPkg/Library/OpensslLib/openssl;bareclone=1;nobranch=1, attempting MIRRORS if available

ERROR: qemu-xilinx-native-v7.1.0-xilinx-v2023.1+gitAUTOINC+21adc9f99e-r0 do_fetch: Fetcher failure for URL: 'gitsm://github.com/pyca/cryptography.git;protocol=https;name=pyca.cryptography;subpath=pyca.cryptography;bareclone=1;nobranch=1'. Unable to fetch URL from any source.

ERROR: qemu-xilinx-native-v7.1.0-xilinx-v2023.1+gitAUTOINC+21adc9f99e-r0 do_fetch: gitsm: submodule download failed: FetchError Fetcher failure for URL: 'gitsm://github.com/openssl/openssl;protocol=https;name=CryptoPkg/Library/OpensslLib/openssl;subpath=CryptoPkg/Library/OpensslLib/openssl;bareclone=1;nobranch=1'. Unable to fetch URL from any source.

WARNING: qemu-xilinx-native-v7.1.0-xilinx-v2023.1+gitAUTOINC+21adc9f99e-r0 do_fetch: Failed to fetch URL gitsm://gitlab.com/qemu-project/edk2.git;protocol=https;name=roms/edk2;subpath=roms/edk2;bareclone=1;nobranch=1, attempting MIRRORS if available

ERROR: qemu-xilinx-native-v7.1.0-xilinx-v2023.1+gitAUTOINC+21adc9f99e-r0 do_fetch: Fetcher failure for URL: 'gitsm://github.com/openssl/openssl;protocol=https;name=CryptoPkg/Library/OpensslLib/openssl;subpath=CryptoPkg/Library/OpensslLib/openssl;bareclone=1;nobranch=1'. Unable to fetch URL from any source.

ERROR: qemu-xilinx-native-v7.1.0-xilinx-v2023.1+gitAUTOINC+21adc9f99e-r0 do_fetch: gitsm: submodule download failed: FetchError Fetcher failure for URL: 'gitsm://gitlab.com/qemu-project/edk2.git;protocol=https;name=roms/edk2;subpath=roms/edk2;bareclone=1;nobranch=1'. Unable to fetch URL from any source.

WARNING: qemu-xilinx-native-v7.1.0-xilinx-v2023.1+gitAUTOINC+21adc9f99e-r0 do_fetch: Failed to fetch URL gitsm://github.com/Xilinx/qemu.git;protocol=https;branch=xlnx_rel_v2023.1, attempting MIRRORS if available

ERROR: qemu-xilinx-native-v7.1.0-xilinx-v2023.1+gitAUTOINC+21adc9f99e-r0 do_fetch: Fetcher failure for URL: 'gitsm://gitlab.com/qemu-project/edk2.git;protocol=https;name=roms/edk2;subpath=roms/edk2;bareclone=1;nobranch=1'. Unable to fetch URL from any source.

ERROR: qemu-xilinx-native-v7.1.0-xilinx-v2023.1+gitAUTOINC+21adc9f99e-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'gitsm://github.com/Xilinx/qemu.git;protocol=https;branch=xlnx_rel_v2023.1')

ERROR: Logfile of failure stored in: /home/test_fpga/build/tmp/work/x86_64-linux/qemu-xilinx-native/v7.1.0-xilinx-v2023.1+gitAUTOINC+21adc9f99e-r0/temp/log.do_fetch.2440443

ERROR: Task (/home/test_fpga/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-native_2023.1.bb:do_fetch) failed with exit code '1'

NOTE: Tasks Summary: Attempted 1677 tasks of which 1657 didn't need to be rerun and 3 failed.

 

Summary: 3 tasks failed:

  /home/test_fpga/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb:do_configure

  /home/test_fpga/components/yocto/layers/meta-xilinx/meta-xilinx-standalone/recipes-bsp/embeddedsw/fsbl-firmware_2023.1.bb:do_fetch

  /home/test_fpga/components/yocto/layers/meta-xilinx/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-native_2023.1.bb:do_fetch

Summary: There were 6 WARNING messages.

Summary: There were 11 ERROR messages, returning a non-zero exit code.

ERROR: Failed to build project. Check the /home/test_fpga/build/build.log file for more details...

MicrosoftTeams-image (1).png

  • 0
Posted

It looks like Petalinux wasn't able to access a number of different repositories, which can happen for a variety of reasons.

I'm not certain what issue might be in your situation specifically, but here are a number of other threads that might help you find the source of this: thread1, thread2, thread3.

Thanks,
JColvin

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