Kernel 5.8

AmigaOne X5000 platform specific issues related to Linux only.
User avatar
kilaueabart
Posts: 716
Joined: Mon Mar 05, 2012 2:36 am

Re: Kernel 5.8

Post by kilaueabart »

xeno74 wrote:
Tue Jul 28, 2020 3:42 pm
Hi Roland,
...

Do you use the dtb file "cyrus-p5020.dtb" from the latest kernel package? You have 5 DPAA Ethernet interfaces in your nmcli d output. I have 2 DPAA Ethernet interfaces. Maybe you use an old dtb file.
I have been lagging way behind lately, rc-3 until I got rc-7 today. I have been using cyrus_p5020_eth_-poweroff.dtb as long as I can remember and believed that I needed the "poweroff" part. I booted just now with cyrus-p5020.dtb, but wondering as I set it up whether it was for a problem Roland was having and not for general use.

So far (10~15 minutes) I haven't noticed any difference from rc-3 except that when I do a nmcli d I get an extra wi-fi line:

Code: Select all

DEVICE                   TYPE      STATE         CONNECTION         
enP4096p4s4              ethernet  connected     Wired connection 1 
wlx00e04c81922c          wifi      connected     Worm City 26       
p2p-dev-wlx00e04c81922c  wifi-p2p  disconnected  --                 
eth0                     ethernet  unavailable   --                 
eth1                     ethernet  unavailable   --                 
dummy0                   dummy     unmanaged     --                 
ip6tnl0                  iptunnel  unmanaged     --                 
sit0                     iptunnel  unmanaged     --       
etc.

User avatar
Skateman
Posts: 512
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: Kernel 5.8

Post by Skateman »

Hi @kilaueabart

If you put your network cable in your onboard ethernet adapter does it work ?
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon R7 250 / M-Audio 5.1 -> AmigaOS 4.1 FE / Ubuntu Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world

User avatar
kilaueabart
Posts: 716
Joined: Mon Mar 05, 2012 2:36 am

Re: Kernel 5.8

Post by kilaueabart »

I don't seem to have one. I plugged the cable in a place Casey told me about and could not get on-line.

(Edit) I just tried it again, from Ubuntu, it connects now, and nmcli d garners me this:

Code: Select all

bart@X5000:~$ nmcli d
DEVICE       TYPE      STATE        CONNECTION         
eth0         ethernet  connected    Wired connection 2 
enP4096p4s4  ethernet  unavailable  --                 
eth1         ethernet  unavailable  --                 
dummy0       dummy     unmanaged    --                 
ip6_vti0     ip6tnl    unmanaged    --                 
ip6tnl0      ip6tnl    unmanaged    --                 
sit0         iptunnel  unmanaged    --                 
tunl0        iptunnel  unmanaged    --                 
lo           loopback  unmanaged    --                 
ip_vti0      vti       unmanaged    --    

User avatar
xeno74
Posts: 6175
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.8

Post by xeno74 »

I get an error during the compilation of the final kernel for the X5000:

Code: Select all

In file included from ./arch/powerpc/include/asm/paca.h:18:0,
                 from ./arch/powerpc/include/asm/percpu.h:13,
                 from ./include/linux/random.h:14,
                 from fs/crypto/policy.c:13:
./arch/powerpc/include/asm/mmu.h:139:22: error: unknown type name ‘next_tlbcam_idx’
 DECLARE_PER_CPU(int, next_tlbcam_idx);
                      ^~~~~~~~~~~~~~~
  AS      arch/powerpc/kernel/epapr_hcalls.o
  CC      arch/powerpc/kernel/kvm.o
  CC      mm/mlock.o
scripts/Makefile.build:280: recipe for target 'fs/crypto/policy.o' failed
make[2]: *** [fs/crypto/policy.o] Error 1
scripts/Makefile.build:497: recipe for target 'fs/crypto' failed
make[1]: *** [fs/crypto] Error 2
Makefile:1756: recipe for target 'fs' failed
make: *** [fs] Error 2
The kernel developers already know the issue: powerpc: build failures in Linus' tree

They released a patch today:

Code: Select all

diff --git a/arch/powerpc/include/asm/mmu.h b/arch/powerpc/include/asm/mmu.h
index f4ac25d4df05..fa602a4cf303 100644
--- a/arch/powerpc/include/asm/mmu.h
+++ b/arch/powerpc/include/asm/mmu.h
@@ -134,11 +134,6 @@
 
 typedef pte_t *pgtable_t;
 
