Page 9 of 14

Re: Kernel 5.4

Posted: Fri Oct 18, 2019 6:24 pm
by Skateman
i might, but need to find a cable for the serial output first ?

Re: Kernel 5.4

Posted: Fri Oct 18, 2019 10:29 pm
by xeno74
Skateman wrote:i might, but need to find a cable for the serial output first ?
I use a USB null modem RS-232 serial cable and connect it with the X5000 serial port.

Further information: X5000 via null modem RS-232 serial cable

Re: Kernel 5.4

Posted: Sat Oct 19, 2019 12:14 pm
by xeno74
Ben wrote because of the issue with the onboard SD card today:
Anywhere is fine but I think it's easy. Coherent DMA is for historical
reasons a function of the processor generation, and as such a CONFIG
option.

So setting it according to CONFIG_NOT_COHERENT_CACHE will probably work
just fine.

Well at least I think so ... unless I'm missing some broken HW
somewhere I am not aware of.

Cheers,
Ben.

Re: Kernel 5.4

Posted: Sat Oct 19, 2019 3:50 pm
by xeno74
I had to create a patch for the possibility to select "CONFIG_NOT_COHERENT_CACHE" in the kernel config today.

not_coherent_cache.patch:

Code: Select all

--- a/arch/powerpc/platforms/Kconfig.cputype	2019-10-14 01:37:36.000000000 +0200
+++ b/arch/powerpc/platforms/Kconfig.cputype	2019-10-19 15:20:07.884007876 +0200
@@ -152,6 +152,7 @@ config POWER9_CPU
 config E5500_CPU
 	bool "Freescale e5500"
 	depends on E500
+	select NOT_COHERENT_CACHE
 
 config E6500_CPU
 	bool "Freescale e6500"
@@ -458,7 +459,7 @@ config NR_CPUS
 config NOT_COHERENT_CACHE
 	bool
 	depends on 4xx || PPC_8xx || E200 || PPC_MPC512x || \
-		GAMECUBE_COMMON || AMIGAONE
+		GAMECUBE_COMMON || AMIGAONE || E5500_CPU
 	select ARCH_HAS_DMA_COHERENT_TO_PFN
 	select ARCH_HAS_DMA_PREP_COHERENT
 	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
I will create a kernel with the kernel option "CONFIG_NOT_COHERENT_CACHE" for solving the issue with the onboard SD card.

Re: Kernel 5.4

Posted: Sat Oct 19, 2019 6:12 pm
by xeno74
Hi All,

I released the RC3-2 of kernel 5.4 for the AmigaOne X5000 today.

New:
Download: linux-image-5.4-rc3-2-X5000.tar.gz

Screenshot of ubuntu MATE 16.04.6 LTS on an A-EON AmigaOne X5000/40:

Image

Please test it.

Thanks,
Christian

Re: Kernel 5.4

Posted: Sat Oct 19, 2019 8:42 pm
by Skateman
RC3-2 of Kernel 5.4 is up and running on my AmigaOne X5000

Image

Big picture: http://www.skateman.nl/wp-content/uploa ... 203428.png

In DMESG i found this IRQ error..

[ 5.041522] ptp_qoriq ffe4fe000.ptp-timer: IRQ index 0 not found
[ 5.046803] ptp_qoriq: irq not in device tree

I also found..but has nothing to do with this specific kernel, a change in the DPAA network driver.
Does not seems to creat a MII interface anymore which results in a non working MII-Tool utility.
This has been an issue for quite a while now and dont know where we lost this.... but i guess before kernel 5.0

skateman@X5000LNX:~$ sudo mii-tool

SIOCGMIIPHY on 'eth0' failed: Invalid argument
SIOCGMIIPHY on 'eth1' failed: Invalid argument
no MII interfaces found

Re: Kernel 5.4

Posted: Sun Oct 20, 2019 11:24 am
by xeno74
Hi Skateman,

Many thanks for testing the RC3-2! :-)

Have you seen the same IRQ error messages with the RC3?

Cheers,
Christian

Re: Kernel 5.4

Posted: Sun Oct 20, 2019 1:18 pm
by xeno74
That's strange. If I use the old 5040 dtb file, then I don't see the DPAA Ethernet devices. If I use the new 5040 dtb file then I see both DPAA Ethernet devices but I get the following error messages:

dmesg | grep ptp_qoriq

Code: Select all

[   12.603907] ptp_qoriq: device tree node missing required elements, try automatic configuration
[   12.616734] ptp_qoriq: device tree node missing required elements, try automatic configuration
dmesg | grep dpaa

Code: Select all

