cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sagar8446
Contributor
Contributor
3,548 Views
Registered: ‎10-15-2017

Unable to find Linux system root path

Hello,

I want to run my application with linux. So, I created a new application project in sdk 2016.4. In that i have choosen os platform as linux and i found the path for linux tool chain and but unable to find the linux system root.

 

I have created one petalinux project in that i'm unable to find the path of /build/linux/rootfs/stage.

Please help me out with this issue.

Thanks in advance.

Screenshot from 2018-02-02 14-22-45.png
0 Kudos
9 Replies
ibaie
Xilinx Employee
Xilinx Employee
3,492 Views
Registered: ‎10-06-2016

Hi @sagar8446,

Not sure if you are still dealing with this issue but definitivelly you don't need to set the Linux toolchain in the new project wizard window as the SDK include the linux toolchain by default.

Regards
Ibai

Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
sagar8446
Contributor
Contributor
3,470 Views
Registered: ‎10-15-2017

Ok fine, so how to include the xilinx parameters in the project now. Its showing error for the xilinx parameters.

0 Kudos
ibaie
Xilinx Employee
Xilinx Employee
3,462 Views
Registered: ‎10-06-2016

Hi @sagar8446

 

What do you mean with xilinx parameters, xparameters.h file? If so that's only valid for standalone, not Linux userspace applications.

 

Regards

Ibai


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
sagar8446
Contributor
Contributor
3,430 Views
Registered: ‎10-15-2017

so how to build the application with petalinux if these parameters are valid for only standalone application.
0 Kudos
ibaie
Xilinx Employee
Xilinx Employee
3,426 Views
Registered: ‎10-06-2016

Hi @sagar8446,

Again what do you mean with "these paramenters"? xparameters.h?

Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
sagar8446
Contributor
Contributor
3,425 Views
Registered: ‎10-15-2017

xparameters.h, xil_io.h these type of parameters

 

0 Kudos
ibaie
Xilinx Employee
Xilinx Employee
3,416 Views
Registered: ‎10-06-2016

Hi @sagar8446,

Ok, so basically those files are not used when you create a Linux application. That's because in Linux userspace applications does not work with physical memory and all accesses to the different devices are done through frameworks.

I will recommend you to read about linux application development in order to familiarize on it.

Regards,
Ibai

Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
sagar8446
Contributor
Contributor
3,414 Views
Registered: ‎10-15-2017

So how to start with linux applications and buidl them in petalinux.
0 Kudos
ibaie
Xilinx Employee
Xilinx Employee
3,410 Views
Registered: ‎10-06-2016

Hi @sagar8446,

You can create and compile in the petalinux workflow as documented in the user guide:
https://www.xilinx.com/support/documentation/sw_manuals/xilinx2017_4/ug1144-petalinux-tools-reference-guide.pdf#page=53

Additionally you can use the SDK to build and debug Linux applications and once you have everything ready you can deploy it either using petalinux or just copying to your rootfs/SDcard/...
https://www.xilinx.com/html_docs/xilinx2017_4/SDK_Doc/SDK_tasks/sdk_t_create_new_linux_appln.html?hl=linux

Regards
Ibai

Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos