IPCF v4.10 kernel sample driver dependency issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I noticed that IPCF v4.10 driver has been released for a period of time, and I tried to compile the sample, i.e, ipc-shm-sample.ko and ipc-shm-dev.ko, for native linux. But unfortunatly, compilation failed, the reason is that, the ipc-shm-sample.ko wrongly depends on ipc-shm-xen.ko, as the following line in ipc-shm-sample.mod.c:
MODULE_INFO(depends, "ipc-shm-xen");
and the right dependency should be: MODULE_INFO(depends, "ipc-shm-dev");
So could you please help to check the issue?
Thanks,
Zhantao

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, @hittzt
Thanks for your reply.
Yes, I noticed it from the code
But I tested it on my local RDB3, based on BSP42, I do not see errors/warning prints while testing with IPCF sample
root@s32g399ardb3:~# insmod ipc-shm-dev.ko
root@s32g399ardb3:~# insmod ipc-shm-sample.ko
root@s32g399ardb3:~# lsmod
Module Size Used by
ipc_shm_sample 12288 0
ipc_shm_dev 36864 1 ipc_shm_sample
sja1110 20480 0
root@s32g399ardb3:~# dmesg | tail
[ 8.981273] s32cc-dwmac 4033c000.ethernet eth0: Enabling Safety Features
[ 8.981368] s32cc-dwmac 4033c000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
[ 8.981640] s32cc-dwmac 4033c000.ethernet eth0: registered PTP clock
[ 8.982063] s32cc-dwmac 4033c000.ethernet eth0: FPE workqueue start
[ 8.982075] s32cc-dwmac 4033c000.ethernet eth0: configuring for phy/rgmii-id link mode
[ 8.984809] 8021q: adding VLAN 0 to HW filter on device eth0
[ 11.901187] random: crng init done
[ 13.085991] s32cc-dwmac 4033c000.ethernet: Setting TX clock to 125000000 Hz
[ 13.086069] s32cc-dwmac 4033c000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 16.976019] systemd[355]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
So it seems not impact the module loading sequence.
BR
Chenyin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, @hittzt
Thanks a lot for your post.
I will check it later, I undertand that you were building it manually instead of Yocto, right?
BR
Chenyin
BR
Chenyin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @chenyin_h,
To make it clear, it should not say "compilation failed" in my original description, acctually, the compilation passed, but the dependency of ipc-shm-sample.ko is wrong.
And yes, I build it with yocto project.
Thanks,
Zhantao
