This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Im trying to enable earlyprintk in GLSDK on jacinto6

Hello

Im trying to enable earlyprintk in GLSDK on jacinto6

I saw "earlyprintk" in my cmdline so I did below things

But still not working. please help me. I don't know what is correct select in my board.

menuconfig
Kernel hacking-> [*] Kernel low-level debugging functions->[*]Kernel low-level debugging port (OMAP2/3/4 UART1 (omap2/3 sdp boards...
                                [*] Early printk

 

 

  • Hi Yangwoo Lee,

    Did you define and use earlyprintk in bootcmd of u-boot ?

    Please refer to the following link.

    blackfin.uclinux.org/doku.php
  • Hello Yangwoo,

    Could you check in your uenv.txt file for arguments below?

    mmcargs=part uuid mmc 0:2 uuid; setenv bootargs "console=ttyO0,115200n8 elevator=noop root=PARTUUID=${uuid} rw rootwait earlyprintk fixrtc omapdrm.num_crtc=2 consoleblank=0 cma=64M rootfstype=ext4 snd.slots_reserved=1,1"

    Try to enable # CONFIG_TTY_PRINTK is not set in your .config file.

    # Non-8250 serial port support
    #
    # CONFIG_TTY_PRINTK is not set

    Try to set in .config file:

    #
    # Boot options
    #
    CONFIG_USE_OF=y
    CONFIG_ATAGS=y
    # CONFIG_DEPRECATED_PARAM_STRUCT is not set
    CONFIG_ZBOOT_ROM_TEXT=0x0
    CONFIG_ZBOOT_ROM_BSS=0x0
    CONFIG_ARM_APPENDED_DTB=y
    CONFIG_ARM_ATAG_DTB_COMPAT=y
    CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER=y
    # CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND is not set
    CONFIG_CMDLINE="root=/dev/mmcblk0p2 rootwait console=ttyO2,115200"
    CONFIG_CMDLINE_FROM_BOOTLOADER=y
    # CONFIG_CMDLINE_EXTEND is not set
    # CONFIG_CMDLINE_FORCE is not set
    CONFIG_KEXEC=y
    CONFIG_ATAGS_PROC=y
    # CONFIG_CRASH_DUMP is not set
    CONFIG_AUTO_ZRELADDR=y

    Take a look on:

    http://elinux.org/Debugging_OMAP_kernel

    e2e.ti.com/.../350101

    Best regards,

    Yanko

  • Hello Yankobelow is my .config items regarding DEBUG
    CONFIG_DEBUG_LL=y CONFIG_DEBUG_OMAP2UART1=y CONFIG_DEBUG_OMAP2PLUS_UART=y CONFIG_DEBUG_LL_INCLUDE="debug/omap2plus.S"
    CONFIG_EARLY_PRINTK=yAnd I also can see "earlyprintk" in my uenv.txt
    But still I can't see message for earlyprintk in kernel boot logThank you
  • Sorry I missed log regarding earlyprintk... because kernel was not bootup...
    I can see earlyprintk message now.Thank you for helping me.