First,Create my own image with yocto.
https://github.com/AjanthaB/Building-a-Yocto-image-for-Galileo-Gen-2-bord GitHub - AjanthaB/Building-a-Yocto-image-for-Galileo-Gen-2-bord: Building a Yocto image for Galileo Gen 2 bord. And ins…
here is build galileo yocto project ways.
1.don't use root permission,exit root
2.after source ./oe-init-build-env xx_build （no iot-devkit-init-build-env）
you might need to edit xx-build/conf/bblayers.conf, add these config in it:
3.you also need to cp repo-ext/meta-openembedded to over old meta-openembedded in meta-clanton_v188.8.131.52,
because there is meta-python in new meta-openembedded
after that you can run bitbake command.
......waiting ........(serval hours)
finally,you can run your zbImage,and then,you also can develop you driver, make ... insmod... rmmod... in you system on galileo
https://software.intel.com/en-us/node/611867 Developing a Kernel Driver Without Building it into the Gateway Operating System | Intel® Software
For more complete information about compiler optimizations, see our Optimization Notice.