<?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: Problems with STATICALLY configured loadable kernel modules (DLKM) on 11.11 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-statically-configured-loadable-kernel-modules-dlkm/m-p/3360393#M193944</link>
    <description>Yes, I already had PHKL_29818; installing  PHKL_29890 didn't change things.</description>
    <pubDate>Thu, 19 Aug 2004 16:04:27 GMT</pubDate>
    <dc:creator>Misha Rekhson</dc:creator>
    <dc:date>2004-08-19T16:04:27Z</dc:date>
    <item>
      <title>Problems with STATICALLY configured loadable kernel modules (DLKM) on 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-statically-configured-loadable-kernel-modules-dlkm/m-p/3360391#M193942</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;we are having problems with what one would expect to be the easier part of dealing with DLKM moduels in 11.11 (PA) - having them included statically in the kernel. Everything works great when we configure and use the modules as a dynamically loaded modules or link them into the kernel in the pre-DLKM way - via a library&lt;BR /&gt;&lt;BR /&gt;Summary: when the module is statically linked (either via SAM or explicit commands), it's included in the kernel (according to nm), however, its &lt;DRIVER&gt;_install() doean't get called at boot (or ever).  It appears that config doesn't generate a correct /stand/build/conf.c for the &lt;DRIVER&gt;_install() function to be called, when it configured as a statically linked module. The problem occurs with all modules that we've tried: our internally developed ones and HP supplied (in ddk) modules.&lt;BR /&gt;&lt;BR /&gt;If we don't package the driver as a module, but use a library instead (as was done in pre-DLKM days), it works as expected (it's included in the kernel, and at boot &lt;DRIVER&gt;_install() gets called)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If one looks in the generated /stand/build/conf.c they differ for library drivers and static modules:&lt;BR /&gt;&lt;BR /&gt;If we do it as a library, in the generated conf.c there are following entries&lt;BR /&gt;for the driver:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;extern ourdriver_install();&lt;BR /&gt;... &lt;BR /&gt;&lt;BR /&gt;and then it's included in the table of install functions:&lt;BR /&gt;&lt;BR /&gt;int     (*driver_install[])() = &lt;BR /&gt;{&lt;BR /&gt;        ...&lt;BR /&gt;        ourdriver_install,&lt;BR /&gt;        fddi4_install,&lt;BR /&gt;        .....&lt;BR /&gt;&lt;BR /&gt;However, when it's a statically included module, the above entrires for the driver are missing in any genned C file.&lt;BR /&gt;&lt;BR /&gt;The only portion of conf.c the module appears in is: &lt;BR /&gt;&lt;BR /&gt;char *static_modules[] = {&lt;BR /&gt;        "ourmodule",&lt;BR /&gt;        "ufs",&lt;BR /&gt;        "cdfs",&lt;BR /&gt;....&lt;BR /&gt;    &lt;BR /&gt;&lt;BR /&gt;It's hard to belive that, if this is a bug, it hasn't been fixed yet....&lt;BR /&gt;However, all we have tried has not helped. Searching HP site didn't turn anything either.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Misha&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-------&lt;BR /&gt;For completeness, when we do this outside of SAM, the following commands&lt;BR /&gt;are used:&lt;BR /&gt;&lt;BR /&gt;kminstall -a module&lt;BR /&gt;kmconfig -c Y -l N&lt;BR /&gt;&lt;BR /&gt;config /stand/system&lt;BR /&gt;kmupdate /stand/build/vmunix_test&lt;BR /&gt;&lt;BR /&gt;shutdown -r 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-------&lt;BR /&gt;&lt;BR /&gt;master file:&lt;BR /&gt;&lt;BR /&gt;$VERSION&lt;BR /&gt;1&lt;BR /&gt;$$$&lt;BR /&gt;&lt;BR /&gt;$DRIVER_INSTALL&lt;BR /&gt;*&lt;BR /&gt;* Driver     Block major     Char major    Required for&lt;BR /&gt;*                                          minimal system&lt;BR /&gt;ourmodule     -1             -1              0&lt;BR /&gt;$$$&lt;BR /&gt;&lt;BR /&gt;$LOADABLE&lt;BR /&gt;$$$&lt;BR /&gt;&lt;BR /&gt;$INTERFACE&lt;BR /&gt;* Describe all interface name and version that the module is using.&lt;BR /&gt;* &lt;INTERFACE name=""&gt;      &lt;INTERFACE version=""&gt;&lt;BR /&gt;* Alternately, &lt;BR /&gt;* if the module uses undefined symbols and wish tight coupling with &lt;BR /&gt;* kernel, uncomment below line and do not describe any other interface&lt;BR /&gt;* name and version. In this case, compatibility is not maintained by HP.&lt;BR /&gt;* base&lt;BR /&gt;base&lt;BR /&gt;$$$&lt;BR /&gt;&lt;BR /&gt;* below section should carry same info. as legacy era&lt;BR /&gt;* dependency to legacy can be described here.&lt;BR /&gt;&lt;BR /&gt;$DRIVER_DEPENDENCY&lt;BR /&gt;* modname    &lt;DEPENDENCY&gt;  &lt;DEPENDENCY&gt; ...&lt;BR /&gt;ourmodule       wsio&lt;BR /&gt;$$$&lt;BR /&gt;&lt;BR /&gt;$TYPE&lt;BR /&gt;* modulename modtype classname flags -1 -1&lt;BR /&gt;ourmodule wsio_intfc acq         csi -1 -1&lt;BR /&gt;$$$&lt;BR /&gt;&lt;BR /&gt;$TUNABLE&lt;BR /&gt;*tunablename    definition              defaultvalue    minumumvalue&lt;BR /&gt;ourmodule_debug       OURMODULE_DEBUG        1             0&lt;BR /&gt;$$$&lt;BR /&gt;&lt;/DEPENDENCY&gt;&lt;/DEPENDENCY&gt;&lt;/INTERFACE&gt;&lt;/INTERFACE&gt;&lt;/DRIVER&gt;&lt;/DRIVER&gt;&lt;/DRIVER&gt;</description>
      <pubDate>Wed, 18 Aug 2004 16:00:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-statically-configured-loadable-kernel-modules-dlkm/m-p/3360391#M193942</guid>
      <dc:creator>Misha Rekhson</dc:creator>
      <dc:date>2004-08-18T16:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with STATICALLY configured loadable kernel modules (DLKM) on 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-statically-configured-loadable-kernel-modules-dlkm/m-p/3360392#M193943</link>
      <description>Do you have patches PHKL_29818 and PHKL_29890 ?</description>
      <pubDate>Thu, 19 Aug 2004 12:28:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-statically-configured-loadable-kernel-modules-dlkm/m-p/3360392#M193943</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2004-08-19T12:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with STATICALLY configured loadable kernel modules (DLKM) on 11.11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-statically-configured-loadable-kernel-modules-dlkm/m-p/3360393#M193944</link>
      <description>Yes, I already had PHKL_29818; installing  PHKL_29890 didn't change things.</description>
      <pubDate>Thu, 19 Aug 2004 16:04:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-statically-configured-loadable-kernel-modules-dlkm/m-p/3360393#M193944</guid>
      <dc:creator>Misha Rekhson</dc:creator>
      <dc:date>2004-08-19T16:04:27Z</dc:date>
    </item>
  </channel>
</rss>

