New kernels

AmigaOne X5000 platform specific issues related to Linux only.
User avatar
Skateman
Posts: 864
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: New kernels

Post by Skateman »

Kernel 6.4 RC6 up and running on my AmigaOne X5000

Image

Big picture https://www.skateman.nl/wp-content/uplo ... -05-10.png
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: 9387
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

Skateman wrote: Wed Jun 14, 2023 9:19 am Kernel 6.4 RC6 up and running on my AmigaOne X5000
Many thanks for testing! :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: New kernels

Post by xeno74 »

KVM-PR no longer works on an X1000 if the kernel has been compiled with a new GCC.

I changed the GCC from version 12.2.0 to version 9.5.0 because of the issues with KVM on Linux PPC today. (Cross compiling environment on Ubuntu 23.04)
  1. Code: Select all

    sudo apt install gcc-9-powerpc-linux-gnu
  2. Code: Select all

    sudo apt install g++-9-powerpc-linux-gnu
  3. Code: Select all

    sudo update-alternatives --install /usr/bin/powerpc-linux-gnu-gcc powerpc-linux-gnu-gcc /usr/bin/powerpc-linux-gnu-gcc-9 10
  4. Code: Select all

    sudo update-alternatives --install /usr/bin/powerpc-linux-gnu-g++ powerpc-linux-gnu-g++ /usr/bin/powerpc-linux-gnu-g++-9 10
Results:

powerpc-linux-gnu-gcc --version

Code: Select all

powerpc-linux-gnu-gcc (Ubuntu 9.5.0-1ubuntu1) 9.5.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
powerpc-linux-gnu-g++ --version

Code: Select all

powerpc-linux-gnu-g++ (Ubuntu 9.5.0-1ubuntu1) 9.5.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc oldconfig

Code: Select all

#
# Automatically generated file; DO NOT EDIT.
# Linux/powerpc 6.4.0-rc6 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="powerpc-linux-gnu-gcc (Ubuntu 9.5.0-1ubuntu1) 9.5.0"
time make -j16 CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc vmlinux

Code: Select all

real	2m23,661s
user	32m57,396s
sys	2m20,424s
time make -j16 CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc modules

Code: Select all

real	0m55,319s
user	13m8,843s
sys	1m4,819s
I created the kvm kernel modules with the GCC 9.5.0 for the X1000 again.

Download: kvm_6.4-rc6_X1000.tar.gz

Instructions for installing the new kvm kernel modules on the X1000:
  1. Code: Select all

    cd /lib/modules/6.4.0-rc6_A-EON_X1000_Nemo/kernel/arch/powerpc/
  2. Code: Select all

    lsmod | grep kvm
  3. Code: Select all

    sudo modprobe -r kvm-pr
  4. Code: Select all

    sudo modprobe -r kvm
  5. Code: Select all

    lsmod | grep kvm
  6. Code: Select all

    sudo rm -rf kvm
  7. Code: Select all

    sudo wget http://www.xenosoft.de/kvm_6.4-rc6_X1000.tar.gz
  8. Code: Select all

    sudo tar zxvf kvm_6.4-rc6_X1000.tar.gz
  9. Code: Select all

    sudo rm kvm_6.4-rc6_X1000.tar.gz
  10. Code: Select all

    sudo modprobe kvm-pr
  11. Code: Select all

    lsmod | grep kvm
  12. Test:

    Code: Select all

    qemu-system-ppc -M g3beige -enable-kvm -m 2047 -bios openbios-ppc -boot c -hda Lubuntu_14.04_PowerPC_QEMU.img -g 1280x1024x32 -kernel vmlinux -initrd initrd -append "ro root=/dev/sda3" -device pci-ohci,id=newusb -device usb-tablet -nic user,model=e1000
Screenshot:

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

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

Re: New kernels

Post by xeno74 »

Machine with a PowerPC build environment for crossbuilding:

Image

GCC: powerpc-linux-gnu-gcc (Ubuntu 9.5.0-1ubuntu1) 9.5.0

X1000: 6.4-rc7 compile time:

time make -j16 CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc vmlinux

Code: Select all

real	2m23,610s
user	32m57,752s
sys	2m22,167s
time make -j16 CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc modules

Code: Select all

real	0m55,701s
user	13m11,215s
sys	1m5,703s
X5000: 6.4-rc7 compile time:

time make -j16 CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc uImage

Code: Select all

real	2m24,286s
user	31m18,960s
sys	2m27,824s
time make -j16 CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc modules

Code: Select all

real	1m14,648s
user	17m52,960s
sys	1m31,409s
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
musa
Posts: 714
Joined: Tue Aug 23, 2011 7:58 pm

Re: New kernels

Post by musa »

Hi
I have reinstalled debian ppc64 and updated to Trixie/sid.
Here, debian boots on vmlinux-6.4_rc7.
have a nice day

Image
AmigaX1000
User avatar
xeno74
Posts: 9387
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

musa wrote: Mon Jun 19, 2023 10:14 am Hi
I have reinstalled debian ppc64 and updated to Trixie/sid.
Here, debian boots on vmlinux-6.4_rc7.
have a nice day
Great! Thanks a lot! :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: New kernels

Post by xeno74 »

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

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

Re: New kernels

Post by Skateman »

Kernel 6.4 RC7 is running fine on my AmigaOne X5000

Image

Big picture: https://www.skateman.nl/wp-content/uplo ... -58-28.png
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: 9387
Joined: Fri Mar 23, 2012 7:58 am

Re: New kernels

Post by xeno74 »

Skateman wrote: Sat Jun 24, 2023 11:03 am Kernel 6.4 RC7 is running fine on my AmigaOne X5000
Thank you for testing! :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: New kernels

Post by xeno74 »

Hi All,

Here is the final kernel 6.4. Thanks a lot to Skateman, Musa, sailorMH, Hypex and Trevor for testing the alphas and release candidates. :-)

New and important for our AmigaOnes:
  • X1000, X5000, and QEMU e5500: Multi-Gen LRU support (CONFIG_LRU_GEN=y and CONFIG_LRU_GEN_ENABLED=y)
  • PASEMI updates in the PowerPC updates
  • PASEMI ethernet and DPAA updates in the networking updates
  • There are some issues with the BTTV driver for TV cards so we added the new BTTV driver originally planned for the kernel 6.5 to our kernel 6.4.
  • X1000: Fix ISA mapping when "ranges" property is not present, for PASemi Nemo boards
More news:
Download: linux-image-6.4-X1000_X5000.tar.gz

Image

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

Running Linux on AmigaONEs can require some tinkering.
Post Reply