Kernel 5.15

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

Re: Kernel 5.15

Post by xeno74 »

Hypex wrote: Thu Sep 30, 2021 4:23 pm I'll give the "dirty" RC3 a fresh boot test later on.
OK, I am looking forward to your test results! Thanks!
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 5.15

Post by xeno74 »

FYI:
I wrote: On 27 September 2021 at 07:39 am, Sven Peter wrote:
> Hi Christian,
>
> Thanks already for volunteering to test this!
>
Hello Sven,

Damien (Hypex) has successfully tested the RC3 of kernel 5.15 with your modified i2c driver on his Nemo board yesterday. [1]

@Darren
Could you also please check Sven's i2c modifications? He has also modified your source code a little bit. [2]

@Olof
Are these i2c modifications OK? Do these work on your P.A. Semi board?

Thanks,
Christian

[1] viewtopic.php?p=54098#p54098
[2] https://lists.ozlabs.org/pipermail/linu ... 53195.html
[3] Further information about the Nemo board: https://en.wikipedia.org/wiki/AmigaOne_X1000
[4] Kernel patches for the Nemo board: https://lists.ozlabs.org/pipermail/linu ... 67288.html
Link to the thread: Add Apple M1 support to PASemi i2c driver
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 5.15

Post by xeno74 »

Hi Hypex,

Could you please post the output of the following commands with the default and with the modified RC3?
  1. Code: Select all

    uname -a
  2. Code: Select all

    dmesg | grep -i i2c
  3. Code: Select all

    i2cdetect -l
For example:

i2cdetect -l

Code: Select all

i2c-0	i2c       	Radeon i2c bit bus 0x90         	I2C adapter
i2c-1	i2c       	Radeon i2c bit bus 0x91         	I2C adapter
i2c-2	i2c       	Radeon i2c bit bus 0x92         	I2C adapter
i2c-3	i2c       	Radeon i2c bit bus 0x93         	I2C adapter
i2c-4	i2c       	Radeon i2c bit bus 0x94         	I2C adapter
i2c-5	i2c       	Radeon i2c bit bus 0x95         	I2C adapter
i2c-6	i2c       	Radeon i2c bit bus 0x96         	I2C adapter
i2c-7	i2c       	Radeon i2c bit bus 0x97         	I2C adapter
i2c-8	i2c       	card0-DP-1                      	I2C adapter
i2c-9	i2c       	card0-DP-2                      	I2C adapter
Maybe you need to install "i2cdetect" with the command "apt install i2c-tools".

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

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

Re: Kernel 5.15

Post by xeno74 »

Hypex,
Sven wrote: Thanks a lot, that's great to hear!
If he wants to I can credit him with a Tested-by tag in the commit message,
see e.g. https://www.kernel.org/doc/html/latest/ ... -and-fixes.


Best,


Sven
Sven can credit you with a Tested-by tag if you want.

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

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

Re: Kernel 5.15

Post by xeno74 »

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

Running Linux on AmigaONEs can require some tinkering.
User avatar
Hypex
Beta Tester
Beta Tester
Posts: 645
Joined: Mon Dec 20, 2010 2:23 pm
Location: Vic. Australia.

Re: Kernel 5.15

Post by Hypex »

Okay I got it!

I spot a potential issue. See for results.

Default:

Code: Select all

ienix@Fienix:~$ uname -a
Linux Fienix 5.15.0-rc3_A-EON_X1000_Nemo #1 SMP PREEMPT Mon Sep 27 08:03:51 CEST 2021 ppc64 GNU/Linux
fienix@Fienix:~$ dmesg | grep -i i2c
[    5.526679] i2c_dev: i2c /dev entries driver
[    5.851683] i2c i2c-8: Detected TI TMP423 chip at 0x4c
fienix@Fienix:~$ sudo i2cdetect -l
sudo: unable to resolve host Fienix: No address associated with hostname
[sudo] password for fienix: 
i2c-0	i2c       	Radeon i2c bit bus 0x90         	I2C adapter
i2c-1	i2c       	Radeon i2c bit bus 0x91         	I2C adapter
i2c-2	i2c       	Radeon i2c bit bus 0x92         	I2C adapter
i2c-3	i2c       	Radeon i2c bit bus 0x93         	I2C adapter
i2c-4	i2c       	Radeon i2c bit bus 0x94         	I2C adapter
i2c-5	i2c       	Radeon i2c bit bus 0x95         	I2C adapter
i2c-6	i2c       	Radeon i2c bit bus 0x96         	I2C adapter
i2c-7	i2c       	Radeon i2c bit bus 0x97         	I2C adapter
i2c-8	i2c       	PA Semi SMBus adapter at 0x800200	I2C adapter
i2c-9	i2c       	PA Semi SMBus adapter at 0x800240	I2C adapter
i2c-10	i2c       	PA Semi SMBus adapter at 0x800280	I2C adapter
Modified:

Code: Select all

fienix@Fienix:~/Development/i2c-tools$ uname -a
Linux Fienix 5.15.0-rc3_A-EON_X1000_Nemo-00330-g0d8385b378c1-dirty #1 SMP PREEMPT Mon Sep 27 16:51:03 CEST 2021 ppc64 GNU/Linux
fienix@Fienix:~/Development/i2c-tools$ dmesg | grep -i i2c
[    5.692849] i2c_dev: i2c /dev entries driver
[    6.119582] i2c i2c-8: Detected TI TMP423 chip at 0x4c
fienix@Fienix:~/Development/i2c-tools$ sudo i2cdetect -l
sudo: unable to resolve host Fienix: No address associated with hostname
i2c-0	i2c       	Radeon i2c bit bus 0x90         	I2C adapter
i2c-1	i2c       	Radeon i2c bit bus 0x91         	I2C adapter
i2c-2	i2c       	Radeon i2c bit bus 0x92         	I2C adapter
i2c-3	i2c       	Radeon i2c bit bus 0x93         	I2C adapter
i2c-4	i2c       	Radeon i2c bit bus 0x94         	I2C adapter
i2c-5	i2c       	Radeon i2c bit bus 0x95         	I2C adapter
i2c-6	i2c       	Radeon i2c bit bus 0x96         	I2C adapter
i2c-7	i2c       	Radeon i2c bit bus 0x97         	I2C adapter
i2c-8	i2c       	PA Semi SMBus adapter at 0x(____ptrval____)	I2C adapter
i2c-9	i2c       	PA Semi SMBus adapter at 0x(____ptrval____)	I2C adapter
i2c-10	i2c       	PA Semi SMBus adapter at 0x(____ptrval____)	I2C adapter
User avatar
Hypex
Beta Tester
Beta Tester
Posts: 645
Joined: Mon Dec 20, 2010 2:23 pm
Location: Vic. Australia.

Re: Kernel 5.15

Post by Hypex »

xeno74 wrote: Mon Oct 04, 2021 7:23 am Hi All,

I released the RC4 of kernel 5.15 for the X1000 and X5000 today.
Thanks. There is an error in the archive. There is a vmlinux5.14 file but it looks for be the right version.

Code: Select all

ienix@Fienix:~$ grep -a "Linux version 5" '/home/fienix/Downloads/vmlinux-5.14' 
Linux version 5.15.0-rc4_A-EON_X1000_Nemo (christian@cc-build-machine.a-eon.tld) (powerpc-linux-gnu-gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, GNU ld (GNU Binutils for Ubuntu) 2.30) #1 SMP PREEMPT Mon Oct 4 05:30:46 CEST 2021
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.15

Post by xeno74 »

Hypex wrote: Mon Oct 04, 2021 9:22 am
I spot a potential issue. See for results.
OK, I see it. I will report the issue to Sven. Many thanks for testing! You helps me a lot.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Kernel 5.15

Post by xeno74 »

Hypex wrote: Mon Oct 04, 2021 9:42 am Thanks. There is an error in the archive. There is a vmlinux5.14 file but it looks for be the right version.

Code: Select all

ienix@Fienix:~$ grep -a "Linux version 5" '/home/fienix/Downloads/vmlinux-5.14' 
Linux version 5.15.0-rc4_A-EON_X1000_Nemo (christian@cc-build-machine.a-eon.tld) (powerpc-linux-gnu-gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, GNU ld (GNU Binutils for Ubuntu) 2.30) #1 SMP PREEMPT Mon Oct 4 05:30:46 CEST 2021
It was my fault. It is the correct kernel with unfortunately the wrong name. It was to early in the morning for compiling a kernel.

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

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

Re: Kernel 5.15

Post by xeno74 »

Hi Hypex,

I reported the issue to Sven today.

Link: Add Apple M1 support to PASemi i2c driver

Thanks a lot for your help!

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

Running Linux on AmigaONEs can require some tinkering.
Post Reply