Solaris 测试驱动程序崩溃
在solaris中,我写了一个驱动程序,它崩溃了。但是我的solaris内核也因此崩溃了。每次系统重置并且内核转储核心并重新启动时都会加载驱动程序。如何在系统重新启动时停止加载崩溃的驱动程序?
In solaris I wrote a driver and it is crashing.. But my solaris kernel is also getting crashed because of it. The driver is getting loaded every time the system resets and kernel is dumping core and reboots.. How to stop the loading of the crashing driver whenever the system reboots?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
太糟糕了,您没有使用 Solaris 10(或更高版本),它实现了故障安全引导并具有许多其他改进。无论如何,恢复系统的最简单方法是在 OpenSolaris SPARC Live CD 上启动,例如 Milax ( http://genunix.org/distributions/dss/milax032sparc.iso )或类似的,安装 Solaris 9 根文件系统并从那里删除伪造的驱动程序。
完成后,您可能想要实现故障安全引导,如下所述:
http://wikis.sun.com/display/BigAdmin/Back+port+Solaris+10+failsafe+feature+to+Solaris+9+and+below
Too bad you aren't using Solaris 10 (or newer) which implement failsafe booting and has so many other improvements. Anyway, the simplest method to recover your system would be to boot on an OpenSolaris SPARC live CD like Milax ( http://genunix.org/distributions/dss/milax032sparc.iso ) or similar, mount your Solaris 9 root filesystem and remove your bogus driver from there.
When done, you might want to implement failsafe boot like explained here:
http://wikis.sun.com/display/BigAdmin/Back+port+Solaris+10+failsafe+feature+to+Solaris+9+and+below
您一直在遵循推荐的最佳实践
正确的?因此,除非您在某处配置了备用内核,并且没有遵循 最佳实践(开发驱动程序进入/tmp),您可能会遇到严重的问题。
我想您可以按照 @jlliagre 的建议从第二台计算机或 CD 进行网络引导,然后安装本地磁盘以删除有问题的驱动程序。
You have been following the recommended best practice of
Right? So unless you have an alternate kernel configured somewhere, and not been following the best practices (development drivers go into /tmp), you may have a serious problem there.
I guess you could net-boot from a second machine or CD as @jlliagre suggested, and then mount the local disks to remove the offending driver.