-#ifdef CONFIG_PPC_FSL_BOOK3E
-#include <asm/percpu.h>
-DECLARE_PER_CPU(int, next_tlbcam_idx);
-#endif
-
 enum {
 	MMU_FTRS_POSSIBLE =
 #ifdef CONFIG_PPC_BOOK3S
diff --git a/arch/powerpc/include/asm/mmu_fsl_e.h b/arch/powerpc/include/asm/mmu_fsl_e.h
new file mode 100644
index 000000000000..c74a81556ce5
--- /dev/null
+++ b/arch/powerpc/include/asm/mmu_fsl_e.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_POWERPC_MMU_FSL_E_H_
+#define _ASM_POWERPC_MMU_FSL_E_H_
+
+#ifdef CONFIG_PPC_FSL_BOOK3E
+#include <asm/percpu.h>
+DECLARE_PER_CPU(int, next_tlbcam_idx);
+#endif
+
+#endif
diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
index 73199470c265..142b3e7882bf 100644
--- a/arch/powerpc/kernel/smp.c
+++ b/arch/powerpc/kernel/smp.c
@@ -35,6 +35,7 @@
 #include <linux/stackprotector.h>
 #include <linux/pgtable.h>
 
+#include <asm/mmu_fsl_e.h>
 #include <asm/ptrace.h>
 #include <linux/atomic.h>
 #include <asm/irq.h>
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index c2c11eb8dcfc..7371061b2126 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -37,6 +37,7 @@
 #include <asm/pgalloc.h>
 #include <asm/prom.h>
 #include <asm/io.h>
+#include <asm/mmu_fsl_e.h>
 #include <asm/mmu_context.h>
 #include <asm/mmu.h>
 #include <asm/smp.h>
diff --git a/arch/powerpc/mm/nohash/book3e_hugetlbpage.c b/arch/powerpc/mm/nohash/book3e_hugetlbpage.c
index 8b88be91b622..cacda4ee5da5 100644
--- a/arch/powerpc/mm/nohash/book3e_hugetlbpage.c
+++ b/arch/powerpc/mm/nohash/book3e_hugetlbpage.c
@@ -9,6 +9,7 @@
 #include <linux/mm.h>
 #include <linux/hugetlb.h>
 
+#include <asm/mmu_fsl_e.h>
 #include <asm/mmu.h>
 
 #ifdef CONFIG_PPC64
diff --git a/arch/powerpc/mm/nohash/tlb.c b/arch/powerpc/mm/nohash/tlb.c
index 696f568253a0..8b3a68ce7fde 100644
--- a/arch/powerpc/mm/nohash/tlb.c
+++ b/arch/powerpc/mm/nohash/tlb.c
@@ -171,6 +171,7 @@ int extlb_level_exc;
 #endif /* CONFIG_PPC64 */
 
 #ifdef CONFIG_PPC_FSL_BOOK3E
+#include <asm/mmu_fsl_e.h>
 /* next_tlbcam_idx is used to round-robin tlbcam entry assignment */
 DEFINE_PER_CPU(int, next_tlbcam_idx);
 EXPORT_PER_CPU_SYMBOL(next_tlbcam_idx);
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.

User avatar
Skateman
Posts: 512
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: Kernel 5.8

Post by Skateman »

Can you use the onboard adapter ? Does it function like it should. Internet / Lan etc working as expected ?

kilaueabart wrote:
Mon Aug 03, 2020 12:33 am
I don't seem to have one. I plugged the cable in a place Casey told me about and could not get on-line.

(Edit) I just tried it again, from Ubuntu, it connects now, and nmcli d garners me this:

Code: Select all

bart@X5000:~$ nmcli d
DEVICE       TYPE      STATE        CONNECTION         
eth0         ethernet  connected    Wired connection 2 
enP4096p4s4  ethernet  unavailable  --                 
eth1         ethernet  unavailable  --                 
dummy0       dummy     unmanaged    --                 
ip6_vti0     ip6tnl    unmanaged    --                 
ip6tnl0      ip6tnl    unmanaged    --                 
sit0         iptunnel  unmanaged    --                 
tunl0        iptunnel  unmanaged    --                 
lo           loopback  unmanaged    --                 
ip_vti0      vti       unmanaged    --    
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon R7 250 / M-Audio 5.1 -> AmigaOS 4.1 FE / Ubuntu Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world

User avatar
xeno74
Posts: 6175
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.8

Post by xeno74 »

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

Running Linux on AmigaONEs can require some tinkering.

User avatar
Skateman
Posts: 512
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: Kernel 5.8

Post by Skateman »

Final kernel 5.8 running fine on my AmigaOne X5000 !

Image

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

Thanks again Christian, great work!
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon R7 250 / M-Audio 5.1 -> AmigaOS 4.1 FE / Ubuntu Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world

User avatar
xeno74
Posts: 6175
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.8

Post by xeno74 »

Skateman wrote:
Mon Aug 03, 2020 8:10 pm
Final kernel 5.8 running fine on my AmigaOne X5000 !

Thanks again Christian, great work!
Thanks a lot for testing all the GIT, alpha, and RC kernels!
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.

User avatar
kilaueabart
Posts: 716
Joined: Mon Mar 05, 2012 2:36 am

Re: Kernel 5.8

Post by kilaueabart »

Skateman wrote:
Mon Aug 03, 2020 1:18 pm
Can you use the onboard adapter ? Does it function like it should. Internet / Lan etc working as expected ?
Well, when you ask, I'm not sure! I took it for granted that that was what

Code: Select all

DEVICE       TYPE      STATE        CONNECTION         
eth0         ethernet  connected    Wired connection 2 
enP4096p4s4  ethernet  unavailable  --                  

means. I.e., that the enP4096p4s4 was not an "onboard adapter," but eth0 maybe was it.

Whatever I'm using it functions at least as well in fienix and Ubuntu as the enP thing did.

User avatar
Skateman
Posts: 512
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: Kernel 5.8

Post by Skateman »

Yes,

ETH0 is the onboard DPAA Ethernet adapter. This adapter should work with AmigaOS, Linux and Morphos. (and for me it does)

This means that the X5000 should not have the need for an extra network card. For me the onboard adapter has been working well for some time now, but i looks like i was the only one.
So...it would be nice if you can confirm that your onboard ETH0 is also working well.
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon R7 250 / M-Audio 5.1 -> AmigaOS 4.1 FE / Ubuntu Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world

Post Reply