All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [RFC] kernel-module-imx-gpu-viv:compaling error
@ 2017-07-18  6:12 Refik Tuzaklı
  2017-07-18  8:07 ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Refik Tuzaklı @ 2017-07-18  6:12 UTC (permalink / raw)
  To: buildroot

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [RFC] kernel-module-imx-gpu-viv:compaling error
  2017-07-18  6:12 [Buildroot] [RFC] kernel-module-imx-gpu-viv:compaling error Refik Tuzaklı
@ 2017-07-18  8:07 ` Thomas Petazzoni
  2017-07-18  8:33   ` Gary Bisson
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2017-07-18  8:07 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 17 Jul 2017 23:12:51 -0700 (PDT), Refik Tuzakl? wrote:

> [/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
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [RFC] kernel-module-imx-gpu-viv:compaling error
  2017-07-18  8:07 ` Thomas Petazzoni
@ 2017-07-18  8:33   ` Gary Bisson
  2017-07-18  9:02     ` Thomas Petazzoni
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Bisson @ 2017-07-18  8:33 UTC (permalink / raw)
  To: buildroot

Hi Refik,

On Tue, Jul 18, 2017 at 10:07 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Hello,
>
> On Mon, 17 Jul 2017 23:12:51 -0700 (PDT), Refik Tuzakl? wrote:
>
>> [/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.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [RFC] kernel-module-imx-gpu-viv:compaling error
  2017-07-18  8:33   ` Gary Bisson
@ 2017-07-18  9:02     ` Thomas Petazzoni
  2017-07-18 10:51       ` Refik Tuzaklı
  0 siblings, 1 reply; 8+ messages in thread
From: Thomas Petazzoni @ 2017-07-18  9:02 UTC (permalink / raw)
  To: buildroot

Hello,

On Tue, 18 Jul 2017 10:33:18 +0200, Gary Bisson wrote:

> > 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.  
> 
> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [RFC] kernel-module-imx-gpu-viv:compaling error
  2017-07-18  9:02     ` Thomas Petazzoni
@ 2017-07-18 10:51       ` Refik Tuzaklı
  2017-07-18 12:38         ` Gary Bisson
  2017-07-18 12:50         ` Fabio Estevam
  0 siblings, 2 replies; 8+ messages in thread
From: Refik Tuzaklı @ 2017-07-18 10:51 UTC (permalink / raw)
  To: buildroot

Thomas Petazzoni-2 wrote
> Hello,
> 
> On Tue, 18 Jul 2017 10:33:18 +0200, Gary Bisson wrote:
> 
>> > 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.  
>> 
>> 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@

> 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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [RFC] kernel-module-imx-gpu-viv:compaling error
  2017-07-18 10:51       ` Refik Tuzaklı
@ 2017-07-18 12:38         ` Gary Bisson
  2017-07-18 12:50         ` Fabio Estevam
  1 sibling, 0 replies; 8+ messages in thread
From: Gary Bisson @ 2017-07-18 12:38 UTC (permalink / raw)
  To: buildroot

Hi Refik,

On Tue, Jul 18, 2017 at 12:51 PM, Refik Tuzakl? <tuzaklirefik@gmail.com> wrote:
> Thomas Petazzoni-2 wrote
>> Hello,
>>
>> On Tue, 18 Jul 2017 10:33:18 +0200, Gary Bisson wrote:
>>
>>> > 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.
>>>
>>> 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@
>
>> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [RFC] kernel-module-imx-gpu-viv:compaling error
  2017-07-18 10:51       ` Refik Tuzaklı
  2017-07-18 12:38         ` Gary Bisson
@ 2017-07-18 12:50         ` Fabio Estevam
  2017-07-19 12:16           ` Refik Tuzaklı
  1 sibling, 1 reply; 8+ messages in thread
From: Fabio Estevam @ 2017-07-18 12:50 UTC (permalink / raw)
  To: buildroot

Hi Refik,

On Tue, Jul 18, 2017 at 7:51 AM, Refik Tuzakl? <tuzaklirefik@gmail.com> wrote:

> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Buildroot] [RFC] kernel-module-imx-gpu-viv:compaling error
  2017-07-18 12:50         ` Fabio Estevam
@ 2017-07-19 12:16           ` Refik Tuzaklı
  0 siblings, 0 replies; 8+ messages in thread
From: Refik Tuzaklı @ 2017-07-19 12:16 UTC (permalink / raw)
  To: buildroot

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-07-19 12:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-18  6:12 [Buildroot] [RFC] kernel-module-imx-gpu-viv:compaling error Refik Tuzaklı
2017-07-18  8:07 ` Thomas Petazzoni
2017-07-18  8:33   ` Gary Bisson
2017-07-18  9:02     ` Thomas Petazzoni
2017-07-18 10:51       ` Refik Tuzaklı
2017-07-18 12:38         ` Gary Bisson
2017-07-18 12:50         ` Fabio Estevam
2017-07-19 12:16           ` Refik Tuzaklı

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.