Jeff,

Looks like modpost was not built yet. Did you build the kernel first or
at least ran

bitbake virtual/kernel -c kernel_configme

:rjs

On 1/3/20 9:39 AM, Jeff Schuler wrote:
> Hello!
>
> I was not sure who or what to reach out to with this question, so I'm
> hoping this lands in the hands of the correct person. I've been using
> Yocto for many years for our ARM embedded system builds, and have
> recently upgraded our kernel version from 4.18 to 5.1 (details below).
> I am working on patching now, and getting our out-of-tree modules
> ported to build with the 5.1 kernel source. I'm able to build the
> kernel using bitbake virtual/kernel, and boot the kernel + dtb no
> problem, however, my kernel's out-of-tree modules are having trouble
> building for reasons that I cannot seem to figure out. I have a very
> simple kernel module, called a10id-kmod that I'm trying to build.
> Forgive me if this is not the correct information to send over, this
> is my first time seeking support and am not sure what to send, happy
> to send any additional logs needed. The bitbake output shows the
> following: 
>
>     bitbake -c compile a10id-kmod
>     Loading cache: 100%
>     
> |#############################################################################################################################################################################|
>     ETA:  00:00:00
>     Loaded 2352 entries from dependency cache.
>     NOTE: Resolving any missing task queue dependencies
>
>     Build Configuration:
>     BB_VERSION        = "1.28.0"
>     BUILD_SYS         = "x86_64-linux"
>     NATIVELSBSTRING   = "Ubuntu-14.04"
>     TARGET_SYS        = "arm-poky-linux-gnueabi"
>     MACHINE           = "sensor-chevy"
>     DISTRO            = "poky"
>     DISTRO_VERSION    = "2.0.3"
>     TUNE_FEATURES     = "arm armv7a vfp neon"
>     TARGET_FPU        = "vfp-neon"
>     meta              
>     meta-yocto        
>     meta-yocto-bsp    = "HEAD:e08994ce953ff5ab49b260e7763a40bfad4285ca"
>     meta-oe          
>     meta-python      
>     meta-filesystems  
>     meta-networking   = "HEAD:2ea8d7f54a061e902657c4f8ea1f7f7c25c6c4e1"
>     meta-custom     =
>     "schuler/a200-kernel-5.1:71b47d97e2412192ba5027090513b457a8c0e835"
>
>     NOTE: Preparing RunQueue
>     NOTE: Executing SetScene Tasks
>     NOTE: Executing RunQueue Tasks
>     ERROR: oe_runmake failed
>     ERROR: Function failed: do_compile (log file is located at
>     
> /home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work/sensor_chevy-poky-linux-gnueabi/a10id-kmod/0.1.1-r0/temp/log.do_compile.12208)
>     ERROR: Logfile of failure stored in:
>     
> /home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work/sensor_chevy-poky-linux-gnueabi/a10id-kmod/0.1.1-r0/temp/log.do_compile.12208
>     Log data follows:
>     | DEBUG: Executing shell function do_compile
>     | NOTE: make -j 27 -e MAKEFLAGS=
>     
> KERNEL_SRC=/home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work-shared/sensor-chevy/kernel-source
>     
> KERNEL_PATH=/home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work-shared/sensor-chevy/kernel-source
>     KERNEL_VERSION=5.1.0 CC=arm-poky-linux-gnueabi-gcc   -fuse-ld=bfd
>     LD=arm-poky-linux-gnueabi-ld.bfd   AR=arm-poky-linux-gnueabi-ar
>      
> O=/home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work-shared/sensor-chevy/kernel-build-artifacts
>     | make -C
>     
> /home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work-shared/sensor-chevy/kernel-source
>     
> M=/home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work/sensor_chevy-poky-linux-gnueabi/a10id-kmod/0.1.1-r0/git/soc/platforms/sensor-common/host/a10_id
>      modules
>     | make[1]: Entering directory
>     
> `/home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work-shared/sensor-chevy/kernel-source'
>     | make[2]: Entering directory
>     
> `/home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work-shared/sensor-chevy/kernel-build-artifacts'
>     |   CC [M]
>      
> /home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work/sensor_chevy-poky-linux-gnueabi/a10id-kmod/0.1.1-r0/git/soc/platforms/sensor-common/host/a10_id/a10-id.o
>     *|   Building modules, stage 2.
>     |   MODPOST 1 modules
>     | /bin/sh: 1: scripts/mod/modpost: not found
>     | make[3]: *** [__modpost] Error 127
>     | make[2]: *** [modules] Error 2*
>     | make[2]: Leaving directory
>     
> `/home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work-shared/sensor-chevy/kernel-build-artifacts'
>     | make[1]: *** [sub-make] Error 2
>     | make[1]: Leaving directory
>     
> `/home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work-shared/sensor-chevy/kernel-source'
>     | make: *** [all] Error 2
>     | ERROR: oe_runmake failed
>     | ERROR: Function failed: do_compile (log file is located at
>     
> /home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/builds/sensor-chevy/tmp/work/sensor_chevy-poky-linux-gnueabi/a10id-kmod/0.1.1-r0/temp/log.do_compile.12208)
>     ERROR: Task 5
>     
> (/home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/meta-custom/recipes-kernel/a10id-kmod/a10id-kmod_0.1.1.bb
>     <http://a10id-kmod_0.1.1.bb/>, do_compile) failed with exit code '1'
>     NOTE: Tasks Summary: Attempted 261 tasks of which 252 didn't need
>     to be rerun and 1 failed.
>
>     Summary: 1 task failed:
>      
>     
> /home/jschuler/bn-bsp/host/build/yocto/poky-jethro-2.0/meta-custom/recipes-kernel/a10id-kmod/a10id-kmod_0.1.1.bb
>     <http://a10id-kmod_0.1.1.bb/>, do_compile
>     Summary: There were 2 ERROR messages shown, returning a non-zero
>     exit code.
>
>
> I'm using the jethro poky branch,
> commit e08994ce953ff5ab49b260e7763a40bfad4285ca and meta-openembedded
> branch jethro as well, commit 2ea8d7f54a061e902657c4f8ea1f7f7c25c6c4e1
>
> When building with the 4.18 kernel, this .ko module builds just
> fine...and doesn't have this scripts/mod/modpost not found issue.
>
> Here's some more info if it helps. These are the relevant kernel
> module recipe files:
>
>     
> jschuler@kuro:~/bn-bsp/host/build/yocto/poky-jethro-2.0/meta-custom/recipes-kernel/a10id-kmod$
>     cat a10id-kmod.inc
>     SUMMARY = "A Linux kernel module for A10ID reading"
>     HOMEPAGE = "https://google.com <https://google.com/>"
>     LICENSE = "MIT & GPLv2"
>
>     inherit module
>     inherit no-mirror
>
>     SRC_URI =
>     "git://g...@github.com/MyOrganization/bn-bsp.git;protocol=ssh
>     <http://g...@github.com/MyOrganization/bn-bsp.git;protocol=ssh>"
>
>     S = "${WORKDIR}/git/soc/platforms/sensor-common/host/a10_id"
>     LIC_FILES_CHKSUM =
>     
> "file://${S}/a10-id.c;beginline=1;endline=21;md5=75828e2af878241ad612f8a8ad1310f9"
>
>     COMPATIBLE_MACHINE = "(sensor-adi|sensor-chevy)"
>     
> jschuler@kuro:~/bn-bsp/host/build/yocto/poky-jethro-2.0/meta-custom/recipes-kernel/a10id-kmod$
>     cat a10id-kmod_0.1.1.bb <http://a10id-kmod_0.1.1.bb/>
>     require a10id-kmod.inc
>     SRCREV = "58076f4e91376df74da7509cc397b71b084f77a4"
>
>
> And the kernel recipe:
>
>     
> jschuler@kuro:~/bn-bsp/host/build/yocto/poky-jethro-2.0/meta-custom/recipes-kernel/linux$
>     cat linux-socfpga_5.1.bb <http://linux-socfpga_5.1.bb/>
>     require recipes-kernel/linux/linux-socfpga.inc
>
>     ### Branch socfpga-5.1 GITSHA CHECKSUM
>     LIC_FILES_CHKSUM =
>     "file://${S}/COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
>
>     ### Tied to socfpga-5.1 at this  GITSHA:
>     SOCFPGA_KERNEL_BRANCH ?= "socfpga-${PV}"
>     SRCREV ?= "5c21be71d13b64bc4cce9b1bd8411d41d15b1a6a"
>
>     SRC_URI = "\
>        
>     
> git://github.com/altera-opensource/linux-socfpga.git;protocol=https;branch=${SOCFPGA_KERNEL_BRANCH}
>     
> <http://github.com/altera-opensource/linux-socfpga.git;protocol=https;branch=$%7BSOCFPGA_KERNEL_BRANCH%7D>
>  \
>         file://${MACHINE}/defconfig \
>         file://${MACHINE}/${DTS_FILE} \
>     "
>
>
> Can anyone advise as to what might be the issue? Just being pointed in
> the correct direction would be a major help to me!
>
> HAPPY NEW YEAR :-)
>
> Cheers,
> J
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
>
> View/Reply Online (#47848): 
> https://lists.yoctoproject.org/g/yocto/message/47848
> Mute This Topic: https://lists.yoctoproject.org/mt/69402554/3617932
> Group Owner: yocto+ow...@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
> [rudolf.str...@ibeeto.com]
> -=-=-=-=-=-=-=-=-=-=-=-

-- 
-----
Rudolf J Streif
CEO/CTO ibeeto
+1.855.442.3386 x700

Attachment: signature.asc
Description: OpenPGP digital signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#47849): https://lists.yoctoproject.org/g/yocto/message/47849
Mute This Topic: https://lists.yoctoproject.org/mt/69402554/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to