Operating System - HP-UX
1827293 Members
2779 Online
109717 Solutions
New Discussion

Re: Debugging kernel build

 
Lance Leung
Advisor

Debugging kernel build

Hi, is there a way to generate a sort of debug log when using SAM to build a new kernel? The problem I am having right now is that after I have added a new Subsystem into the kernel configuration in SAM, recompiled and then rebooted the machine, the machine will lose all network connectivity. It cannot ping. Nor can it be pinged. The only way to reset it for now is for me to copy back the previous vmunix and reboot the machine or to take out that Subsystem and rebuilt the kernel. I have tried to use mk_kernel to see if I can see any errors but it compiled without any errors.

It is most likely that the Subsystem cannot work with some patches that I put it some time ago because the Subsystem used to work before. Any recommendation how to debug or which log to look at? Thanks.

Lance
6 REPLIES 6
Jeff Schussele
Honored Contributor

Re: Debugging kernel build

Hi Lance,

Any SAM errors will be contained in the /var/sam/log/samlog files - easily viewed with the samlog_viewer command. This also contains all commands that SAM issues in the background - just in case you want to see just exactly what SAM does.

Any swinstall related errors will be in the /var/adm/swX.log where X=install, config, verify, etc.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
S.K. Chan
Honored Contributor

Re: Debugging kernel build

The log file is in /var/sam/log/samlog but if you don't see any error during SAM interactive compilation you're not likely to spot anything here either. What changes are you making to the kernel or what "subsystem" are you adding to it ?
hari jayaram_1
Frequent Advisor

Re: Debugging kernel build

Lance,

What kind of sub system are you adding ?

Thanks

Regards

Hari
Lance Leung
Advisor

Re: Debugging kernel build

Hi, on checking the rc.log file, I noticed that the bootup fails at this point when it tries to start up S320hpether.

An error message will pop up as follows:

ERROR: land0 interface | PPA :
Error - must enter a PPA Number

On a normal bootup, there will not be such errors. If I were to start up S320hpether manually, will that help me in finding out the source of the problem? Or has there been any known issue between certain patches and starting up the lan0 interface?

Thanks.

Lance
Lance Leung
Advisor

Re: Debugging kernel build

Hi, I think I found the workaround here at:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa1988d77ef20d411b66300108302854d,00.html

It looks like I probably don't have the latest patch for SAM although I thought I had it.

Lance
S.K. Chan
Honored Contributor

Re: Debugging kernel build

Seems like it .. fyi SAM cumulative patch is probably the one you need ..
10.20 PHCO_22268
11.00 PHCO_21187
11.11 PHCO_23004