Add new kernel driver in yocto

vinod kumar vinodmaverickr007 at gmail.com
Thu Aug 28 04:41:47 UTC 2014


Hi,

I am using yocto for wandboard. I have written one I2C driver for my I2C
device.

 *The procedure which I followed to add and build the driver in yocto is as*
:

1) Make the entry of my driver in Makefile and Kconfig in build directory.
2) Replace the defconfig (present in source directory) with .config
(present in build directory).
3) Add the driver information in device tree file.

Then I run the *bitbake linux-imx -c compile -f* to compile the kernel and
face some errors. So is there any way (like to add as a patch *(patch of
conf file and driver source code*) in some .bbappend file or something
equivalent to it) through which I can add and compile my driver successfully

*But during compilation I faced the below errors:*
























































*vinod at vinod:~/vvdn/VSTI_PoSX/yocto_src/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/git$
bitbake linux-imx -c compile -fLoading cache: 100%
|############################################################################################|
ETA:  00:00:00Loaded 1820 entries from dependency cache.NOTE: Resolving any
missing task queue dependenciesBuild Configuration:BB_VERSION        =
"1.22.0"BUILD_SYS         = "x86_64-linux" NATIVELSBSTRING   =
"Ubuntu-12.04"TARGET_SYS        = "arm-poky-linux-gnueabi"MACHINE
= "imx6qsabresd"DISTRO            = "poky"DISTRO_VERSION    = "1.6.1"
TUNE_FEATURES     = "armv7a vfp neon callconvention-hard
cortexa9"TARGET_FPU        = "vfp-neon"meta              meta-yocto
= "(nobranch):8e05d5e3fe04face623c4f9fb08b12f13c22edab" meta-oe           =
"(nobranch):ee24939c4c70b63a9fb7e93a58889a3231d3d367"meta-fsl-arm      =
"(nobranch):d91871446d6baee8397522c4fa10d45985aa8645"meta-fsl-arm-extra =
"(nobranch):456c27085a70bb1385a4c2e28ba80ac74d6f533e" meta-fsl-demos    =
"(nobranch):27fdb2f2642ecd55d5633bde880dd4c37acd0d42"NOTE: Preparing
runqueueNOTE: Tainting hash to force rebuild of task
/home/vinod/vvdn/VSTI_PoSX/yocto_src/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.10.17.bb
<http://linux-imx_3.10.17.bb>, do_compileNOTE: Executing SetScene
TasksNOTE: Executing RunQueue TasksERROR: Function failed: do_compile (log
file is located at
/home/vinod/vvdn/VSTI_PoSX/yocto_src/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/temp/log.do_compile.28793)ERROR:
Logfile of failure stored in:
/home/vinod/vvdn/VSTI_PoSX/yocto_src/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/temp/log.do_compile.28793Log
data follows:| DEBUG: Executing shell function do_compile| NOTE: make -j 4
uImage CC=arm-poky-linux-gnueabi-gcc  -mno-thumb-interwork -marm
LD=arm-poky-linux-gnueabi-ld.bfd   LOADADDR=0x10008000|   HOSTCC
scripts/basic/fixdep|   HOSTCC  scripts/kconfig/conf.o|   HOSTCC
scripts/kconfig/zconf.tab.o|   HOSTLD  scripts/kconfig/conf|
scripts/kconfig/conf --silentoldconfig Kconfig | ***| *** Configuration
file ".config" not found!| ***| *** Please run some configurator (e.g.
"make oldconfig" or| *** "make menuconfig" or "make xconfig").| *** |
make[2]: *** [silentoldconfig] Error 1| make[1]: *** [silentoldconfig]
Error 2| make: *** No rule to make target `include/config/auto.conf',
needed by `include/config/kernel.release'.  Stop.| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.| ERROR: Function failed:
do_compile (log file is located at
/home/vinod/vvdn/VSTI_PoSX/yocto_src/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/temp/log.do_compile.28793)ERROR:
Task 4
(/home/vinod/vvdn/VSTI_PoSX/yocto_src/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.10.17.bb
<http://linux-imx_3.10.17.bb>, do_compile) failed with exit code '1'NOTE:
Tasks Summary: Attempted 247 tasks of which 246 didn't need to be rerun and
1 failed.Summary: 1 task failed:
/home/vinod/vvdn/VSTI_PoSX/yocto_src/sources/meta-fsl-arm/recipes-kernel/linux/linux-imx_3.10.17.bb
<http://linux-imx_3.10.17.bb>, do_compile Summary: There was 1 ERROR
message shown, returning a non-zero exit code.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20140828/26fe5c4f/attachment.html>


More information about the kernel-team mailing list