IMX8MM u-boot and kernel silent

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMX8MM u-boot and kernel silent

3,624件の閲覧回数
baptiste
Contributor I

Hi,

I want to reduce my design boot time.
I follow the AN13709 guide, but no way.

I use yocto with an EVK Board (Imx8Nano_EVK board, but the processor is an IMX8Mini).

Could you help me to ?

1 - Silent u-boot 
Autoboot delay = -2 OK (in imx8mm_evk.k) 
But i don't want u-boot write to serial, how can i achieve this permanently with yocto ?

2 - Silent Kernel

How to set bootargs with quiet args (always with Yocto) and permanently (for mass production).

Best regards,
Baptiste

 

0 件の賞賛
返信
4 返答(返信)

3,562件の閲覧回数
baptiste
Contributor I

Hi QMiller,

Thanks for your reply.

I don't find  but include/configs/imx8mm_evk.h
I have put this : 

#define CONFIG_BOOTDELAY -2
#define CONFIG_DISABLE_CONSOLE #define CONFIG_SILENT_CONSOLE #define CONFIG_SYS_DEVICE_NULLDEV

 I have put code in board_early_init_f(board/freescale/imx8mm_evk/imx8mm_evk.c), gd->flags |= (GD_FLG_SILENT | GD_FLG_DISABLE_CONSOLE

 The only thing that is working is that autoboot has no delay anymore (Hit key ...).

For my question to silent kernel permanently, do you know where to set bootargs ?

Best regards

0 件の賞賛
返信

3,553件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

You can set the console=null  in bootargs, the kernel log will not output.

0 件の賞賛
返信

3,542件の閲覧回数
baptiste
Contributor I

Hi Qmiller,

I will try, but where ?
In which file ?

Best regards

0 件の賞賛
返信

3,591件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

For your question one and two, you can import patch in yocto, like disable-uboot-serial.patch and queit-bootargs.patch, modify the u-boot-imx_2022.04.b refering this :https://stackoverflow.com/questions/45584131/how-patching-works-in-yocto

For disabling the serial in uboot, you can try below code: 

  • Add the following defines to the board's config header(located in include/configs/imx8mm_board.h

      #define CONFIG_DISABLE_CONSOLE
      #define CONFIG_SILENT_CONSOLE
      #define CONFIG_SYS_DEVICE_NULLDEV
    
  • Add below code in board_early_init_f(board/freescale/imx8mm_evk/imx8mm_evk.c), gd->flags |= (GD_FLG_SILENT | GD_FLG_DISABLE_CONSOLE
0 件の賞賛
返信