<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Kernel rebuilding problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086843#M143876</link>
    <description>Hi!&lt;BR /&gt;I thing there is something wrong in your procedure of editing&amp;amp;creating kernel on &lt;BR /&gt;hp-ux 11. You have 2 ways after you prepare your /stand/system and have to&lt;BR /&gt;choise 1 of them:&lt;BR /&gt;&lt;BR /&gt;1. &lt;BR /&gt;#mk_kernel -s ./system &lt;BR /&gt;- this created /stand/build/vmunix_test &lt;BR /&gt;#kmupdate /stand/build/vmunix_test &lt;BR /&gt;- and your kernel is ready to boot.&lt;BR /&gt;&lt;BR /&gt;OR:&lt;BR /&gt;&lt;BR /&gt;2.&lt;BR /&gt;#mk_kernel -s ./system -o /stand/vmunix&lt;BR /&gt;- this will create vmunix at once.&lt;BR /&gt;&lt;BR /&gt;Try to check your steps or try second variant. And dont forget backup of old vmunix. :)&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;Stan.&lt;BR /&gt;</description>
    <pubDate>Tue, 07 Oct 2003 08:55:37 GMT</pubDate>
    <dc:creator>Stanimir</dc:creator>
    <dc:date>2003-10-07T08:55:37Z</dc:date>
    <item>
      <title>Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086841#M143874</link>
      <description>I have 11.0 runs on D370. After modifying the system file, mk_kernel created the vmunix_test file. I then did kmupdate, and got the following message,&lt;BR /&gt;kmupdate: Specified file /stand/build/vmunix_test is not kernel file&lt;BR /&gt;Same procedure was carried out on an E35 without a problem. &lt;BR /&gt;&lt;BR /&gt;Jun</description>
      <pubDate>Tue, 07 Oct 2003 08:28:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086841#M143874</guid>
      <dc:creator>Jun Zhang_4</dc:creator>
      <dc:date>2003-10-07T08:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086842#M143875</link>
      <description>Some possible tries:&lt;BR /&gt;&lt;BR /&gt;1) Check the output of "file /stand/build/vmunix_test" and see the output. Post the output&lt;BR /&gt;&lt;BR /&gt;2) Check the revision of /etc/magic file (sometimes, this file might have been corrupted or on a wrong version) - 'what /etc/magic"&lt;BR /&gt;&lt;BR /&gt;3) Install this patch (or the latest) if you haven't already - PHCO_24285 (awk patch)</description>
      <pubDate>Tue, 07 Oct 2003 08:43:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086842#M143875</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-10-07T08:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086843#M143876</link>
      <description>Hi!&lt;BR /&gt;I thing there is something wrong in your procedure of editing&amp;amp;creating kernel on &lt;BR /&gt;hp-ux 11. You have 2 ways after you prepare your /stand/system and have to&lt;BR /&gt;choise 1 of them:&lt;BR /&gt;&lt;BR /&gt;1. &lt;BR /&gt;#mk_kernel -s ./system &lt;BR /&gt;- this created /stand/build/vmunix_test &lt;BR /&gt;#kmupdate /stand/build/vmunix_test &lt;BR /&gt;- and your kernel is ready to boot.&lt;BR /&gt;&lt;BR /&gt;OR:&lt;BR /&gt;&lt;BR /&gt;2.&lt;BR /&gt;#mk_kernel -s ./system -o /stand/vmunix&lt;BR /&gt;- this will create vmunix at once.&lt;BR /&gt;&lt;BR /&gt;Try to check your steps or try second variant. And dont forget backup of old vmunix. :)&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;Stan.&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Oct 2003 08:55:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086843#M143876</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2003-10-07T08:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086844#M143877</link>
      <description># file vmunix_test&lt;BR /&gt;vmunix_test:    PA-RISC1.1 executable -not stripped&lt;BR /&gt;# what /etc/magic&lt;BR /&gt;/etc/magic:&lt;BR /&gt;         $Revision: 80.3 $&lt;BR /&gt;Installed PHCO_27251 (supersedes PHCO_24285). &lt;BR /&gt;Tried kmupdate, got the same message.&lt;BR /&gt;&lt;BR /&gt;The output of "file vmunix_test" is the same as the output of "file vmunix".&lt;BR /&gt;&lt;BR /&gt;Jun</description>
      <pubDate>Tue, 07 Oct 2003 09:45:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086844#M143877</guid>
      <dc:creator>Jun Zhang_4</dc:creator>
      <dc:date>2003-10-07T09:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086845#M143878</link>
      <description>Thanks for the replies.&lt;BR /&gt;# mk_kernel -s system -o /stand/vmunix&lt;BR /&gt;Generating module: krm...&lt;BR /&gt;Compiling conf.c...&lt;BR /&gt;Loading the kernel...&lt;BR /&gt;Generating kernel symbol table...&lt;BR /&gt;&lt;BR /&gt;  Kernel update request is scheduled.&lt;BR /&gt;&lt;BR /&gt;  Default kernel /stand/vmunix will be updated by&lt;BR /&gt;  newly built kernel /stand/build/vmunix_test&lt;BR /&gt;  at next system shutdown or startup time.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Jun</description>
      <pubDate>Tue, 07 Oct 2003 09:56:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086845#M143878</guid>
      <dc:creator>Jun Zhang_4</dc:creator>
      <dc:date>2003-10-07T09:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086846#M143879</link>
      <description>The system boot up fine, with the new kernel as /stand/vmunix.&lt;BR /&gt;I went back to follow the first method mentioned in Stan's message, and got &lt;BR /&gt;kmupdate: Specified file /stand/build/vmunix_test is not kernel file&lt;BR /&gt;again. What can you say?&lt;BR /&gt;&lt;BR /&gt;Jun</description>
      <pubDate>Tue, 07 Oct 2003 10:25:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086846#M143879</guid>
      <dc:creator>Jun Zhang_4</dc:creator>
      <dc:date>2003-10-07T10:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086847#M143880</link>
      <description>Jun, &lt;BR /&gt;&lt;BR /&gt;the /usr/sbin/kmupdate command is only a shell script that can be easily trouble-shooted.&lt;BR /&gt;&lt;BR /&gt;First create a backup of it:&lt;BR /&gt;# mv /usr/sbin/kmupdate /usr/sbin/kmupdate.org&lt;BR /&gt;# cp -p /usr/sbin/kmupdate.org /usr/sbin/kmupdate&lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;I suspect that kmupdate fails to find some important kernel symbols using nm(1). &lt;BR /&gt;&lt;BR /&gt;The next step would be to check the result of the nm command in question. Should look like this:&lt;BR /&gt;&lt;BR /&gt;# nm -pghN /stand/build/vmunix_test |grep -e rootdev -e bdevsw -e cdevsw&lt;BR /&gt;0008073688 D  bdevsw&lt;BR /&gt;0008070040 D  bdevsw_shadow&lt;BR /&gt;0008058816 D  cdevsw&lt;BR /&gt;0008045552 D  cdevsw_shadow&lt;BR /&gt;0008650960 D  rootdev&lt;BR /&gt;0009448336 B  mod_bdevsw_lock&lt;BR /&gt;0009448352 B  mod_cdevsw_lock&lt;BR /&gt;0008355736 D  cdevsw_lkinfo&lt;BR /&gt;0008355720 D  bdevsw_lkinfo&lt;BR /&gt;&lt;BR /&gt;Don't forget to restore the original file:&lt;BR /&gt;&lt;BR /&gt;# mv /usr/sbin/kmupdate.org /usr/sbin/kmupdate&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Tue, 07 Oct 2003 11:37:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086847#M143880</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-10-07T11:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086848#M143881</link>
      <description>Dietmar,&lt;BR /&gt;    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.&lt;BR /&gt;&lt;BR /&gt;Jun&lt;BR /&gt;&lt;BR /&gt;# kmupdate&lt;BR /&gt;+ umask 022&lt;BR /&gt;+ PATH=/usr/local/bin:/opt/perl/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib&lt;BR /&gt;/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/u&lt;BR /&gt;sr/bin/X11:/usr/contrib/bin/X11:/opt/hparray/bin:/opt/ignite/bin:/opt/resmon/bin&lt;BR /&gt;:/usr/sbin/diag/contrib:/opt/pred/bin:/opt/perf/bin:/opt/hpnpl//bin:/sbin:/opt/u&lt;BR /&gt;ltplus/bin:/opt/gnuplot/bin/X11:/usr/sbin:/usr/bin:/sbin&lt;BR /&gt;+ ROOT=&lt;BR /&gt;+ KMUPDATE=kmupdate&lt;BR /&gt;+ KMADMIN=kmadmin&lt;BR /&gt;+ KMMODREG=kmmodreg&lt;BR /&gt;+ KMTYPEINIT=kmtypeinit&lt;BR /&gt;+ KMPATH=kmpath&lt;BR /&gt;+ STAND=/stand&lt;BR /&gt;+ BUILD=/stand/build&lt;BR /&gt;+ CONF=/usr/conf&lt;BR /&gt;+ TMP=/tmp&lt;BR /&gt;+ KERN_DEF=/stand/vmunix&lt;BR /&gt;+ KERN_PREV=/stand/vmunix.prev&lt;BR /&gt;+ KERN_TEST=/stand/build/vmunix_test&lt;BR /&gt;+ KM_D=/usr/conf/km.d&lt;BR /&gt;+ KMC_DEF=/stand/dlkm&lt;BR /&gt;+ + kmc_path /stand/vmunix.prev&lt;BR /&gt;KMC_PREV=/stand/dlkm.vmunix.prev&lt;BR /&gt;+ + kmpath -c&lt;BR /&gt;+ 2&amp;gt; /dev/null&lt;BR /&gt;KMC=/stand/dlkm&lt;BR /&gt;+ [ 0 -ne 0 ]&lt;BR /&gt;+ MOD_D=/stand/dlkm/mod.d&lt;BR /&gt;+ MOD_BLD_D=/stand/dlkm/mod_bld.d&lt;BR /&gt;+ SYSTEM_D=/stand/dlkm/system.d&lt;BR /&gt;+ NODE_D=/stand/dlkm/node.d&lt;BR /&gt;+ UPDATE_UX_FILE=/stand/.update_ux&lt;BR /&gt;+ UPDATE_MOD_FILE=/stand/dlkm/.update_mod&lt;BR /&gt;+ UPDATE_MODS=&lt;BR /&gt;+ IMMEDIATE_MODS=&lt;BR /&gt;+ ACTIVATE_MODS=&lt;BR /&gt;+ ENABLED_MODS=&lt;BR /&gt;+ ASYNC_MODS=&lt;BR /&gt;+ UNLOADED_MODS=&lt;BR /&gt;+ SUCCESS=0&lt;BR /&gt;+ ERROR=1&lt;BR /&gt;+ cmd_err=0&lt;BR /&gt;+ first_msg=1&lt;BR /&gt;+ WORK_FILE=/tmp/.km_work5070&lt;BR /&gt;+ LOCK_FILE=/tmp/.kmupdate&lt;BR /&gt;+ mflag=0&lt;BR /&gt;+ iflag=0&lt;BR /&gt;+ aflag=0&lt;BR /&gt;+ kflag=0&lt;BR /&gt;+ typeset -i argcnt=0&lt;BR /&gt;+ MVsrc=mv&lt;BR /&gt;+ OS_VIRSION_UP=&lt;BR /&gt;+ getopts :M:iak OPT&lt;BR /&gt;+ (( argcnt=OPTIND-1 ))&lt;BR /&gt;+ [ 0 -gt 0 ]&lt;BR /&gt;+ shift 0&lt;BR /&gt;+ [ 0 -eq 0 ]&lt;BR /&gt;+ [ 0 -eq 1 ]&lt;BR /&gt;+ [ 0 -eq 1 ]&lt;BR /&gt;+ [ 0 -eq 1 ]&lt;BR /&gt;+ [ 0 -eq 0 ]&lt;BR /&gt;+ KERN_src=/stand/build/vmunix_test&lt;BR /&gt;+ trap  1 2 3 15&lt;BR /&gt;+ lock_me&lt;BR /&gt;+ [ 0 -ne 0 ]&lt;BR /&gt;+ [ 0 -eq 0 ]&lt;BR /&gt;+ update_kernel&lt;BR /&gt;kmupdate: Specified file /stand/build/vmunix_test is not kernel file.&lt;BR /&gt;+ [ 1 -ne 0 ]&lt;BR /&gt;+ unlock_me&lt;BR /&gt;+ exit 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Oct 2003 15:48:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086848#M143881</guid>
      <dc:creator>Jun Zhang_4</dc:creator>
      <dc:date>2003-10-07T15:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086849#M143882</link>
      <description>Jun,&lt;BR /&gt;&lt;BR /&gt;just have a look at the nm executable. Maybe it'corrupted somehow? Or truncated? What's the result of:&lt;BR /&gt;&lt;BR /&gt;# what $(whence nm)&lt;BR /&gt;# ll $(whence nm)&lt;BR /&gt;&lt;BR /&gt;Best regards... &lt;BR /&gt;Dietmar.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Oct 2003 16:49:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086849#M143882</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-10-07T16:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086850#M143883</link>
      <description>what /usr/local/bin/nm&lt;BR /&gt;(blank)&lt;BR /&gt;ll /usr/local/bin/nm&lt;BR /&gt;-rwxr-xr-x   2 root       sys         135168 May 31 15:51 /usr/local/bin/nm&lt;BR /&gt;file /usr/local/bin/nm&lt;BR /&gt;/usr/local/bin/nm:      PA-RISC1.1 shared executable dynamically linked&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jun</description>
      <pubDate>Wed, 08 Oct 2003 10:47:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086850#M143883</guid>
      <dc:creator>Jun Zhang_4</dc:creator>
      <dc:date>2003-10-08T10:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086851#M143884</link>
      <description>Well, obviously your PATH includes /usr/local/bin before /bin, so you seem not to use the genuine HP-UX nm command.&lt;BR /&gt;&lt;BR /&gt;This is the result from my box:&lt;BR /&gt;&lt;BR /&gt;$ what $(whence nm)&lt;BR /&gt;/bin/nm:&lt;BR /&gt;        HP aC++ B3910B A.03.30 Classic Iostream Library&lt;BR /&gt;        HP aC++ B3910B A.03.30 Language Support Library&lt;BR /&gt;        nm.cat: $Revision: 1.0 $&lt;BR /&gt;        92453-07 linker command s800.sgs nm PA64 B.11.32 REL 020412&lt;BR /&gt;&lt;BR /&gt;ll $(whence nm)&lt;BR /&gt;lr-xr-xr-t   1 root       sys             15 Feb 25  1999 /bin/nm@ -&amp;gt; /usr/ccs/bin/nm&lt;BR /&gt;&lt;BR /&gt;Please check what happens if you include /bin in yout PATH _before_ /usr/local/bin.&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Oct 2003 01:43:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086851#M143884</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-10-09T01:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086852#M143885</link>
      <description>Jun,&lt;BR /&gt;&lt;BR /&gt;Download and install the following patch: PHCO_24285  awk(1) patch&lt;BR /&gt;&lt;BR /&gt;Does rc.log have the following:&lt;BR /&gt;&lt;BR /&gt;Update kernel and loadable modules&lt;BR /&gt;Output from "/sbin/rc1.d/S110kmbuild start":&lt;BR /&gt;----------------------------&lt;BR /&gt;ERROR:   Cannot find the newly built kernel function set directory&lt;BR /&gt;         "//dlkm.vmunix_test".&lt;BR /&gt;EXIT CODE: 1&lt;BR /&gt;"/sbin/rc1.d/S110kmbuild start" FAILED&lt;BR /&gt;&lt;BR /&gt;Please keep us updated.&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Oct 2003 02:07:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086852#M143885</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2003-10-09T02:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel rebuilding problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086853#M143886</link>
      <description>Jun, &lt;BR /&gt;don't bother with awk... nm is your problem.</description>
      <pubDate>Thu, 09 Oct 2003 02:38:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/kernel-rebuilding-problem/m-p/3086853#M143886</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2003-10-09T02:38:51Z</dc:date>
    </item>
  </channel>
</rss>

