当前位置: 技术问答>linux和unix
为linux启动提速
来源: 互联网 发布时间:2016-11-24
本文导语: omapl138 ( arm9 +dsp), linux2.6.33 nand , ubl+uboot, 启动参数已经+quiet 下面是我启动信息 的时间戳, 大家帮看看哪一个有缩短的余地比较大 TIME:0.0 : TIME:3.375 : U-Boot 2009.11 (Apr 08 2011 - 10:26:41) I2C: read...
omapl138 ( arm9 +dsp), linux2.6.33 nand , ubl+uboot, 启动参数已经+quiet
下面是我启动信息 的时间戳, 大家帮看看哪一个有缩短的余地比较大
TIME:0.0 :
TIME:3.375 :
U-Boot 2009.11 (Apr 08 2011 - 10:26:41)
I2C: ready
DRAM: 64 MB
NAND: 1024 MiB
Bad block table found at page 524160, version 0x01
Bad block table found at page 524032, version 0x01
TIME:3.625 : In: serial
Out: serial
Err: serial
TIME:3.765 : ARM Clock : 288000000 Hz
DDR Clock : 144000000 Hz
Net:
TIME:3.796 : Ethernet PHY: GENERIC @ 0x00
TIME:3.843 :
TIME:3.890 : Hit any key to stop autoboot: 1
TIME:4.921 : 0
Loading from NAND 1GiB 3,3V 8-bit, offset 0x200000
Image Name: Linux-2.6.33-rc4.1.8a
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2135936 Bytes = 2 MB
Load Address: c0008000
Entry Point: c0008000
TIME:7.250 : ## Booting kernel from Legacy Image at c0700000 ...
Image Name: Linux-2.6.33-rc4.1.8a
Image Type:
TIME:7.265 : ARM Linux Kernel Image (uncompressed)
Data Size: 2135936 Bytes = 2 MB
Load Address: c0008000
En
TIME:7.281 : try Point: c0008000
Verifying Checksum ...
TIME:7.968 : OK
Loading K
TIME:7.984 : ernel Image ...
TIME:8.781 : OK
OK
Starting kernel ...
TIME:8.796 : Uncompressing Linux...
TIME:10.328 : done, booting the kernel.
TIME:14.15 : modprobe: chdir(2.6.33-rc4.1.8a): No such file or dir
TIME:14.31 : ectory
/etc/rc.d/rc.local: line 12: ./ftpserver: not found
TIME:14.125 : wakeup dsp succe
TIME:14.140 : ss major = 0
HHHHH
Please press Enter to activate this
TIME:14.156 : console.
下面是我启动信息 的时间戳, 大家帮看看哪一个有缩短的余地比较大
TIME:0.0 :
TIME:3.375 :
U-Boot 2009.11 (Apr 08 2011 - 10:26:41)
I2C: ready
DRAM: 64 MB
NAND: 1024 MiB
Bad block table found at page 524160, version 0x01
Bad block table found at page 524032, version 0x01
TIME:3.625 : In: serial
Out: serial
Err: serial
TIME:3.765 : ARM Clock : 288000000 Hz
DDR Clock : 144000000 Hz
Net:
TIME:3.796 : Ethernet PHY: GENERIC @ 0x00
TIME:3.843 :
TIME:3.890 : Hit any key to stop autoboot: 1
TIME:4.921 : 0
Loading from NAND 1GiB 3,3V 8-bit, offset 0x200000
Image Name: Linux-2.6.33-rc4.1.8a
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2135936 Bytes = 2 MB
Load Address: c0008000
Entry Point: c0008000
TIME:7.250 : ## Booting kernel from Legacy Image at c0700000 ...
Image Name: Linux-2.6.33-rc4.1.8a
Image Type:
TIME:7.265 : ARM Linux Kernel Image (uncompressed)
Data Size: 2135936 Bytes = 2 MB
Load Address: c0008000
En
TIME:7.281 : try Point: c0008000
Verifying Checksum ...
TIME:7.968 : OK
Loading K
TIME:7.984 : ernel Image ...
TIME:8.781 : OK
OK
Starting kernel ...
TIME:8.796 : Uncompressing Linux...
TIME:10.328 : done, booting the kernel.
TIME:14.15 : modprobe: chdir(2.6.33-rc4.1.8a): No such file or dir
TIME:14.31 : ectory
/etc/rc.d/rc.local: line 12: ./ftpserver: not found
TIME:14.125 : wakeup dsp succe
TIME:14.140 : ss major = 0
HHHHH
Please press Enter to activate this
TIME:14.156 : console.
|
Booting kernel 有点长……
|
这个不算长了
|
很精湛了
|
改一下加载内核的命令,将内核加载到c0008000-64的地址上,这样内核就不需要在内存中再次移动了。
|
将CONFIG_BOOTDELAY 定义为0,加上CONFIG_ZERO_BOOTDELAY_CHECK 这个宏。