-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
9b9a3a0
to
e5384ee
Compare
Rebased for rockchip64-6.12. I've also made attempts modifying u-boot or kernel device trees to fix the freezing issue. I tried changing voltage regulator definitions. Some resulted in error to boot, some made no difference at all. I also found some peculiar details, or maybe even conflicts between the device trees:
These might be clues to voltage regulators being misconfigured in one or the other, or even gpio being an issue. One of earlier hints of voltage regulators being misconfigured is from dmesg:
I am a bit confused on how problematic these messages are, especially the latter two. The first one seems to just be a conflict of... Something. Although these messages are present in both images. Edit:
Right now I'm going to sleep and planning to attempt further debugging later. Hopefully not Sisyphus style. |
While the freezing problem is annoying, there is still some stuff to fix. I've fixed a bunch of stuff reported in dmesg and attempted various tweaks to help with the problem of freezing. New problems:
Fixed:
I do admit I over-fixated on the critical problem and was ignoring the smaller issues that could be quickly investigated, fixed and checked. Although it might seem that not fixing the major problem is less effective, it is effective to spend some time on smaller issues because I can't find info on the major problem for a long time. Maybe it's something about the u-boot loading the kernel and then something is trying to switch at 170 seconds. I don't have enough knowledge on u-boot and the loading process to know what it is, and research is slow. Bringing back the "help needed" label. |
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 |
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.