UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer deepaksingh
Observer
569 Views
Registered: ‎10-30-2018

ug1085 zynq -ultra scale latest version Linux git repo

Jump to solution

Hi,

For my project i need to write I2C/SPI client drivers and also need to customize the other drivers but the Yocto build available in the ug1144-petalinux-tools-reference-guide user manual doesn't have separate Linux source code.

So please provide the link to download the ug1085 zynq -ultra scale latest version PetaLinux source git repo. 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
494 Views
Registered: ‎02-07-2018

Re: ug1085 zynq -ultra scale latest version Linux git repo

Jump to solution

Hi @deepaksingh

 

You have to  create a petalinux project with BSP, then build the project. It will generate the boot images in xilinx-zcu102-2018.2/images/linux directory after build.

and it will also generate the Linux source also in build/tmp/work-shared/zcu102-zynqmp/kernel-source/ directory.

 

Below are the build steps for zynqMP using petalinux.

 

source /proj/petalinux/petalinux-v2018.2-final/settings.sh 

petalinux-create --type project -s /proj/petalinux/petalinux-v2018.2_bsps_daily_latest/xilinx-zcu102-v2018.2-final.bsp

petalinux-config

petalinux-build

petalinux-package --boot --fsbl images/linux/zynqmp_fsbl.elf --fpga images/linux/system.bit --pmufw images/linux/pmufw.elf --u-boot  -- This will create an BOOT.BIN

 

Note: Petalinux should be  installed in your Linux machine. (BSP and petalinux installed version should be same.)

For installation please refer this link:https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_2/ug1144-petalinux-tools-reference-guide.pdf

 

Thanks & regards

Aravind

----------------------------------------------------------------------------------------------
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
5 Replies
Xilinx Employee
Xilinx Employee
550 Views
Registered: ‎02-07-2018

Re: ug1085 zynq -ultra scale latest version Linux git repo

Jump to solution

Hi @deepaksingh

 

 

You can download the latest Linux source code from this repo :

git clone https://github.com/Xilinx/linux-xlnx

 

and for petalinux BSP , you can download from this link:https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html

 

Thanks & regards

Aravind

----------------------------------------------------------------------------------------------
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
Observer deepaksingh
Observer
532 Views
Registered: ‎10-30-2018

Re: ug1085 zynq -ultra scale latest version Linux git repo

Jump to solution

Hi Aravind,

 

Thank you for the reply. With the link provided below i can download the Linux and BSP but how to flash the kernel build image(uImage). Because after building the Yocto build only two images (BOOT.bin and image.ub) we are copying to SD card while flashing.

So is there any specific way to build the kernel to generate the binaries?

0 Kudos
Xilinx Employee
Xilinx Employee
524 Views
Registered: ‎02-07-2018

Re: ug1085 zynq -ultra scale latest version Linux git repo

Jump to solution

HI @deepaksingh

 

If you use the BSP , then you no need of separate Linux source code. 

The BSP it self will have all the source codes(linux, u-boot,rootfs). This will generate the boot images(BOOT.BIN &image.ub).

 

For more info you can refer the this link: https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_2/ug1209-embedded-design-tutorial.pdf (page no:47)

 

You cannot use the uImage, instead you need to use the Image.

 

copy all images to SDcard and run below command.


fatload mmc 0 80000 Image; fatload mmc 0 4000000 system.dtb;

fatload mmc 0 6000000 rootfs.cpio.gz.u-boot;

booti 80000 6000000 4000000

 

 

Thanks & regards

Aravind

----------------------------------------------------------------------------------------------
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
Observer deepaksingh
Observer
507 Views
Registered: ‎10-30-2018

Re: ug1085 zynq -ultra scale latest version Linux git repo

Jump to solution

Hi Aravind,

 

In the below i can find only bsp and binaries not bale to get the complete bsp source code.

 

https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools/2017-4.html

 

 

 

0 Kudos
Xilinx Employee
Xilinx Employee
495 Views
Registered: ‎02-07-2018

Re: ug1085 zynq -ultra scale latest version Linux git repo

Jump to solution

Hi @deepaksingh

 

You have to  create a petalinux project with BSP, then build the project. It will generate the boot images in xilinx-zcu102-2018.2/images/linux directory after build.

and it will also generate the Linux source also in build/tmp/work-shared/zcu102-zynqmp/kernel-source/ directory.

 

Below are the build steps for zynqMP using petalinux.

 

source /proj/petalinux/petalinux-v2018.2-final/settings.sh 

petalinux-create --type project -s /proj/petalinux/petalinux-v2018.2_bsps_daily_latest/xilinx-zcu102-v2018.2-final.bsp

petalinux-config

petalinux-build

petalinux-package --boot --fsbl images/linux/zynqmp_fsbl.elf --fpga images/linux/system.bit --pmufw images/linux/pmufw.elf --u-boot  -- This will create an BOOT.BIN

 

Note: Petalinux should be  installed in your Linux machine. (BSP and petalinux installed version should be same.)

For installation please refer this link:https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_2/ug1144-petalinux-tools-reference-guide.pdf

 

Thanks & regards

Aravind

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