Shannon DirectIO PCIe Driver

130 views
Skip to first unread message

Jacques de Jager

unread,
Mar 20, 2022, 3:16:11 AM3/20/22
to esos-users
Hi All

I need some assistance with the Shannon PCIe Driver compilation, I use these SSD's currently under Ubuntu 20.04 - 5.4.0-104-generic kernel, compiles perfect:

modinfo shannon.ko:

retpoline:      Y

name:           shannon

vermagic:       5.4.0-104-generic SMP mod_unload modversions 

-- DRIVER Source ( I can share newer version from the vendor )

https://github.com/ottok/shannon-direct-io-pcie-driver

--- ESOS master branch 

I downloaded the source for master, and build the ESOS system, I also enter the chroot env, and tried to compile the Shanon Driver, the source compiles fine, but doesnt link properly, the mod.o file doesnt get created, also the Module.symvers doesnt look right :

cat Module.symvers -->

0x00000000 debug_cdev_fops /sources/shannon-module_3.4.3.1/shannon EXPORT_SYMBOL 

make debug output ( /tools/bin/make -dn -f /sources/shannon-module_3.4.3.1/Makefile ) :

Live child 0x19726f0 (/sources/shannon-module_3.4.3.1/shannon.ko) PID 2339066 

  LD [M]  /sources/shannon-module_3.4.3.1/shannon.ko

ld: cannot find /sources/shannon-module_3.4.3.1/shannon.mod.o: No such file or directory

Reaping losing child 0x19726f0 PID 2339066 

make[3]: *** [scripts/Makefile.modfinal:41: /sources/shannon-module_3.4.3.1/shannon.ko] Error 1


make output :

root:/sources/shannon-module_3.4.3.1$ make clean

make \

    -C /lib/modules/5.4.145-esos.prod/build \

    SHANNON_DRIVER_DIR=/sources/shannon-module_3.4.3.1 \

    M=/sources/shannon-module_3.4.3.1 \

    clean

make[1]: Entering directory '/sources/linux-5.4.145'

  CLEAN   /sources/shannon-module_3.4.3.1/Module.symvers

make[1]: Leaving directory '/sources/linux-5.4.145'

root:/sources/shannon-module_3.4.3.1$ 

root:/sources/shannon-module_3.4.3.1$ 

root:/sources/shannon-module_3.4.3.1$ 

root:/sources/shannon-module_3.4.3.1$ /tools/bin/make -f /sources/shannon-module_3.4.3.1/Makefile

/tools/bin/make \

    -C /lib/modules/5.4.145-esos.prod/build \

    SHANNON_DRIVER_DIR=/sources/shannon-module_3.4.3.1 \

    M=/sources/shannon-module_3.4.3.1 \

    CONFIG_BLK_DEV_SHANNON=m \

    CONFIG_SHANNON_EMU= \

    EXTRA_CFLAGS="-Wno-implicit-fallthrough -DSHANNON_RELEASE" \

    INSTALL_MOD_PATH= \

    modules

make[1]: Entering directory '/sources/linux-5.4.145'

  SHIPPED /sources/shannon-module_3.4.3.1/shannon_main.o

  SHIPPED /sources/shannon-module_3.4.3.1/shannon_ftl.o

  SHIPPED /sources/shannon-module_3.4.3.1/shannon_prefetch.o

  SHIPPED /sources/shannon-module_3.4.3.1/shannon_boot.o

  SHIPPED /sources/shannon-module_3.4.3.1/shannon_epilog.o

  SHIPPED /sources/shannon-module_3.4.3.1/shannon_err_handler.o

  SHIPPED /sources/shannon-module_3.4.3.1/shannon_ns.o

  SHIPPED /sources/shannon-module_3.4.3.1/shannon_ioctl.o

  SHIPPED /sources/shannon-module_3.4.3.1/shannon_scsi_cmd.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_kcore.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_time.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_workqueue.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_waitqueue.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_file.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_pci.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_scatter.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_device.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_block.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_sched.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_module_init.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_sysfs.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_scsi.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_cdev.o

  CC [M]  /sources/shannon-module_3.4.3.1/shannon_dma.o

  LD [M]  /sources/shannon-module_3.4.3.1/shannon.o

  Building modules, stage 2.

  MODPOST 1 modules

WARNING: could not find /sources/shannon-module_3.4.3.1/.shannon_main.o.cmd for /sources/shannon-module_3.4.3.1/shannon_main.o

ERROR: "shannon_spin_lock_init" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_write_unlock_bh" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_read_unlock_bh" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_rwlock_init" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_mutex_lock" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_spin_unlock_bh" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_mutex_trylock" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_mutex_init" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_spin_lock" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_spin_lock_bh" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_mutex_unlock" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_write_lock_bh" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_spin_lock_irqsave" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_spin_unlock_irqrestore" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_read_lock_bh" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

ERROR: "shannon_spin_unlock" [/sources/shannon-module_3.4.3.1/shannon.ko] undefined!

make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 1

make[1]: *** [Makefile:1647: modules] Error 2

make[1]: Leaving directory '/sources/linux-5.4.145'

make: *** [/sources/shannon-module_3.4.3.1/Makefile:46: modules] Error 2

  

Marc Smith

unread,
Apr 2, 2022, 6:14:21 PM4/2/22
to esos-...@googlegroups.com
Hi,

I don't have a straightforward answer... if you're in the chroot
environment, check your paths and kernel source directories specified.
Some of these third-party drivers use different make variables than
what's standard, so you may need to play a bit to get it built
correctly.

--Marc
> --
> You received this message because you are subscribed to the Google Groups "esos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to esos-users+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/esos-users/7458057d-5882-4645-b681-80f4320cd1d2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages