Gigabit ethernet ports

AmigaOne X5000 platform specific issues related to Linux only.
Spectre660
Posts: 1525
Joined: Sat Jun 18, 2011 2:16 pm
Location: Montserrat

Re: Gigabit ethernet ports

Post by Spectre660 »

daz wrote:
Spectre660 wrote:This appears to be exactly the same as the original dtb which is on the Ubuntu MATE Live USB .
So maybe the issue is with the actual .configs used to compile the kernels.

1350d37eb24c3465d6e255f4f6883610 *cyrus_5020.dtb
1350d37eb24c3465d6e255f4f6883610 *cyrus_5020_ethernet.dtb
Yes, these are the ones supplied with the original fsl-sdk-1.7 kernel based on 3.8. It worked on quite a few later kernels too. Something has changed in the kernel source, I'm not sure what.

I am investigating.

Regards
Darren
Remember that the original patches have not been applied since kernel 4.4 so this may be when the problem originated.

This may be the only thing changed to support the Cyrus in the mainline kernel so the onboard Ethernet may have been forgotten.
https://git.kernel.org/pub/scm/linux/ke ... 4bde25eb15
Sam460ex : Radeon Rx550 Single slot Video Card : SIL3112 SATA card
marcus
Posts: 56
Joined: Wed Nov 07, 2012 8:07 pm

Re: Gigabit ethernet ports

Post by marcus »

This commit may be relevant:
https://git.kernel.org/pub/scm/linux/ke ... edcf69e29d
It adds PHY topology info to a lot of QorIQ boards, but not to the Cyrus one...
Spectre660
Posts: 1525
Joined: Sat Jun 18, 2011 2:16 pm
Location: Montserrat

Re: Gigabit ethernet ports

Post by Spectre660 »

@Marcus
I cross compiling an X5000 4.9.25 kernel using the original patches before the 4.x branch if you want to give it a try.
Disclaimer :Totally untested as I don't have an X5000.
https://drive.google.com/open?id=0BxoZd ... EdkeFdkUm8
Sam460ex : Radeon Rx550 Single slot Video Card : SIL3112 SATA card
marcus
Posts: 56
Joined: Wed Nov 07, 2012 8:07 pm

Re: Gigabit ethernet ports

Post by marcus »

@Spectre660

Well, here is what I did try:

* Get the 4.9.25 sources from kernel.org
* Apply the patch from your archive (some chunks failed though...)
* Build with my own kernel config (but enable CONFIG_CYRUS)
* Use my own DTB

Not really any improvement though. fsl_mac appears in dmesg like before, but fsl_dpa is gone, so I don't get any actual interfaces for ifconfig.

With the "original" DTB I don't even get fsl_mac.
Spectre660
Posts: 1525
Joined: Sat Jun 18, 2011 2:16 pm
Location: Montserrat

Re: Gigabit ethernet ports

Post by Spectre660 »

@Marcus

Perhaps the .configuration from one of of Daz's kernels were the Ethernet works may be the best starting point.
Also knowing if his kernel was compiled from a main line branch or a special Freescale branch might shed some light .
My patches were taken from a patched 3.18 kernel source archive.
Sam460ex : Radeon Rx550 Single slot Video Card : SIL3112 SATA card
marcus
Posts: 56
Joined: Wed Nov 07, 2012 8:07 pm

Re: Gigabit ethernet ports

Post by marcus »

I got some time do dig more into this, so I tried building kernel version 4.4.0 and 4.5.0, and booting them with the device tree present in the upstreams kernel sources for the respective version.

None of them gave me working gigabit ethernet; although the dmesg for 4.5.0 looked rather promising, no devices manifested in ifconfig.

So if there indeed exists a kernel build with working fsl ethernet, it would be very informative to learn

* Which kernel version sources were used
* Which patches to kernel code and/or DTS files were applied
* What configuration was used

to produce it. There's so many things that could be fiddled with that it seems impossible to progress without some kind of baseline...
User avatar
JamieKrueger
Beta Tester
Beta Tester
Posts: 13
Joined: Mon Dec 20, 2010 7:15 pm

Re: Gigabit ethernet ports

Post by JamieKrueger »

marcus wrote:I got some time do dig more into this, so I tried building kernel version 4.4.0 and 4.5.0, and booting them with the device tree present in the upstreams kernel sources for the respective version.

None of them gave me working gigabit ethernet; although the dmesg for 4.5.0 looked rather promising, no devices manifested in ifconfig.

So if there indeed exists a kernel build with working fsl ethernet, it would be very informative to learn

* Which kernel version sources were used
* Which patches to kernel code and/or DTS files were applied
* What configuration was used

to produce it. There's so many things that could be fiddled with that it seems impossible to progress without some kind of baseline...
There are a couple of new posts on the subject of enabling the on-board Ethernet ports on the X5000/20 (p5020) under the
thread for testing the Linux 4.15-rc5(6) kernel here: Re: Kernel 4.15

So hopefully we can get some answers to the above questions.
Best Regards,

Jamie Krueger
BITbyBIT Software Group LLC
Post Reply