This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM335X: Boot time optimization

Part Number: PROCESSOR-SDK-AM335X

Hello,

I am currently trying to reduce the boot time of an am335x based board. This is a copy of dmesg :

[    3.759499] [drm] Initialized pvr 1.17.4948957 20110701 for 56000000.sgx on minor 1
[    7.466103] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
Loaded PowerVR consumer services.
Thu Mar 26 08:37:48 UTC 2020

Why does it take so long to start up the PVR controller?

How can I reduce this time ?

To build the distribution, I use the processor SDK V06_01_00_08.

Thank you

S Claudel

  • Hello,

    Could you please share more information about your use-case and your timing requirement? Also, are you using a minimal/cutdown filesystem?

    Regards,
    Krunal

  • Thank you for your reponse.

    The goal for ou system is to start a Qt application under 10 seconds. Now, we haven't been able to boot under 13 seconds.

    Of course, I use a minimal system based on a custom yocto distribution. 

    The log of dmesg in my previous post was captured with an ext4 filesystem, but with an squashfs filesystem I am able to boot very fast but the application still take too much time to start :

    INIT: version 2.88 booting
    [    2.321710] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    2.435576] pvrsrvkm: loading out-of-tree module taints kernel.
    [    2.452603] [drm] Initialized pvr 1.17.4948957 20110701 for 56000000.sgx on minor 1
    [    2.565872] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
    Loaded PowerVR consumer services.
    Starting udev
    [    2.909030] udevd[98]: starting version 3.2.7
    [    3.038805] udevd[98]: specified group 'kvm' unknown
    [    3.095252] udevd[99]: starting eudev-3.2.7
    Fri Mar 27 13:05:08 UTC 2020
    rm: can't remove '/tmp': Read-only file system
    rm: can't remove '/etc/resolv.conf': Read-only file system
    ln: /etc/resolv.conf: File exists
    INIT: Entering runlevel: 5
    Configuring network interfaces... done.
    Starting system message bus: dbus.
    
    
    Arago Project http://arago-project.org am335x-evm /dev/ttyS0
    
    Guinault 2020.03 am335x-evm /dev/ttyS0
    
    am335x-evm login: root

    Between the eudev starting and the getty, there is aproximately 6 seconds and my Qt app does not start before getty. However, my Qt app start in the system runlevel with priority 4.

  • Hello,

    Based on my internal discussion, we recommend you to look at what services are running and if you could parallelize/reduce some of the services. We have the following training for designing the system boot time and feel free to browse the internet for system services optimization.

    Regards,
    Krunal