Doh, I just realized you're working with a 3.8.x kernel . . . These
instructions above I believe will only work with 4.x, as that's what the
sourced in this repo are meant for. However, I bet the device tree source
files are exactly the same. But unsure if dt-bindings are different or not.

On Tue, Dec 15, 2015 at 4:45 AM, William Hermans <[email protected]> wrote:

> Well I was attempting to create a *.dtbo file from the source, but here
> this works:
>
> $ git clone https://github.com/RobertCNelson/dtb-rebuilder.git
> Cloning into 'dtb-rebuilder'...
> remote: Counting objects: 6357, done.
> remote: Compressing objects: 100% (12/12), done.
> remote: Total 6357 (delta 3), reused 0 (delta 0), pack-reused 6343
> Receiving objects: 100% (6357/6357), 4.38 MiB | 344 KiB/s, done.
> Resolving deltas: 100% (2563/2563), done.
>
> $ cd dtb-rebuilder/
>
> $ make src/arm/am335x-bonegreen.dtb
>   DTC     src/arm/am335x-bonegreen.dtb
>
> $ cp src/arm/am335x-bonegreen.dtb .
>
> $ ls
> Bindings  COPYING  Makefile  README  *am335x-bonegreen.dtb*
> dtc-overlay.sh  include  scripts  src
>
> On Tue, Dec 15, 2015 at 4:26 AM, William Hermans <[email protected]>
> wrote:
>
>> strace output
>>
>> http://pastebin.com/8ype90wD
>>
>> I'm looking into it.
>>
>> On Tue, Dec 15, 2015 at 4:16 AM, William Hermans <[email protected]>
>> wrote:
>>
>>> *One additional note: That git has the *bonegreen* dts file in it
>>>> already. So git cloning that git, and running dtc in the src/arm/ directory
>>>> for that file should just work.*
>>>>
>>>
>>> Following these line of reasoning, I get the same error. hmmm give me a
>>> minute.
>>>
>>> On Tue, Dec 15, 2015 at 4:01 AM, William Hermans <[email protected]>
>>> wrote:
>>>
>>>> One additional note: That git has the *bonegreen* dts file in it
>>>> already. So git cloning that git, and running dtc in the src/arm/ directory
>>>> for that file should just work.
>>>>
>>>> On Tue, Dec 15, 2015 at 3:58 AM, William Hermans <[email protected]>
>>>> wrote:
>>>>
>>>>> 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.

Reply via email to