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.

u-boot quiet / silent

Hello Everyone,

I'm working with SDK 7.0 and AM335x processor. I would like to setup uboot for quiet boot - I was able to achieve this by defining the macro CONFIG_SILENT_CONSOLE and setting the variable silent=1. uboot starts up quietly, however, SPL still prints the banner and the reading u-boot.img statements.

Can someone please let me know how I can set those to silent as well? Thank you for your replies.

- Santhosh

  • Hi Santhosh,

    I tested this on my AM335x Starter Kit.
    In u-boot/include/config/am335x_evm.h I added the lines highlighted bellow:
    /* Always 128 KiB env size */
    #define CONFIG_SILENT_CONSOLE
    #define CONFIG_ENV_SIZE (128 << 10)

    #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG

    #ifndef CONFIG_SPL_BUILD
    #define CONFIG_EXTRA_ENV_SETTINGS \
    "loadaddr=0x80200000\0" \
    "fdtaddr=0x80F80000\0" \
    "fdt_high=0xa0000000\0" \
    "boot_fdt=try\0" \
    "rdaddr=0x81000000\0" \
    "bootpart=0:2\0" \
    "bootdir=/boot\0" \
    "bootfile=zImage\0" \
    "fdtfile=undefined\0" \
    "silent=1\0" \
    "console=ttyO0,115200n8\0" \
    "partitions=" \
    "uuid_disk=${uuid_gpt_disk};" \

    As a result my board booted, and the first message was:
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 3.14.26-g2489c02 (jenkins@sdit-build02) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20135
    There was no console output from MLO & U-boot.

    Best Regards,
    Yordan

  • Hello Yordon,

    Thanks for your reply, I've added the same defines and silent=1, at the same location, in my .h file as well. But I'm still getting the console output for the MLO. Can you please let me know what version of U-boot do you have in your system?


    I think you might be using SDK 8.0, since your linux kernel is 3.14?

    Regards

    Santhosh

  • Hi Santhosh,

    Correct, I use SDK8.0 U-Boot 2014.07-g7e537bf on my AM335x Starter Kit.

    Best Regards,
    Yordan
  • Hello Yordon,

    I'm using SDK 7.0 and I don't know if u-boot 2013.10 has that implemented. Can you please let me know if that is the case?

    Thank you
    Regards

    Santhosh
  • Hi Santhosh,

    With u-boot 2013.10 (from SDK7.0) running on beaglebone black, and the result is:
    U-Boot SPL 2013.10-00189-g78d8ebd-dirty (Apr 17 2015 - 10:32:15)
    reading args
    spl: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img
    [ 0.000000] Booting Linux on physical CPU 0x0

    Which confirms your findings. Only u-boot is silenced, messages from MLO are present in the debug console.

    Best Regards,
    Yordan