New kernels

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

Re: New kernels

Post by xeno74 »

xeno74 wrote: Sat Jul 08, 2023 4:56 pm FYI: The NTFS3 driver has also seen some CPU endian fixes.

Further information: NTFS Driver For Linux 6.5 Brings Small Optimizations & Fixes — phoronix.com
It seems, the issue is fixed. Issue: [Linux PPC] Issues with NTFS read-write driver (GPL implementation by Paragon Software)
User avatar
xeno74
Posts: 10701
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: New kernels

Post by xeno74 »

Hi All,

The merge window has been closed and I am happy to announce the RC1 of kernel 6.5 for testing.

New:

The issue with NTFS3 from Paragon Software is fixed :-) You can now use NTFS3 to mount, read and write NTFS partitions.

More news:
Download: linux-image-6.5-rc1-X1000_X5000.tar.gz

Image

Please test the kernels.

Thanks,
Christian
User avatar
Skateman
Posts: 954
Joined: Thu Aug 10, 2017 9:36 pm
Location: The Netherlands

Re: New kernels

Post by Skateman »

Kernel 6.5 RC1 up and running on my AmigaOne X5000

Image

Big picture https://www.skateman.nl/wp-content/uplo ... -16-08.png

Arctix Fox running Discord using Browservice and SMplayer playing youtube video!
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: 10701
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: New kernels

Post by xeno74 »

Skateman wrote: Mon Jul 10, 2023 9:22 pm Kernel 6.5 RC1 up and running on my AmigaOne X5000

Arctix Fox running Discord using Browservice and SMplayer playing youtube video!
Interesting :-) Thank you for testing the RC1.
User avatar
xeno74
Posts: 10701
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: New kernels

Post by xeno74 »

xeno74 wrote: Sat Jul 01, 2023 6:41 am Update amiga.c_v1.patch:

Code: Select all

--- a/block/partitions/amiga.c	2023-07-01 06:32:03.106124319 +0200
+++ b/block/partitions/amiga.c	2023-07-01 06:36:59.425257149 +0200
@@ -90,7 +90,7 @@ int amiga_partition(struct parsed_partit
 	}
 	blk = be32_to_cpu(rdb->rdb_PartitionList);
 	put_dev_sector(sect);
-	for (part = 1; blk>0 && part<=16; part++, put_dev_sector(sect)) {
+	for (part = 1; (s32) blk>0 && part<=16; part++, put_dev_sector(sect)) {	
 		/* Read in terms partition table understands */
 		if (check_mul_overflow(blk, (sector_t) blksize, &blk)) {
 			pr_err("Dev %s: overflow calculating partition block %llu! Skipping partitions %u and beyond\n",
I successfully created a RDB with GParted with the unpatched (reverted updates) RC1 of kernel 6.5 today.
After that, I tested this disk with a patched RC1 of kernel 6.5. (with Michael's patches)


The strange thing is, that there is no difference between a patched and an unpatched RC1. The reading of the RDB and partitions work correctly with both kernels.

Maybe my RDB was created incorrectly with Media Toolbox and the unpatched RC1 reports problems, but the partitons still work.

Screenshots:

Image

Image
User avatar
xeno74
Posts: 10701
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: New kernels

Post by xeno74 »

For testing:

It is possible to load the dtb file and the uImage directly from the root partition if you use an ext* file system.

Code: Select all

setenv bootargs root=/dev/sda2
load sata 1:2 1000000 /boot/uImage-6.5
load sata 1:2 2000000 /boot/cyrus-p5040.dtb
bootm 1000000 - 2000000
load sata 1:2 2000000 /boot/cyrus-p5020.dtb for the X5000/20.
User avatar
xeno74
Posts: 10701
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: New kernels

Post by xeno74 »

Hi All,

I was able to simulate the issue with the RDB.

First, I created 2TB dynamic allocation disk image with qemu-img.

Code: Select all

qemu-img create -f qcow2 disk.qcow2 2T
du -sh disk.qcow2

Code: Select all

352K    disk.qcow2
After that, I booted the virtual e5500 QEMU machine with this disk.

Code: Select all

qemu-system-ppc64 -M ppce500 -cpu e5500 -m 2048 -kernel uImage-6.5 -drive format=raw,file=void-live-powerpc-20230317.img,index=0,if=virtio -netdev user,id=mynet0 -device virtio-net,netdev=mynet0 -append "rw root=/dev/vda" -device virtio-gpu-pci -device virtio-mouse-pci -device virtio-keyboard-pci -device pci-ohci,id=newusb -audiodev id=sndbe,driver=pa,server=/run/user/1000/pulse/native -device usb-audio,bus=newusb.0 -smp 4 -fsdev local,security_model=passthrough,id=fsdev0,path=/home/christian/Dokumente -device virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=hostshare -drive format=qcow2,file=disk.qcow2,if=virtio
I was able to restore my RDB in this virtual e5500 QEMU machine with:

Code: Select all

sudo dd if=rdb-sda.img of=/dev/vdb

Code: Select all

sudo mkfs -t ext4 /dev/vdb4
I can mount this partition with the unpatched RC1. (without Michael's patches)
But I can't mount it with the patched RC1 of kernel 6.5. (with Michael's patches)

Code: Select all

... EXT4-fs (vdb4): bad geometry: block count ...
User avatar
xeno74
Posts: 10701
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: New kernels

Post by xeno74 »

Hi All,

Here is the RC2 of kernel 6.5 for testing.

New:
Download: linux-image-6.5-rc2-X1000_X5000.tar.gz

Image

Please test the kernels.

Thanks,
Christian
User avatar
xeno74
Posts: 10701
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: New kernels

Post by xeno74 »

Hi All,

I released the RC3 of kernel 6.5 for the X1000 and X5000 today.

New:
Download: linux-image-6.5-rc3-X1000_X5000.tar.gz

Image

Please test,

Christian
Post Reply