cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
3,372 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
Explorer
Explorer
5,648 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

View solution in original post

0 Kudos
4 Replies
Highlighted
Explorer
Explorer
5,649 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

View solution in original post

0 Kudos
Observer
Observer
3,313 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
Highlighted
Explorer
Explorer
3,300 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
Highlighted
Observer
Observer
3,222 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