Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] Reduce boot time

9

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
9

【Linux】 Reduce boot time

Posted at 8/21/2021 21:45:32      View:2080 | Replies:0        Print      Only Author   [Copy Link] 1#
Hi
I'm trying to reduce the boot time. From the boot log it seems that something in the initramfs might take ~3s? Is it the mounting of root fs?

Do you have any advice to reduce the time in boot between [    2.100622] and [    4.987011]?

[    0.550579] console [ttyS1] enabled
[    0.557885] bootconsole [uart8250] disabled
[    0.567594] ff560000.serial: ttyS0 at MMIO 0xff560000 (irq = 32, base_baud = 1500000) is a 16550A
[    0.579276] random: fast init done
[    0.583167] random: crng init done
[    0.590394] loop: module loaded
[    0.594354] zram: Added device: zram0
[    0.598323] ds1820: probe of fe000000.syscon failed with error -22
[    0.604658] ds1820: probe of fe020000.syscon failed with error -22
[    0.617975] rockchip-thermal ff5f0000.tsadc: tsadc trimmed value = 1
[    0.624823] rockchip-thermal ff5f0000.tsadc: tsadc is probed successfully!
[    0.632381] rockchip-thermal ff5f8000.tsadc: tsadc trimmed value = 2
[    0.639153] rockchip-thermal ff5f8000.tsadc: tsadc is probed successfully!
[    0.647149] cpu cpu0: bin=0
[    0.650038] cpu cpu0: leakage=1.500
[    0.653628] cpu cpu0: Failed to get reg
[    0.657529] cpu cpu0: bin-scale=5
[    0.661281] cpuidle: enable-method property 'psci' found operations
[    0.667865] cpuidle: enable-method property 'psci' found operations
[    0.674478] cpuidle: enable-method property 'psci' found operations
[    0.681080] cpuidle: enable-method property 'psci' found operations
[    0.688616] Synopsys Designware Multimedia Card Interface Driver
[    0.695964] dwmmc_rockchip ffc50000.dwmmc: IDMAC supports 32-bit address mode.
[    0.703390] dwmmc_rockchip ffc50000.dwmmc: Using internal DMA controller.
[    0.710341] dwmmc_rockchip ffc50000.dwmmc: Version ID is 270a
[    0.716294] dwmmc_rockchip ffc50000.dwmmc: DW MMC controller at irq 45,32 bit host data width,256 deep fifo
[    0.726420] mmc_host mmc0: card is non-removable.
[    0.744288] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.767505] dwmmc_rockchip ffc60000.dwmmc: IDMAC supports 32-bit address mode.
[    0.774925] dwmmc_rockchip ffc60000.dwmmc: Using internal DMA controller.
[    0.781888] dwmmc_rockchip ffc60000.dwmmc: Version ID is 270a
[    0.787877] dwmmc_rockchip ffc60000.dwmmc: DW MMC controller at irq 46,32 bit host data width,256 deep fifo
[    0.798729] dwmmc_rockchip ffc70000.dwmmc: IDMAC supports 32-bit address mode.
[    0.806238] dwmmc_rockchip ffc70000.dwmmc: Using internal DMA controller.
[    0.813159] dwmmc_rockchip ffc70000.dwmmc: Version ID is 270a
[    0.819132] dwmmc_rockchip ffc70000.dwmmc: DW MMC controller at irq 47,32 bit host data width,256 deep fifo
[    0.829276] dwmmc_rockchip ffc70000.dwmmc: allocated mmc-pwrseq
[    0.835303] mmc_host mmc1: card is non-removable.
[    0.853053] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.871561] mmc_host mmc0: Bus speed (slot 0) = 198000000Hz (slot req 200000000Hz, actual 198000000HZ div = 0)
[    0.881733] dwmmc_rockchip ffc50000.dwmmc: Successfully tuned phase to 90
[    0.889319] mmc0: new HS200 MMC card at address 0001
[    0.892073] rockchip-saradc ff5e0000.saradc: failed to get regulator, -517
[    0.896830] mmcblk0: mmc0:0001 HAG4a2 14.7 GiB
[    0.901780] rksfc_base v1.1 2016-01-08
[    0.907268] mmcblk0boot0: mmc0:0001 HAG4a2 partition 1 8.00 MiB
[    0.910589] rksfc ffc90000.sfc: rksfc_probe clk rate = 79200000
[    0.917108] mmcblk0boot1: mmc0:0001 HAG4a2 partition 2 8.00 MiB
[    0.921980] rkflash_dev_init enter
[    0.928911] mmcblk0rpmb: mmc0:0001 HAG4a2 partition 3 4.00 MiB, chardev (246:0)
[    0.931376] sfc nor id: 0 0 0
[    0.941909] rkflash[1] is invalid
[    0.941920] rkflash_dev_init enter
[    0.946682] Freeing initrd memory: 8948K
[    0.948896] sfc_nand id: 0 0 0
[    0.949026]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9
[    0.960688] rkflash[2] is invalid
[    0.965699] NET: Registered protocol family 17
[    0.973737] NET: Registered protocol family 15
[    0.976551] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    0.978351] [BT_RFKILL]: Enter rfkill_rk_init
[    0.987047] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.988159] [WLAN_RFKILL]: Enter rfkill_wlan_init
[    0.996656] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    0.998845] [WLAN_RFKILL]: Enter rfkill_wlan_probe
[    1.008692] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.008951] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi_chip_type = ap6236
[    1.021330] [WLAN_RFKILL]: wlan_platdata_parse_dt: enable wifi power control.
[    1.021454] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
[    1.028572] [WLAN_RFKILL]: wlan_platdata_parse_dt: wifi power controled by gpio.
[    1.041767] [WLAN_RFKILL]: wlan_platdata_parse_dt: WIFI,host_wake_irq = 8, flags = 0.
[    1.049690] [WLAN_RFKILL]: wlan_platdata_parse_dt: The ref_wifi_clk not found !
[    1.057105] [WLAN_RFKILL]: rfkill_wlan_probe: init gpio
[    1.062443] [WLAN_RFKILL]: Exit rfkill_wlan_probe
[    1.071213] flash vendor_init_thread!
[    1.072187] Registering SWP/SWPB emulation handler
[    1.075004] flash vendor storage:20170308 ret = -1
[    1.086148] Loading compiled-in X.509 certificates
[    1.103947] vendor storage:20190527 ret = 0
[    1.145291] dwmmc_rockchip ffc60000.dwmmc: IDMAC supports 32-bit address mode.
[    1.152766] dwmmc_rockchip ffc60000.dwmmc: Using internal DMA controller.
[    1.159767] dwmmc_rockchip ffc60000.dwmmc: Version ID is 270a
[    1.165787] dwmmc_rockchip ffc60000.dwmmc: DW MMC controller at irq 46,32 bit host data width,256 deep fifo
[    1.176776] rockchip-saradc ff5e0000.saradc: failed to get regulator, -517
[    1.186991] dwmmc_rockchip ffc60000.dwmmc: IDMAC supports 32-bit address mode.
[    1.194465] dwmmc_rockchip ffc60000.dwmmc: Using internal DMA controller.
[    1.201481] dwmmc_rockchip ffc60000.dwmmc: Version ID is 270a
[    1.207457] dwmmc_rockchip ffc60000.dwmmc: DW MMC controller at irq 46,32 bit host data width,256 deep fifo
[    1.218324] rockchip-saradc ff5e0000.saradc: failed to get regulator, -517
[    1.228303] gpio-keys gpio-keys: ignoring dependency for device, assuming no driver
[    1.228598] dhd_module_init: in Dongle Host Driver, version 1.579.77.41.22 (r-20191105-2)(20191120-1)
[    1.237123] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.245400] ======== dhd_wlan_init_plat_data ========
[    1.258330] [WLAN_RFKILL]: rockchip_wifi_get_oob_irq: Enter
[    1.262663] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[    1.264083] dhd_wlan_init_gpio: WL_HOST_WAKE=-1, oob_irq=57, oob_irq_flags=0x414
[    1.278871] mmc1: new high speed SDIO card at address 0001
[    1.281288] dhd_wlan_init_gpio: WL_REG_ON=-1
[    1.281306] dhd_wifi_platform_load: Enter
[    1.285036] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.285239] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.285248] cfg80211: failed to load regulatory.db
[    1.287055] dwmmc_rockchip ffc50000.dwmmc: Successfully tuned phase to 180
[    1.291259] Power-up adapter 'DHD generic adapter'
[    1.293162] wifi_platform_set_power = 1
[    1.293817] dwmmc_rockchip ffc60000.dwmmc: IDMAC supports 32-bit address mode.
[    1.293875] dwmmc_rockchip ffc60000.dwmmc: Using internal DMA controller.
[    1.293893] dwmmc_rockchip ffc60000.dwmmc: Version ID is 270a
[    1.293940] dwmmc_rockchip ffc60000.dwmmc: DW MMC controller at irq 46,32 bit host data width,256 deep fifo
[    1.294749] rockchip-saradc ff5e0000.saradc: failed to get regulator, -517
[    1.294991] gpio-keys gpio-keys: ignoring dependency for device, assuming no driver
[    1.352228] dwmmc_rockchip ffc50000.dwmmc: Successfully tuned phase to 90
[    1.362077] ======== PULL WL_REG_ON(-1) HIGH! ========
[    1.389083] [WLAN_RFKILL]: rockchip_wifi_power: 1
[    1.393956] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[    1.403171] [WLAN_RFKILL]: wifi turn on power [GPIO-1-0]
[    1.408873] ret 1024 0
[    1.412805] dw-apb-uart ff410000.serial: got rx and tx dma channels
[    1.421153] Freeing unused kernel memory: 1024K
[    1.426142] Run /init as init process
Loading, please wait...
Couldn't get a file descriptor referring to the console
starting version 237
[    1.712929] wifi_platform_bus_enumerate device present 1
[    1.718420] ======== Card detection to detect SDIO card! ========
[    1.724673] mmc1:mmc host rescan start!
[    1.745098] bcmsdh_register: register client driver
[    1.750547] bcmsdh_sdmmc_probe: Enter num=1
[    1.755855] dwmmc_rockchip ffc60000.dwmmc: IDMAC supports 32-bit address mode.
[    1.763347] dwmmc_rockchip ffc60000.dwmmc: Using internal DMA controller.
[    1.770364] dwmmc_rockchip ffc60000.dwmmc: Version ID is 270a
[    1.770430] bcmsdh_sdmmc_probe: Enter num=2
[    1.776259] dwmmc_rockchip ffc60000.dwmmc: DW MMC controller at irq 46,32 bit host data width,256 deep fifo
[    1.780586] bus num (host idx)=1, slot num (rca)=1
[    1.791094] rockchip-saradc ff5e0000.saradc: failed to get regulator, -517
[    1.795240] found adapter info 'DHD generic adapter'
[    1.802509] gpio-keys gpio-keys: ignoring dependency for device, assuming no driver
[    1.815229] sdioh_attach: set sd_f2_blocksize 256
[    1.821680] sdioh_attach: sd clock rate = 0
[    1.827922] dhdsdio_probe : no mutex held. set lock
[    1.833104] F1 signature read @0x18000000=0x1542a9a6
[    1.842014] F1 signature OK, socitype:0x1 chip:0xa9a6 rev:0x2 pkg:0x4
[    1.850021] DHD: dongle ram size is set to 524288(orig 524288) at 0x0
[    1.856906] [dhd] dhd_conf_set_chiprev : chip=0xa9a6, chiprev=2
[    1.863224] [dhd] CFG80211-ERROR) wl_setup_wiphy : Registering Vendor80211
[    1.871053] [dhd] CFG80211-ERROR) wl_setup_wiphy : SAE support
[    1.878524] [dhd] CFG80211-ERROR) wl_init_prof : wl_init_prof: No profile
[    1.887465] dhd_attach(): thread:dhd_watchdog_thread:64 started
[    1.894821] dhd_attach(): thread:dhd_dpc:66 started
[    1.901319] dhd_attach(): thread:dhd_rxf:67 started
[    1.906331] dhd_deferred_work_init: work queue initialized
[    1.911944] dhd_tcpack_suppress_set: TCP ACK Suppress mode 0 -> mode 2
[    1.918675] dhd_bus_set_default_min_res_mask: Unhandled chip id
[    1.928414] sdioh_cis_read: func_cis_ptr[0]=0x1070
[    1.966559] Dongle Host Driver, version 1.579.77.41.22 (r-20191105-2)(20191120-1)
[    1.975899] Register interface [wlan0]  MAC: 10:2c:6b:7e:18:4a
[    1.975899]
[    1.984423] dhd_tcpack_suppress_set: TCP ACK Suppress mode 2 -> mode 0
[    1.991078] dhd_wl_ioctl: returning as busstate=0
[    1.995850] dhd_dbg_detach_pkt_monitor, 2204
[    2.000170] dhd_bus_devreset: == Power OFF ==
[    2.004966] bcmsdh_oob_intr_unregister: Enter
[    2.009412] bcmsdh_oob_intr_unregister: irq is not registered
[    2.015285] dhd_txglom_enable: enable 0
[    2.019243] dhd_bus_devreset:  WLAN OFF DONE
[    2.023687] wifi_platform_set_power = 0
[    2.027571] ======== PULL WL_REG_ON(-1) LOW! ========
[    2.032709] [WLAN_RFKILL]: rockchip_wifi_power: 0
[    2.037562] [BT_RFKILL]: rfkill_get_bt_power_state: rfkill-bt driver has not Successful initialized
[    2.046951] [WLAN_RFKILL]: wifi shut off power [GPIO-1-1]
[    2.052515] dhdsdio_probe : the lock is released.
[    2.058382] dwmmc_rockchip ffc60000.dwmmc: IDMAC supports 32-bit address mode.
[    2.059291] dhd_module_init: Exit err=0
[    2.065754] dwmmc_rockchip ffc60000.dwmmc: Using internal DMA controller.
[    2.076495] dwmmc_rockchip ffc60000.dwmmc: Version ID is 270a
[    2.082405] dwmmc_rockchip ffc60000.dwmmc: DW MMC controller at irq 46,32 bit host data width,256 deep fifo
[    2.093322] rockchip-saradc ff5e0000.saradc: failed to get regulator, -517
[    2.100622] gpio-keys gpio-keys: ignoring dependency for device, assuming no driver
/scripts/init-top/console_setup: line 134: can't create /dev/tty1: No such device or address
/scripts/init-top/console_setup: line 1: can't open /dev/tty1: No such device or address
/scripts/init-top/console_setup: line 1: can't create /dev/tty2: No such device or address
/scripts/init-top/console_setup: line 1: can't open /dev/tty2: No such device or address
/scripts/init-top/console_setup: line 1: can't create /dev/tty3: No such device or address
/scripts/init-top/console_setup: line 1: can't open /dev/tty3: No such device or address
/scripts/init-top/console_setup: line 1: can't create /dev/tty4: No such device or address
/scripts/init-top/console_setup: line 1: can't open /dev/tty4: No such device or address
/scripts/init-top/console_setup: line 1: can't create /dev/tty5: No such device or address
/scripts/init-top/console_setup: line 1: can't open /dev/tty5: No such device or address
/scripts/init-top/console_setup: line 1: can't create /dev/tty6: No such device or address
/scripts/init-top/console_setup: line 1: can't open /dev/tty6: No such device or address
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[    4.987011] EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... Warning: Something odd, no /lib/modules/4.19.111 in initramfs.
done.

init started: BusyBox v1.27.2 (2021-08-19 21:32:43 CEST)
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list