- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have got kernel-v5.4/v4.14 version code of the Murata WIFI BT Modeule(CYW43012) driver, But I can not merge v5.4/v4.14 version driver code into my 4-9 kernel.
It always have a lots of errors while building kernel.
Cypress Linux WiFi Driver Release (FMAC) [2020-06-25] --- kernel v5.4
Cypress Linux WiFi Driver Release (FMAC) [2018-09-28] --- kernel v4.14
Would you help give me a hand?
Thank you.
Solved! Go to Solution.
- Tags:
- cyw43012
- lbee59b1lv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If it is an Android kernel, you can use this driver package https://community.cypress.com/docs/DOC-21539 and if it is a linux driver, you can use this latest driver package https://community.cypress.com/docs/DOC-21490. If you still run into issues, please let us know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please provide the error logs that you are observing? Which host processor and toolchain is being used? Which steps are being followed to build the kernel?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your reply.
I tried to follow the steps in README in cypress-fmac-v4.14.52-2018_0928 but failed. still have lots of error while building. detailed as below.:
name@name:~/code/android_p/v5.4.18-backports$ make KLIB=$MY_KERNEL KLIB_BUILD=$MY_KERNEL defconfig-brcmfmac
make[2]: 'conf' is up to date.
#
# configuration written to .config
#
#### build completed successfully ####
name@name:~/code/android_p/v5.4.18-backports$ make KLIB=$MY_KERNEL KLIB_BUILD=$MY_KERNEL modules
make[4]: 'conf' is up to date.
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
CC
In file included from ./arch/x86/include/asm/pgtable_types.h:288:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:58,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./include/asm-generic/pgtable-nopud.h:15:0: error: "PUD_SHIFT" redefined [-Werror]
#define PUD_SHIFT PGDIR_SHIFT
^
In file included from ./arch/x86/include/asm/pgtable_types.h:240:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:58,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./arch/x86/include/asm/pgtable_64_types.h:34:0: note: this is the location of the previous definition
#define PUD_SHIFT 30
^
In file included from ./arch/x86/include/asm/pgtable_types.h:288:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:58,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./include/asm-generic/pgtable-nopud.h:16:0: error: "PTRS_PER_PUD" redefined [-Werror]
#define PTRS_PER_PUD 1
^
In file included from ./arch/x86/include/asm/pgtable_types.h:240:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:58,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./arch/x86/include/asm/pgtable_64_types.h:35:0: note: this is the location of the previous definition
#define PTRS_PER_PUD 512
^
In file included from ./arch/x86/include/asm/pgtable_types.h:288:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:58,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./include/asm-generic/pgtable-nopud.h:17:0: error: "PUD_SIZE" redefined [-Werror]
#define PUD_SIZE (1UL << PUD_SHIFT)
^
In file included from ./arch/x86/include/asm/pgtable_types.h:240:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:58,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./arch/x86/include/asm/pgtable_64_types.h:51:0: note: this is the location of the previous definition
#define PUD_SIZE (_AC(1, UL) << PUD_SHIFT)
^
In file included from ./arch/x86/include/asm/pgtable_types.h:288:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:58,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./include/asm-generic/pgtable-nopud.h:18:0: error: "PUD_MASK" redefined [-Werror]
#define PUD_MASK (~(PUD_SIZE-1))
^
In file included from ./arch/x86/include/asm/pgtable_types.h:240:0,
from ./arch/x86/include/asm/processor.h:18,
from ./arch/x86/include/asm/cpufeature.h:4,
from ./arch/x86/include/asm/thread_info.h:52,
from ./include/linux/thread_info.h:58,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./arch/x86/include/asm/pgtable_64_types.h:52:0: note: this is the location of the previous definition
#define PUD_MASK (~(PUD_SIZE - 1))
^
In file included from /home/code/android_p/v5.4.18-backports/include/linux/list.h:8:0,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/list.h:3,
from ./include/linux/module.h:9,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./arch/x86/include/asm/processor.h: In function ‘load_cr3’:
./arch/x86/include/asm/page_32_types.h:16:32: error: ‘CONFIG_PAGE_OFFSETUL’ undeclared (first use in this function)
#define __PAGE_OFFSET_BASE _AC(CONFIG_PAGE_OFFSET, UL)
^
./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
#define __AC(X,Y) (X##Y)
^
./arch/x86/include/asm/page_32_types.h:16:28: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET_BASE _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_32_types.h:17:24: note: in expansion of macro ‘__PAGE_OFFSET_BASE’
#define __PAGE_OFFSET __PAGE_OFFSET_BASE
^
./arch/x86/include/asm/page_types.h:35:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:8:39: note: in expansion of macro ‘PAGE_OFFSET’
#define __phys_addr_nodebug(x) ((x) - PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:12:25: note: in expansion of macro ‘__phys_addr_nodebug’
#define __phys_addr(x) __phys_addr_nodebug(x)
^
./arch/x86/include/asm/page.h:41:18: note: in expansion of macro ‘__phys_addr’
#define __pa(x) __phys_addr((unsigned long)(x))
^
./arch/x86/include/asm/processor.h:211:12: note: in expansion of macro ‘__pa’
write_cr3(__pa(pgdir));
^
./arch/x86/include/asm/page_32_types.h:16:32: note: each undeclared identifier is reported only once for each function it appears in
#define __PAGE_OFFSET_BASE _AC(CONFIG_PAGE_OFFSET, UL)
^
./include/uapi/linux/const.h:19:20: note: in definition of macro ‘__AC’
#define __AC(X,Y) (X##Y)
^
./arch/x86/include/asm/page_32_types.h:16:28: note: in expansion of macro ‘_AC’
#define __PAGE_OFFSET_BASE _AC(CONFIG_PAGE_OFFSET, UL)
^
./arch/x86/include/asm/page_32_types.h:17:24: note: in expansion of macro ‘__PAGE_OFFSET_BASE’
#define __PAGE_OFFSET __PAGE_OFFSET_BASE
^
./arch/x86/include/asm/page_types.h:35:38: note: in expansion of macro ‘__PAGE_OFFSET’
#define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:8:39: note: in expansion of macro ‘PAGE_OFFSET’
#define __phys_addr_nodebug(x) ((x) - PAGE_OFFSET)
^
./arch/x86/include/asm/page_32.h:12:25: note: in expansion of macro ‘__phys_addr_nodebug’
#define __phys_addr(x) __phys_addr_nodebug(x)
^
./arch/x86/include/asm/page.h:41:18: note: in expansion of macro ‘__phys_addr’
#define __pa(x) __phys_addr((unsigned long)(x))
^
./arch/x86/include/asm/processor.h:211:12: note: in expansion of macro ‘__pa’
write_cr3(__pa(pgdir));
^
In file included from ./include/linux/cache.h:5:0,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/cache.h:4,
from ./include/linux/printk.h:8,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/printk.h:5,
from ./include/linux/kernel.h:13,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/kernel.h:3,
from /home/code/android_p/v5.4.18-backports/include/linux/list.h:9,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/list.h:3,
from ./include/linux/module.h:9,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./arch/x86/include/asm/processor.h: At top level:
./arch/x86/include/asm/cache.h:7:25: error: ‘CONFIG_X86_L1_CACHE_SHIFT’ undeclared here (not in a function)
#define L1_CACHE_SHIFT (CONFIG_X86_L1_CACHE_SHIFT)
^
./arch/x86/include/asm/cache.h:8:30: note: in expansion of macro ‘L1_CACHE_SHIFT’
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
^
./include/linux/cache.h:12:25: note: in expansion of macro ‘L1_CACHE_BYTES’
#define SMP_CACHE_BYTES L1_CACHE_BYTES
^
./include/linux/cache.h:34:58: note: in expansion of macro ‘SMP_CACHE_BYTES’
#define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
^
./arch/x86/include/asm/processor.h:275:27: note: in expansion of macro ‘____cacheline_aligned’
} __attribute__((packed)) ____cacheline_aligned;
^
In file included from ./arch/x86/include/asm/preempt.h:5:0,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./arch/x86/include/asm/processor.h: In function ‘current_top_of_stack’:
./arch/x86/include/asm/processor.h:495:30: error: ‘cpu_current_top_of_stack’ undeclared (first use in this function)
return this_cpu_read_stable(cpu_current_top_of_stack);
^
./arch/x86/include/asm/percpu.h:213:9: note: in definition of macro ‘percpu_stable_op’
typeof(var) pfo_ret__; \
^
./arch/x86/include/asm/processor.h:495:9: note: in expansion of macro ‘this_cpu_read_stable’
return this_cpu_read_stable(cpu_current_top_of_stack);
^
In file included from ./arch/x86/include/asm/preempt.h:6:0,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./include/linux/thread_info.h: At top level:
./include/linux/thread_info.h:113:19: error: redefinition of ‘arch_within_stack_frames’
static inline int arch_within_stack_frames(const void * const stack,
^
In file included from ./include/linux/thread_info.h:58:0,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./arch/x86/include/asm/thread_info.h:175:19: note: previous definition of ‘arch_within_stack_frames’ was here
static inline int arch_within_stack_frames(const void * const stack,
^
In file included from ./include/linux/spinlock.h:280:0,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./include/linux/spinlock_api_smp.h: In function ‘__raw_spin_lock_irqsave’:
./include/linux/spinlock_api_smp.h:112:2: error: implicit declaration of function ‘exynos_ss_spinlock’ [-Werror=implicit-function-declaration]
exynos_ss_spinlock(lock, 1);
^
In file included from ./include/linux/cache.h:5:0,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/cache.h:4,
from ./include/linux/printk.h:8,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/printk.h:5,
from ./include/linux/kernel.h:13,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/kernel.h:3,
from /home/code/android_p/v5.4.18-backports/include/linux/list.h:9,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/list.h:3,
from ./include/linux/module.h:9,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./include/linux/mmzone.h: At top level:
./arch/x86/include/asm/cache.h:12:31: error: ‘CONFIG_X86_INTERNODE_CACHE_SHIFT’ undeclared here (not in a function)
#define INTERNODE_CACHE_SHIFT CONFIG_X86_INTERNODE_CACHE_SHIFT
^
./include/linux/cache.h:71:35: note: in expansion of macro ‘INTERNODE_CACHE_SHIFT’
__attribute__((__aligned__(1 << (INTERNODE_CACHE_SHIFT))))
^
./include/linux/mmzone.h:106:3: note: in expansion of macro ‘____cacheline_internodealigned_in_smp’
} ____cacheline_internodealigned_in_smp;
^
In file included from ./include/linux/elf.h:4:0,
from ./include/linux/module.h:15,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./arch/x86/include/asm/elf.h: In function ‘elf_common_init’:
./arch/x86/include/asm/elf.h:179:3: error: ‘struct thread_struct’ has no member named ‘fsbase’
t->fsbase = t->gsbase = 0;
^
./arch/x86/include/asm/elf.h:179:15: error: ‘struct thread_struct’ has no member named ‘gsbase’
t->fsbase = t->gsbase = 0;
^
In file included from ./arch/x86/include/asm/preempt.h:6:0,
from ./include/linux/preempt.h:59,
from ./include/linux/spinlock.h:50,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/spinlock.h:3,
from ./include/linux/seqlock.h:35,
from ./include/linux/time.h:5,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/time.h:3,
from ./include/linux/stat.h:18,
from ./include/linux/module.h:10,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./arch/x86/include/asm/elf.h: In function ‘mmap_is_ia32’:
./include/linux/thread_info.h:108:22: error: implicit declaration of function ‘current_thread_info’ [-Werror=implicit-function-declaration]
test_ti_thread_flag(current_thread_info(), flag)
^
./arch/x86/include/asm/elf.h:351:3: note: in expansion of macro ‘test_thread_flag’
test_thread_flag(TIF_ADDR32));
^
./include/linux/thread_info.h:108:22: error: passing argument 1 of ‘test_ti_thread_flag’ makes pointer from integer without a cast [-Werror=int-conversion]
test_ti_thread_flag(current_thread_info(), flag)
^
./arch/x86/include/asm/elf.h:351:3: note: in expansion of macro ‘test_thread_flag’
test_thread_flag(TIF_ADDR32));
^
./include/linux/thread_info.h:94:19: note: expected ‘struct thread_info *’ but argument is of type ‘int’
static inline int test_ti_thread_flag(struct thread_info *ti, int flag)
^
In file included from ./include/linux/module.h:25:0,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./arch/x86/include/asm/module.h: At top level:
./arch/x86/include/asm/module.h:57:2: error: #error unknown processor family
#error unknown processor family
^
In file included from /home/code/android_p/v5.4.18-backports/backport-include/linux/module.h:3:0,
from /home/code/android_p/v5.4.18-backports/compat/main.c:1:
./include/linux/module.h:400:27: error: field ‘arch’ has incomplete type
struct mod_arch_specific arch;
^
In file included from ./include/linux/sched.h:32:0,
from ./include/linux/ratelimit.h:5,
from ./include/linux/device.h:27,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/device.h:4,
from ./include/linux/miscdevice.h:6,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/miscdevice.h:3,
from ./include/linux/pm_qos.h:9,
from /home/code/android_p/v5.4.18-backports/backport-include/linux/pm_qos.h:7,
from /home/code/android_p/v5.4.18-backports/compat/main.c:3:
./include/linux/cputime.h:4:25: fatal error: asm/cputime.h: No such file or directory
cc1: all warnings being treated as errors
compilation terminated.
scripts/Makefile.build:293: recipe for target '/home/code/android_p/v5.4.18-backports/compat/main.o' failed
make[5]: *** [/home/code/android_p/v5.4.18-backports/compat/main.o] Error 1
scripts/Makefile.build:544: recipe for target '/home/code/android_p/v5.4.18-backports/compat' failed
make[4]: *** [/home/code/android_p/v5.4.18-backports/compat] Error 2
Makefile:1494: recipe for target '_module_/home/code/android_p/v5.4.18-backports' failed
make[3]: *** [_module_/home/code/android_p/v5.4.18-backports] Error 2
Makefile.build:13: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
Makefile.real:88: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
Makefile:40: recipe for target 'modules' failed
make: *** [modules] Error 2
#### failed to build some targets (3 seconds) ####
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
From the logs "name@name:~/code/android_p/v5.4.18-backports", it appears that you are using Android kernel. That could explain the errors. Can you please confirm if this is being compiled on Linux kernel?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If it is an Android kernel, you can use this driver package https://community.cypress.com/docs/DOC-21539 and if it is a linux driver, you can use this latest driver package https://community.cypress.com/docs/DOC-21490. If you still run into issues, please let us know.