Solved

How do I disable device drivers in x86 Solaris 10

Posted on 2008-10-27
10
1,991 Views
Last Modified: 2013-12-21
Hi,

We currently have a Sun Ultra 24 System preloaded with Solaris 10 (x86). The default operating mode is set to 64-bit but we would like to boot into 32-bit mode to test some software (that we've tried in 64-bit mode but just doesn't load as expected).

I've modified the boot-file parameter to boot-file=kernel/unix and then rebooted but everytime on load up it reports an error with the 32-bit nVidia video driver:-

/kernel/drv/nvidia
undefinied symbol '_nv013847rm'
WARNING mod_load : Cannot find module 'nvidia'
WARNING consconfig : No Screen found
Can't Find Driver for Console framebuffer

Whilst in 64-bit mode, I've used kdmconfig to change to Xsun and then the video device from nVidia to "XF86-VGA VGA-compatible video cards". However, when I then try to boot into 32-bit mode (expecting it to load up the VGA driver, it still reports the error with the nVidia.

As such, we were thinking if there a way to modify the device drivers that the kernel references to check and then possibly disable the referencing of the nvida driver and for it to explicitly reference the VGA driver? Or is there something else that we can try?

Thanks

Michael
0
Comment
Question by:mikesung99
  • 5
  • 5
10 Comments
 
LVL 3

Expert Comment

by:Saranyakkali
Comment Utility
To boot in 32 bit mode. Follow the procedure.
Edit '/boot/grub/menu.lst' ,add a 32-bit entry something like this :

#-------------------------------------------------------
title Solaris 32 Bit
kernel /platform/i86pc/kernel/unix
module /platform/i86pc/boot_archive
#-------------------------------------------------------
===================================================================

For some applications that will not run in 64-bit this can be useful.


Logged in as root type:

/usr/sbin/eeprom boot-file=kernel/unix

===================================================================

Please check above and let me know if you need any more..

thanks
0
 

Author Comment

by:mikesung99
Comment Utility
Hi Saranyakkali,

I mkade the modfications to the grub menu file and to the boot-file parameter and then rebooted into Grub. However, when I attempt to select the  Solaris 32bit Entry from the menu, I get the following error:-

Booting 'Solaris 10 08/07 slox_u4wos_rbx86-32 bit
kernel /platform/i86pc/kernel /unix
Error 13 Invalid or unsupported executable format
Press any key to continue

I've attached the current state of my menu.lst.

Thanks

Michael
#

# default menu entry to boot

default 0

#

# menu timeout in second before default OS is booted

# set to -1 to wait for user input

timeout 10

#

# To enable grub serial console to ttya uncomment the following lines

# and comment out the splashimage line below

# WARNING: don't enable grub serial console when BIOS console serial

#       redirection is active!!!

#   serial --unit=0 --speed=9600

#   terminal serial

#

# Uncomment the following line to enable GRUB splashimage on console

splashimage /boot/grub/splash.xpm.gz

#

# To chainload another OS

#

# title Another OS

#       root (hd<disk no>,<partition no>)

#       chainloader +1

#

# To chainload a Solaris release not based on grub

#

# title Solaris 9

#       root (hd<disk no>,<partition no>)

#       chainloader +1

#       makeactive

#

# To load a Solaris instance based on grub

#

# title Solaris <version>

#       root (hd<disk no>,<partition no>,x)     --x = Solaris root slice

#       kernel /platform/i86pc/multiboot

#       module /platform/i86pc/boot_archive

#

# To override Solaris boot args (see kernel(1M)), console device and

# properties set via eeprom(1M) edit the "kernel" line to:

#

#   kernel /platform/i86pc/multiboot <boot-args> -B prop1=val1,prop2=val2,...

#

#---------- ADDED BY BOOTADM - DO NOT EDIT ----------

title Solaris 10 08/07 s10x_u4wos_12b X86

root (hd0,1,a)

kernel /platform/i86pc/multiboot

module /platform/i86pc/boot_archive

#---------------------END BOOTADM--------------------

#--------------------

title Solaris 32 Bit

kernel /platform/i86pc/kernel/unix

module /platform/i86pc/boot_archive

#-----------------------------------------

#---------- ADDED BY BOOTADM - DO NOT EDIT ----------

title Solaris failsafe

root (hd0,1,a)

kernel /boot/multiboot kernel/unix -s

module /boot/x86.miniroot-safe

#---------------------END BOOTADM--------------------

Open in new window

0
 
LVL 3

Expert Comment

by:Saranyakkali
Comment Utility
Can you please add bellow..


#---------------------END BOOTADM--------------------

title Diagnostic Partition
        rootnoverify (hd0,0)
        chainloader +1
