Skip to contentSkip to conversation

kernel-module-imx-gpu-viv:compaling error

RFC Refik Tuzaklı 4 participants 8 messages Jul 18, 2017 – Jul 19, 2017

lore
Share & tools
lore
#0 lore raw

In file included from /home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:56:0:
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:
In function ?gckOS_AllocateNonPagedMemory?:
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:121:65:
error: ?PAGE_CACHE_MASK? undeclared (first use in this function)
#define GetPageCount(size, offset) ((((size) + ((offset) &
~PAGE_CACHE_MASK)) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT)

                                                                 ^
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/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/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/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/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/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/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/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/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/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/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/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/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/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/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:
In function ?gckOS_MapPhysical?:
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:121:65:
error: ?PAGE_CACHE_MASK? undeclared (first use in this function)
#define GetPageCount(size, offset) ((((size) + ((offset) &
~PAGE_CACHE_MASK)) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT)

                                                                 ^
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:2660:24:
note: in expansion of macro ?GetPageCount?
             numPages = GetPageCount(PAGE_ALIGN(offset + Bytes), 0);
                        ^~~~~~~~~~~~

/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/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/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:2660:24:
note: in expansion of macro ?GetPageCount?

             numPages = GetPageCount(PAGE_ALIGN(offset + Bytes), 0);
                        ^~~~~~~~~~~~

/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/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/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:2660:24:
note: in expansion of macro ?GetPageCount?

             numPages = GetPageCount(PAGE_ALIGN(offset + Bytes), 0);
                        ^~~~~~~~~~~~

/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:
In function ?gckOS_AllocatePagedMemoryEx?:
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:121:65:
error: ?PAGE_CACHE_MASK? undeclared (first use in this function)
#define GetPageCount(size, offset) ((((size) + ((offset) &
~PAGE_CACHE_MASK)) + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT)

                                                                 ^
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:3646:16:
note: in expansion of macro ?GetPageCount?
     numPages = GetPageCount(bytes, 0);
                ^~~~~~~~~~~~

/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/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/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:3646:16:
note: in expansion of macro ?GetPageCount?

     numPages = GetPageCount(bytes, 0);
                ^~~~~~~~~~~~

/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/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/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:3646:16:
note: in expansion of macro ?GetPageCount?

     numPages = GetPageCount(bytes, 0);
                ^~~~~~~~~~~~
In file included from ./arch/arm/include/generated/asm/current.h:1:0,
                 from ./include/linux/wait.h:10,
                 from ./include/linux/mmzone.h:9,
                 from ./include/linux/gfp.h:5,
                 from ./include/linux/kmod.h:22,
                 from ./include/linux/module.h:13,
                 from

/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:61,
from
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:56:
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:
In function ?gckOS_MapUserMemory?:
./include/asm-generic/current.h:6:23: error: passing argument 1 of
?get_user_pages? makes integer from pointer without a cast
[-Werror=int-conversion]

 #define get_current() (current_thread_info()->task)
                       ^
./include/asm-generic/current.h:7:17: note: in expansion of macro
?get_current?
 #define current get_current()
                 ^~~~~~~~~~~

