Your problem is very likely that you do not have the files #include "am33xx.dtsi" #include "am335x-bone-common.dtsi"
In your path. I get the same error here: $ dtc -O dtb -o am335x-bonegreen.dtbo -b 0 -@ am335x-bonegreen.dts Error: am335x-bonegreen.dts:10.1-9 syntax error FATAL ERROR: Unable to parse input tree So, you missed a step somewhere. Which kernel version will the target be using ? This should be trivial to fix, but the only option I can think of offhand is git cloning https://github.com/RobertCNelson/device-tree-rebasing, and then placing your *bonegreen* dts file into the <base git>/src/arm/ directory, and compiling manually. As I have no idea which instructions you are following, and what the steps are. *OR* Perhaps placing am33xx.dtsi and am335x-bone-common.dtsi in the same directory as am335x-bonegreen.dts, and try again. I've never done this personally, but it should work. In fact, I think it makes more sense than the first option I mention above. With one caveat: I do not recall if either of these include files have further dependencies in this git tree. On Mon, Dec 14, 2015 at 10:26 PM, Keith Conger <[email protected]> wrote: > I'm trying to build a 3.8.13 kernel with the BBG patches from > http://www.seeedstudio.com/recipe/373-how-to-compile-beaglebone-green-linux-kernel.html > . > > I hit this error during the build: > > make[1]: Leaving directory > `/home/keithconger/Projects/bbbandroid-bluez/kernel' > make -C kernel ARCH=arm > CROSS_COMPILE=/home/keithconger/Projects/bbbandroid-bluez/prebuilts/gcc/linux-x86/arm/arm-gnueabihf-4.7/bin/arm-linux-gnueabihf- > dtbs > make[1]: Entering directory > `/home/keithconger/Projects/bbbandroid-bluez/kernel' > DTC arch/arm/boot/dts/am335x-bone.dtb > DTC arch/arm/boot/dts/am335x-boneblack.dtb > DTC arch/arm/boot/dts/am335x-bonegreen.dtb > Error: arch/arm/boot/dts/am335x-bonegreen.dts:45.15-16 syntax error > FATAL ERROR: Unable to parse input tree > make[2]: *** [arch/arm/boot/dts/am335x-bonegreen.dtb] Error 1 > make[2]: *** Waiting for unfinished jobs.... > make[1]: *** [dtbs] Error 2 > make[1]: Leaving directory > `/home/keithconger/Projects/bbbandroid-bluez/kernel' > make: *** [kernel_build] Error 2 > > Line 45 and 46 are: > 0x150 (PIN_INPUT | MUX_MODE1) /* spi0_sclk.uart2_rxd */ > 0x154 (PIN_OUTPUT | MUX_MODE1) /* spi0_d0.uart2_txd */ > > Anyone know how to resolve this? > > Thanks > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
