<DC-IRC> [Discord] <0adum> i have no clue what i did wrong here
<DC-IRC> [Discord] <srepac> `dtc -q -I dtb -O dts sun8i.dtb -o sun8i.dts`
<DC-IRC> [Discord] <srepac> ```
<DC-IRC> [Discord] <srepac> -q suppress warnings
<DC-IRC> [Discord] <srepac> -I input format (dts, dtb, fs)
<DC-IRC> [Discord] <srepac> -O output format (dts, dtb, asm)
<DC-IRC> [Discord] <srepac> -o <output file>
<DC-IRC> [Discord] <srepac> ```
<DC-IRC> [Discord] <0adum> i switched around the files with sun8i.dtb taking sun8i.dts's place
<DC-IRC> [Discord] <0adum> now i get an error saying:
<DC-IRC> [Discord] <0adum> ``FATAL ERROR: Blob has incorrect magic number``
<DC-IRC> [Discord] <0adum> i switched around the files in the command with sun8i.dtb taking sun8i.dts's place
<DC-IRC> [Discord] <johnthecoolingfan> What's teh full command you used?
<DC-IRC> [Discord] <johnthecoolingfan> What's the full command you used?
<DC-IRC> [Discord] <0adum> dtc -q -I dtb -O dts sun8i.dts -o sub8i.dtb
<DC-IRC> [Discord] <johnthecoolingfan> You put the output format as dts but use a dtb output file and vice versa.
<DC-IRC> [Discord] <johnthecoolingfan> Try using the command srepac sent
<DC-IRC> [Discord] <johnthecoolingfan> `dtc -q -I dtb -O dts sun8i.dtb -o sun8i.dts`
<DC-IRC> [Discord] <johnthecoolingfan> Or, if you want to compile dts into a dtb:
<DC-IRC> [Discord] <johnthecoolingfan> `dtc -q -I dts -O dtb sun8i.dts -o sun8i.dtb`
<DC-IRC> [Discord] <johnthecoolingfan> Swapping not just teh files, but format specifiers too
<DC-IRC> [Discord] <0adum> wait i think i got it
<DC-IRC> [Discord] <johnthecoolingfan> Swapping not just the files, but format specifiers too
<DC-IRC> [Discord] <0adum> i put ``-I dtb`` instead of ``-I dts``
<DC-IRC> [Discord] <0adum> same with the latter
<DC-IRC> [Discord] <0adum> yeah my intent was to compile a dts into a dtb
<DC-IRC> [Discord] <0adum> syntax error, as error that i got when i ran the command first time
<DC-IRC> [Discord] <johnthecoolingfan> Well, then I guess there is a syntax error
<DC-IRC> [Discord] <0adum> syntax error, same error that i got when i ran the command first time
<DC-IRC> [Discord] <johnthecoolingfan> Can you upload the file please?
<DC-IRC> [Discord] <0adum> one moment
<DC-IRC> [Discord] <johnthecoolingfan> Try adding `/dts-v1/;` on line 48
<DC-IRC> [Discord] <johnthecoolingfan> I'm not an expert on device tree syntax, but I can understand the compiler errors and compare to other device trees
<DC-IRC> [Discord] <0adum> idk if dts files are blessed in some way or if they can be edited with nano
<DC-IRC> [Discord] <0adum> i added ``/dts-v1/;`` on line 48 and the error persists
<DC-IRC> [Discord] <0adum> right above ``#include "sun8i-a23-ippo-q8h-v5.dts"``
<DC-IRC> [Discord] <johnthecoolingfan> Yes, I understand
<DC-IRC> [Discord] <johnthecoolingfan> The compiler is throwing an error at the include line
<DC-IRC> [Discord] <johnthecoolingfan> And it seems to even point the character to the `i`
<DC-IRC> [Discord] <johnthecoolingfan> Which is weird
<DC-IRC> [Discord] <johnthecoolingfan> I don't know what's the problem there
<DC-IRC> [Discord] <johnthecoolingfan> Apparently...
<DC-IRC> [Discord] <johnthecoolingfan> > This is not a Device Tree syntax issue, you just have to pre-process the .dts file with the C preprocessor, cpp, in order to obtain a file that can be digested by the Device Tree Compiler as is.
<DC-IRC> [Discord] <johnthecoolingfan> I'm not sure whether using `dtc` directly is the intended way, probably it isn't... I'm not sure what are you trying to achieve, it would be better to rely on armbian build system to do dts edits
<DC-IRC> [Discord] <0adum> at this point it definitely isnt, as throwing everything at the compiler wouldnt make it work with the file.. entailing that a vital step needs to be made before
<DC-IRC> [Discord] <0adum> ill definitely look into the armbian build system, alas thank you for giving me some of your time