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.

Does anybody try early_printk on K2E EVM?

When I tried early_printk, it seems nothing output, so I just need confirmation before more deeper investigation, any comments are welcome

  • Hi Zumeng,

    I've used "early_printk" option in u-boot bootargs and got working on K2E board.

    Are you using the pre-built images for booting ?


    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------
    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------
  • Yes, Shankari, I did use early_printk in command line, and built the default kernel out of the tag k2-rt-3.10.61-15.02, and then rebuild as follows:

    diff --git a/init/main.c b/init/main.c
    index 0ad89bd..8f1afca 100644
    --- a/init/main.c
    +++ b/init/main.c
    @@ -475,6 +475,8 @@ asmlinkage void __init start_kernel(void)
    char * command_line;
    extern const struct kernel_param __start___param[], __stop___param[];

    + early_printk("### early %s %d \n", __func__,__LINE__);
    + printk("### printk olny %s %d \n", __func__,__LINE__);
    /*
    * Need to run as early as possible, to initialize the
    * lockdep hash:
    @@ -483,6 +485,7 @@ asmlinkage void __init start_kernel(void)
    smp_setup_processor_id();
    debug_objects_early_init();

    + early_printk("### %s %d \n", __func__,__LINE__);

    Only one output from "printk" rather then "early_printk"
    Any idea?
  • Yes, it's OK, totally insane, sorry for that, thanks
  • Hi Zumeng Chen,
    Thank you for the post.
  • Hi zumen,

    I am glad that you are able to use the early_printk.

    Thanks for the update and closing the thread.

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------