[   12.149234] fsl_dpaa_mac ffe4e6000.ethernet: of_get_mac_address(/soc@ffe000000/fman@400000/ethernet@e6000) failed
[   12.149432] fsl_dpaa_mac: probe of ffe4e6000.ethernet failed with error -22
[   12.149604] fsl_dpaa_mac ffe4e8000.ethernet: of_get_mac_address(/soc@ffe000000/fman@400000/ethernet@e8000) failed
[   12.149827] fsl_dpaa_mac: probe of ffe4e8000.ethernet failed with error -22
[   12.150031] fsl_dpaa_mac ffe4e0000.ethernet: of_get_phy_mode() for /soc@ffe000000/fman@400000/ethernet@e0000 failed. Defaulting to SGMII
[   12.150531] fsl_dpaa_mac ffe4e0000.ethernet: FMan dTSEC version: 0x08240101
[   12.150863] fsl_dpaa_mac ffe4e0000.ethernet: FMan MAC address: 00:04:a3:6b:41:65
[   12.151180] fsl_dpaa_mac ffe4e2000.ethernet: of_get_phy_mode() for /soc@ffe000000/fman@400000/ethernet@e2000 failed. Defaulting to SGMII
[   12.151417] fsl_dpaa_mac ffe4e2000.ethernet: FMan dTSEC version: 0x00000000
[   12.151747] fsl_dpaa_mac ffe4e2000.ethernet: FMan MAC address: 00:1e:c0:f8:01:59
[   12.152032] fsl_dpaa_mac ffe4e4000.ethernet: of_get_mac_address(/soc@ffe000000/fman@400000/ethernet@e4000) failed
[   12.152221] fsl_dpaa_mac: probe of ffe4e4000.ethernet failed with error -22
[   12.152410] fsl_dpaa_mac ffe4f0000.ethernet: of_get_mac_address(/soc@ffe000000/fman@400000/ethernet@f0000) failed
[   12.152598] fsl_dpaa_mac: probe of ffe4f0000.ethernet failed with error -22
[   12.152800] fsl_dpaa_mac ffe5e0000.ethernet: of_get_mac_address(/soc@ffe000000/fman@500000/ethernet@e0000) failed
[   12.152988] fsl_dpaa_mac: probe of ffe5e0000.ethernet failed with error -22
[   12.153179] fsl_dpaa_mac ffe5e2000.ethernet: of_get_mac_address(/soc@ffe000000/fman@500000/ethernet@e2000) failed
[   12.153366] fsl_dpaa_mac: probe of ffe5e2000.ethernet failed with error -22
[   12.153557] fsl_dpaa_mac ffe5e4000.ethernet: of_get_mac_address(/soc@ffe000000/fman@500000/ethernet@e4000) failed
[   12.153751] fsl_dpaa_mac: probe of ffe5e4000.ethernet failed with error -22
[   12.159157] fsl_dpaa_mac ffe5e6000.ethernet: of_get_mac_address(/soc@ffe000000/fman@500000/ethernet@e6000) failed
[   12.164649] fsl_dpaa_mac: probe of ffe5e6000.ethernet failed with error -22
[   12.170268] fsl_dpaa_mac ffe5e8000.ethernet: of_get_mac_address(/soc@ffe000000/fman@500000/ethernet@e8000) failed
[   12.175870] fsl_dpaa_mac: probe of ffe5e8000.ethernet failed with error -22
[   12.181673] fsl_dpaa_mac ffe5f0000.ethernet: of_get_mac_address(/soc@ffe000000/fman@500000/ethernet@f0000) failed
[   12.187513] fsl_dpaa_mac: probe of ffe5f0000.ethernet failed with error -22
[   12.196705] fsl_dpaa_mac ffe4e0000.ethernet eth0: Probed interface eth0
[   12.205834] fsl_dpaa_mac ffe4e2000.ethernet eth1: Probed interface eth1
[   16.642332] fsl_dpaa_mac ffe4e0000.ethernet eth0: init_phy() failed
[   16.836585] fsl_dpaa_mac ffe4e2000.ethernet eth1: init_phy() failed
The MAC addresses were configured in U-Boot.

Re: Kernel 5.4

Posted: Sun Oct 20, 2019 2:40 pm
by Skateman
Christian could you try this?

Make sure the ethernet cable of the onboard X5000 ethernet adapter is unplugged.
sudo ifconfig eht0 down (enter)
sudo ifconfig eht0 up (enter)
Now plug in a cable in the onboard X5000 ethernet adapter.
The adapter gets an Ip adress through DHCP and see if it works.

Re: Kernel 5.4

Posted: Sun Oct 20, 2019 5:40 pm
by xeno74
Skateman wrote:Christian could you try this?

Make sure the ethernet cable of the onboard X5000 ethernet adapter is unplugged.
sudo ifconfig eht0 down (enter)
sudo ifconfig eht0 up (enter)
Now plug in a cable in the onboard X5000 ethernet adapter.
The adapter gets an Ip adress through DHCP and see if it works.
I will try it tomorrow.

— Christian