On 05/16/17 17:36, Greg Ercolano wrote:
> root@beaglebone:~/dtb-rebuilder# make
>   DTC     src/arm/am437x-gp-evm.dtb
> FATAL ERROR: Unrecognized check name "unit_address_vs_reg"                 <--
> Makefile:136: recipe for target 'src/arm/am437x-gp-evm.dtb' failed         <--
> make[1]: *** [src/arm/am437x-gp-evm.dtb] Error 1
> Makefile:84: recipe for target 'all_arm' failed
> make: *** [all_arm] Error 2
> 
>     Does anyone know the solution for that?

    Google searches weren't helping me solve that one, so I dug into
    the Makefile a bit.

    Short answer seems to be to change this line in the Makefile:

-DTC_FLAGS += -Wno-unit_address_vs_reg
+#DTC_FLAGS += -Wno-unit_address_vs_reg

    ..when I did that, it breezed through the build without errors.

    Will move onward to try to get an error free result.


DIGRESSION
==========

    Regarding figuring out how to solve the above, it was obvious 'make'
    wasn't showing the commands being used to build the targets, so I wanted
    to see what was going on when it failed.

    The Makefile comments indicate there's some kind of convention to keeping
    the noise of the build down, using two Makefile variables 'quiet' and 'Q'.

    I found I could get make to show the commands being executed by changing
    this section of the Makefile:

 ifeq ($(KBUILD_VERBOSE),1)
   quiet =
   Q =
 else
-  quiet=quiet_
-  Q = @
+  quiet=
+  Q =
 endif

     With that modification, running 'make' showed the full command
     being executed. So instead of just showing this:


        DTC     src/arm/am437x-gp-evm.dtb
        FATAL ERROR: Unrecognized check name "unit_address_vs_reg"


     ..it now showed the full commands being executed:


          make ARCH=arm all_arch
          cpp -Wp,-MD,src/arm/.am437x-gp-evm.dtb.d.pre.tmp -nostdinc -Iinclude 
-Isrc/arm -Itestcase-data -undef -D__DTS__ -x assembler-with-cpp -o 
src/arm/.am437x-gp-evm.dtb.dts.tmp src/arm/am437x-gp-evm.dts ; /usr/bin/dtc -O 
dtb -o src/arm/am437x-gp-evm.dtb -b 0 -@ -i src/arm -Wno-unit_address_vs_reg -d 
src/arm/.am437x-gp-evm.dtb.d.dtc.tmp src/arm/.am437x-gp-evm.dtb.dts.tmp ; cat 
src/arm/.am437x-gp-evm.dtb.d.pre.tmp src/arm/.am437x-gp-evm.dtb.d.dtc.tmp > 
src/arm/.am437x-gp-evm.dtb.d
          FATAL ERROR: Unrecognized check name "unit_address_vs_reg"


     There's actually three commands being run in one line there;
     cpp, dts, and cat. The 'dts' line is the one that failed:

          /usr/bin/dtc -O dtb -o src/arm/am437x-gp-evm.dtb -b 0 -@ -i src/arm 
-Wno-unit_address_vs_reg -d src/arm/.am437x-gp-evm.dtb.d.dtc.tmp 
src/arm/.am437x-gp-evm.dtb.dts.tmp

     ..and there's the "-Wno-unit_address_vs_reg" flag that dtc was
     complaining about.

     The man page for dtc doesn't describe a -W flag, but I'm assuming
     it's a compiler warning flag of some kind, perhaps like gcc's.

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/591BB3A1.5090305%40seriss.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to