New kernels

AmigaOne X5000 platform specific issues related to Linux only.
User avatar
xeno74
Posts: 9324
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

Hi Dave,

I reported the issue with the DPAA Ethernet to the kernel developers today.

Link: [FSL P50x0] DPAA Ethernet issue

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9324
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

xeno74 wrote: Sat Dec 31, 2022 4:26 pm Hi Skateman,

The kernel developers have rewrote the complete dpaa code. They started with the rewriting with the commit "dpaa: Convert to phylink". After that, they modified a lot of the new code.
That means, that the first patch (dpaa-phylink.patch) doesn't work with the RC1 of kernel 6.2.

I created a new patch for reverting all changes in the dpaa code.

Link: dpaa-phylink-v2.patch

This patch is really big. I compiled a new RC1 of kernel 6.2 with this patch.

Download: uImage-6.2-rc1-old-dpaa

Please test it. You can use it with the kernel modules from the RC1 package.

Cheers,
Christian
Dave,

Does the DPAA Ethernet also works with this kernel on Ubuntu 16.04?

Thanks for your help,

Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
Skateman
Posts: 858
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: New kernels

Post by Skateman »

Hi Christian,

I can test VoidPPC and Fienix at the moment. I dont have Ubuntu 16.04 running anymore.
If you need this, i can try to setup Ubuntu 16.04 again and test.

Let me know what you need?

Dave
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / Radeon X1950 / M-Audio 5.1 -> AmigaOS / Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Vampire 4SA - RPi4 Running AmiKitXE Full
User avatar
xeno74
Posts: 9324
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

Skateman wrote: Sun Jan 01, 2023 8:07 pm Hi Christian,

I can test VoidPPC and Fienix at the moment. I dont have Ubuntu 16.04 running anymore.
If you need this, i can try to setup Ubuntu 16.04 again and test.

Let me know what you need?

Dave
Hi Dave,

We have used a special DPAA Ethernet patch for Ubuntu 16.04. Link: dpaa-v9 patch. I would like to know if we still need this patch.

Sean Anderson has posted a patch because of the issue with the DPAA Ethernet.
Sean Anderson wrote: Thank you for testing this. Unfortunately, I have no P-series hardware,
so I was unable to test the 10gec/dtsec parts of this conversion. I had
hoped that this would get tested by someone with the hardware (at NXP)
before now, but it seems you get to be the "lucky" first user.

I see you have labeled one of your kernels as supporting QEMU. Do you
happen to have instructions for running Linux on QEMU?

Can you try the following patch. I think my mail client will mangle it,
so I have also attached it to this email.
0001-net-dpaa-Fix-dtsec-check-for-PCS-availability.patch:

Code: Select all

From 3898c62106025209b26527ad1516b339eebb62f1 Mon Sep 17 00:00:00 2001
From: Sean Anderson <seanga2@gmail.com>
Date: Sun, 1 Jan 2023 13:00:21 -0500
Subject: [PATCH] net: dpaa: Fix dtsec check for PCS availability

We want to fail if the PCS is not available, not if it is available. Fix
this condition.

Fixes: 5d93cfcf7360 ("net: dpaa: Convert to phylink")
Reported-by: Christian Zigotzky <info@xenosoft.de>
Signed-off-by: Sean Anderson <seanga2@gmail.com>
---
 drivers/net/ethernet/freescale/fman/fman_dtsec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/freescale/fman/fman_dtsec.c b/drivers/net/ethernet/freescale/fman/fman_dtsec.c
