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.

Reduce the system startup time

Other Parts Discussed in Thread: AM3358

HI

    I am using the am3358.Now the system startup time is 19 secconds.

U-Boot SPL 2011.09 (Oct 04 2014 - 18:17:24)
Texas Instruments Revision detection unimplemented


U-Boot 2011.09 (Oct 04 2014 - 18:17:24)

I2C:   ready
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  HW ECC Hamming Code selected
128 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Net:   cpsw
Card did not respond to voltage select!
Booting from nand ...
HW ECC BCH8 Selected

NAND read: device 0 offset 0x280000, size 0x500000
 5242880 bytes read: OK
## Booting kernel from Legacy Image at 80007fc0 ...
   Image Name:   Linux-3.2.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2547304 Bytes = 2.4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   XIP Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 3.2.0 (mxz@ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #17 Tue Dec 9 04:06:32 PST 2014
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: am335xevm
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] AM335X ES2.1 (sgx neon )
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 noinitrd rootfstype=ubifs rootwait=1 ip=none
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 254604k/254604k available, 7540k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc046e000   (4504 kB)
[    0.000000]       .init : 0xc046e000 - 0xc04a2000   ( 208 kB)
[    0.000000]       .data : 0xc04a2000 - 0xc04f7378   ( 341 kB)
[    0.000000]        .bss : 0xc04f739c - 0xc0520b68   ( 166 kB)
[    0.000000] NR_IRQS:396
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] Total of 128 interrupts on 1 active controller
[    0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[    0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[    0.000000] Console: colour dummy device 80x30
[    0.000091] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[    0.058929] pid_max: default: 32768 minimum: 301
[    0.059051] Security Framework initialized
[    0.059143] Mount-cache hash table entries: 512
[    0.059509] CPU: Testing write buffer coherency: ok
[    0.060241] devtmpfs: initialized
[    0.080230] omap_hwmod: pruss: failed to hardreset
[    0.081359] print_constraints: dummy:
[    0.081726] NET: Registered protocol family 16
[    0.083862] OMAP GPIO hardware version 0.1
[    0.086181] omap_mux_init: Add partition: #1: core, flags: 0
[    0.087890] The board is a AM335x Starter Kit.
[    0.088043]  omap_hsmmc.0: alias fck already exists
[    0.088623] _omap_mux_get_by_name: Could not find signal lcd_vsync.gpmc_a8
[    0.088653] _omap_mux_get_by_name: Could not find signal lcd_hsync.gpmc_a9
[    0.088653] _omap_mux_get_by_name: Could not find signal lcd_pclk.gpmc_a10
[    0.088684] _omap_mux_get_by_name: Could not find signal lcd_ac_bias_en.gpmc_a11
[    0.089935] _regulator_get: l3_main.0 supply vdd_core not found, using dummy regulator
[    0.090026] am335x_opp_update: physical regulator not present for core(-22)
[    0.090270] registered am33xx_sr device
[    0.090728]  omap2_mcspi.1: alias fck already exists
[    0.090972]  omap2_mcspi.2: alias fck already exists
[    0.091888]  edma.0: alias fck already exists
[    0.091888]  edma.0: alias fck already exists
[    0.091918]  edma.0: alias fck already exists
[    0.108337] bio: create slab <bio-0> at 0
[    0.113464] Switching to clocksource gp timer
[    0.131439] NET: Registered protocol family 2
[    0.131652] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.131958] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.132110] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.132202] TCP: Hash tables configured (established 8192 bind 8192)
[    0.132202] TCP reno registered
[    0.132232] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.132232] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.132446] NET: Registered protocol family 1
[    0.132720] RPC: Registered named UNIX socket transport module.
[    0.132720] RPC: Registered udp transport module.
[    0.132720] RPC: Registered tcp transport module.
[    0.132751] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.132965] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.133209] omap-gpmc omap-gpmc: GPMC revision 6.0
[    0.133209] Registering NAND on CS0
[    0.144989] VFS: Disk quotas dquot_6.5.2
[    0.145050] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.145538] msgmni has been set to 497
[    0.148651] alg: No test for stdrng (krng)
[    0.149414] io scheduler noop registered
[    0.149414] io scheduler deadline registered
[    0.149475] io scheduler cfq registered (default)
[    0.150360] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[    0.620330] console [ttyO0] enabled
[    0.624603] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[    0.632446] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[    0.640289] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[    0.648132] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[    0.655975] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[    0.664398] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
[    0.681396] brd: module loaded
[    0.689788] loop: module loaded
[    0.694427] mtdoops: mtd device (mtddev=name/number) must be supplied
[    0.701721] omap2-nand driver initializing
[    0.706359] ONFI flash detected
[    0.709777] ONFI param page 0 valid
[    0.713409] NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD S34ML01G1)
[    0.721099] Creating 8 MTD partitions on "omap2-nand.0":
[    0.726684] 0x000000000000-0x000000020000 : "SPL"
[    0.733184] 0x000000020000-0x000000040000 : "SPL.backup1"
[    0.740264] 0x000000040000-0x000000060000 : "SPL.backup2"
[    0.747344] 0x000000060000-0x000000080000 : "SPL.backup3"
[    0.754425] 0x000000080000-0x000000260000 : "U-Boot"
[    0.761627] 0x000000260000-0x000000280000 : "U-Boot Env"
[    0.768554] 0x000000280000-0x000000780000 : "Kernel"
[    0.777130] 0x000000780000-0x000008000000 : "File System"
[    0.834075] OneNAND driver initializing
[    0.838836] UBI: attaching mtd7 to ubi0
[    0.842864] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    0.849426] UBI: logical eraseblock size:    126976 bytes
[    0.855072] UBI: smallest flash I/O unit:    2048
[    0.859954] UBI: VID header offset:          2048 (aligned 2048)
[    0.866241] UBI: data offset:                4096
[    1.895294] UBI: max. sequence number:       163
[    1.914062] UBI: attached mtd7 to ubi0
[    1.918029] UBI: MTD device name:            "File System"
[    1.923767] UBI: MTD device size:            120 MiB
[    1.928955] UBI: number of good PEBs:        964
[    1.933746] UBI: number of bad PEBs:         0
[    1.938385] UBI: number of corrupted PEBs:   0
[    1.943023] UBI: max. allowed volumes:       128
[    1.947845] UBI: wear-leveling threshold:    4096
[    1.952758] UBI: number of internal volumes: 1
[    1.957397] UBI: number of user volumes:     1
[    1.962005] UBI: available PEBs:             0
[    1.966644] UBI: total number of reserved PEBs: 964
[    1.971740] UBI: number of PEBs reserved for bad PEB handling: 9
[    1.978027] UBI: max/mean erase counter: 2/0
[    1.982452] UBI: image sequence number:  1630282652
[    1.987640] UBI: background thread "ubi_bgt0d" started, PID 438
[    2.044158] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[    2.050628] davinci_mdio davinci_mdio.0: detected phy mask fffffff2
[    2.058929] davinci_mdio.0: probed
[    2.062500] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
[    2.069854] davinci_mdio davinci_mdio.0: phy[2]: device 0:02, driver unknown
[    2.077239] davinci_mdio davinci_mdio.0: phy[3]: device 0:03, driver unknown
[    2.085327] mousedev: PS/2 mouse device common for all mice
[    2.091461] i2c /dev entries driver
[    2.096130] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    2.102661] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
[    2.111358] cpuidle: using governor ladder
[    2.116149] cpuidle: using governor menu
[    2.122192] omap4_aes_mod_init: loading AM33X AES driver
[    2.127899] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
[    2.134399] omap4_aes_probe: probe() done
[    2.138824] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
[    2.144958] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
[    2.156402] omap4_sham_probe: probe() done
[    2.161315] oprofile: hardware counters not available
[    2.166595] oprofile: using timer interrupt.
[    2.171081] nf_conntrack version 0.5.0 (3978 buckets, 15912 max)
[    2.177825] ip_tables: (C) 2000-2006 Netfilter Core Team
[    2.183502] TCP cubic registered
[    2.186889] NET: Registered protocol family 17
[    2.191558] Registering the dns_resolver key type
[    2.196533] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    2.204559] ThumbEE CPU extension supported.
[    2.209075] mux: Failed to setup hwmod io irq -22
[    2.214660] Power Management for AM33XX family
[    2.219482] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[    2.226165] Copied the M3 firmware to UMEM
[    2.230529] Cortex M3 Firmware Version = 0x181
[    2.235351] _regulator_get: deviceless supply vdd_core not found, using dummy regulator
[    2.243743] smartreflex smartreflex: am33xx_sr_probe: cannot determine opp
[    2.250976] smartreflex: probe of smartreflex failed with error -22
[    2.257995] sr_init: platform driver register failed
[    2.266632] clock: disabling unused clocks to save power
[    2.284790] Detected MACID=20:cd:39:d9:6a:3b
[    2.290374] cpsw: Detected MACID = 20:cd:39:d9:6a:3d
[    2.296386] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    2.368743] UBIFS: recovery needed
[    2.556701] UBIFS: recovery completed
[    2.560516] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    2.566802] UBIFS: file system size:   119357440 bytes (116560 KiB, 113 MiB, 940 LEBs)
[    2.575073] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[    2.582702] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    2.588775] UBIFS: default compressor: lzo
[    2.593048] UBIFS: reserved for root:  0 bytes (0 KiB)
[    2.600067] VFS: Mounted root (ubifs filesystem) on device 0:13.
[    2.608978] devtmpfs: mounted
[    2.612457] Freeing init memory: 208K
INIT: version 2.88 booting
Error opening /dev/fb0: No such file or directory
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
ALSA: Restoring mixer settings...
Mon Mar 31 02:15:00 UTC 2014
INIT: Entering runlevel: 5
/usr/sbin/alsactl: load_state:1696: No soundcards found...
Starting system message bus: dbus.
Starting telnet daemon.
Starting syslogd/klogd: done
Stopping Bootlog daemon: bootlogd.

[    5.787475] Disabling lock debugging due to kernel taint
Starting udev
[    6.954681] udevd[838]: starting version 182

 

the udevd program need 3 seconds.

Can you help me to reduce the system startup time.

Thank you