mamin27 / H616-mangopi

DTS file for setting MQ-Quad / MCore-H616 board
MIT License
16 stars 2 forks source link

FATAL ERROR: Couldn't open "sun50i-h616-biqu.dtb": No such file or directory #2

Closed greg-jc closed 9 months ago

greg-jc commented 1 year ago

OS image source: https://mangopi.org/mqquad under the "FW&SDK" section
Debian IMG with XFCE from the MEGA link: https://mega.nz/file/7L5w3CyD#ClAPLD9zHpwiIeM9JarotuU44G66ELNpPulKMwVnyiM

Issue: According to the other issue reported here by VGCH, I2C works using your guide. So that only means that I am doing something wrong. After running the command sudo apt-get install sunxi-tools device-tree-compiler rpi.gpio-common and going to the directory cd /boot/dtb/allwinner/ , I found that I did not have the sun50i-h616-biqu.dts and sun50i-h616-biqu.dtb files that are needed to run the next command dtc -I dts -O dtb -f sun50i-h616-biqu.dts -o sun50i-h616-biqu.dtb .

I saw that you provided the sun50i-h616-biqu.dts file, so I created a new file with the same name under the cd /boot/dtb/allwinner/ directory and copy/pasted the file contents over to it. Although I still needed the sun50i-h616-biqu.dtb file to run dtc -I dts -O dtb -f sun50i-h616-biqu.dts -o sun50i-h616-biqu.dtb . Without the appropriate files, I only get the following error: "FATAL ERROR: Couldn't open "sun50i-h616-biqu.dtb": No such file or directory"

Can you explain what I might be doing wrong or what I am missing?

VGCH commented 1 year ago

You are using the official system image, this image uses a configuration file with the following name sun50i-h616-orangepi-zero2.dtb. Take the following steps to solve your problem: 1 sudo git clone https://github.com/mamin27/H616-mangopi.git 2 cd H616-mangopi 3 sudo dtc -I dts -O dtb -f sun50i-h616-biqu.dts -o sun50i-h616-biqu.dtb If necessary, back up your original file sun50i-h616-orangepi-zero2.dtb 4 sudo cp -i sun50i-h616-biqu.dtb /boot/dtb/allwinner/sun50i-h616-orangepi-zero2.dtb 5 sudo shutdown -r now