VirtualBox

Changeset 5379 in vbox for trunk/src


Ignore:
Timestamp:
Oct 19, 2007 9:35:14 AM (17 years ago)
Author:
vboxsync
Message:

New driver location: /platform/i86pc/kernel/drv

Location:
trunk/src/VBox/HostDrivers/Support/solaris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/solaris/mod.sh

    r5345 r5379  
    11#!/bin/sh
     2set -x
     3#
     4# Figure out the environment and locations.
     5#
    26
    37# Sudo isn't native solaris, but it's very convenient...
     
    2529DIR=$script_dir/out/$BUILD_TARGET.$BUILD_TARGET_ARCH/$BUILD_TYPE/bin/
    2630
     31VBOXDRV_CONF_DIR=/platform/i86pc/kernel/drv
    2732if test "$BUILD_TARGET_ARCH" = "amd64"; then
    28     VBOXDRV_INS=/usr/kernel/drv/amd64/vboxdrv
     33    VBOXDRV_DIR=$VBOXDRV_CONF_DIR/amd64
    2934else
    30     VBOXDRV_INS=/usr/kernel/drv/vboxdrv
     35    VBOXDRV_DIR=$VBOXDRV_CONF_DIR
    3136fi
    32 $(SUDO) cp $DIR/vboxdrv.o $VBOXDRV_INS
    33 $(SUDO) cp $script_dir/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf /usr/kernel/drv/vboxdrv.conf
     37
     38#
     39# Do the job.
     40#
     41$SUDO cp $DIR/vboxdrv.o $VBOXDRV_DIR/vboxdrv
     42$SUDO cp $script_dir/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf $VBOXDRV_CONF_DIR/vboxdrv.conf
    3443old_id=`/usr/sbin/modinfo | grep vbox | cut -f 1 -d ' ' `
    3544if test -n "$old_id"; then
     
    3746    sync
    3847    sync
    39     $(SUDO) /usr/sbin/modunload -i $old_id
     48    $SUDO /usr/sbin/modunload -i $old_id
    4049else
    41     echo "* If it fails below, run: $(SUDO) add_drv vboxdrv"
     50    echo "* If it fails below, run: $SUDO add_drv vboxdrv"
    4251fi
    4352echo "* loading vboxdrv..."
    4453sync
    4554sync
    46 $(SUDO) /usr/sbin/modload $VBOXDRV_INS
     55$SUDO /usr/sbin/modload $VBOXDRV_DIR/vboxdrv
    4756/usr/sbin/modinfo | grep vboxdrv
    4857echo "* dmesg:"
    4958dmesg | tail -20
    50 $(SUDO) chmod a+rw /devices/pseudo/vboxdrv*
     59$SUDO chmod a+rw /devices/pseudo/vboxdrv*
    5160
  • trunk/src/VBox/HostDrivers/Support/solaris/vboxdrv.conf

    r3987 r5379  
     1#
    12# VirtualBox OpenSolaris Driver Configuration
    23#
    3 
    4 # Needs to go into /usr/kernel/drv along with the driver itself
    5 
     4# This needs to go into /platform/i86pc/kernel/drv,
     5# while the 64-bit driver object goes into the amd64
     6# subdirectory (32-bit drivers goes into the same
     7# directory). After copying execut add_drv vboxdrv.
     8#
    69name="vboxdrv" parent="pseudo" instance=0;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette