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: 
Observer hardik123
Observer
2,837 Views
Registered: ‎07-27-2017

application development and module adding in Petalinux on zynq board:

Jump to solution


environment : Petalinux 2017.2 SDK with libcse support
EVM         : ZC702 Rev 1.

1.When we create a new project in peta linux SDK tool. After creating new project it generated some default apps in /home/eldaas/Desktop/PetaLinux_2017.2.0/Demo_project_zynq/project-spec/meta-user/recipes-apps.
2. The Procedure to include and building the default apps is to include it in root fs by configuring rootfs.
3. By using cmd "petalinux-config -c rootfs" after this command we can see the root structure.
4. The selected app will be enabled and built it using cmd in Petalinux -build.
5. Now i am running it on qemu( emulator) but i am unable to find out where are executables went.
6. i created new module from scratch by petalinux-create -t module --name --enable
so that module is by default added to root system them i gave
petalinux build but now same i am unable to find out .ko file of module in qemu kernel file structure.

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Adventurer
Adventurer
5,113 Views
Registered: ‎03-22-2016

Re: application development and module adding in Petalinux on zynq board:

Jump to solution

Kernel modules should install to /lib/modules/$(uname -r)/extra

0 Kudos
4 Replies
Highlighted
Adventurer
Adventurer
5,114 Views
Registered: ‎03-22-2016

Re: application development and module adding in Petalinux on zynq board:

Jump to solution

Kernel modules should install to /lib/modules/$(uname -r)/extra

0 Kudos
Observer hardik123
Observer
2,778 Views
Registered: ‎07-27-2017

Re: application development and module adding in Petalinux on zynq board:

Jump to solution

root@Demo_project_zynq:/lib/modules/4.9.0-xilinx-v2017.2# ls
kernel modules.builtin.bin modules.order
modules.alias modules.dep modules.softdep
modules.alias.bin modules.dep.bin modules.symbols
modules.builtin modules.devname modules.symbols.bin

 

 

there is no  repositery named extra

0 Kudos
Adventurer
Adventurer
2,765 Views
Registered: ‎03-22-2016

Re: application development and module adding in Petalinux on zynq board:

Jump to solution

Sounds like the module is not being installed in your root filesystem image. Either it's not configured to be installed (check project-spec/configs/rootfs_config), or the rootfs image hasn't been rebuilt.

 

What commands are you using? Specifically, do you call 'petalinux-build' by itself with no additional parameters?

0 Kudos
Observer hardik123
Observer
2,687 Views
Registered: ‎07-27-2017

Re: application development and module adding in Petalinux on zynq board:

Jump to solution

we need to repackage all images then only it will show that mistake i was doing

0 Kudos