Kernel 5.11

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

Re: Kernel 5.11

Post by xeno74 »

kilaueabart wrote: Wed Jan 27, 2021 12:17 am rc5 seems to work.
I wanted to test DVD video on VLC as per your request, but it turns out I'm not smart enough to figure out what version of VLC I have. So I downloaded and extracted 3.0.12 to be sure of having the new one, but I'm not sure what to do with it. I did the same with vlc_addon_dvd.tar.gz, but I have no idea where to find the VLC folder to put it in. I'm not sure I have any DVD video to try it out on anyway.
Many thanks for testing the RC5! :-)

You can start the new VLC Media Player with ./run_vlc.sh. You don't need to remove your installed old VLC. Please copy the 2 libdvdcss libraries from the vlc_addon_dvd folder to the lib folder in the new VLC folder.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 5.11

Post by xeno74 »

acefnq wrote: Wed Jan 27, 2021 6:28 am RC5 up and running fine. Thank you.

ace
Great! Thank you for testing the RC5! :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 5.11

Post by xeno74 »

Hi All,

Unfortunately KVM HV doesn't work anymore on my X5000. I tested it with QEMU 5.0.0 today [2]. The virtual e5500 QEMU machine works with the "RC4 with KVM HV" and with the "RC5 without KVM HV". The complete system freezes if I use KVM HV with the RC5.

I have bisected and 785025820a6a565185ce9d47fdd8d23dbf91dee8 (powerpc/mm/highmem: use __set_pte_at() for kmap_local()) is the first bad commit.

I was able to revert this bad commit and after a new compiling, KVM HV works again.

I created a patch for reverting the commit.

Code: Select all

diff -rupN a/arch/powerpc/include/asm/highmem.h b/arch/powerpc/include/asm/highmem.h
--- a/arch/powerpc/include/asm/highmem.h        2021-01-27 16:12:40.382164118 +0100
+++ b/arch/powerpc/include/asm/highmem.h        2021-01-27 16:10:54.055249957 +0100
@@ -58,8 +58,6 @@ extern pte_t *pkmap_page_table;

 #define flush_cache_kmaps()    flush_cache_all()

-#define arch_kmap_local_set_pte(mm, vaddr, ptep, ptev) \
-       __set_pte_at(mm, vaddr, ptep, ptev, 1)
 #define arch_kmap_local_post_map(vaddr, pteval)        \
        local_flush_tlb_page(NULL, vaddr)
 #define arch_kmap_local_post_unmap(vaddr)      \
I reported this issue to the linuxppc-dev mailing list today. Link: FSL P5040: KVM HV doesn't work with the RC5 of kernel 5.11

Thanks,
Christian

[2]

Code: Select all

qemu-system-ppc64 -M ppce500 -cpu e5500 -enable-kvm -m 1024 -kernel uImage-5.11 -drive format=raw,file=MintPPC32-X5000.img,index=0,if=virtio -netdev user,id=mynet0 -device e1000,netdev=mynet0 -append "rw root=/dev/vda" -device virtio-vga -device virtio-mouse-pci -device virtio-keyboard-pci -device pci-ohci,id=newusb -device usb-audio,bus=newusb.0 -smp 4
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
kilaueabart
Posts: 1070
Joined: Mon Mar 05, 2012 2:36 am

Re: Kernel 5.11

Post by kilaueabart »

xeno74 wrote: Wed Jan 27, 2021 9:14 am You can start the new VLC Media Player with ./run_vlc.sh. You don't need to remove your installed old VLC. Please copy the 2 libdvdcss libraries from the vlc_addon_dvd folder to the lib folder in the new VLC folder.
Earlier today I did this:

Code: Select all

cp /home/fienix/vlc_addon_dvd/libd* /usr/lib/powerpc-linux-gnu
based on instructions I found in some DVD stuff you were writing last May, but I don't know how to find the new VLC folder. I haven't been able to play VLC:

Code: Select all

fienix@Fienix:~$ ./run_vlc.sh
bash: ./run_vlc.sh: No such file or directory
fienix@Fienix:~$ su -
Password: 
root@Fienix:~# ./run_vlc.sh
-bash: ./run_vlc.sh: No such file or directory
Maybe I'm just getting too old to play with computers.
Then I tried something else:

Code: Select all

fienix@Fienix:~$ cd vlc-3*
fienix@Fienix:~/vlc-3.0.12-non-altivec$ ./run_vlc.sh
VLC media player 3.0.12 Vetinari (PowerPC 32-bit Non-AltiVec for X5000) (revision 3.0.12-1-0-gd147bb5e7e)
[107ded30] main libvlc error: stale plugins cache: modified /home/fienix/vlc-3.0.12-non-altivec/lib/vlc/plugins/demux/libreal_plugin.so
After several hundred of those error messages, I got

Code: Select all

[107ded30] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[1095d380] main playlist: playlist is empty
qt.qpa.xcb: QXcbConnection: XCB error: 2 (BadValue), sequence: 194, resource id: 18, major code: 131 (Unknown), minor code: 46
Non-native QFileDialog supports only local files
Non-native QFileDialog supports only local files
Non-native QFileDialog supports only local files
QObject::~QObject: Timers cannot be stopped from another thread
and a working version of VLC 3.0.12, but I hope this isn't the way it's supposed to work! Also I thought I got rid of 3.0.4 along the way, but Menu > Sound & Video still has it as its only entry.
User avatar
xeno74
Posts: 9350
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.11

Post by xeno74 »

You have done it correctly. You have two versions of VLC now.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
kilaueabart
Posts: 1070
Joined: Mon Mar 05, 2012 2:36 am

Re: Kernel 5.11

Post by kilaueabart »

rc6 seems just fine so far.
rc6.png
I was surprised at the long "6m" to download. The kernel packages usually say they'll take "2m."
User avatar
xeno74
Posts: 9350
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.11

Post by xeno74 »

kilaueabart wrote: Tue Feb 02, 2021 11:51 pm rc6 seems just fine so far.
Good! Thanks for testing!
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 5.11

Post by Skateman »

Kernel 5.11 RC6 Running fine on the AmigaOne X5000.

Also running VLC Non-Altivec!

Image

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

Thanks again Christian
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: 9350
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.11

Post by xeno74 »

Skateman wrote: Sat Feb 06, 2021 10:20 am Kernel 5.11 RC6 Running fine on the AmigaOne X5000.

Also running VLC Non-Altivec!

Thanks again Christian
Thanks a lot for testing the RC6! Great, that the new VLC also works on your X5000.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply