summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2021-12-20 10:53:24 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2021-12-20 10:55:15 +0800
commit5593254c265c85395e808652f3d003a0d48c553c (patch)
tree0dd6760040cd0fb2c988f1a016a5cc41d7481808
parent3cc0f15fac1258c522b7497168c6d0b31d0b16d8 (diff)
x15 flash.sh: add some debug tips
to print debug message for check Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-xandroid-tools/x15/flash.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/android-tools/x15/flash.sh b/android-tools/x15/flash.sh
index 9156f1c..7f56bdb 100755
--- a/android-tools/x15/flash.sh
+++ b/android-tools/x15/flash.sh
@@ -2,6 +2,24 @@
# https://wiki-archive.linaro.org/Boards/BeagleBoard-X15
# https://linaro.atlassian.net/wiki/spaces/CTT/pages/25111140766/BeagleBoard+X15
+# echo 0x10 >/sys/module/drm/parameters/debug
+# Bit 0 (0x01) will enable CORE messages (drm core code)
+# Bit 1 (0x02) will enable DRIVER messages (drm controller code)
+# Bit 2 (0x04) will enable KMS messages (modesetting code)
+# Bit 3 (0x08) will enable PRIME messages (prime code)
+# Bit 4 (0x10) will enable ATOMIC messages (atomic code)
+# Bit 5 (0x20) will enable VBL messages (vblank code)
+# Bit 7 (0x80) will enable LEASE messages (leasing code)
+# Bit 8 (0x100) will enable DP messages (displayport code)
+# module_param_named(debug, drm_debug, int, 0600);
+# drivers/gpu/drm/drm_drv.c
+#
+# echo 8 > /proc/sys/kernel/printk
+# The first value in our output is the current console_loglevel. This is the information we were looking for: the value, 4 in this case, represents the log level currently used. As said before this means that only messages adopting a severity level higher than it, will be displayed on the console.
+# The second value in the output represents the default_message_loglevel. This value is automatically used for messages without a specific log level: if a message is not associated with a log level, this one will be used for it.
+# The third value in the output reports the minimum_console_loglevel status. It indicates the minimum loglevel which can be used for console_loglevel. The level here used it’s 1, the highest.
+# Finally, the last value represents the default_console_loglevel, which is the default loglevel used for console_loglevel at boot time.
+
img_dir=${1}
if [ -z "${img_dir}" ]; then
img_dir="out/target/product/am57xevm"