Boot time optimization for Android 9 Auto - Imx8qm-mek

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Boot time optimization for Android 9 Auto - Imx8qm-mek

1,945 Views
amit251291
Contributor IV

Dear all,

We are working on Android 9 Auto on I.MX8QM-MEK platform. We need to optimize boot time. 

It will be grateful if anyone can throw some light here by proving some important patches, reference links etc. for this android version and platform. 

We have already gone through  couple of below post : 

Optimizing Boot Times  |  Android Open Source Project 

https://community.nxp.com/thread/479381 

0 Kudos
6 Replies

1,783 Views
igorpadykov
NXP Employee
NXP Employee

Hi Amit

I sent one example via mail, hope it will be helpful.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

401 Views
sig0912
Contributor III

Hi Igor,

We are using imx8qm with Android 12, currently uboot boots in 3.9s. We have disabled some configs and drivers but it is still too much. How can we make this better? Can you please send the example.

Thanks

sig0912_0-1696272464247.png

 

0 Kudos

1,399 Views
myy
Contributor II

Would you be able to provide that example to me too please?

thanks

0 Kudos

1,721 Views
andrew_questps
Contributor III

@igorpadykov Would you be able to provide that example to me too please?

We are not working on Auto but Android 9 so I think it would be applicable for our use.

Thanks,

Andre

0 Kudos

1,783 Views
amit251291
Contributor IV

Thanks igor, I have received your mail. 

One more doubt: 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 ?

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 ...

How can we further optimize u-boot ?

0 Kudos

1,293 Views
myy
Contributor II

Hi, Can you email me a copy

0 Kudos