si476x in built driver compilation error yocto

cancel
Showing results for 
Search instead for 
Did you mean: 

si476x in built driver compilation error yocto

60 Views
Contributor I

Hello, I am working with Yocto BSP 4.19.35_1.1.0 version with iMX8M MINI-VAR board from variscite.
I tried to enable SI476x support from menuconfig option.

Steps i followed as below-
bitbake -c menuconfig linux-variscite
               Device driver -> Sound card support -> Advanced Linux Sound Architecture -> ALSA for soc audio support                      -> soc audio for freescale cpus ->soc audio support for i.MX boards with si47x (m for modularizes feature)

saved compile configuration.
bitbake -c savedefconfig linux-variscite
bitbake linux-variscite


After the last step i get the error as below.
........................................................................................................................................................................................
ERROR: linux-variscite-4.19.35-r0 do_compile_kernelmodules: oe_runmake failed
ERROR: linux-variscite-4.19.35-r0 do_compile_kernelmodules: Function failed: do_compile_kernelmodules (log file is located at /home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/temp/log.do_compile_kernelmodules.9154)
ERROR: Logfile of failure stored in: /home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/temp/log.do_compile_kernelmodules.9154
Log data follows:
| DEBUG: Executing shell function do_compile_kernelmodules
| NOTE: make HOSTCC=gcc  -isystem/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/recipe-sysroot-native/usr/lib                         -L/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/md/Radio_project/var-imx8mm/build-var/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 HOSTCPP=gcc  -E ARCH=arm64 -C /home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/build -j 4 modules CC=aarch64-fslc-linux-gcc   -fuse-ld=bfd -fmacro-prefix-map=/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0=/usr/src/debug/linux-variscite/4.19.35-r0                      -fdebug-prefix-map=/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0=/usr/src/debug/linux-variscite/4.19.35-r0                      -fdebug-prefix-map=/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/recipe-sysroot=                      -fdebug-prefix-map=/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/recipe-sysroot-native=  -fdebug-prefix-map=/home/md/Radio_project/var-imx8mm/build-var/tmp/work-shared/imx8mm-var-dart/kernel-source=/usr/src/kernel   LD=aarch64-fslc-linux-ld.bfd   LOADADDR=20008000
| make: Entering directory '/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/build'
|   GEN     ./Makefile
| scripts/kconfig/conf  --syncconfig Kconfig
|   GEN     ./Makefile
|   Using /home/md/Radio_project/var-imx8mm/build-var/tmp/work-shared/imx8mm-var-dart/kernel-source as source for kernel
|   CC      scripts/mod/empty.o
|   CC      scripts/mod/devicetable-offsets.s
|   MKELF   scripts/mod/elfconfig.h
|   HOSTCC  scripts/mod/sumversion.o
|   HOSTCC  scripts/mod/modpost.o
|   HOSTCC  scripts/mod/file2alias.o
|   HOSTLD  scripts/mod/modpost
|   CALL    /home/md/Radio_project/var-imx8mm/build-var/tmp/work-shared/imx8mm-var-dart/kernel-source/scripts/checksyscalls.sh
|   Building modules, stage 2.
|   MODPOST 331 modules
| ERROR: "si476x_core_is_powered_up" [sound/soc/codecs/snd-soc-si476x.ko] undefined!
| ERROR: "si476x_core_set_power_state" [sound/soc/codecs/snd-soc-si476x.ko] undefined!
| /home/md/Radio_project/var-imx8mm/build-var/tmp/work-shared/imx8mm-var-dart/kernel-source/scripts/Makefile.modpost:92: recipe for target '__modpost' failed
| make[3]: *** [__modpost] Error 1
| /home/md/Radio_project/var-imx8mm/build-var/tmp/work-shared/imx8mm-var-dart/kernel-source/Makefile:1235: recipe for target 'modules' failed
| make[2]: *** [modules] Error 2
| Makefile:146: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| Makefile:24: recipe for target '__sub-make' failed
| make: *** [__sub-make] Error 2
| make: Leaving directory '/home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/build'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile_kernelmodules (log file is located at /home/md/Radio_project/var-imx8mm/build-var/tmp/work/imx8mm_var_dart-fslc-linux/linux-variscite/4.19.35-r0/temp/log.do_compile_kernelmodules.9154)
ERROR: Task (/home/md/Radio_project/var-imx8mm/sources/meta-variscite-imx/recipes-kernel/linux/linux-variscite_4.19.35.bb:do_compile_kernelmodules) failed with exit code '1'
NOTE: Tasks Summary: Attempted 443 tasks of which 439 didn't need to be rerun and 1 failed.
NOTE: Writing buildhistory

Summary: 1 task failed:
  /home/md/Radio_project/var-imx8mm/sources/meta-variscite-imx/recipes-kernel/linux/linux-variscite_4.19.35.bb:do_compile_kernelmodules
Summary: There were 4 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
...................................................................................................................................................................................................


Can you guide me on the procedure, whether it is correct or not.? Am i missing some step/configuration.?

Labels (1)
0 Kudos
2 Replies

4 Views
NXP TechSupport
NXP TechSupport

Hello Malay,

One can look at linux tuner drivers documentation

https://kernel.readthedocs.io/en/latest/media/v4l-drivers/tuners.html 

and Porting Guide included in NXP Linux documentation

i.MX Software | NXP 

Regards

0 Kudos

4 Views
Contributor I

Hello,

Thank you for your response.

I have seen this post, but this doesn't help me for compiling in-built driver SI476x chip.

I might be missing some steps for this compilation, but not able to identify.

Please provide some help on this.

0 Kudos