Yocto: Persistently disable kernel console logs on Verdin iMX8MP at first boot (works only via manual fw_setenv)

Hi @ToradexAI,

here the kernel args of init=/init\0 in the appendargs for the recipes-kernel is used for?

Thanks for the conversation! I've reached my limit of replies in this thread.

If you still have questions, feel free to start a new one. I'm happy to help!

Hi @Hariprabhu_13!

You can disable kernel logs by modifying the kernel configuration option called CONFIG_LOGLEVEL_DEFAULT.

For this, I recommend reading the Yocto documentation, specifically subsections 2.6.1 to 2.6.3 of the Linux Kernel Development Manual.

Besides that, I noticed you opened another thread with the same issue. We’ll continue providing support in this one.

Best regards.

Hi @lucas_az.tx,

Based on the toradex ai given info for the kernel splash screen setup as logo at the kernel console logs space at startup, reboot, shutdown time the blank screen is displayed. after removed the logo.nologo in tdxargs at the kernel recipes.

where I need to find the solution for the splash logo at start in the kernel splash screen space, after that my device application once the weston service is up at graphical target starts.

now only the issue is the splash screen setup as logo at start, restart, reboot, shutdown time the blank space need to be fix with the logo. There is any solution for that, and need the guidance to setup the logo at kernel space.

recipes-graphics Layer:

hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-graphics/splash-screen$ tree .
.
├── files
│   └── splash-logo.bmp
└── splash-screen_1.0.bb

1 directory, 2 files
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-graphics/splash-screen$ cat splash-screen_1.0.bb
SUMMARY = "Custom splash screen for kernel framebuffer"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "file://splash-logo.bmp"

S = "${WORKDIR}"

do_install() {
    install -d ${D}/usr/share/pixmaps
    install -m 0644 ${WORKDIR}/splash-logo.bmp ${D}/usr/share/pixmaps/splash-logo.bmp
}

FILES:${PN} = "/usr/share/pixmaps/splash-logo.bmp"
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-graphics/splash-screen$ file files/splash-logo.bmp
files/splash-logo.bmp: PC bitmap, Windows 3.x format, 887 x 267 x 8, image size 237096, resolution 2835 x 2835 px/m, 256 important colors, cbSize 238174, bits offset 1078
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-graphics/splash-screen$

recipes-kernel Layer:

hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-kernel$ tree .
.
└── linux
    ├── files
    │   ├── ppp.cfg
    │   └── verdin-imx8mp-qmi.cfg
    ├── linux-toradex
    │   └── fast-boot.cfg
    └── linux-toradex_%.bbappend

3 directories, 4 files
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-kernel$ cat linux/linux-toradex_%.bbappend
FILESEXTRAPATHS:prepend := "${THISDIR}/linux-toradex:"
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

unset KBUILD_DEFCONFIG

SRC_URI += "\
    file://fast-boot.cfg \
    file://verdin-imx8mp-qmi.cfg \
    file://ppp.cfg \
"

KERNEL_CONFIG_FRAGMENTS += "fast-boot.cfg verdin-imx8mp-qmi.cfg ppp.cfg"

# REMOVE logo.nologo to allow logo display
APPENDARGS += " quiet loglevel=0 vt.global_cursor_default=0 vt.default_redraw=0 console=tty0 init=/init"

RDEPENDS:${KERNEL_PACKAGE_NAME}-base += "splash-screen"
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-kernel$ cat linux/linux-toradex/fast-boot.cfg
# Enable framebuffer console for splash
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
CONFIG_FB=y
CONFIG_FB_SIMPLE=y

# Enable DRM framebuffer for iMX8MP
# CONFIG_DRM_FBDEV_EMULATION=y
# CONFIG_DRM_FBDEV_OVERALLOC=100

# Enable logo support - CRITICAL for splash display
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y

# Disable printk but keep framebuffer
CONFIG_PRINTK=n
CONFIG_EARLY_PRINTK=n
# CONFIG_UBI_SILENCE_MSG=y
hari@Administrator:~/oe-core/layers/meta-lokbest/recipes-kernel

After these I still now didn’t see any logo on the kernel linux splash screen at start time only the blank screen is displayed. I need the help to fix this issue for device display screen developement.

Hi @ToradexAI,

Any update for this issue?

Thanks for the conversation! I've reached my limit of replies in this thread.

If you still have questions, feel free to start a new one. I'm happy to help!