星期四, 11月 17, 2005

Linux Fast Boot

從PIL看到VAIO TX/2有內建DVD Player,不用開機就可以使用,用的是InstantOn的Linux,Google了一下,這是InterVideo的產品,沒看到source code,所以猜測試修改Boot Script達到快速開機,然後只run player program吧。所以不用release source code (是這樣嗎?)
InterVideo的Solution是dual-boot的方式,然後把Linux的開機時間縮短。

在Kerneltrape中 http://kerneltrap.org/node/2644 說到幾種方法加速boot speed。
在Gentoo中用RC_PARALLEL_STARTUP="yes".
也有說到LFS做到開機時間是"一眨眼"。<眨:ㄓㄚˇ 三聲>
IBM http://www-128.ibm.com/developerworks/linux/library/l-boot.html?ca=dgr-lnxw09BootFaster的方法是修改init script,停掉一些service。

Linux Journal 2004 http://www.linuxjournal.com/article/7857 是一個介紹,使用LinuxBIOS和kernel的方法做到加速開機。有step by step的說明

LinuxBIOS project的homepage : http://www.linuxbios.org/
Mailling list archive : http://www.mail-archive.com/linuxbios@clustermatic.org/

Moto 有一篇筆記 http://moto.debian.org.tw/viewtopic.php?t=4765&start=0&postdays=0& postorder=asc&highlight=&sid=ebe5756d31ff6d1c971c98d489ac027d,說明 linux boot process和fast boot的方法。

Richard Gooch 一篇說明boot script的文章 http://www.atnf.csiro.au/people/rgooch/linux/boot-scripts/index.html


KernelTrape中說明fast boot的script:
Try passing this to the kernel -> rw init=/bin/bash
well i didnt say it was functional, i said it was fast ;)
and if you want a complete bootup really quickly try to create a shell script to use as init, something like this:
#! /bin/bash
PATH=/bin:/usr/bin:/sbin:/usr/sbin
ifconfig eth0 192.168.1.2
route add default gw 192.168.1.1
fsck /
mount -o remount,rw /
mount -t proc proc /proc
mount -t devfs devfs /dev
devfsd /dev
getty tty2 9600 &
getty tty3 9600 &amp;amp;amp;amp;amp;
getty tty4 9600 &
getty tty5 9600 &
getty tty6 9600 &
getty tty1 9600

echo "type exit for kernel panic"

bash

沒有留言:

網誌存檔