Reconstruct / copy Bigtreetech DT for 6.6.y
Description
Checklist
hideActivity
Igor PecovnikJune 13, 2024 at 4:09 PM
Separate DT is ok, but we don't need to have a separate board build config. Ethernet can be more complex. Here it would best to move conversation to forum and ping Jernej and going. They might give you some hints. Also keep in mind that edge sunxi has to bump to 6.9. going could already be working on it.
John The Cooling FanJune 13, 2024 at 2:03 PMEdited
Also added these patches to sunxi-6.7, tested video output.
But, linux kernel 6.7 includes a device tree for bigtreetech Pi. I have noticed long ago that armbian has both compute board (CB1) and Pi-style board under the same name and config. While installed into a Pi4B the CB1 module is equivalent to BTT PI, the module can also be installed in their 3d printer board “Manta“, which has different peripherals. Linux kernel has separate device trees for these use cases, should armbian also move to that scheme? bigtreetech-cb1
and bigtreetech-pi
(and bigtreetech-cb2
and bigtreetech-pi2
). Pardon me if this isn’t the right place for discussion of this.
John The Cooling FanJune 13, 2024 at 12:46 PM
I have successfully enabled hdmi in my branch, got correct video output on the board. Enabling emac1 is not so easy though. I did transfer BTT’s portion to the bigtreetech-cb1.dtsi
file but it seems more needs to be done. The current changes are at and the commit in BTT’s kernel that enabled/fixed CB1 ethernet is , although it seems to include a lot of changes, so I’m hesitant to transfer more of them.
John The Cooling FanJune 13, 2024 at 10:08 AM
The hdmi and ethernet are most likely device tree problems. Comparing devcie trees generated by ./compile.sh kernel-dtb
and device trees from I see that a lot of stuff stays disabled with device tree from patches. It seems to be quite easy to enable stuff following btt’s repo dts, although I still have to learn on how to properly generate a patch to put into patch/kernel/archive/sunxi-6.{6,7}/
John The Cooling FanJune 10, 2024 at 5:52 PM
I don’t know whether hdmi and ethernet are a device tree or kernel driver problem, but that seems like the most important stuff to fix. All usb ports work, but I haven’t tested type c OTG. And I haven’t tested some other more niche peripherals: CAN bus, IR, ADXL345 connection, SPI display port, audio and “CNC FAN“. GPIO probably works fine but I’ll test later to make sure.