index 3c87820ca202..3462f2b78680 100644
--- a/drivers/net/ethernet/freescale/fman/fman_dtsec.c
+++ b/drivers/net/ethernet/freescale/fman/fman_dtsec.c
@@ -1431,7 +1431,7 @@ int dtsec_initialization(struct mac_device *mac_dev,
 	dtsec->dtsec_drv_param->tx_pad_crc = true;
 
 	phy_node = of_parse_phandle(mac_node, "tbi-handle", 0);
-	if (!phy_node || of_device_is_available(phy_node)) {
+	if (!phy_node || !of_device_is_available(phy_node)) {
 		of_node_put(phy_node);
 		err = -EINVAL;
 		dev_err_probe(mac_dev->dev, err,
-- 
2.37.1
Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
Skateman
Posts: 858
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: New kernels

Post by Skateman »

Ok,

Give me some time to set things up. I think that will be later today.
Would be great if you can point me to the Ubuntu 16.04 PPC installer so i dont have to search my archive :-)

Dave
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / Radeon X1950 / M-Audio 5.1 -> AmigaOS / Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Vampire 4SA - RPi4 Running AmiKitXE Full
User avatar
xeno74
Posts: 9324
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

Skateman wrote: Mon Jan 02, 2023 9:43 am Ok,

Give me some time to set things up. I think that will be later today.
Would be great if you can point me to the Ubuntu 16.04 PPC installer so i dont have to search my archive :-)

Dave
Please look here:
ubuntu MATE 16.04.1 LTS Live USB
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9324
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

I tested Sean's patch with the RC2 today but unfortunately the kernel doesn't link after compiling.

Error messages:

Code: Select all

  LD      .tmp_vmlinux.kallsyms1
`.exit.text' referenced in section `__bug_table' of crypto/algboss.o: defined in discarded section `.exit.text' of crypto/algboss.o
`.exit.text' referenced in section `__bug_table' of crypto/algif_hash.o: defined in discarded section `.exit.text' of crypto/algif_hash.o
`.exit.text' referenced in section `__bug_table' of drivers/char/hw_random/core.o: defined in discarded section `.exit.text' of drivers/char/hw_random/core.o
make[1]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
make: *** [Makefile:1252: vmlinux] Error 2
Maybe it is not an issue because of the patch because the RC1 compilied and linked with the patch.

@Dave
Please test the RC1 with Sean's patch.

Download: uImage-6.2-dpaa-t1

sudo dmesg | grep -i dpaa

Code: Select all

[    3.017121] fsl_dpaa_mac ffe4e8000.ethernet: FMan dTSEC version: 0x08240101
[    3.017256] fsl_dpaa_mac ffe4e8000.ethernet: FMan MAC address: 00:04:a3:6b:41:65
[    3.017534] fsl_dpaa_mac ffe4f0000.ethernet: of_get_mac_address(/soc@ffe000000/fman@400000/ethernet@f0000) failed
[    3.017745] fsl_dpaa_mac ffe4f0000.ethernet: of_get_phy_mode() for /soc@ffe000000/fman@400000/ethernet@f0000 failed. Defaulting to SGMII
[    3.017975] fsl_dpaa_mac: FMan XGEC version: 0x00010330
[    3.018293] fsl_dpaa_mac ffe5e8000.ethernet: FMan dTSEC version: 0x08240101
[    3.018413] fsl_dpaa_mac ffe5e8000.ethernet: FMan MAC address: 00:1e:c0:f8:01:59
[    3.018656] fsl_dpaa_mac ffe5f0000.ethernet: of_get_mac_address(/soc@ffe000000/fman@500000/ethernet@f0000) failed
[    3.018871] fsl_dpaa_mac ffe5f0000.ethernet: of_get_phy_mode() for /soc@ffe000000/fman@500000/ethernet@f0000 failed. Defaulting to SGMII
[    3.019099] fsl_dpaa_mac: FMan XGEC version: 0x00010330
[    3.021559] fsl_dpaa_mac ffe4e8000.ethernet eth0: Probed interface eth0
[    3.023358] fsl_dpaa_mac ffe4f0000.ethernet: Using random MAC address: 5e:d0:6f:2b:29:35
[    3.024041] fsl_dpaa_mac ffe4f0000.ethernet eth1: Probed interface eth1
[    3.026381] fsl_dpaa_mac ffe5e8000.ethernet eth2: Probed interface eth2
[    3.028199] fsl_dpaa_mac ffe5f0000.ethernet: Using random MAC address: c2:ec:b7:35:67:37
[    3.028878] fsl_dpaa_mac ffe5f0000.ethernet eth3: Probed interface eth3
[    7.543868] fsl_dpaa_mac ffe4e8000.ethernet eth0: PHY [mdio@ffe4e1120:03] driver [Generic PHY] (irq=POLL)
[    7.549774] fsl_dpaa_mac ffe4e8000.ethernet eth0: configuring for phy/rgmii link mode
[    7.583166] fsl_dpaa_mac ffe5e8000.ethernet eth2: PHY [mdio@ffe4e1120:07] driver [Generic PHY] (irq=POLL)
[    7.589079] fsl_dpaa_mac ffe5e8000.ethernet eth2: configuring for phy/rgmii link mode
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
Skateman
Posts: 858
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: New kernels

Post by Skateman »

Seans patched RC1 DPAA-T1 kernel is up and running with working DPAA Ethernet.

Image

Big picture: https://www.skateman.nl/wp-content/uplo ... -18-07.png

Dmesg eth output:

[amigaone@VOIDX5K ~]$ sudo dmesg | grep eth

[ 3.054878] fsl_dpaa_mac ffe4e6000.ethernet: FMan dTSEC version: 0x08240101
[ 3.060765] fsl_dpaa_mac ffe4e6000.ethernet: FMan MAC address: 00:04:a3:6b:41:7c
[ 3.067364] fsl_dpaa_mac ffe4e8000.ethernet: FMan dTSEC version: 0x08240101
[ 3.073279] fsl_dpaa_mac ffe4e8000.ethernet: FMan MAC address: 00:1e:c0:f8:31:b5
[ 3.079771] fsl_dpaa_mac ffe4f0000.ethernet: of_get_mac_address(/soc@ffe000000/fman@400000/ethernet@f0000) failed
[ 3.089074] fsl_dpaa_mac ffe4f0000.ethernet: of_get_phy_mode() for /soc@ffe000000/fman@400000/ethernet@f0000 failed. Defaulting to SGMII
[ 3.106621] fsl_dpaa_mac ffe4e6000.ethernet eth0: Probed interface eth0
[ 3.114109] fsl_dpaa_mac ffe4e8000.ethernet eth1: Probed interface eth1
[ 3.121164] fsl_dpaa_mac ffe4f0000.ethernet: Using random MAC address: 82:62:5f:30:46:7b
[ 3.128773] fsl_dpaa_mac ffe4f0000.ethernet eth2: Probed interface eth2
[ 10.897466] fsl_dpaa_mac ffe4e6000.ethernet eth0: PHY [mdio@ffe4e1120:03] driver [Generic PHY] (irq=POLL)
[ 10.916586] fsl_dpaa_mac ffe4e6000.ethernet eth0: configuring for phy/rgmii link mode
[ 10.935882] fsl_dpaa_mac ffe4e8000.ethernet eth1: PHY [mdio@ffe4e1120:07] driver [Generic PHY] (irq=POLL)
[ 10.955126] fsl_dpaa_mac ffe4e8000.ethernet eth1: configuring for phy/rgmii link mode
[ 37.538673] fsl_dpaa_mac ffe4e6000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[ 37.545827] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[amigaone@VOIDX5K ~]$
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 570 / Radeon X1950 / M-Audio 5.1 -> AmigaOS / Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world
Vampire 4SA - RPi4 Running AmiKitXE Full
User avatar
xeno74
Posts: 9324
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

Skateman wrote: Tue Jan 03, 2023 8:25 pm Seans patched RC1 DPAA-T1 kernel is up and running with working DPAA Ethernet.
Fantastic! Thanks for testing!
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9324
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

The patch will be add to the official kernel source code.

Link: net: dpaa: Fix dtsec check for PCS availability
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply