- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Kernel rebuilding problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 01:28 AM
10-07-2003 01:28 AM
Kernel rebuilding problem
kmupdate: Specified file /stand/build/vmunix_test is not kernel file
Same procedure was carried out on an E35 without a problem.
Jun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 01:43 AM
10-07-2003 01:43 AM
Re: Kernel rebuilding problem
1) Check the output of "file /stand/build/vmunix_test" and see the output. Post the output
2) Check the revision of /etc/magic file (sometimes, this file might have been corrupted or on a wrong version) - 'what /etc/magic"
3) Install this patch (or the latest) if you haven't already - PHCO_24285 (awk patch)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 01:55 AM
10-07-2003 01:55 AM
Re: Kernel rebuilding problem
I thing there is something wrong in your procedure of editing&creating kernel on
hp-ux 11. You have 2 ways after you prepare your /stand/system and have to
choise 1 of them:
1.
#mk_kernel -s ./system
- this created /stand/build/vmunix_test
#kmupdate /stand/build/vmunix_test
- and your kernel is ready to boot.
OR:
2.
#mk_kernel -s ./system -o /stand/vmunix
- this will create vmunix at once.
Try to check your steps or try second variant. And dont forget backup of old vmunix. :)
Good luck.
Stan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 02:45 AM
10-07-2003 02:45 AM
Re: Kernel rebuilding problem
vmunix_test: PA-RISC1.1 executable -not stripped
# what /etc/magic
/etc/magic:
$Revision: 80.3 $
Installed PHCO_27251 (supersedes PHCO_24285).
Tried kmupdate, got the same message.
The output of "file vmunix_test" is the same as the output of "file vmunix".
Jun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 02:56 AM
10-07-2003 02:56 AM
Re: Kernel rebuilding problem
# mk_kernel -s system -o /stand/vmunix
Generating module: krm...
Compiling conf.c...
Loading the kernel...
Generating kernel symbol table...
Kernel update request is scheduled.
Default kernel /stand/vmunix will be updated by
newly built kernel /stand/build/vmunix_test
at next system shutdown or startup time.
The above sounds like kmupdate executed implicitly. The /stand/vmunix is still the previous one, though. I'll go ahead reboot and tell you the result.
Jun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 03:25 AM
10-07-2003 03:25 AM
Re: Kernel rebuilding problem
I went back to follow the first method mentioned in Stan's message, and got
kmupdate: Specified file /stand/build/vmunix_test is not kernel file
again. What can you say?
Jun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 04:37 AM
10-07-2003 04:37 AM
Re: Kernel rebuilding problem
the /usr/sbin/kmupdate command is only a shell script that can be easily trouble-shooted.
First create a backup of it:
# mv /usr/sbin/kmupdate /usr/sbin/kmupdate.org
# cp -p /usr/sbin/kmupdate.org /usr/sbin/kmupdate
Then edit the script and place a "set -x" just at the beginning of the shell function "check_kernel_image". The next kmupdate run should give you more information.
I suspect that kmupdate fails to find some important kernel symbols using nm(1).
The next step would be to check the result of the nm command in question. Should look like this:
# nm -pghN /stand/build/vmunix_test |grep -e rootdev -e bdevsw -e cdevsw
0008073688 D bdevsw
0008070040 D bdevsw_shadow
0008058816 D cdevsw
0008045552 D cdevsw_shadow
0008650960 D rootdev
0009448336 B mod_bdevsw_lock
0009448352 B mod_cdevsw_lock
0008355736 D cdevsw_lkinfo
0008355720 D bdevsw_lkinfo
Don't forget to restore the original file:
# mv /usr/sbin/kmupdate.org /usr/sbin/kmupdate
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 08:48 AM
10-07-2003 08:48 AM
Re: Kernel rebuilding problem
The nm command didn't give me anything beside the coming back of the shell promt. Running kmupdate with sh -x gave me the following the lines below.
Jun
# kmupdate
+ umask 022
+ PATH=/usr/local/bin:/opt/perl/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib
/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/u
sr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/ignite/bin:/opt/resmon/bin
:/usr/sbin/diag/contrib:/opt/pred/bin:/opt/perf/bin:/opt/hpnpl//bin:/sbin:/opt/u
ltplus/bin:/opt/gnuplot/bin/X11:/usr/sbin:/usr/bin:/sbin
+ ROOT=
+ KMUPDATE=kmupdate
+ KMADMIN=kmadmin
+ KMMODREG=kmmodreg
+ KMTYPEINIT=kmtypeinit
+ KMPATH=kmpath
+ STAND=/stand
+ BUILD=/stand/build
+ CONF=/usr/conf
+ TMP=/tmp
+ KERN_DEF=/stand/vmunix
+ KERN_PREV=/stand/vmunix.prev
+ KERN_TEST=/stand/build/vmunix_test
+ KM_D=/usr/conf/km.d
+ KMC_DEF=/stand/dlkm
+ + kmc_path /stand/vmunix.prev
KMC_PREV=/stand/dlkm.vmunix.prev
+ + kmpath -c
+ 2> /dev/null
KMC=/stand/dlkm
+ [ 0 -ne 0 ]
+ MOD_D=/stand/dlkm/mod.d
+ MOD_BLD_D=/stand/dlkm/mod_bld.d
+ SYSTEM_D=/stand/dlkm/system.d
+ NODE_D=/stand/dlkm/node.d
+ UPDATE_UX_FILE=/stand/.update_ux
+ UPDATE_MOD_FILE=/stand/dlkm/.update_mod
+ UPDATE_MODS=
+ IMMEDIATE_MODS=
+ ACTIVATE_MODS=
+ ENABLED_MODS=
+ ASYNC_MODS=
+ UNLOADED_MODS=
+ SUCCESS=0
+ ERROR=1
+ cmd_err=0
+ first_msg=1
+ WORK_FILE=/tmp/.km_work5070
+ LOCK_FILE=/tmp/.kmupdate
+ mflag=0
+ iflag=0
+ aflag=0
+ kflag=0
+ typeset -i argcnt=0
+ MVsrc=mv
+ OS_VIRSION_UP=
+ getopts :M:iak OPT
+ (( argcnt=OPTIND-1 ))
+ [ 0 -gt 0 ]
+ shift 0
+ [ 0 -eq 0 ]
+ [ 0 -eq 1 ]
+ [ 0 -eq 1 ]
+ [ 0 -eq 1 ]
+ [ 0 -eq 0 ]
+ KERN_src=/stand/build/vmunix_test
+ trap 1 2 3 15
+ lock_me
+ [ 0 -ne 0 ]
+ [ 0 -eq 0 ]
+ update_kernel
kmupdate: Specified file /stand/build/vmunix_test is not kernel file.
+ [ 1 -ne 0 ]
+ unlock_me
+ exit 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 09:49 AM
10-07-2003 09:49 AM
Re: Kernel rebuilding problem
just have a look at the nm executable. Maybe it'corrupted somehow? Or truncated? What's the result of:
# what $(whence nm)
# ll $(whence nm)
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 03:47 AM
10-08-2003 03:47 AM
Re: Kernel rebuilding problem
(blank)
ll /usr/local/bin/nm
-rwxr-xr-x 2 root sys 135168 May 31 15:51 /usr/local/bin/nm
file /usr/local/bin/nm
/usr/local/bin/nm: PA-RISC1.1 shared executable dynamically linked
Jun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 06:43 PM
10-08-2003 06:43 PM
Re: Kernel rebuilding problem
This is the result from my box:
$ what $(whence nm)
/bin/nm:
HP aC++ B3910B A.03.30 Classic Iostream Library
HP aC++ B3910B A.03.30 Language Support Library
nm.cat: $Revision: 1.0 $
92453-07 linker command s800.sgs nm PA64 B.11.32 REL 020412
ll $(whence nm)
lr-xr-xr-t 1 root sys 15 Feb 25 1999 /bin/nm@ -> /usr/ccs/bin/nm
Please check what happens if you include /bin in yout PATH _before_ /usr/local/bin.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 07:07 PM
10-08-2003 07:07 PM
Re: Kernel rebuilding problem
Download and install the following patch: PHCO_24285 awk(1) patch
Does rc.log have the following:
Update kernel and loadable modules
Output from "/sbin/rc1.d/S110kmbuild start":
----------------------------
ERROR: Cannot find the newly built kernel function set directory
"//dlkm.vmunix_test".
EXIT CODE: 1
"/sbin/rc1.d/S110kmbuild start" FAILED
Please keep us updated.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 07:38 PM
10-08-2003 07:38 PM
Re: Kernel rebuilding problem
don't bother with awk... nm is your problem.