Jump to content

daten

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by daten

  1. 2 minutes ago, zador.blood.stained said:

    - device tree compiler (dtc) should be recent enough - either compile from here or use one from kernel headers

    - you need to tell dtc that you are compiling an overlay (add -@ command line parameter)

    The missing '-@' wasn't the issue, as I tried with and without. With the dtc from my linux-git clone it worked.

    Didn't expect my Debian (testing) version of dtc being the issue here - thanks for pointing me there!

    For reference, that's the version which caused me above stated trouble:

     

    ii  device-tree-compiler                          1.4.5-3                              amd64        Device Tree Compiler for Flat Device Trees

  2. Hey,

     

    I don't even manage to compile the DTS files.

    For example: https://github.com/armbian/sunxi-DT-overlays/blob/master/examples/spi-ads7846.dts

     

    $ dtc -I dts -O dtb -o foo.dtbo foo.dts
    foo.dtbo: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
    foo.dtbo: Warning (unit_address_vs_reg): Node /fragment@1 has a unit name, but no reg property
    foo.dtbo: Warning (gpios_property): Property 'pendown-gpio', cell 2 is not a phandle reference in /fragment@1/__overlay__/ads7846@0
    foo.dtbo: Warning (gpios_property): Could not get phandle node for /fragment@1/__overlay__/ads7846@0:pendown-gpio(cell 2)
    dtc: livetree.c:521: get_node_by_phandle: Assertion `(phandle != 0) && (phandle != -1)' failed.
    Aborted

    The warnings don't even seem to be the issue - suppressing (-q) them and forcing compilation even with errors (-f) still results in the assert. Any hint?

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines