U-boot - Boot time optimization on imx8qm

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

U-boot - Boot time optimization on imx8qm

2,618件の閲覧回数
amit251291
Contributor IV

We are working on imx8qm running with Android 9 automotive. We tried to optimize u-boot but it still takes ~2.59 sec to start the kernel. We have already removed unnecessary drivers and Logs. After looking more closely we see that there are some logs coming from tee.bin which is sitting inside /vendor/nxp-opensource/imx-mkimage. Can we remove these logs ? How can we further optimize u-boot ?

 

Here are the current logs from u-boot with timestamp: 

[0.000001 0.000001]
[0.959662 0.959661] BTO: U-Boot SPL 2018.03-00004-g69a33ef (Apr 01 2020 - 19:04:59 +0530)
[1.278124 0.318462] U
[1.294403 0.016279] welcome to lk/MP
[1.295475 0.001072]
[1.295542 0.000067] boot args 0x2000000 0xfe000000 0x2000 0x
[1.297647 0.002105] generic_arm64_map_regs: failed -5 name=gic
[1.312700 0.015053] initializing trusty (Built: :00:46 Mar 5 2019)
[1.315494 0.002794] Initializing Trusted OS SMC handler
[1.317379 0.001885] int build_hset_all(struct uctx *):238: Rebuilding all handles set
[1.326491 0.009112] hwcrypto: 222: Initializing
[1.328177 0.001686] hwrng_caam: 44: Init HWRNG rvice provider
[1.330215 0.002038] hwrng_srv: 256: Start HWRNG service
[1.332220 0.002005] int rebui_hset_all(struct uctx *):238: Rebuilding all handles set
[1.342303 0.010083] hwcrypto_caam: 78: Init HWCRYPTO service provider
[1.344947 0.002644] hwcrypto_v: 306: Start HWCRYPTO service
[1.349575 0.004628] hwkey_caam: 169: Init HWKEY seice provider
[1.358296 0.008721] hwkey_caam: 138: Invalid magic
[1.363949 0.005653] hwkey_srv: 331: Start HWKEY service
[1.370600 0.006651] hwcrypto: 237: enter main event loo
[1.376187 0.005587] int rebuild_hset_all(struct uctx *):238: Rebuilding all handl set
[1.381949 0.005762] int rebuild_hset_all(struct uctx *):238: Rebuilding all handles set
[1.383734 0.001785] int rebuild_hset_all(struct uctx *):238: Reilding all handles set
[2.110303 0.726569] ss: get_rpmb_auth_key: failed to get key: -2
[2.128344 0.018041] ss: proxy_connect: can't t storage auth key: (-2)
[2.134139 0.005795] ipc: do_connect: failure initializinchannel state (1001)
[2.158401 0.024262] Fastboot: Normal
[2.159615 0.001214]
[2.593082 0.433467]
[2.593327 0.000245] Starting kernel ...

ラベル(2)
3 返答(返信)

1,911件の閲覧回数
likaixinstar
Contributor I

@amit251291 hello amit

How did you optimize the part tee.bin? Did you remove this stage to optimize the startup time

0 件の賞賛
返信

2,472件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Amit,

You can try the falcon mode in your BSP:

git.denx.de Git - u-boot.git/blob - doc/README.falcon 

 

as demonstrate the i.mx6Q:

How to decrease boot time on iMX6 - i.MXDev Blog 

Regards

2,472件の閲覧回数
amit251291
Contributor IV

Thank you Igor for guidelines. I will have a look. 

0 件の賞賛
返信