cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
fatima_kishwar
Observer
Observer
1,269 Views
Registered: ‎03-23-2017

SDx 2018.3 Linux Platform for a custom hardware

Jump to solution

Hi

Am trying to build a software platfrom for a custom hardware design in vivado using a ZU4CG module. Am able to build a standalone software platform and a FreeRTOS platform using the generated dsa file but as soon as I try to make a linux platfrom the first problem is I cannot use any processor selection it gets fixed on psu_cortexa53 whereas for other two options I can choose any processor from the drop down menu. Secondly when I go down to building the platfrom it gets an error either as psu_cortexa53_0 is being used by another domain or trying to use  psu_cortexa53_2 when the chip only has 2 cores[0,1]. It seems all the SDX 2018.3 example platforms are for quad core ZYNQ MPSoC module could it be that the SDx 2018.3 by default assumes I am using a quadcore module when I am trying to build a platform around the Dual core CG module.

I will appreciate help in this regards.

Many Thanks,

Fatima

0 Kudos
1 Solution

Accepted Solutions
vijoys
Moderator
Moderator
971 Views
Registered: ‎09-19-2018

Hi @fatima_kishwar 

It seems that this is a bug in sdx 2018.3. I have tested this against an internal build for the next release and looks to be working fine.
Please try the below steps in generating the platform using xsct and let me know if you are able to proceed without errors.

Launch xsct

Create a new directory and copy your dsa file into this.

cd into this directory

> platform -name platform_1 -desc "dualcore_pfm" -hw ./design_1.dsa -out ./output

Create a boot directory.

Copy all boot files and image.ub into this boot directory

> system -name sysconfig1 -display-name "a53_linux" -boot ./boot

> domain -name domain1 -proc psu_cortexa53_0 -os linux

> domain -runtime c

> platform -generate

You will see the platform created in the output/ directory

> platforminfo <path to xpfm file in output directory>/xpfm file

The above platforminfo command will dump out the generated platform information.

Thanks,
Vijoy Sunil Kumar
Product Applications Engineer

- Don't forget to reply, kudo and accept as solution

View solution in original post

7 Replies
vijoys
Moderator
Moderator
1,197 Views
Registered: ‎09-19-2018

Hi @fatima_kishwar 

I am currently looking into this and will get back to you at the earliest with an update.

Thanks,
Vijoy Sunil Kumar
Product Applications Engineer

- Don't forget to reply, kudo and accept as solution
0 Kudos
vijoys
Moderator
Moderator
1,160 Views
Registered: ‎09-19-2018

Hi @fatima_kishwar 

When creating a linux platfrom you would see the processor selection gets fixed on psu_cortexa53 (in your case) because by default the linux kernel is configured to use both CPUs in SMP mode.

Regarding the error you find when building the platform, if possible could you send me the dsa file or tell me which 4cg part you are using to create the platform?

Thanks,
Vijoy Sunil Kumar
Product Applications Engineer

- Don't forget to reply, kudo and accept as solution
0 Kudos
fatima_kishwar
Observer
Observer
1,110 Views
Registered: ‎03-23-2017

Hi Vijoy,

I am attaching the DSA file. Please have a look also can i build an application for the standalone platform component without having the linux component available as when I try to do that it fails.

KInd Regards

Fatima

0 Kudos
vijoys
Moderator
Moderator
1,082 Views
Registered: ‎09-19-2018

Hi @fatima_kishwar 

I couldn't find the attached file. Could you try resending it?

Thanks,
Vijoy Sunil Kumar
Product Applications Engineer

- Don't forget to reply, kudo and accept as solution
0 Kudos
fatima_kishwar
Observer
Observer
1,061 Views
Registered: ‎03-23-2017

The device is xczu4cg-sfvc784-1-e.

You can download the DSA file from link below

https://www.dropbox.com/s/hlkrb4qw0gbpbpw/design_1.dsa?dl=0

I made a simple board design using the example provided by Xilinx for the cg part number and am having the same error when trying to build the linux platform for it.

I was advised by a colleague of your to try and build a system around the Avnet Ultra96 board but that too is an eg board which is quadcore.

Lastly I made a project for our ZU4EV design and that seems to work fine making the linux component and software project.

Regards

Fatima

0 Kudos
vijoys
Moderator
Moderator
972 Views
Registered: ‎09-19-2018

Hi @fatima_kishwar 

It seems that this is a bug in sdx 2018.3. I have tested this against an internal build for the next release and looks to be working fine.
Please try the below steps in generating the platform using xsct and let me know if you are able to proceed without errors.

Launch xsct

Create a new directory and copy your dsa file into this.

cd into this directory

> platform -name platform_1 -desc "dualcore_pfm" -hw ./design_1.dsa -out ./output

Create a boot directory.

Copy all boot files and image.ub into this boot directory

> system -name sysconfig1 -display-name "a53_linux" -boot ./boot

> domain -name domain1 -proc psu_cortexa53_0 -os linux

> domain -runtime c

> platform -generate

You will see the platform created in the output/ directory

> platforminfo <path to xpfm file in output directory>/xpfm file

The above platforminfo command will dump out the generated platform information.

Thanks,
Vijoy Sunil Kumar
Product Applications Engineer

- Don't forget to reply, kudo and accept as solution

View solution in original post

fatima_kishwar
Observer
Observer
914 Views
Registered: ‎03-23-2017

Hi Vijoy,

I was able to create the linux component following the procedure you have described had to edit one of the commands you had sent and add one more to point to the bif file adding them here for anyone else who  might need them as was not able to generate without pointing to image.ub and bif file

> domain -name domain1 -proc psu_cortexa53_0 -os linux -image ./image
> sysconfig config -bif "./boot/linux.bif"

Many thanks for all your help greatly appreciated.

KInd Regards,

Fatima

0 Kudos