does this help?
Hi @jyijyi ,
I remove protocol=https;
and next I got other error in building kernel driver, the log is below:
| CC drivers/input/mouse/logips2pp.o
| /home/test/workspace/yocto/build_bin/tmp/work-shared/swi-mdm9x28-wp/kernel-source/drivers/misc/sierra_ks_if.c:45:10: fatal error: ../sierra/api/ssmemudefs.h: No such file or directory
| #include <../sierra/api/ssmemudefs.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| /home/test/workspace/yocto/build_bin/tmp/work-shared/swi-mdm9x28-wp/kernel-source/scripts/Makefile.build:257: recipe for target 'drivers/misc/sierra_ks_if.o' failed
| make[4]: *** [drivers/misc/sierra_ks_if.o] Error 1
| /home/test/workspace/yocto/build_bin/tmp/work-shared/swi-mdm9x28-wp/kernel-source/scripts/Makefile.build:402: recipe for target 'drivers/misc' failed
| make[3]: *** [drivers/misc] Error 2
| make[3]: *** Waiting for unfinished jobs....
| CC drivers/input/mouse/trackpoint.o
| CC lib/kobject.o
| CC drivers/input/mouse/cypress_ps2.o
| CC drivers/of/device.o
| CC lib/kobject_uevent.o
| CC lib/md5.o
| CC drivers/of/platform.o
| CC lib/plist.o
| LD drivers/input/mouse/psmouse.o
| LD drivers/input/mouse/built-in.o
| LD drivers/input/input-core.o
| LD drivers/input/built-in.o
| CC drivers/of/fdt.o
| CC lib/proportions.o
| CC lib/radix-tree.o
| CC lib/ratelimit.o
| CC lib/rbtree.o
| CC lib/sha1.o
| CC drivers/of/fdt_address.o
| CC lib/show_mem.o
| CC drivers/of/address.o
| CC lib/string.o
| CC lib/timerqueue.o
| CC lib/vsprintf.o
| GEN lib/crc32table.h
| CC lib/crc32.o
| CC drivers/of/irq.o
| CC drivers/of/of_reserved_mem.o
| CC drivers/of/of_batterydata.o
| LD lib/built-in.o
| AR lib/lib.a
| LD drivers/of/built-in.o
| /home/test/workspace/yocto/build_bin/tmp/work-shared/swi-mdm9x28-wp/kernel-source/Makefile:969: recipe for target 'drivers' failed
| make[2]: *** [drivers] Error 2
| Makefile:145: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| ERROR: oe_runmake failed
| Makefile:24: recipe for target '__sub-make' failed
| make: *** [__sub-make] Error 2
| WARNING: /home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/temp/run.do_compile.5261:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/temp/log.do_compile.5261)
ERROR: Task (/home/test/workspace/yocto/meta-swi/meta-swi-mdm9x28/recipes-kernel/linux/linux-quic_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2828 tasks of which 2140 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/test/workspace/yocto/meta-swi/meta-swi-mdm9x28/recipes-kernel/linux/linux-quic_git.bb:do_compile
Summary: There were 3 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Makefile:300: recipe for target 'image_bin' failed
make: *** [image_bin] Error 1
I think I cannot find “ssmemudefs.h”.
I found ssmemudefs.h in my source, but the path didn’t correct.
./build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/kernel/arch/arm/mach-msm/sierra/api/ssmemudefs.h
./build_bin/tmp/work-shared/swi-mdm9x28-wp/kernel-source/arch/arm/mach-msm/sierra/api/ssmemudefs.h
./kernel/arch/arm/mach-msm/sierra/api/ssmemudefs.h
How do I fix it?
i have never seen such error before, do you still see this after “make clean” and “make”?
Hi @jyijyi ,
Yes, I try it two times in R16.0.1.
Should I try it again ?
BTW, Can I use this source code and put it into WP76xx?
maybe you can change “sierra_ks_if.c” to make it find the “ssmemudefs.h” file.
Hi @jyijyi ,
Is it possible that warning is responsible?
Hi @jyijyi ,
I don’t know where is my current working path!
So I have no idea to modify it.
didn’t it already show this?
/home/test/workspace/yocto/build_bin/tmp/work-shared/swi-mdm9x28-wp/kernel-source/drivers/misc/sierra_ks_if.c:45:10: fatal error: ../sierra/api/ssmemudefs.h: No such file or directory
| #include <../sierra/api/ssmemudefs.h>
Hi @jyijyi ,
I think the path didn’t the current path.
Hi @jyijyi ,
Is it possible that warning is responsible?
WARNING: Unable to get checksum for linux-quic SRC_URI entry sierra: [Errno 2] No such file or directory: '/home/test/workspace/yocto/kernel/arch/arm/mach-msm/sierra/sierra'
Hi @jyijyi ,
Do you know where can I modify it?
make -j 4 HOSTCC=gcc -isystem/home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/recipe-sysroot-native/usr/include -O2 -pipe -L/home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/recipe-sysroot-native/usr/lib -L/home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/recipe-sysroot-native/lib -Wl,-rpath-link,/home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/recipe-sysroot-native/lib -Wl,-rpath,/home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/test/workspace/yocto/build_bin/tmp/sysroots-uninative/i686-linux/lib/ld-linux.so.2 HOSTCPP=gcc -E zImage CC=/home/test/workspace/yocto/kernel/scripts/gcc-wrapper.py arm-poky-linux-gnueabi-gcc -fuse-ld=bfd -fdebug-prefix-map=/home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1=/usr/src/debug/linux-quic/3.18.140-r1 -fdebug-prefix-map=/home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/recipe-sysroot= -fdebug-prefix-map=/home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/recipe-sysroot-native= -fdebug-prefix-map=/home/test/workspace/yocto/build_bin/tmp/work-shared/swi-mdm9x28-wp/kernel-source=/usr/src/kernel -ffile-prefix-map=/home/test/workspace/yocto/build_bin/tmp/work-shared/swi-mdm9x28-wp/kernel-source=/kernel-source/ LD=arm-poky-linux-gnueabi-ld.bfd O=/home/test/workspace/yocto/build_bin/tmp/work/swi_mdm9x28_wp-poky-linux-gnueabi/linux-quic/3.18.140-r1/build
do you have this file?
/home/test/workspace/yocto/build_bin/tmp/work-shared/swi-mdm9x28-wp/kernel-source/drivers/misc/sierra_ks_if.c
I rebuild now so I don’t have result.
Hi @jyijyi ,
Yes, The file is in the path.
can you change the #include path in the file to get passed with the ERROR?
Hi @jyijyi ,
I have no idea to modify it, Do you have any suggestion ?
didn’t it say it cannot find the followings??
#include <…/sierra/api/ssmemudefs.h>
Hi @jyijyi ,
Yes, but I have no idea to modify include path.
no idea, you need to make some trial such as using absolute path
Hi @jyijyi ,
I think I modify the path “…/…/arch/arm/mach-msm/sierra/api/ssmemudefs.h” can worked
but I got other error
| arch/arm/kernel/built-in.o: In function `.LANCHOR0':
| arch/arm/kernel/hyp-stub.o:(.data+0x58): undefined reference to `arch_idle'
| drivers/built-in.o: In function `sierra_ks_if_get_keystore_keys_callback':
| clk-conf.c:(.text+0x30288): undefined reference to `ssmem_keys_get'
| clk-conf.c:(.text+0x302c4): undefined reference to `ssmem_keys_release'
| drivers/built-in.o: In function `of_batterydata_get_best_profile':
| clk-conf.c:(.text+0x57c08): undefined reference to `power_supply_get_by_name'
| /home/test/workspace/yocto/build_bin/tmp/work-shared/swi-mdm9x28-wp/kernel-source/Makefile:955: recipe for target 'vmlinux' failed
The error seems relate the “.h”.
I have no idea where are the functions “ssmem_keys_get” and “ssmem_keys_release”.