[ 永远的UNIX::UNIX技术资料的宝库 ]

首页 > 编程技术 > Shell > 正文

How to Creating and Booting a New Kernel With autoconfig

来源:不详 (2005-09-19 14:12:49)

I will post some tech tip about Irix , hope it will be useful to everyone.

To build a new kernel after reconfiguring the system, follow these steps:
1. Become the superuser by giving the command:
su
2. Make a copy of your current kernel with the command:
cp /unix /unix.save
3. Give the command:
/etc/autoconfig -f
This command creates a new kernel and places it in the file /unix.install.
4. Reboot your system with the command:
reboot
Caution: When you issue the reboot command, the system overwrites the current kernel
(/unix) with the kernel you have just created (/unix.install). This is why you should always
copy the current kernel to a safe place before rebooting.

Recovering From an Unbootable Kernel

1. If the system fails to reboot, try to reboot it again. If it still fails, interrupt the boot
process and direct the boot PROM to boot from your old saved kernel (unix.save).
2. Press the Reset button.You see the System Maintenance Menu:
System Maintenance Menu
1) Start System.
2) Install System Software.
3) Run Diagnostics.
4) Recover System.
5) Enter Command Monitor.
3. Choose option 5 to enter the Command Monitor. You see:
Command Monitor. Type "exit" to return to the menu.
>>
4. Now at the >> prompt, tell the PROM to boot your old saved kernel. The command
is:
boot unix.save
The system boots the old saved kernel.
5. Once the system is running, use the following command to move your old saved
kernel to the default /unix name. This method also keeps a copy of your old saved
kernel in unix.save:
cp /unix.save /unix
Then you can normally boot the system while you investigate the problem with the new
kernel. Try to figure out what went wrong. What was changed that stopped the kernel
from booting? Review the changes that you made.
?Did you increase/decrease a parameter by a large amount? If so, make the change
less drastic.
?Did you change more than one parameter? If so, make a change to only one
parameter at a time.


(http://www.fanqiang.com)



 相关文章
FreeBSD kernel 编译大法(一) 2002-03-06 08:02:00
FreeBSD kernel 编译大法(二)kernel内容编译 2002-03-07 06:02:00
kerneld mini-HOWTO 2001-04-27 14:41:39
自订 FreeBSD Kernel (系统核心) 2001-04-30 12:23:24
做一个最小的Linux kernel 2001-05-08 13:07:08
FreeBSD 4.0 Kernel Hacking Guide--i386/i386/locore.s 2001-06-02 19:00:00
FreeBSD 4.0 Kernel Hacking Guide--i386/i386/machdep.c 2001-06-02 20:10:01
FreeBSD 4.0 Kernel Hacking Guide--i386/i386/pmap.c 2001-06-02 21:04:00
FreeBSD 4.0 Kernel Hacking Guide--kern/init_main.c 2001-06-02 22:08:00
FreeBSD 4.0 Kernel Hacking Guide--vm/vm_init.c 2001-06-03 07:00:00
FreeBSD 4.0 Kernel Hacking Guide--vm/vm_page.c 2001-06-03 08:10:00
FreeBSD 4.0 Kernel Hacking Guide--vm/vm_object.c 2001-06-03 09:04:01
kernel hacking简单入门 2001-07-04 19:00:00
linux核心代码分析(系统初始化start_kernel函数) 2001-07-31 10:00:00
FreeBSD kernel 编译大法(三)编kernel失败的处理 2002-03-07 08:02:00
linux kernel 2.4.5 ipv4 socket层的一点解释 2001-07-30 10:00:00
Unix编程/应用问答中文版 ---22.Linux Kernel Programming 2002-11-18 06:02:00
module injection in 2.6 kernel 2005-04-06 18:20:09
Linux Kernel蓝牙栈本地权限提升漏洞 2005-09-06 15:15:15

★  感谢所有的作者为我们学习技术知识提供了一条捷径  ★
www.fanqiang.com