-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BigTreeTech CB2/Pi2 config #6860
base: main
Are you sure you want to change the base?
Conversation
Not sure which board you used as template for the board config, but you don't need most of this stuff. Try using this as an example: https://github.com/armbian/build/blob/main/config/boards/nanopi-r5c.csc (minus the asound and extlinux line, use Also, you have put your patches into And to prevent duplication, you could use a symlink for the dts file to point from one to the other if they're exactly the same, so you only have one dts and the other one is just a symlink (example: https://github.com/armbian/build/tree/main/patch/kernel/rockchip-rk3588-collabora/dt) |
4dc9c8e
to
a548263
Compare
@JohnTheCoolingFan please pick armsurvivors@779b4ee -- you told me the other day I could drop it, but you seem to have forgotten? @ColorfulRhino that addresses most of your comments, I think? |
I did pick it, just didn't push onto a remote branch and it's not used in this branch. This is subject to change during the development of the PR. Pushed it to |
Yeah, but reviews are costly -- please don't waste our time, it's precious. Thanks. |
When the PR is ready for review, I'll mark it as such. For now - it's a draft. |
Well I sent #6874 (also draft) - I don't (or plan to) have the board |
a548263
to
ffd956f
Compare
Switched it to the @rpardini config. The built image does boot but there is no hdmi output, no ethernet connection and I still can't get proper input via UART pins. I don't have dedicated usb-to-uart converters yet and have been using a chinese arduino nano clone with a ch340 chip and the MCU reset pin tied to ground. I can get board's output butt can't input anything. |
9af8109
to
a51a473
Compare
Noticed that BTT had a custom I'm getting out of ideas. The device tree is same, based on the same kernel, so why is it not giving any output? The config is set to have output on both serial and display. And also Ethernet doesn't work even though it probably uses the same exact driver (based on 6.6 kernel). |
a51a473
to
865e438
Compare
Tried vendor's image, a minimal Armbian build. It had a lot of additional device tree overlays, including hdmi, which did get me a working hdmi output, but simply putting |
What if you put HDMI to device tree? |
865e438
to
466a811
Compare
Ok, I finally got some progress with getting a tty. I shouldn't have traced down the gpio pins from rk3566 datasheet, the tx/rx pins are the same as in Btt Pi (CB1) or CM4. The pins are not marked as uart in the official manual, which just makes it extremely confusing. I now have a fully functional tty and can debug problems further. Alright, so now I would like to first set up ethernet so I don't have to use uart as often. In the current config, the board is having problems setting up ethernet:
|
Putting the boot log gist here just for the record: https://gist.github.com/JohnTheCoolingFan/5df87cc4b87298d6bc21e046bfcff5f6 |
729949b
to
f2207aa
Compare
I'd say having a It's really important to send the contributions upstream, as there are way more people who can help on the kernel/u-boot mailing lists. |
I've sent the current 6.6 kernel device tree to the linux-rockchip mailing list as a patch and subscribed to the mailing list. I did not receive any replies on it, but the patch did get posted, so I have no idea whether it will get accepted or not. I will continue improving the device tree, benefitting all branches, both |
4001fe9
to
6083f36
Compare
Alright, a person on Discord messaged me about his usage of bigtreetech pi 2 6.11 with an image based on orangepi 3b. I've tried his dtb, and it works without the freezing issue. I will work on adding the proper dts. |
Oh, just realized adding the device tree files would be helpful: |
6083f36
to
aa26970
Compare
With the diff I was provided, I could make a raw-ish device tree from a kernel 6.6 orangepi-3b device tree: These device trees are pretty raw and as such are not suitable to be put into the |
Finally got around to making a more meaningful and human-readable "diff" of the patch, so that it can be used to use an existing orangepi 3b device tree and patched. No actual patch right now, just a human-readable summary. But I wish I could have some program that automatically resolves phandles at least.
I will now try to make a new device tree, based on orangepi-3b and inserted through the patches system. |
Yeah, I have a fully working device now. dmesg: https://paste.next.armbian.com/ofumurekuy Will commit my changes and push, then can get to re-organizing and probably remove the tree that is currently in this PR at all. |
ba5a752
to
ac92c98
Compare
For some reason the edge (6.12) won't output anything in the same serial port I've used before, maybe my serial/screen setup is messed up again, I don't know. I did change the compatible string for the tsc4525, but I don't even get the u-boot output, weird. I'll focus on current (6.6) for now. Baked the branch to https://github.com/JohnTheCoolingFan/armbian-build/tree/btt-cb2-old-dts and rebasing this branch, dropping a lot of stuff. |
54af947
to
8802e2a
Compare
8802e2a
to
0aae391
Compare
Alright, removed the previous dts from history, replaced with new one, squashed a lot of commits during WIP stage, all that was left is these 2 commits instead of 20+. Ready for review. |
Nevermind, forgot to put the sd card in. Dmesg just in case: https://paste.next.armbian.com/inuvoyicoq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dear John, what a journey. Congratulations. Merge at will.
Oops, forgot to specify the board maintainer as myself. |
Great work! Can I ask you if hdmi is working? Tried to build your branch and no luck with output |
HDMI works for me on all kernel versions. |
Description
Added patches and config for BigTreeTech CB2/Pi2
GitHub issue reference:
Jira reference number AR-2332
How Has This Been Tested?
Build and load on BTT Pi 2, test peripherals and see how it runs for 5 minutes
current
branch works fine, using BigTreeTech u-boot for cb2: https://github.com/bigtreetech/u-boot/tree/stable-4.19-cb2edge
is using mainline u-boot, having problems with the board freezing at about 2 minutes 50 seconds of uptimeChecklist:
Please delete options that are not relevant.