kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* how to pass log level to 7 from u-boot
@ 2020-10-17 12:57 Tomek The Messenger
  2020-10-17 15:10 ` Ezra Buehler
  0 siblings, 1 reply; 2+ messages in thread
From: Tomek The Messenger @ 2020-10-17 12:57 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 338 bytes --]

Hi
You can change log level in linux runtime
echo 7 > /proc/sys/kernel/printk
however my device hangs on fastly after I am able to write anything through
serial console.
Does anybody of You know how to pass it from u-boot? I can stop in u-boot
and pass log level 7 but I don't know what command should I write in order
to do it.
BR
Tomek

[-- Attachment #1.2: Type: text/html, Size: 427 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: how to pass log level to 7 from u-boot
  2020-10-17 12:57 how to pass log level to 7 from u-boot Tomek The Messenger
@ 2020-10-17 15:10 ` Ezra Buehler
  0 siblings, 0 replies; 2+ messages in thread
From: Ezra Buehler @ 2020-10-17 15:10 UTC (permalink / raw)
  To: Tomek The Messenger; +Cc: kernelnewbies

Hi Tomek,

On 17 Oct 2020, at 14:57, Tomek The Messenger <tomekthemessenger@gmail.com> wrote:
> Does anybody of You know how to pass it from u-boot? I can stop in u-boot and pass log level 7 but I don't know what command should I write in order to do it.

Try adding `loglevel=7` to the `bootargs` U-Boot environment variable.
You can do that with the `setenv` command (https://www.denx.de/wiki/view/DULG/UBootEnvVariables).
You probably also want to set something like `earlyprintk=serial`.
On the Kernel parameters:
https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html

Good luck,
Ezra.


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-17 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-17 12:57 how to pass log level to 7 from u-boot Tomek The Messenger
2020-10-17 15:10 ` Ezra Buehler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).