That would work.
The only drawback I see is that when the crash occurs, you have to catch
the system during boot and select the other BE. Since I often test on
systems remotely (where the console of the system is on the other side
of my lab), I prefer the "automatic safe reboot" of my approach. (It
keeps me from running over and trying to find the keyboard for the
system I'm debugging. :-)
-- Garrett
Johan Hartzenberg wrote:
>
> On Wed, Jan 7, 2009 at 7:28 PM, Garrett D'Amore
> <[email protected] <mailto:[email protected]>> wrote:
>
> 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/.
>
>
> How about:
> 1. Use ZFS root.
> 2. Clone the boot environment: lucreate -n TEST; luactivate TEST (No
> luupgrade between)
> 3. Boot into the new TEST boot environment.
> 4. Install the driver and test.
> 5. If it panics, boot the old BE and then from there mount and
> remove/fix the TEST be, or delete and recreate it if that is easier.
>
> Creating the Cloned BE in step 2 takes almost zero KBs, creating it
> can be scripted, and the creation takes all of about 5 minutes as it
> is based on a snapshot/clone of the current BE. If you're not using
> ZFS root, you can achieve the same using lumake as an extra step
> between lucreate and luactivate, but this needs more time and disk space.
>
> P.S. If using OpenSolaris (the distro) in stead of Solaris Express,
> then use whatever tools it comes with. Note to self: I really need
> to find out what the OpenSolaris equivalent of live upgrade is.
>
> P.P.S Boy do I hate the name confusion between
> OpenSolaris-the-project/concept, and OpenSolaris-the-distro.
>
> --
> Any sufficiently advanced technology is indistinguishable from magic.
> Arthur C. Clarke
>
> My blog: http://initialprogramload.blogspot.com
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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