Part Number: AM62P
Hello Ti Experts,
My objective is to reduce the Linux boot-time to less than 5 seconds.
The setup I'm having is
1. Booting from SD Card.
2. Falcon mode Linux
3. Rreduced OS size to less than 1.5 GB
4. Disabled the kernel logs(via menuconfig), systemd logs(via editing /etc/systemd/system.conf and /etc/systemd/journald.conf) also disabled few services which are no longer required.
5. Used initramfs with mentioned optimizations in this link
With this above setup I've achieved below things.
1. From above setup if excluded point 5 then my boot time using falcon mode in Linux is upto 8 secs.
2. But after using initramfs as per mentioned optimizations below observations are there:
i. I've attached the boot logs where I couldn't log into OS when used the below /sbin/init
#!/bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
mount -t devtmpfs dev /dev
# Run modetest in the background
# 40 - connector ID
# 38 - CRTC ID
# 1920x1200 - resolution of panel
(modetest -M tidss -s 40@38:1920x1200 0<&- 2>/tmp/output.log) &
exec /sbin/init.sysvinit $*
U-Boot SPL 2025.01-00766-g7493977a537f (Dec 03 2025 - 15:20:36 +0000)
SYSFW ABI: 4.0 (firmware rev 0x000b '11.2.5--v11.02.05 (Fancy Rat)')
Set clock rates for '/a53@0', CPU: 1250MHz at Speed Grade 'U'
SPL initial stack usage: 17104 bytes
Trying to boot from MMC2
Authentication passed
Loading falcon payload from MMC2
Authentication passed
Authentication passed
Loading Environment from nowhere... OK
Authentication passed
Authentication passed
Starting ATF on ARM64 core...
NOTICE: BL31: v2.13.0(release):v2.13.0-259-ge0c4d3903b-dirty
NOTICE: BL31: Built : 07:01:36, Jul 1 2025
am62xx-evm login: root
login
am62xx-evm login: root
login
am62xx-evm login:
ii. For booting and logginf in successfuly I've attached below the /sbin/init file as well as logs
#!/bin/sh
mount -t proc none /proc
mount -t sysfs none /sys
sleep 5
mount -t devtmpfs dev /dev
ls /dev/ >> /tmp/log 2>&1
echo "ls dev" $? >> /dev/ttyS2
ls /dev/mmcblk1p2 >> /tmp/log 2>&1
mount /dev/mmcblk1p2 /mnt/
echo "Mount FS:" $? >> /dev/ttyS2
umount /proc
umount /sys
exec switch_root /mnt/ /sbin/init
U-Boot SPL 2025.01-gfca559b2ded2-dirty (Mar 04 2026 - 18:54:53 +0530)
SYSFW ABI: 4.0 (firmware rev 0x000b '11.2.5--v11.02.05 (Fancy Rat)')
Set clock rates for '/a53@0', CPU: 1250MHz at Speed Grade 'U'
SPL initial stack usage: 17104 bytes
Trying to boot from MMC2
Authentication passed
Loading falcon payload from MMC2
Authentication passed
Authentication passed
Loading Environment from nowhere... OK
Authentication passed
Authentication passed
Starting ATF on ARM64 core...
NOTICE: BL31: v2.14.0(release):sandbox/v2.14-499-g7a22051c1
NOTICE: BL31: Built : 12:23:51, Feb 10 2026
I/TC:
I/TC: OP-TEE version: 4.9.0-22-ge9eaf44aa (gcc version 13.3.1 20240614 (Arm GNU Toolchain 13.3.Rel1 (Build arm-13.24))) #1 Tue Feb 10 06:54:31 UTC 2026 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check optee.readthedocs.io/.../porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: GIC redistributor base address not provided
I/TC: Assuming default GIC group status and modifier
I/TC: SYSFW ABI: 4.0 (firmware rev 0x000b '11.2.5--v11.02.05 (Fancy Rat)')
I/TC: HUK Initialized
I/TC: Disabling output console
ls dev 0
Mount FS: 0
_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|
Arago Project am62pxx-evm ttyS2
Arago 2025.01 am62pxx-evm ttyS2
am62pxx-evm login: root
root@am62pxx-evm:~#
- Now as per the above observations. Why the /sbin/init provided in Ti SDK is not working.
- Also The boot time with modified /sbin/init is increased to 13 seconds. But it was not expected when used initramfs for booting then why is this happening?
Kindly explain the above situation and help us in optimiztion of boot time
Also guide us whether the use Standard boot or the Falcon boot for Linux?
Regards,
Aditya T