Hi everybody,
I am using davinci evm and NAND flash to store uImage and ramdisk.gz. I want fast boot. How can I do fast boot? The following is u-boot arguments.
baudrate=115200
bootfile="uImage"
gateway=192.168.0.1
dns1=192.168.0.2
dns2=192.168.0.3
bootdelay=1
filesize=c16c7a
fileaddr=82000000
netmask=255.255.255.0
ipaddr=192.168.0.243
serverip=192.168.0.244
bootcmd=nand read 0x82000000 0x2200000 0xc18000;nboot 0x80700000 0 0x2000000;bootm
bootargs=console=ttyS1,115200n8 ip=off root=/dev/ram0 rw initrd=0x82000000,16M ramdisk_size=32768,nolock video=davincifb:vid0=1024x768x16,3000K@0x0,0 davinci_enc_mngr.ch0_output=LCD davinci_enc_mngr.ch0_mode=640x480 mem=118M quiet
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:00:5b:ee:de:ad
videostd=ntsc
And the next is boot logs.
NAND read: device 0 offset 0x2200000, size 0xc18000
12681216 bytes read: OK <------------------------------------------------ (a)
Loading from NAND 64MiB 1,8V 8-bit, offset 0x2000000
Image Name: Linux-2.6.18_pro500-davinci_evm-
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1912848 Bytes = 1.8 MB
Load Address: 80008000
Entry Point: 80008000
## Booting image at 80700000 ...
Image Name: Linux-2.6.18_pro500-davinci_evm-
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1912848 Bytes = 1.8 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
OK
Starting kernel ...
davincifb davincifb.0: dm_osd0_fb: Failed to obtain ownership of OSD window.
vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded
INIT: version 2.86 booting
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
Activating swap...done.
Remounting root filesystem...done.
Mounting local filesystems: mount none on /var/run type tmpfs (rw)
none on /tmp type tmpfs (rw)
Setting up networking ....
Starting hotplug subsystem:
pci
pci [success]
usb
usb [success]
isapnp
isapnp [success]
ide
ide [success]
input
input [success]
scsi
scsi [success]
done.
Starting portmap daemon....
DSPLINK Module (1.61.03) created on Date: Apr 16 2009 Time: 18:22:23
Encode demo started.
I know that optimizing kernel and filesystem is necessary for fast boot. But (a) of the above is my point. It spends about 20 seconds in reading ramdisk from nand flash. Is it possible to decrease (a) process time by boot argument or kernel setting?
Thank you and best regards,
Inchul Lee.