XA2 running a debug kernel?

asked 2019-08-20 18:48:19 +0300

lambda gravatar image

Immediately after boot, I have the following output in dmesg:

Sailfish kernel: **********************************************************
Sailfish kernel: **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE   **
Sailfish kernel: **                                                      **
Sailfish kernel: ** trace_printk() being used. Allocating extra memory.  **
Sailfish kernel: **                                                      **
Sailfish kernel: ** This means that this is a DEBUG kernel and it is     **
Sailfish kernel: ** unsafe for production use.                           **
Sailfish kernel: **                                                      **
Sailfish kernel: ** If you see this message and you are not debugging    **
Sailfish kernel: ** the kernel, report this immediately to your vendor!  **
Sailfish kernel: **                                                      **
Sailfish kernel: **   NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE   **
Sailfish kernel: **********************************************************

I'm running 3.1.0.11 (Seitseminen) on an XA2 Ultra with developer tools enabled - does someone else also have this message? I'm not sure what extra features are enabled in debug kernels but I guess it's easier to get into the phone when you have physical access.

edit retag flag offensive close delete

Comments

What kernel do you have there? uname -a

dmesg does not show this on my jolla 1. Kernel: 3.4.108.20190506.1 (3.1.0.11)

onehundredpercentdruken ( 2019-08-20 19:22:33 +0300 )edit

The J1 and the Xperia XA have not the same version of kernel. I run dmesg and i do not find this lines about the Sailfish Kernel but a uname -a gives to me:

[nemo@Sailfish ~]$ uname -a
Linux Sailfish 4.4.180 #1 SMP PREEMPT Mon Jun 17 14:27:23 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
[nemo@Sailfish ~]$ 

But i 'm note a developper.

mips_tux ( 2019-08-20 19:46:22 +0300 )edit
1

@mips_tux According to this site it is fixed in 4.14-17

Tech Pattern

see also git commit: Github

Not sure whether this can be labelled as a bug, but it would be removed in the future with a more modern kernel anyway. It currently nothing more than a somewhat odd curiosity.

onehundredpercentdruken ( 2019-08-20 19:53:09 +0300 )edit

Thank you for your explanations! I'm also on a 4.4.180 kernel and it seems the message really just comes from using trace_printk when it shouldn't be. Please feel free to add an answer so I can accept / upvote :)

lambda ( 2019-08-22 02:24:37 +0300 )edit
1

@onehundredpercentdruken :

it remains to be seen if we're going to get more modern kernel.

Sony has released 4.9 kernels and Android 9 driver blobs for both Xperia X and XA2, but we're still stuck with Baseports 6 and 8 respectively.

(which is a blocker to get the aliendalvik LXC container running on X)

DrYak ( 2019-08-22 10:17:47 +0300 )edit