General
cancel
Showing results for 
Search instead for 
Did you mean: 

mk_kernel error : "dev_config" module not available because its file has been removed from disk

mgameng
Visitor

mk_kernel error : "dev_config" module not available because its file has been removed from disk


Any clue why I'm getting the error below?
I would greatly appreciate any help. HP ITRC is already engaged since this morning but until now I haven't got any resolution. I'm wondering if anybody out there got an idea on how to fix this. Thanks in advance.

This is my system:

HPUX11i-OE-Ent B.11.23.0706 HP-UX Enterprise Operating Environment Component

ia64 hp server rx2660

------------------------------------------
ERROR MESSAGE:
------------------------------------------
[root@testap1]/stand# mk_kernel -o /stand/config/vmunix
ERROR: The configuration is supposed to include a module 'dev_config',
which is not available because its file has been removed from
disk.
----------------------------------------

Does anybody know what file is associated with "dev_config" module? I can't find the file itself (dev_module) in any of my working system running on the same hardware and OS version.

3 REPLIES
Matti_Kurkela
Honored Contributor

Re: mk_kernel error : "dev_config" module not available because its file has been removed from disk

> # mk_kernel -o /stand/config/vmunix

Your command line suggests there is a kernel configuration named "config". This is not one of the standard kernel configuration directories; the standard directories are /stand/current (the current kernel), /stand/backup (the previous kernel) and /stand/last_install. There is also /stand/nextboot which may or may not be a symbolic link to /stand/current.

(If you read "man mk_kernel" carefully, it says you're supposed to change the "config" part in /stand/config/vmunix to match the name of the kernel configuration you wish to make a new kernel for.)

Please run these commands and show their output:

kconfig
kconfig -v config

MK
MK
mgameng
Visitor

Re: mk_kernel error : "dev_config" module not available because its file has been removed from disk

mk_kernel -o /stand/config/vmunix is still acceptable in 11.23. I am able to run this on my other server with similar config in both hw and sw.

-------------------------
If the target kernel path specified is of the form /stand/config/vmunix, changes are applied to the saved kernel configuration named config. The changes will not take effect at next boot unless that saved kernel
configuration was already marked for use at next boot.
-------------------------

Please kconfig output below

# kconfig
Configuration Title
backup Automatic Backup
crashconfig booted from 'import.config'
last_install Created by last OS install
msg_backup Automatic Backup
msgconfig
[# kconfig -v config
ERROR: The kernel configuration(s) specified do not exist.
# kconfig -v backup
Configuration backup
Title Automatic Backup
Save Time Thu Apr 21 08:48:36 2011
Modify Time Thu Apr 21 08:48:36 2011
Kernel Path /stand/backup/vmunix

# kconfig -v crashconfig
Configuration crashconfig
Title booted from 'import.config'
Save Time Mon Jul 9 19:51:39 2007
Modify Time Tue Oct 9 10:27:09 2007
Kernel Path /stand/crashconfig/vmunix

# kconfig -v last_install
Configuration last_install
Title Created by last OS install
Save Time Wed Sep 8 11:38:43 2004
Modify Time Wed Sep 8 11:38:43 2004
Kernel Path /stand/last_install/vmunix

# kconfig -v msg_backup
Configuration msg_backup
Title Automatic Backup
Save Time Thu Apr 21 08:48:36 2011
Modify Time Thu Apr 21 08:48:36 2011
Kernel Path /stand/msg_backup/vmunix

# kconfig -v msgconfig
Configuration msgconfig
Title
Save Time Wed May 4 12:34:34 2011
Modify Time Wed May 4 12:34:34 2011
Kernel Path /stand/msgconfig/vmunix


Thanks
mgameng
Visitor

Re: mk_kernel error : "dev_config" module not available because its file has been removed from disk

Thanks to ITRC
Just got this error fixed and I wanted to share this info to everybody:

What FIX it?

Running update-ux in preview mode and NOT saving anything when you exit. :-)

update-ux installs OE executables temporarily in:
/var/adm/sw/sbin
/var/adm/sw/lbin
/usr/lbin/sw/bin

links the following executable files in /usr/sbin to /usr/adm/sw/sbin
-----------
sd
swacl
swagentd
swconfig
swcopy
swinstall
swjob
swlist
swmodify
swpackage
swreg
swremove
swverify
------------

update-ux cleans up its trashes when you exit withou saving anything :-)

This command below helped in tracing out the culprit "kconfig" in /usr/lbin/sw/bin when I ran mk_kernel

# ./tusc â o hp.txt mk_kernel â v â s /stand/system

grep kconfig hp.txt
---------------
stat("/usr/lbin/sw/bin/kconfig", 0x7fffe230) .......................................................................................... = 0
---------------