Hi,

I want to reduce boot time in my product. I disabled all unnecessary
modules/libraries and scripts which get load at boot time.
After this my boot time is approx 9 sec. I still want to further reduce it.

>From debugs i identified 2 places where approx 1 sec is utilized (total 2
sec).
*a.* When preinit is called At *[    3.780354] init: - preinit - *and
before mounting file system at
* [    4.913811] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started,
PID 104b.* When ubus daemon is called At* [    5.828610] procd: - ubus -
and *before init process is called at
* [    6.864240] procd: - init -*Attached debugs file for reference.

The delay highlighted in above two locations can be reduced or not?

-- 
Thanks & Regards,
Arjav Parikh
[    3.101212] usbcore: registered new device driver usb
[    3.110163] SCSI subsystem initialized
[    3.116052] dr_mode= 2  (dwc3_probe)
[    3.116156] enable USB_DR_MODE_PERIPHERALdwc3_gadget_init
[    3.374580] dr_mode= 2  (dwc3_probe)enable USB_DR_MODE_PERIPHERAL
[    3.624756] dwc3_gadget_init[    3.629771] usbcore: registered new interface 
driver usb-storage
[    3.780354] init: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
Before mount_root
[    4.913811] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 104
[    4.970727] UBIFS (ubi0:2): recovery needed
[    5.136474] UBIFS (ubi0:2): recovery completed
[    5.136554] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name 
"rootfs_data"
[    5.139806] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O 
unit sizes: 2048 bytes/2048 bytes
[    5.147762] UBIFS (ubi0:2): FS size: 57520128 bytes (54 MiB, 453 LEBs), 
journal size 2920448 bytes (2 MiB, 23 LEBs)
[    5.157660] UBIFS (ubi0:2): reserved for root: 2716817 bytes (2653 KiB)
[    5.167915] UBIFS (ubi0:2): media format: w4/r0 (latest is w4/r0), UUID 
2DA3EB02-1CEC-4E97-BD15-FA7F8806E9A5, small LPT model
[    5.176734] mount_root: switching to jffs2 overlay
After mount_root
/etc/preinit: line 1: awk: not found
[    5.206976] procd: - early -
[    5.207048] procd: - watchdog -
[    5.828610] procd: - ubus -
[    6.864240] procd: - init -
Please press Enter to activate this console.
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to