Tool/software: Linux
Hi everywhere,
I try to apply the SDK_Kernel_Configuration from Linux Kernel Users Guide,AM3352-SOM-EVB.
My product is the AM3352-SOM-EVB described by this both wiki:
And my toolchain and SDK are downloaded from AM335x Linux SDK Individual Components § PROCESSOR-SDK-LINUX-AM335X Product downloads:
- Standalone Linaro Toolchain - Linaro GCC 6.2.1 2016.11 hard-float toolchain
- AM335x Linux SDK BSP Source Code
My issue is that I try to compile am335x-evm.dtb into am335x-evm.dts, but this error append:
$ dtc -I dts -O dtb -o am335x-evm.dtb am335x-evm.dts Error: am335x-evm.dts:10.1-9 syntax error FATAL ERROR: Unable to parse input tree
How to solve this?
The dtc version used is 1.4.6.
My procedure is:
# [Linux Kernel Users Guide](processors.wiki.ti.com/.../Linux_Kernel_Users_Guide) ## 2 Getting the Kernel Source Code AM335x Linux SDK Individual Components; [PROCESSOR-SDK-LINUX-AM335X 04_03_00_05](software-dl.ti.com/.../index_FDS.html) * [Standalone Linaro Toolchain - Linaro GCC 6.2.1 2016.11 hard-float toolchain](releases.linaro.org/.../gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz) * [AM335x Linux SDK BSP Source Code](software-dl.ti.com/.../am335x-evm-linux-sdk-src-04.03.00.05.tar.xz) ```bash curl -OL releases.linaro.org/.../gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz curl -OL software-dl.ti.com/.../am335x-evm-linux-sdk-src-04.03.00.05.tar.xz tar xvf gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz tar xvf am335x-evm-linux-sdk-src-04.03.00.05.tar.xz rm -v gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz am335x-evm-linux-sdk-src-04.03.00.05.tar.xz ``` ## 4 Compiler ```bash export PATH=$(pwd)/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin:$PATH ``` ## 5 Cleaning the Kernel Sources ```bash cd board-support/linux-4.9.69+gitAUTOINC+9ce43c71ae-g9ce43c71ae make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean ``` ## 6 Configuring the Kernel ### SDK Kernel Configuration ```bash make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am335x-evm_defconfig ``` ```bash ti_config_fragments/defconfig_builder.sh -t ti_sdk_am3x_release export ARCH=arm make ti_sdk_am3x_release_defconfig mv .config arch/arm/configs/tisdk_am3x-evm_defconfig ``` ## 7 Customizing the Configuration ```bash make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- ti_sdk_am3x_release_defconfig #make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig ``` ### Compiling the Kernel ```bash make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage ``` ### Compiling the Device Tree Binaries ```bash make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x-evm.dtb cp arch/arm/boot/dts/am335x-evm.dtb .. cd - ```