USB OTG Armbian for MK802+

#1. Decompile your device tree with this command:

# Syntax
dtc -I <input-format> -O <output-format> -o <output-filename> <input-filename>
$ sudo dtc -I dtb -O dts -o cubieboard.dts sun4i-a10-cubieboard.dtb

If you do not specify the -o, dtc command will dump the result to stdout.

$ sudo dtc -I dtb -O dts sun4i-a10-cubieboard.dtb > cubieboard.dts

#2. Change this line of code, mine on line 469.

From:

dr_mode = "otg";

To:

dr_mode = "host";

#3. Backup your original file.

$ sudo mv sun4i-a10-cubieboard.dtb sun4i-a10-cubieboard.dtb.bak

#4. Compile your device tree.

$ sudo dtc -I dts -O dtb -o sun4i-a10-cubieboard.dtb cubieboard.dts

Again, if you do not specify the -o, dtc command will dump the result to stdout.

$ sudo dtc -I dts -O dtb cubieboard.dts > sun4i-a10-cubieboard.dtb

#5. Try it out!

$ sudo reboot

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *