How to build a kernel in HP-UX before version 11i v2 (11.23)?



  • Building a kernel before HP-UX 11i v2. Always use the commands
    to the build the kernel, NEVER edit the files manually

    # cd /stand/build
    

    Prepare a system file for a new kernel

    # /usr/lbin/sysadm/system_prep -v -s system
    NOTE: Dynamic tunable values (if applicable) have been added to
    "system".
    NOTE: The template file has been extracted from "/stand/vmunix"
    It has been placed in "system" where it will be used
    to build a new kernel.
    

    View kernel modules that were selected to build the next kernel

    # /usr/sbin/kmsystem -S /stand/build/system
    Module Configured Loadable
    =================================================
    CentIf N -
    CharDrv N -
    DlkmDrv Y -
    GSCtoPCI Y -
    PCItoPCI Y -
    SCentIf N -
    ac N -
    arp Y -
    asio0 Y -
    asp Y -
    astropmon N -
    asyncdsk N -
    asyncdsk_included N -
    audio N -
    autofsc Y -
    autox0 N -
    beep Y -
    bs_osm Y -
    btlan N -
    btt N -
    ....
    ....
    ....
    

    Add additional kernel modules to the system file using

    # /usr/sbin/kmsystem -S /stand/build/system -c Y driver-name
    

    Build/make the new kernel

    # /usr/sbin/mk_kernel -s /stand/build/system
    

    This will create a kernel ready for testing /stand/build/vmunix_test
    Use the kmupdate command to set the flag for booting using the kernel

    # /usr/sbin/kmupdate
    

    Inform users of a reboot or schedule it

    Then just reboot or reboot and interrupt and power of system to add
    new devices, then bring the system up

    Depending on what you are doing either use:

    # /usr/sbin/shutdown -r
    

    If you are not attaching hardware or:

    # /usr/sbin/shutdown -h 
    

    If you need to power of the system and associated devices
    and then attach new hardware

    NOTE: If the system fails to boot from the new kernel you have
    a backup kernel /stand/vmunix.prev to boot from


Log in to reply
 

© Lightnetics 2024