Page 1 of 1
How to using bootchart tool to test rootfs start time
Posted: 2024-02-27 8:55
by mrlb
Hello,
I want to modify the start time from kernel start to my application.
Firstly, I want to use the bootchat tool to test the total start time. But I don't know how to install
it in the buildroot framework.
Re: How to using bootchart tool to test rootfs start time
Posted: 2024-02-27 10:57
by Eng38
Hello,
Unfortunately, bootchat relies on glibc, and as rv1106 currently does not support glibc, the use of bootchat is not possible at the moment. I hope you can find alternative methods for implementation and look forward to any insights you might share in the future.
To configure Buildroot and add software packages, please refer to:
https://wiki.luckfox.com/Luckfox-Pico/L ... Buildroot/
Re: How to using bootchart tool to test rootfs start time
Posted: 2024-02-27 14:56
by mrlb
Thank you very much for your timely reply. The reason why I want to use this tool is mainly because I want to optimize the loading time of kernel and rootfs and speed up the app startup time. Do you have any good suggestions?
Re: How to using bootchart tool to test rootfs start time
Posted: 2024-02-28 7:42
by Eng38
Hello, it is recommended to optimize the loading time of the kernel and rootfs through the following two points:
1. Streamline the kernel configuration to remove unnecessary features and drivers. Use make menuconfig to select only the components you truly need. This helps reduce the kernel size and improve loading speed.
2. Configure LF_TARGET_ROOTFS to use BusyBox, enhancing the system startup speed.
Re: How to using bootchart tool to test rootfs start time
Posted: 2024-03-04 1:22
by mrlb
Thank you very much, I will try it later.
Re: How to using bootchart tool to test rootfs start time
Posted: 2024-03-12 7:36
by mrlb
Hello,
At present, from power on to the RKIPC start, the totally time has reduce to 5s, Is it possible to make it within 3s?
Re: How to using bootchart tool to test rootfs start time
Posted: 2024-03-12 8:03
by Eng38
mrlb wrote: ↑2024-03-12 7:36
Hello,
At present, from power on to the RKIPC start, the totally time has reduce to 5s, Is it possible to make it within 3s?
Hello,
The main thing is the speed-up method mentioned above, eliminating unnecessary functions and only keeping the ones you actually need. The Linux kernel takes time to load, and it is difficult to reach within three seconds.