/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:4960:37:
note: in expansion of macro ?current?
result = get_user_pages(current,
^~~~~~~
In file included from /home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:63:0,
from
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:56:
./include/linux/mm.h:1308:6: note: expected ?long unsigned int? but argument
is of type ?struct task_struct *?
long get_user_pages(unsigned long start, unsigned long nr_pages,

      ^~~~~~~~~~~~~~
In file included from ./arch/arm/include/generated/asm/current.h:1:0,
                 from ./include/linux/wait.h:10,
                 from ./include/linux/mmzone.h:9,
                 from ./include/linux/gfp.h:5,
                 from ./include/linux/kmod.h:22,
                 from ./include/linux/module.h:13,
                 from

/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:61,
from
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:56:
./include/asm-generic/current.h:6:23: error: passing argument 2 of
?get_user_pages? makes integer from pointer without a cast
[-Werror=int-conversion]

 #define get_current() (current_thread_info()->task)
                       ^
./include/asm-generic/current.h:7:17: note: in expansion of macro
?get_current?
 #define current get_current()
                 ^~~~~~~~~~~
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:4961:21:
note: in expansion of macro ?current?
                     current->mm,
                     ^~~~~~~

In file included from /home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:63:0,
from
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:56:
./include/linux/mm.h:1308:6: note: expected ?long unsigned int? but argument
is of type ?struct mm_struct *?
long get_user_pages(unsigned long start, unsigned long nr_pages,

      ^~~~~~~~~~~~~~
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:4963:21:
error: passing argument 4 of ?get_user_page ? makes pointer from integer
without a cast [-Werror=int-conversion]
                     pageCount,
                     ^~~~~~~~~

In file included from /home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:63:0,
from
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:56:
./include/linux/mm.h:1308:6: note: expected ?struct page **? but argument is
of type ?gctSIZE_T {aka unsigned int}?
long get_user_pages(unsigned long start, unsigned long nr_pages,

      ^~~~~~~~~~~~~~
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:4964:21:
error: passing argument 5 of ?get_user_page ? makes pointer from integer
without a cast [-Werror=int-conversion]
                     1,
                     ^

In file included from /home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:63:0,
from
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:56:
./include/linux/mm.h:1308:6: note: expected ?struct vm_area_struct **? but
argument is of type ?int?
long get_user_pages(unsigned long start, unsigned long nr_pages,

      ^~~~~~~~~~~~~~

/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:4960:22:
error: too many arguments to function ?get_user_pages?
result = get_user_pages(current,
^~~~~~~~~~~~~~
In file included from /home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_linux.h:63:0,
from
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:56:
./include/linux/mm.h:1308:6: note: declared here
long get_user_pages(unsigned long start, unsigned long nr_pages,

      ^~~~~~~~~~~~~~
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:4986:25:
error: implicit declaration of function ?page_cache_release?
[-Werror=implicit-function-declaration]
                         page_cache_release(pages[i]);
                         ^~~~~~~~~~~~~~~~~~

/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:
In function ?gckOS_CacheClean?:
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:5871:5:
error: implicit declaration of function ?dmac_map_area?
[-Werror=implicit-function-declaration]

     dmac_map_area(Logical, Bytes, DMA_TO_DEVICE);
     ^~~~~~~~~~~~~

/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:
In function ?gckOS_SetSignalVG?:
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:7258:18:
error: implicit declaration of function ?send_sig_info?
[-Werror=implicit-function-declaration]

         result = send_sig_info(48, &info, userTask);
                  ^~~~~~~~~~~~~

/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:
In function ?gckOS_WaitSignal?:
/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.c:7417:17:
error: implicit declaration of function ?signal_pending?
[-Werror=implicit-function-declaration]

             if (signal_pending(current))
                 ^~~~~~~~~~~~~~

cc1: all warnings being treated as errors
make[2]: *** [/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src] Error 2
make[1]: Leaving directory
`/home/bsm/Desktop/buildroot/output/build/linux-4.11.9'
make: ***
[/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/.stamp_built]
Error 2

--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/RFC-kernel-module-imx-gpu-viv-compaling-error-tp171162.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.

#1 lore raw

Hello,

Quoted 11 lines · Refik Tuzakl?

[/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src] Error 2
make[1]: Leaving directory
`/home/bsm/Desktop/buildroot/output/build/linux-4.11.9'
make: ***
[/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/.stamp_built]
Error 2

Please indicate the Buildroot version being used, and provide the Buildroot .config file that allows to reproduce this issue.

But I believe the answer is pretty simple: you're trying to build the i.MX GPU Vivante kernel module against Linux 4.11, and the i.MX GPU Vivante kernel module hasn't been modified to work with such a recent Linux kernel.

I believe the i.MX GPU Vivante kernel module is most likely designed to work with the Linux 4.1 based BSP provided by Freescale/NXP.

I've added Fabio and Gary in Cc, who know much more about Freescale/NXP i.MX6 support.

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

Hi Refik,

Quoted 19 lines · Thomas Petazzoni

Hello,

Quoted 11 lines · Refik Tuzakl?

[/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src/hal/os/linux/kernel/gc_hal_kernel_os.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/kernel-module-imx-gpu-viv-src] Error 2
make[1]: Leaving directory
`/home/bsm/Desktop/buildroot/output/build/linux-4.11.9'
make: ***
[/home/bsm/Desktop/buildroot/output/build/kernel-module-imx-gpu-viv-bfa78b095a892705a09afe9514fc5d236b3124d2/.stamp_built]
Error 2

Please indicate the Buildroot version being used, and provide the Buildroot .config file that allows to reproduce this issue.

Quoted 7 lines

But I believe the answer is pretty simple: you're trying to build the i.MX GPU Vivante kernel module against Linux 4.11, and the i.MX GPU Vivante kernel module hasn't been modified to work with such a recent Linux kernel.

I believe the i.MX GPU Vivante kernel module is most likely designed to work with the Linux 4.1 based BSP provided by Freescale/NXP.

Thomas is correct, this GPU module is only meant for NXP-based kernels from 3.10.x to 4.1.x.

For mainline GPU support, please use the Etnaviv module which is part of the mainline kernel.

Regards,
Gary

#3 lore raw

Hello,

Quoted 8 lines · Gary Bisson
Quoted 8 lines

Please indicate the Buildroot version being used, and provide the Buildroot .config file that allows to reproduce this issue.

But I believe the answer is pretty simple: you're trying to build the i.MX GPU Vivante kernel module against Linux 4.11, and the i.MX GPU Vivante kernel module hasn't been modified to work with such a recent Linux kernel.

Quoted 5 lines
Quoted 2 lines

I believe the i.MX GPU Vivante kernel module is most likely designed to work with the Linux 4.1 based BSP provided by Freescale/NXP.

Thomas is correct, this GPU module is only meant for NXP-based kernels from 3.10.x to 4.1.x.

Perhaps we should update the Config.in help text of the kernel-module-imx-gpu-viv package to indicate this ?

I know people don't read the help text, but at least when it exists, we can point them to the help text, and the fact that they should read the documentation :-)

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw

Thomas Petazzoni-2 wrote

Quoted 21 lines

Hello,

Quoted 8 lines · Gary Bisson
Quoted 8 lines

Please indicate the Buildroot version being used, and provide the Buildroot .config file that allows to reproduce this issue.

But I believe the answer is pretty simple: you're trying to build the i.MX GPU Vivante kernel module against Linux 4.11, and the i.MX GPU Vivante kernel module hasn't been modified to work with such a recent Linux kernel.

Quoted 5 lines
Quoted 2 lines

I believe the i.MX GPU Vivante kernel module is most likely designed to work with the Linux 4.1 based BSP provided by Freescale/NXP.

Thomas is correct, this GPU module is only meant for NXP-based kernels from 3.10.x to 4.1.x.

Perhaps we should update the Config.in help text of the kernel-module-imx-gpu-viv package to indicate this ?

Quoted 17 lines

I know people don't read the help text, but at least when it exists, we can point them to the help text, and the fact that they should read the documentation :-)

Best regards,

Thomas

Signature · 9 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list

buildroot@

http://lists.busybox.net/mailman/listinfo/buildroot

Thanks for your quick replay,

how can use Linux 4.1 based BSP provided by Freescale/NXP on buildroot. Is it enought to change kernel version to 4.1 under kernel and toolchain in Buildroot or should it be more specific like 4.1.15 as in Freescale website?

regards

--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/RFC-kernel-module-imx-gpu-viv-compaling-error-tp171162p171182.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.

#5 lore raw

Hi Refik,

Quoted 38 lines · Refik Tuzakl?

Thomas Petazzoni-2 wrote

Quoted 36 lines

Hello,

Quoted 8 lines · Gary Bisson
Quoted 8 lines

Please indicate the Buildroot version being used, and provide the Buildroot .config file that allows to reproduce this issue.

But I believe the answer is pretty simple: you're trying to build the i.MX GPU Vivante kernel module against Linux 4.11, and the i.MX GPU Vivante kernel module hasn't been modified to work with such a recent Linux kernel.

Quoted 5 lines
Quoted 2 lines

I believe the i.MX GPU Vivante kernel module is most likely designed to work with the Linux 4.1 based BSP provided by Freescale/NXP.

Thomas is correct, this GPU module is only meant for NXP-based kernels from 3.10.x to 4.1.x.

Perhaps we should update the Config.in help text of the kernel-module-imx-gpu-viv package to indicate this ?

I know people don't read the help text, but at least when it exists, we can point them to the help text, and the fact that they should read the documentation :-)

Best regards,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
_______________________________________________
buildroot mailing list

buildroot@

Quoted 8 lines
Quoted 1 line

http://lists.busybox.net/mailman/listinfo/buildroot

Thanks for your quick replay,

how can use Linux 4.1 based BSP provided by Freescale/NXP on buildroot. Is it enought to change kernel version to 4.1 under kernel and toolchain in Buildroot or should it be more specific like 4.1.15 as in Freescale website?

It depends on the platform you are using, but the standard NXP/Freescale linux kernel can be found here:
http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git/

You can have a look at the Freescale SABRE Smart Device Buildroot configuration:
https://git.buildroot.net/buildroot/tree/configs/freescale_imx6qsabresd_defconfig#n20

Regards,
Gary

#6 lore raw
In reply to Refik Tuzaklı

Hi Refik,

Quoted 3 lines · Refik Tuzakl?

how can use Linux 4.1 based BSP provided by Freescale/NXP on buildroot. Is it enought to change kernel version to 4.1 under kernel and toolchain in Buildroot or should it be more specific like 4.1.15 as in Freescale website?

You can do:

make clean
make freescale_imx6qsabresd_defconfig
make

and this will build an image based on NXP 4.1.15 kernel.

You will still need to manually add the Vivante GPU packages though.

Another alternative is to use a mainline kernel with Etnaviv.

Here is a defconfig patch I sent that installs the graphic packages to work with a mainline kernel:
http://lists.busybox.net/pipermail/buildroot/2017-June/195135.html

Thomas,

Any chances to getting imx6q-sabresd_qt5_defconfig accepted? It will make users' life easier :-)

Thanks

#7 lore raw

Hi,

I applied your suggestion and create a config file according to freescale_imx6qsabresd_defconfig.
at my first try, BR2_LINUX_KERNEL_DEFCONFIG [=imx_v7]. there was no error while compiling however,
after flashing imx6 with MFG tool, u-boot does not boot kernel.

I shifted to BR2_LINUX_KERNEL_DEFCONFIG [=imx_v7_mfg]. It still compiling. You can find config file below. what can make the error that u-boot can not boot kernel.

should I compile u-boot, too?

Thomas,

At least, I read your help text :)

Fabian,

I support your idea, I promise if you add imx6q-sabresd_qt5_defconfig, I will be one to try it and I will write a comment about it.

defconfig.defconfig
<http://buildroot-busybox.2317881.n4.nabble.com/file/n171268/defconfig.defconfig>

--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/RFC-kernel-module-imx-gpu-viv-compaling-error-tp171162p171268.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.