Operating System - HP-UX
1752461 Members
5765 Online
108788 Solutions
New Discussion юеВ

Re: Adding Drivers to /stand/system

 
Richard Ace
Frequent Advisor

Adding Drivers to /stand/system

If I want to add a driver to /stand/system can I say, just vi /stand/system add say, stape save and exit my vi session and then reboot ?

Cheers

Rich
5 REPLIES 5
S.K. Chan
Honored Contributor

Re: Adding Drivers to /stand/system

Nope .. this is the correct process.. (for 10.x)

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system
==> put "stape" here
# /usr/sbin/mk_kernel -s ./system
# mv /stand/system /stand/system.prev
# mv /stand/vmunix /stand/vmunix.prev
# mv /stand/build/system /stand/system
# mv /stand/build/vmunix_test /stand/vmunix
# shutdown -ry 0
Sandip Ghosh
Honored Contributor

Re: Adding Drivers to /stand/system

Better you get the system file from the current kernel through
cd /stand/build
/usr/lbin/sysadm/system_prep -s system
edit the system file for stape driver
mk_kernel -s system

then transfer the system file from /stand/build to /stand
and it will create vmunix_test under /stand/build, transfer it to /stand directory as vmunix. But don't forget to make a copy of the existing kernel and system file.

Then reboot.

Sandip
Good Luck!!!
S.K. Chan
Honored Contributor

Re: Adding Drivers to /stand/system

(If you're running 11.x)
========================
# cd /stand/build
# /usr/lbin/sysadm/system_prep -v -s system
# /usr/sbin/kmsystem -S /stand/build/system -c Y stape
==> eg adding "stape" driver to kernel
# /usr/sbin/mk_kernel -s ./system
# mv /stand/system /stand/system.prev
# mv /stand/vmunix /stand/vmunix.prev
# /usr/sbin/kmupdate
# shutdown -ry 0
Patrick Wallek
Honored Contributor

Re: Adding Drivers to /stand/system

You can also do this through SAM.

Start SAM and go to KERNEL CONFIGURATION. From there go to DRIVERS. Once the driver list is up scroll down to the driver you want to include, highlight it, and then go up to the ACTIONS menu and select "Add Driver(s) to Kernel".

Once that is done go back to the ACTIONS menu and select "Process New Kernel". This will regen your kernel and ask you if you want to move the new kernel into place and reboot the machine.
Richard Ace
Frequent Advisor

Re: Adding Drivers to /stand/system

Oh! it looks very straight forward.

Thanks for your time

Cheers

Rich