Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The console was added, but there is no output. #5359

Open
Emy-inspur opened this issue Apr 27, 2023 · 3 comments
Open

The console was added, but there is no output. #5359

Emy-inspur opened this issue Apr 27, 2023 · 3 comments

Comments

@Emy-inspur
Copy link

On branch ibm-release-fw1030, commit 3c097c5
The following log is added to hostboot(commit:cc5f1cdd6ca59a8a83c9539c657f4837695722d3), but the host console does not output the log.
#include <console/consoleif.H>
CONSOLE::displayf(CONSOLE::DEFAULT, NULL, "Test log");

Attempts to add logs to the following hostboot files have no output:
/src/usr/pldm/extended/hb_fru.C
/src/usr/hdat/hdatiplparms.C

How to output console logs? Thankyou.

@dcrowell77
Copy link
Contributor

Is there any output on the console at all? i.e. do you see the normal Hostboot startup messages and the isteps? If not, I would guess you have something misconfigured on the BMC side.

How are you displaying the console? We ssh to port 2200 on the BMC to see it. The BMC also saves the console into /var/log/obmc-console.log . I know there are configuration files on the BMC itself to control this but I don't have a lot of familiarity with the details.

@Emy-inspur
Copy link
Author

Checking the file of /var/log/obmc-console.log, I can see the normal Hostboot startup messages and the isteps, but I cannot see the log I added.
for example, I add the log to cacheRemoteFruVpd() in hb_fru.C
errlHndl_t cacheRemoteFruVpd()
{
using namespace TARGETING;

PLDM_ENTER("cacheRemoteFruVpd");

CONSOLE::displayf(CONSOLE::DEFAULT, NULL, "Test log"); //added

errlHndl_t errl = nullptr;

....
}

@dcrowell77
Copy link
Contributor

This is something we do all the time so if you see all of the normal Hostboot messages my first guess is that you are not actually patching your code on like you think. Another experiment to confirm this would be to modify an existing message that you do actually see to prove if your changes are really running or not.

Another tip is to look at the hash in the Welcome message. It should match your local tree if your patches are being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants