You are here

Bulding and getting registerd a DLKM module by hand in HPUX 11.11

Tenemos que renombar el objeto de 64 bits, si el dtc ya existe dentro del /usr/conf/master.d este paso no es necesario:

root@hprert:/var/tmp/DEPOT/DTC/Programs/usr/conf/dtc> cp mod64.o mod.o
root@hprert:/var/tmp/DEPOT/DTC/Programs/usr/conf/dtc> kminstall -a dtc

Ya nos crear el master del modulo, que es necesario para poder ser registrado:
root@hprert:/usr/conf/master.d> ls -ltr | grep -i dtc
-rw-r--r-- 1 root sys 1553 May 18 11:09 dtc

Realizamos un config, que nos hace el build del modulo:

root@hprert:/usr/conf/master.d> config -M dtc
Generating module: dtc...

Y después lo registramos en el kernel actual:

root@hprert:/usr/conf/master.d> kmupdate -M dtc -i

Specified module(s) below is(are) activated successfully.
Dtc

Como podemos ver ya lo tenemos registrado y ya existe en el /stand/dlkm/:

root@hprert:/usr/conf/master.d> kmadmin -s
Name ID Status Type
=====================================================
rng 1 LOADED WSIO
krm 2 UNLOADED WSIO
dtc 3 UNLOADED WSIO

root@hprert:/usr/conf/master.d> ls -l /stand/dlkm/mod.d | grep -i dtc
-rw-r--r-- 1 root sys 259736 May 18 11:12 dtc

Finalmente lo cargamos dinámicamente:

root@hprert:/usr/conf/master.d> kmadmin -L dtc
kmadmin: Module dtc loaded, ID = 3
You have mail in /var/mail/root
root@hprert:/usr/conf/master.d> kmadmin -s
Name ID Status Type
=====================================================
rng 1 LOADED WSIO
krm 2 UNLOADED WSIO
dtc 3 LOADED WSIO

Unix Systems: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.
Error | HP-UX Tips & Tricks Site

Error

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /homepages/37/d228974590/htdocs/includes/common.inc:2567) in drupal_send_headers() (line 1207 of /homepages/37/d228974590/htdocs/includes/bootstrap.inc).
  • PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'dbo229817041'@'217.160.155.192' for table 'watchdog': INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => cron [:db_insert_placeholder_2] => Attempting to re-run cron while it is already running. [:db_insert_placeholder_3] => a:0:{} [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://hpuxtips.es/?q=content/bulding-and-getting-registerd-dlkm-module-hand-hpux-1111 [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 54.92.142.198 [:db_insert_placeholder_9] => 1502962430 ) in dblog_watchdog() (line 157 of /homepages/37/d228974590/htdocs/modules/dblog/dblog.module).
The website encountered an unexpected error. Please try again later.