stop / hide unwanted messages in iMX8

cancel
Showing results for 
Search instead for 
Did you mean: 

stop / hide unwanted messages in iMX8

Jump to solution
522 Views
Contributor IV

Hi Sir,

I have iMX8M Mini EVK and I am able to run AOSP 9.0 on it.

But after booting when I connect debug port to my laptop and open it using putty then I see lots of unwanted messages
These messages always keeps coming at frequent interval.

It become very annoying while debugging. I want to stop/hide these message but not sure hot to do that.

below is the common message which keep coming -

[11111.056000] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a
[11170.765718] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a
[11171.056032] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a
[11230.765728] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a
[11231.056056] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a

Is there any way i can hide or stop these messages ?

Thanks,

Maneesh

Tags (3)
1 Solution
286 Views
NXP TechSupport
NXP TechSupport

Please try to play with logging level. I mean "-n" option.

View solution in original post

5 Replies
286 Views
NXP TechSupport
NXP TechSupport

As first (easiest) option you can use "dmesg -D" to disable printing messages to console, later you can use "dmesg -E" to enable them back if required.
Also you can tune log level with "dmesg -l"

0 Kudos
286 Views
Contributor IV

Hi Victor,

Thanks for your reply.

But on iMX8M mini EVK when I booted AOSP 9.0 and when I checked dmesg --help options

there is no -D or -E flags available.

Also If I try to do sudo or su then it give permission denied or invalid error msg.

Please check the logs which I collected after booting iMX8M Mini EVK ->

NOTE : - I am using iMX8M Mini EVK and running Android AOSP 9.0 provided by NXP 

evk_8mm:/ $
evk_8mm:/ $
evk_8mm:/ $ dmesg --help                                                       
usage: dmesg [-Cc] [-r|-t|-T] [-n LEVEL] [-s SIZE] [-w]

Print or control the kernel ring buffer.

-C      Clear ring buffer without printing
-c      Clear ring buffer after printing
-n      Set kernel logging LEVEL (1-9)
-r      Raw output (with <level markers>)
-S      Use syslog(2) rather than /dev/kmsg
-s      Show the last SIZE many bytes
-T      Show human-readable timestamps
-t      Don't print timestamps
-w      Keep waiting for more output (aka --follow)

evk_8mm:/ $

[  131.759090] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a
[  132.050218] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a

1|evk_8mm:/ $
1|evk_8mm:/ $ su dmesg -C                                                      
su: invalid uid/gid 'dmesg'
1|evk_8mm:/ $
1|evk_8mm:/ $ sudo dmesg -C                                                    
/system/bin/sh: sudo: not found
127|evk_8mm:/ $
127|evk_8mm:/ $ root
/system/bin/sh: root: not found
127|evk_8mm:/ $ cd /
evk_8mm:/ $

Thanks,

Maneesh

0 Kudos
287 Views
NXP TechSupport
NXP TechSupport

Please try to play with logging level. I mean "-n" option.

View solution in original post

286 Views
Contributor IV

Hi Victor Linnik,

 

I am facing some issue during AOSP OTA and I have already asked this question in this forum
Below is the Link -

 If you can provide any solutions or suggestion then it will be of great help.

Thanks,

Maneesh

0 Kudos
286 Views
Contributor IV

Hi Victor Linnik,

Thanks for your suggestions.

It solved my problem.

I did - 

evk_8mm:/ $ su

evk_8mm:/ $

evk_8mm:/ $ dmesg -n 1

evk_8mm:/ $

And now I am not receiving any debug messages.

Thanks,

Maneesh

0 Kudos