NVIDIA / edk2-nvidia

NVIDIA EDK2 platform support
Other
78 stars 36 forks source link

How to optimize boot time? #75

Open ultwcz opened 1 year ago

ultwcz commented 1 year ago

Hi, the boot time of UEFI firmware costs a lot of time. I have changed PcdPlatformBootTimeOut from 5 to 0, but it still took about 16 seconds.

I noticed a large gap before booting the kernel in the log, so I wanted to ask if there is any way to shorten the startup time.

Thank you.

ashishsingha commented 1 year ago

Hello,

You can try the following:

  1. If you’re using a debug build, consider switching to release build so that time spent logging messages over uart is saved.
  2. Reference BSP release may have more than required hw controllers enabled that you may or may not need during boot. You can disable the controllers you don’t need during boot in uefi dtb and that’ll reduce uefi boot time as well.

Thanks

ultwcz commented 1 year ago

Hi,@ashishsingha Thank you for your reply first. I have used a release build, and what should I do to disable the controllers I don't need? Sorry, I am a beginner for edk2-nvidia