Posts

Showing posts from 2016

create new config fragment without menuconfig

Just to be sure against what we'll make the config fragment: bitbake linux-yocto-custom -c menuconfig Where is the .config file used? bitbake linux-yocto-custom -e | grep ^WORKDIR= which returns e.g.: WORKDIR="/tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/custom-jethro-multi-v7-core-image-minimal-sato-sdk-toolchain/build/build/tmp/work/multi_v7_ml-poky-linux-gnueabi/linux-yocto-custom/4.4.1-custom-ml-debug+gitAUTOINC+f1ab5eafa3-r0" ls -lah /tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/custom-jethro-multi-v7-core-image-minimal-sato-sdk-toolchain/build/build/tmp/work/multi_v7_ml-poky-linux-gnueabi/linux-yocto-custom/4.4.1-custom-ml-debug+gitAUTOINC+f1ab5eafa3-r0/linux-multi_v7_ml-debug-build/ total 476K drwxr-xr-x 3 genius genius 4.0K Feb 15 17:45 ./ drwxr-xr-x 19 genius genius 4.0K Feb 15 17:46 ../ -rw-r--r-- 1 genius genius 150K Feb 15 17:45 .config <-- that's it -rw-r--r-- 1 genius genius 150K Feb 15 17:45 .config.old -rw-

extract kernel config

You might want the kernel .config, which was composed out of defconfig + configuration fragments to work outside of the YP. bitbake linux-yocto-custom -c menuconfig make sure that is what you want (has the proper config options set) Save it e.g. under /tmp/4.4.kernel.config

kernel configuration fragments

bitbake linux-yocto-custom -c menuconfig   make whatever adjustments here   bitbake linux-yocto-custom -c diffconfig   this spits out a configuration fragment   add it to your kernel configuration fragments   make sure it made it into your kernel configuration:   bitbake linux-yocto-custom -c cleansstate bitbake linux-yocto-custom -c menuconfig   Now you should find your new configuration settings in menuconfig  

create kernel patch

git add arch/arm/boot/dts/zedboard-zynq7-res1.dts git commit -m "attempt with fdt/leds" git format-patch -1 ls 0001-attempt-with-fdt-leds.patch