-
-
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 CB1 upstreaming #6656
Conversation
e550c8e
to
72ea871
Compare
c9a8b8e
to
348f604
Compare
348f604
to
1894682
Compare
Current problem with ethernet is that the sunxi-gmac driver can't find PHY, that's what gets reported in logs. |
1894682
to
96c6942
Compare
315e0e3
to
2bab7b8
Compare
To bump and provide more info, here's the error message that gets reported:
Typed out snippet of the kernel log. @armbian/boards-allwinner any ideas on why the driver unable to find PHY? |
2bab7b8
to
8c10217
Compare
Hi @JohnTheCoolingFan, Do you know around when this will be merged because apt update on |
@ivan95603 Unfortunately, this depends on when I can figure out what's wrong with ethernet in this branch. That should be the only major peripheral left before I can call this a proper update. |
@JohnTheCoolingFan Ok. Thank you. Update regarding wifi it doesn't need system update to stop working just the reboot of the board and it will stop working. |
@JohnTheCoolingFan If I get schematic right, internal PHY is used, which provides 100 Mbps speed, right? If so, this actually needs AC200 EPHY patches from H6 and separate PWM driver in order to properly set up PHY. However, your version could work too, if you rely on U-Boot to initialize PHY (I use such hack on my development systems). |
@jernejsk Well, this device tree is based off of the one BTT uses in their kernel (which is 4.19 I think), and they use the sunxi-gmac driver, which is what I'm trying to use here. For AC200, could you point me to what boards are similar in that regard so that I can use them as an example? And putting the init in u-boot would also be great, although I would like to first get it working in kernel so that it doesn't rely on u-boot that much. |
8c10217
to
817e8a6
Compare
No need to port BSP driver. A few months ago I made initial EPHY driver for H616 here: https://github.com/jernejsk/linux-1/commits/ac300-net/ Different board but ethernet part should be the same and it's independent from U-Boot. Note that this driver could be unified with H6 and replace old AC200 H6 patches. It also fixes one major downside that H6 AC200 driver had - driver load order was important (built in drivers vs. modules). Above branch avoids that issue. |
Need to be fixed after release. Some background in comments #6656
Changed maintainer to th current person Switched board family to sun50iw9, removed legacy kernel target, removed DEFAULT_CONSOLE
Need to be fixed after release. Some background in comments armbian#6656
a3d8ef5
to
18fc667
Compare
Cherry-picked the commit from #7059 |
Good health to all participants of this pull request. I have a very big request. Many patches with small changes have a strategic advantage over one large patch. Please understand me correctly. When I see only one line like: Enable Ethernet on SOC, and then there are changes in ten files With respect |
The changes that work are always interesting. This is not a question about the code. |
Yes, because I wasn't interested in D1, but H616. I believe apritzel has some good ideas how to do this properly, but I forgot where they are. Maybe his GH, maybe linux-sunxi ML... |
thanks for pointing this out, apologies for improper formatting, I'll fix this now. |
Alright, I've split the ethernet patch into 3: h616 device tree (addign emac1), i2c3 and PHY setup. |
The u-boot patches for this particular board remain out of my focus. I don't have this device. |
Well, then I am a bit confused about what patches you meant that needed splitting. The two kernel patches simply modify the device tree for btt cb1, one enabled hdmi and the other emac1. But I did just notice that the subject field is messed up so I will fix that as well. |
I apologize if my grumbling causes misunderstanding.
The style of the file that has been edited implies that the tab character is a tab character, and the space character is a space character. |
Need to be fixed after release. Some background in comments armbian#6656
32ab501
to
e3d177a
Compare
Oh, thanks for pointing this out! This made me look into plugins for auto-detecting indent style when possible. Fixed the indentation in patches, squashed it into the commit that originally added them, should be fine now. |
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.
Let's roll this in. The rest in new PRs.
Well, good to see this finally merged, but a lot of stuff ahead that still needs to be done. |
Unfortunately, I didn't explain very well about the patch file name. When we promote a series of patches to a new kernel version, The name of your patch: arm64-dts-sun50i-h616-bigtreetech-cb1-enable-emac1.patch This file will be renamed automatically the next time you extract it. With respect |
Need to be fixed after release. Some background in comments armbian/build#6656
Description
Improved support for BigTreeTech Pi and CB1
Jira reference number AR-2312
How Has This Been Tested?
Build and test on real hardware
Checklist: