Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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.

AM625: Yocto: Change kernel command line parameters

Expert 2710 points
Part Number: AM625

Tool/software:

I'm trying to find a place where to change the kernel command line parameters given from u-boot. I want to disable the console showing on HDMI. Where can I do that? I already tried to add vt.global_cursor_default=0 to devicetree bootargs, but it didn't help

cat /proc/cmdline
console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=spi-nand0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),256k(ospi.env.backup),98048k@32m(ospi.rootfs),256k@130816k(ospi.phypattern);omap2-nand.0:2m(NAND.tiboot3),2m(NAND.tispl),2m(NAND.tiboot3.backup),4m(NAND.u-boot),256k(NAND.u-boot-env),256k(NAND.u-boot-env.backup),-(NAND.file-system) root=PARTUUID=3b7d27bd-02 rw rootfstype=ext4 rootwait

bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 vt.global_cursor_default=0";

JHi

  • Hello,

    I am routing the query to the subject-matter expert for comments.

    Regards,
    Aparna

  • Hi,

    Have you tried using optargs?

    Regards,

    Krunal

  • You mean optargs from u-boot command line? Even if those would work, I need to be able to set the kernel command line arguments somewhere before building image. And where would that be?

    JHi

  • Hi,

    Are you looking for the file board/ti/am62x/am62x.env?

    Regards,
    Krunal

  • Where would that be? And how to use it with yocto? An example would be nice.

  • Hi,

    I was referring to the following: https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/board/ti/am62x/am62x.env?h=ti-u-boot-2023.04. Essentially modifying the Uboot environment. 

    Regards,
    Krunal

  • After adding the vt.global_cursor_default=0, I can see it applied to cmdline, but it didn't help to disable the console from HDMI. Any other tricks I could use to get rid of the console appearing on display?

    cat /proc/cmdline
    console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=spi-nand0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),256k(ospi.env.backup),98048k@32m(ospi.rootfs),256k@130816k(ospi.phypattern);omap2-nand.0:2m(NAND.tiboot3),2m(NAND.tispl),2m(NAND.tiboot3.backup),4m(NAND.u-boot),256k(NAND.u-boot-env),256k(NAND.u-boot-env.backup),-(NAND.file-system) vt.global_cursor_default=0 root=PARTUUID=df6aa6df-02 rw rootfstype=ext4 rootwait

  • Hi,

    In the Kernel config, you can try to disable the following:

    #                                                                 

    # Console display driver support                                  

    #                                                                 

    CONFIG_DUMMY_CONSOLE=y                                            

    CONFIG_DUMMY_CONSOLE_COLUMNS=80                                   

    CONFIG_DUMMY_CONSOLE_ROWS=25                                      

    CONFIG_FRAMEBUFFER_CONSOLE=y                                      

    CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION=y                  

    CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y                       

    CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y                             

    # CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set         

    # end of Console display driver support 

    Also, turning off FB support might also help here.

    Regards,
    Krunal