Hi,
I've followed the instuructions in Freescale Yocto Project User's Guide to build kernel.
I used the following configurations.
DISTRO=fsl-imx-x11 MACHINE=imx6qsabreauto source fsl-setup-release.sh -b bld-x11
bitbake fsl-image-gui
Now, I want to modify .config and xxx.dts file of Linux kernel.
I've searched for .config files and there are some .config files in the build directory.
Which .config file and .dts files should I modify, and what is the command I should run (bitbake?) to re-build with the modified configurations (i.e. .config and xxx.dts)?
Hi,
You can build the DTB blob use the tool provided by the kernel directly. After the first build of Yocto, for the imx6qsabresd, you can find the kernel in <build dir>/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.14.28-r0/git/, change directory to it and then :
./scripts/dtc/dtc -I dts -O dtb -o ./devicetree.dtb <file path of dts file you want to compile>
Then you can get the devcietree.dtb.
also, you can get the meta-toolchain..
Task #7 - Create the toolchain
Task #8 - Build kernel manually using created toolchain
And after having it configured you can just do :
make <pallform>.dts in the Linux directory source code.
regards
Hi Bio_TICFSL,
Thank you for your advise.
I ended up with using "bitbake meta-toolchain"
$ bitbake meta-toolchain
$ tmp/deploy/sdk/fsl-imx-x11-glibc-x86_64-meta-toolchain-cortexa9hf-vfp-neon-toolchain-4.1.15-1.2.0.sh
$ sudo apt-get install lzop # I needed to install for making zImage.
$ cd ${Linux_directory}
$ source ${tool_chain_directory}/environment-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
$ make zImage dtbs
Regards,
Masa