Hi,
I am stuck trying to get SPI going on mangoH green for WP7504.
When I try to compile spisvc, I am getting __modpost failure.
/legato/packages/legato.framework.16.10.3.wp85-wp750x-201705031608/resources/legato/drivers/spisvc# make ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi-make -C /opt/swi/y17-ext/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel M=/legato/packages/legato.framework.16.10.3.wp85-wp750x-201705031608/resources/legato/drivers/spisvc modules
make[1]: Entering directory ‘/opt/swi/y17-ext/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel’
Building modules, stage 2.
MODPOST 1 modules
FATAL: section header offset=11258999068426292 in file ‘/legato/packages/legato.framework.16.10.3.wp85-wp750x-201705031608/resources/legato/drivers/spisvc/spisvc.o’ is bigger than filesize=59440
/opt/swi/y17-ext/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel/scripts/Makefile.modpost:90: recipe for target ‘__modpost’ failed
make[2]: *** [__modpost] Error 1
Makefile:1279: recipe for target ‘modules’ failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory ‘/opt/swi/y17-ext/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel’
Makefile:11: recipe for target ‘all’ failed
make: *** [all] Error 2
I have seen the post
I have also read
- http://legato.io/legato-docs/latest/howToSPI.html
- legato.io/legato-docs/latest/yoctoOutofTreeKernelModule.html#howToAddKernelDriver_makeKernel
Anyone can let me know how to resolve this?
Thanks!!