You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,7 +26,7 @@ The objectives of this document are as follows:
26
26
27
27
Software environment
28
28
^^^^^^^^^^^^^^^^^^^^
29
-
This guide uses 10.0 Processor SDK as reference.
29
+
This guide uses Processor SDK and MCU+SDK as reference.
30
30
31
31
.. ifconfig:: CONFIG_part_variant in ('AM62X')
32
32
@@ -135,7 +135,7 @@ Reducing bootloader time
135
135
136
136
.. ifconfig:: CONFIG_part_variant in ('AM62PX')
137
137
138
-
You can track current performance numbers here: `AM62PX <https://software-dl.ti.com/mcu-plus-sdk/esd/AM62PX/11_01_01_08/exports/docs/api_guide_am62px/DATASHEET_AM62PX_EVM.html#autotoc_md119>`_
138
+
You can track current performance numbers here: `AM62PX <https://software-dl.ti.com/mcu-plus-sdk/esd/AM62PX/12_00_00_27/exports/docs/api_guide_am62px/DATASHEET_AM62PX_EVM.html#autotoc_md119>`_
The following section will reference `AM62PX MCU+ SDK's SBL examples <https://software-dl.ti.com/mcu-plus-sdk/esd/AM62PX/11_01_01_08/exports/docs/api_guide_am62px/EXAMPLES_DRIVERS_SBL.html>`_.
179
+
The following section will reference `AM62PX MCU+ SDK's SBL examples <https://software-dl.ti.com/mcu-plus-sdk/esd/AM62PX/12_00_00_27/exports/docs/api_guide_am62px/EXAMPLES_DRIVERS_SBL.html>`_.
@@ -305,7 +305,85 @@ Reducing Linux kernel boot time
305
305
Reducing userspace boot time
306
306
----------------------------
307
307
308
-
It is recommended to use a tiny intermediate filesystem that can be used to run applications early with minimal configuration and then mount into a filesystem with full functionality. For this purpose, the installer packages a filesystem: :file:`<PSDK_PATH>/filesystem/<machine>/tisdk-tiny-initramfs-am62xx-evm.cpio` that can be used as an initramfs.
308
+
Use a tiny filesystem to run applications early with minimal configuration. You can build a custom minimal tisdk-tiny-initramfs using Yocto.
309
+
310
+
Building custom tiny initramfs
311
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
312
+
313
+
.. note::
314
+
315
+
For detailed instructions on setting up the Yocto build environment, see :ref:`building-the-sdk-with-yocto`.
316
+
317
+
To build the sysvinit based :file:`tisdk-tiny-initramfs-am62xx-evm.cpio` using Yocto, follow these steps:
Since this is only a ramfs image, the MACHINE value does not significantly matter here.
382
+
383
+
The built cpio file will be available in the deploy-ti directory: :file:`deploy-ti/images/<machine>/tisdk-tiny-initramfs-<machine>.cpio` and you can use it as described in the following sections.
384
+
385
+
Optimizing the Filesystem
386
+
^^^^^^^^^^^^^^^^^^^^^^^^^^
309
387
310
388
In order to package the filesystem as initramfs into the kernel, follow these steps:
311
389
@@ -317,16 +395,15 @@ In order to package the filesystem as initramfs into the kernel, follow these st
or using :code:`menuconfig` and generate new .config:
330
407
331
408
.. code-block:: kconfig
332
409
@@ -335,7 +412,9 @@ In order to package the filesystem as initramfs into the kernel, follow these st
335
412
General setup ->
336
413
Initial RAM filesystem and RAM disk (initramfs/initrd) support ->
337
414
Initramfs source file(s)
338
-
/path/to/filesystem
415
+
/path/to/filesystem or cpio file
416
+
417
+
Both cpio or filesystem path can be passed to "Initramfs source file". If providing a filesystem path directly, ensure required files and folders are executable. example :file:`/sbin/init` or :file:`/usr/bin/modetest`.
339
418
340
419
3. Rebuild the kernel
341
420
@@ -355,9 +434,9 @@ The time taken to boot filesystem is measured from Process ID 1(PID1) to login p
This shaves off 1.536s from filesystem boot time. udev alone takes up 1.152s.
439
+
This shaves off 1.536s from filesystem boot time.
361
440
362
441
- Remove package manager, console logo and add /dev/null in the filesystem
363
442
@@ -370,6 +449,63 @@ The time taken to boot filesystem is measured from Process ID 1(PID1) to login p
370
449
371
450
This removes 52ms from the boot up time.
372
451
452
+
- Custom Init Script for Maximum Boot Speed
453
+
454
+
For applications requiring fastest boot time, you can replace the default init system with a custom init script. This approach bypasses sysvinit entirely and provides direct access to the shell while running essential applications in the background. Use this approach if you don't need system services and prefer maximum boot speed over functionality.
455
+
456
+
Remove the existing :file:`/sbin/init` and create a custom :file:`/sbin/init` script with the following commands:
0 commit comments