0
 

Author Comment

by:mikesung99
Comment Utility
I've Added the suggested config to the menu.lst and still with the boot-fileparameterset to kernel/unix rebooted the system into grub. Selected the diagnostic Partition option but got the follwing messages:-

Invalid system disk
Replace the disk and then press any key
<I pressed the return key>
Intel (R) Booot Agent Ge v1.2.70
CLIENT MAC ADDR : xx xx xx xx xx xx GUID xxxxxxxxxx
PXE-E53: No boot filename received
PXE-M0FL Exiting Intel Boot Agent

Reboot and select proper Boot device or insert Boot media in selected Boot device and press a key
< pressed return and then that took me back to grub>

Thanks

Michael
0
 
LVL 3

Expert Comment

by:Saranyakkali
Comment Utility
Michel,

I think you need to change from (hd0,0) to bellow.

        rootnoverify (hd0,1,a)

so that it ll read.

Thanks.
Saran

0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:mikesung99
Comment Utility
Hi Saran,

I've changed it to rootnoverify(hd0,1,a) but it returns back with the following error:-

Invalid or unsupported executabe format.

Is there anything else I need to add or change in the menu.lst?

Thanks

Michael
0
 
LVL 3

Expert Comment

by:Saranyakkali
Comment Utility
Here is all of boot into 32-bit kernel on 64-bit platform

Sometimes you need to boot into the 32-bit kernel on a 64-bit platform. Perhaps you have an application that is 32-bit only. Or perhaps you have developed a device driver for the Solaris OS. In general, Solaris device drivers must work both in 32-bit mode and in 64-bit mode.

To boot into the 32-bit kernel on a 64-bit platform, edit the GRUB menu. Either edit the file /boot/grub/menu.lst and reboot, or reboot and enter e at the grub menu.

For Solaris 10, the lines in the menu.lst file look something like this:

title Solaris 10 11/06 s10x_u3wos_10 X86
root (hd0,2,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive

Change the kernel line to this:

kernel /platform/i86pc/kernel/unix

For Solaris Express (nevada, SXDE, SXCE, OpenSolaris), the lines in the menu.lst file look something like this:

title Solaris Express Community Edition snv_79 X86
kernel$ /platform/i86pc/kernel/$ISADIR/unix
module$ /platform/i86pc/$ISADIR/boot_archive

Change the kernel and module lines to this:

kernel$ /platform/i86pc/kernel/unix
module$ /platform/i86pc/boot_archive

Save and reboot

To make this change persistent across reboots, become the root user and make this change using

eeprom boot-file="kernel/unix"
=======================================================================

And i just tryed on my local X86 solaris 10 box.. it works for me..

Please reply me the error of you faced agan..


Please refer some more references..

http://blogs.sun.com/souvik/entry/workaround_for_vmware_fusion_hanging
http://www.gnu.org/software/grub/manual/grub.html#Interface

Thanks
Saran
0
 

Author Comment

by:mikesung99
Comment Utility
I've moved a little bit further with this problem - I've changed the kernel line to:-

kernel /platform/i86pc/multiboot kernel/unix [I think this is specific to my version of solaris]

and it now attempts to boot into 32-bit mode , WHen it starts up, it shows Sun Os Release 5.10 Version Generais 127112-10 32-bit - however, I still get my original issue of the nvidia error being reported:-

/kernel/drv/nvidia
undefinied symbol '_nv013847rm'
WARNING mod_load : Cannot find module 'nvidia'
WARNING consconfig : No Screen found
Can't Find Driver for Console framebuffer

After this error - the system reboots itself everytime. Is there a way to prevent the loading of the nvidia driver or someway to prevent the consconfig : No Screen found error. I've had a look at the various forums but there doesn't seem to be anything that helps.

Thanks

Michael
0
 
LVL 3

Accepted Solution

by:
Saranyakkali earned 500 total points
Comment Utility
0
 

Author Closing Comment

by:mikesung99
Comment Utility
Unfortunately, I still can't resolve my original issue of disabling the driver. but thanks for sharing info on editing grub. I just want to get rid of the WARNING consconfig : No Screen found error by just trying to use the standard VGA display (as per my original request)
 
I think I'll re-post another question specifically asking for help in resolving the framebuffer issue by seeing if it's possible to bypass the Nvidia driver and use the VGA driver instead.

Cheers

Michael
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Article by: SHIELD1
The 5 R's 1. Repair 2. Restore 3. Reinstall 4. Remote admin 5. Run away OK so I'm not the most skilled engineer around but I definitely have an abundance of experience: electronic repairs since I was 13 and PC and computer hardware repair…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now