Here's another trick I use frequently. It only works on amd64, but 
that's most of what people develop on now anyway.

Install *only* the 32-bit binary. Then, when you run add_drv, or 
devfasdm, you'll get the warning about only having a 32-bit binary. 
That's OK, just ignore it.

Now you can manually modload your 64-bit binary from where ever you have 
it (e.g. /home/user/mydriver/ or 
/work/gdamore/sdcard/usr/src/uts/intel/sdhost/obj64/sdhost. :-)

If it panics, oh well. But when your system reboots next time (in 64-bit 
mode), it won't panic, because it won't have the 64-bit binary in 
/kernel/drv/amd64/.

-- Garrett

James C. McPherson wrote:
> On Wed, 07 Jan 2009 11:15:23 +0530
> ajit jain <[email protected]> wrote:
>
>   
>> Hi,
>>
>> Thanks for replying Paul.
>>
>> My driver will be loaded at the boot time itself, just after the root
>> file-system mounts in the read-only mode. Suppose there is bug in the
>> driver due to which the system is panicing, and since the driver is
>> loading at the boot time, it will cause the system to panic in all
>> the subsequent boot cycle. To avoid such issue I'll bypass the driver
>> loading by supplying "do not load the driver" as an argument to the
>> boot options. So, in the rc scripts I need to check whether the
>> system is boot with the by-pass mode of the driver.
>>     
>
>
> Gday Ajit,
>
> If you add
>
> -Bdisable-sd=true
>
> to your kernel$ line in grub, then the sd(7d) driver will be
> disabled. Replace "sd" with your driver name to achieve a similar
> result.
>
> That's the best way that I know of to prevent loading a driver
> which is panicing on boot.
>
>
> James C. McPherson
> --
> Senior Kernel Software Engineer, Solaris
> Sun Microsystems
> http://blogs.sun.com/jmcp     http://www.jmcp.homeunix.com/blog
> _______________________________________________
> driver-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/driver-discuss
>   

_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to