1837958 Members
3666 Online
110124 Solutions
New Discussion

Re: kminstall error

 
Catherine Forget
Frequent Advisor

kminstall error

Hi,
When doing : kminstal -u krm
I am getting the following error:
"kminstall:could not obtain the boot kernel path"

How can I resolve this?

Thanks for your help
19 REPLIES 19
Mel Burslan
Honored Contributor

Re: kminstall error

from the man page of kminstall

When called with the -a or -u option, kminstall expects to find the
module's component files in the current directory, and installs or
updates copies of the files under subdirectories of the /usr/conf and
/stand directories.

were you in the same directory as the the module that you were trying to complie was ?
________________________________
UNIX because I majored in cryptology...
Catherine Forget
Frequent Advisor

Re: kminstall error

Hi Mel,
yes I was in the same directory.
Mel Burslan
Honored Contributor

Re: kminstall error

does the output of dmesg command complain something about DLKM ?
________________________________
UNIX because I majored in cryptology...
Catherine Forget
Frequent Advisor

Re: kminstall error

yes I have a message : DKLM is not initialized. How do I initialized it?
I did the following but I get the same message:
#cd /stand/build
#/usr/lbin/sysadm/system_prep
-s /stand/build/system

#/usr/sbin/mk_kernel -s /stand/build/system
#mv /stand/system /stand/system.prev
#mv /stand/build/system /stand/system
#kmupdate /stand/build/vmunix_test
#shutdown -r
Mel Burslan
Honored Contributor

Re: kminstall error


So, you actually reboot the system after the kmupdate or waiting for a resolution before rebooting it ?

If you already reboot the server, is the DLKM not initialized message still showing up in the syslog ? If you have not reboot yet and did all the steps that you listed above, you should be good to go with the reboot and DLKM not initialized message should not come after the machine comes back up.

Usually this message is related to not running kmupdate after rebuilding the kernel and reboot the server last time.

I would use SAM to rebuild a kernel and do a reboot if manual method is failing at this moment. It may give you some more insightful error messages if this is the case.
________________________________
UNIX because I majored in cryptology...
RAC_1
Honored Contributor

Re: kminstall error

Kernel was not built properly.

echo "mod_inittialzed/D|adb -k /stand/vmunix

If it returns 0, then DLKM was not initialized.


Build the new kernel.
Backup /stand/vmunix
/stand/system
/stand/dlkm

cd /stand/build
Then system_prep -v -s ./system
kmtune/vi /stand/build/system

mk_kernel -s ./system -v
mv ./system /stand/system
kmupdate ./test_vmunix
cd /
shutdown -ry 0

Anil

There is no substitute to HARDWORK
Catherine Forget
Frequent Advisor

Re: kminstall error

Hi Anil,
The echo command returns : "symbol not found"
So, I think I have a bigger problem!
Catherine Forget
Frequent Advisor

Re: kminstall error

hi again,
the echo command is misspell. I added /dev/mem at the end and I got the return 0. The kmtune command is not good...
RAC_1
Honored Contributor

Re: kminstall error

My typo mistake and completely forot to add /dev/kmem. It is as follows.

echo mod_initialized/D | /usr/bin/adb /stand/vmunix /dev/kmem

Did kernel rebuild resolve your problem?

Anil
There is no substitute to HARDWORK
Navin Bhat_2
Trusted Contributor

Re: kminstall error

If you did a cut and paste from Anil's message then you will have a problem since there is a spelling mistake.

echo "mod_initialized/D"|adb -k /stand/vmunix /dev/kmem
mod_initialized:
mod_initialized: 1
Catherine Forget
Frequent Advisor

Re: kminstall error

the kmtune still does not work, sorry.
Navin Bhat_2
Trusted Contributor

Re: kminstall error

kmtune -S /stand/build/system
Navin Bhat_2
Trusted Contributor

Re: kminstall error

Follow these exact steps. They will help.


# cd /stand/build

# /usr/lbin/sysadm/system_prep -s system

# mk_kernel -s ./system

# kmupdate /stand/build/vmunix_test

# shutdown -r 0

Your problem should be solved.
Catherine Forget
Frequent Advisor

Re: kminstall error

Thanks Navin. Now I get Unsatisfied symbole wsio_get_service.
I think I will need to reload the os on that server!
Navin Bhat_2
Trusted Contributor

Re: kminstall error

You dont need to reload the OS. Just follow the steps in the last two posts and you should be good to go.
Catherine Forget
Frequent Advisor

Re: kminstall error

nop! the boot stops after the hpux ... /stand/vmunix
Sanjay_6
Honored Contributor

Re: kminstall error

Hi,

Try this to help with the unsatisfied symbol problems.

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000070865926.

The itrc doc id is KBRC00006788.

Look for the section,

//Quote//

Looking for wsio_get_service ...

//EndQuote//

Hope this helps.

Regds
Sanjay_6
Honored Contributor

Re: kminstall error

Hi,

Looks like your current vmunix kernel is corrupted. Use a older / secondary kernel if you.

At the boot prompt,

bo pri
interact with ipl (Y/N) y
at the isl prompt,

type hpux -is (;)/stand/vmunix.old
if you want to boot into single user mode. Do not use "-is" if you don't want to boot into single user mode.

Hope this helps.

Regds