Kaushik Gupta wrote:
Hi,
I am new to open-solaris.
I am writing a driver for a nic. While inserting the driver, the system hangs. On reboot, it tries to insert the driver because the nic is present. As a result, system goes into reboot-cycle. Could someone provide a solution for removing the driver safely.

After you install the driver binary to /kernel/drv/amd64/drivername,
remove the binary, and make the driver a symlink to a binary on
an NFS filesystem.  Then when the host reboots, it will not be
able to find the driver, and that will prevent a reboot/hang cycle.


I generally do:

% pwd
/nfs/home/gallatin
% cd driver_dev
% make
% ln -s `pwd`/driver /kernel/drv/amd64/driver
% add_drv
<crash>

On another host:
% rm -f /nfs/home/gallatin/driver_dev/driver

This way, you do not need to be monitoring the console of the machine
at reboot time.

Cheers,

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

Reply via email to