AnsweredAssumed Answered

Yocto compile fail for machine "cubox-i", recipe kernel-module-imx-gpu-viv

Question asked by James Curran on Jul 7, 2017
Latest reply on Jul 18, 2017 by James Curran

Hello I am using yocto to build a distribution for the hummingboard (machine cubox-I). I am using Morty versions of freescale layers as follows:

Build Configuration:
BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "universal-4.8"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "cubox-i"
DISTRO            = "poky"
DISTRO_VERSION    = "2.2.1"
TUNE_FEATURES     = "arm armv7a vfp thumb neon       callconvention-hard       cortexa9"
TARGET_FPU        = "hard"
meta             
meta-poky        
meta-yocto-bsp    = "heads/origin/morty:924e576b8930fd2268d85f0b151e5f68a3c2afce"
meta-freescale    = "morty:fc804d29ee85d58e9bb66f7319e749b53e192457"
meta-freescale-3rdparty = "morty:d31308389508945bd4432a6f0213c27eacf6a1b8"
meta-mono         = "morty:b8e5da7138c61fb9ade87712a2fc28dc6283ab25"
meta-webserver   
meta-networking  
meta-python      
meta-oe           = "morty:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-cwlayer      = "heads/origin/morty:924e576b8930fd2268d85f0b151e5f68a3c2afce"
meta-swupdate     = "krogoth:712d4aee92ea3a23952a3e7fb812e5c4df7492ec"

 

However I get a compile error:

ERROR: Task (/home/james/poky/meta-freescale/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_5.0.11.p8.6+fslc.bb:do_compile) failed with exit code '1'

 

Here is a snippet from the fail log:

/home/james/poky/build/tmp/work/cubox_i-poky-linux-gnueabi/kernel-module-imx-gpu-viv/5.0.11.p8.6+fslc+gitAUTOINC+a05d9b23b9-r0/git/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:121:65: note: each undeclared identifier is reported only once for each function it appears in
 #define GetPageCount(size, offset)     ((((size) + ((offset) & ~PAGE_CACHE_MASK)) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT)
                                                                 ^
/home/james/poky/build/tmp/work/cubox_i-poky-linux-gnueabi/kernel-module-imx-gpu-viv/5.0.11.p8.6+fslc+gitAUTOINC+a05d9b23b9-r0/git/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:1602:16: note: in expansion of macro 'GetPageCount'
     numPages = GetPageCount(bytes, 0);
                ^~~~~~~~~~~~
/home/james/poky/build/tmp/work/cubox_i-poky-linux-gnueabi/kernel-module-imx-gpu-viv/5.0.11.p8.6+fslc+gitAUTOINC+a05d9b23b9-r0/git/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:121:85: error: 'PAGE_CACHE_SIZE' undeclared (first use in this function)
 #define GetPageCount(size, offset)     ((((size) + ((offset) & ~PAGE_CACHE_MASK)) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT)
                                                                                     ^
/home/james/poky/build/tmp/work/cubox_i-poky-linux-gnueabi/kernel-module-imx-gpu-viv/5.0.11.p8.6+fslc+gitAUTOINC+a05d9b23b9-r0/git/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:1602:16: note: in expansion of macro 'GetPageCount'
     numPages = GetPageCount(bytes, 0);
                ^~~~~~~~~~~~
/home/james/poky/build/tmp/work/cubox_i-poky-linux-gnueabi/kernel-module-imx-gpu-viv/5.0.11.p8.6+fslc+gitAUTOINC+a05d9b23b9-r0/git/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:121:109: error: 'PAGE_CACHE_SHIFT' undeclared (first use in this function)
 #define GetPageCount(size, offset)     ((((size) + ((offset) & ~PAGE_CACHE_MASK)) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT)
                                                                                                             ^
/home/james/poky/build/tmp/work/cubox_i-poky-linux-gnueabi/kernel-module-imx-gpu-viv/5.0.11.p8.6+fslc+gitAUTOINC+a05d9b23b9-r0/git/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/

 

 

Any idea how I can fix this?

Outcomes