GithubHelp home page GithubHelp logo

amdese / openbmc Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 6.0 78.04 MB

OpenBMC for Genoa SP5 socket platforms

License: Other

BitBake 25.50% Shell 7.45% Makefile 0.22% C 8.30% HTML 10.08% NASL 1.52% PHP 0.28% BlitzBasic 0.08% C++ 2.08% Python 36.72% Assembly 0.01% Lua 0.01% Pascal 0.25% Roff 3.35% Perl 1.73% M4 0.98% CMake 0.04% XSLT 0.02% Dockerfile 0.01% JavaScript 1.36%

openbmc's People

Contributors

amboar avatar anoo1 avatar ashok2ku avatar benjaminfair avatar bradbishop avatar devenrao avatar dkodihal avatar edtanous avatar geissonator avatar georgehung1210 avatar ghf avatar gtmills avatar lxwinspur avatar mdmillerii avatar mine260309 avatar modolaty avatar msbarth avatar nest1ing avatar nkskjames avatar pstrinkle avatar rajaganeshr avatar saqibkh avatar shenki avatar spinler avatar supven01 avatar vijaykhemka avatar vinuvagh avatar vishwabmc avatar wak-google avatar williamspatrick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openbmc's Issues

Where can I get esmi_mailbox_nda.h?

I got two errors when building OpenBMC.
Both errors say that esmi_mailbox_nda.h is missing.

| /home/tajima/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/cpu-info/1.0-r0/git/src/cpu_info.cpp:25:10: fatal error: esmi_mailbox_nda.h: No such file or directory
| 25 | #include "esmi_mailbox_nda.h"
| | ^~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
|

| /home/tajima/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/amd-ras/1.0-r0/git/src/main.cpp:39:10: fatal error: esmi_mailbox_nda.h: No such file or directory
| 39 | #include "esmi_mailbox_nda.h"
| | ^~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
|

Where can I get esmi_mailbox_nda.h?

Update the Commit Hash

Unexpected behavior you saw
The SRCREV of apml_library is not the latest commit hash, which causes an error.

SRCREV = "5327a39ddc244eaf69794c5a57d5fd5a5bbe3a87"

There will be a missing structure definition error if the current SRCREV is used. Therefore, I need to modify the SRCREV to the latest commit hash of apml_library.

Expected behavior
It should be the latest commit hash and it can be compiled successfully.

To Reproduce
Steps to reproduce the behavior:

  1. mkdir OpenBMC
  2. git clone https://github.com/AMDESE/OpenBMC.git .
  3. . setup sp5
  4. Get access to apml_library from amd
  5. bitbake obmc-phosphor-image
  6. See the error 'Error: aggregate has incomplete type and cannot be defined.'

OpenBMC Information:

  • /etc/os-release: NAME="Ubuntu" VERSION="18.04.6 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.6 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic
  • uname -a: Linux 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

openBMC is not building for SP5 machine.

Hi supreeth,

I am getting build error when I built AMDESE/openBMC (master branch) .
I have followed the instruction mentioned in this site https://github.com/AMDESE/OpenBMC.
Note on Bugs
Please note that questions or feature requests should be discussed on the
mailing list or Discord. Please see https://github.com/openbmc/openbmc#contact
for info on how to contact us. Github Issues in openbmc/openbmc are for bugs
only. Please remove this section when opening a bug.

Unexpected behavior
WARNING: /home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/meta-amd/meta-common/recipes-amd/power-capping/power-capping.bb: Exception during build_dependencies for AUTOREV
WARNING: /home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/meta-amd/meta-common/recipes-amd/power-capping/power-capping.bb: Error during finalise of /home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/meta-amd/meta-common/recipes-amd/power-capping/power-capping.bb
ERROR: ExpansionError during parsing /home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/meta-amd/meta-common/recipes-amd/power-capping/power-capping.bb
Traceback (most recent call last):
File "/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/poky/bitbake/lib/bb/fetch2/init.py", line 1172, in srcrev_internal_helper(ud=<bb.fetch2.FetchData object at 0x7f47acac06a0>, d=<bb.data_smart.DataSmart object at 0x7f47ab4ae5b0>, name='default'):
if srcrev == "AUTOINC":
> srcrev = ud.method.latest_revision(ud, d, name)

File "/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/poky/bitbake/lib/bb/fetch2/init.py", line 1581, in Git.latest_revision(ud=<bb.fetch2.FetchData object at 0x7f47acac06a0>, d=<bb.data_smart.DataSmart object at 0x7f47ab4ae5b0>, name='default'):
except KeyError:
> revs[key] = rev = self._latest_revision(ud, d, name)
return rev
File "/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/poky/bitbake/lib/bb/fetch2/git.py", line 690, in Git._latest_revision(ud=<bb.fetch2.FetchData object at 0x7f47acac06a0>, d=<bb.data_smart.DataSmart object at 0x7f47ab4ae5b0>, name='default'):
"""
> output = self._lsremote(ud, d, "")
# Tags of the form ^{} may not work, need to fallback to other form
File "/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/poky/bitbake/lib/bb/fetch2/git.py", line 679, in Git._lsremote(ud=<bb.fetch2.FetchData object at 0x7f47acac06a0>, d=<bb.data_smart.DataSmart object at 0x7f47ab4ae5b0>, search=''):
bb.fetch2.check_network_access(d, cmd, repourl)
> output = runfetchcmd(cmd, d, True)
if not output:
File "/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/poky/bitbake/lib/bb/fetch2/init.py", line 889, in runfetchcmd(cmd='export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus,guid=81ff6b66be9365dac7f1b79d64c0db4f"; export SSH_AGENT_PID="13332"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/scripts:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/power-capping/1.0-r0/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/power-capping/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/power-capping/1.0-r0/recipe-sysroot-native/usr/sbin:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/power-capping/1.0-r0/recipe-sysroot-native/usr/bin:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/power-capping/1.0-r0/recipe-sysroot-native/sbin:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/power-capping/1.0-r0/recipe-sysroot-native/bin:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/poky/bitbake/bin:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/hosttools"; export HOME="/home/user"; git -c core.fsyncobjectfiles=0 ls-remote ssh://[email protected]/AMDESE/amd-power-cap.git ', d=<bb.data_smart.DataSmart object at 0x7f47ab4ae5b0>, quiet=True, cleanup=[], log=None, workdir=None):

>        raise FetchError(error_message)

bb.data_smart.ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus,guid=81ff6b66be9365dac7f1b79d64c0db4f"; export SSH_AGENT_PID="13332"; export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/scripts:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/power-capping/1.0-r0/recipe-sysroot-native/usr/bin/arm-openbmc-linux-gnueabi:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/power-capping/1.0-r0/recipe-sysroot/usr/bin/crossscripts:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/power-capping/1.0-r0/recipe-sysroot-native/usr/sbin:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/power-capping/1.0-r0/recipe-sysroot-native/usr/bin:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/power-capping/1.0-r0/recipe-sysroot-native/sbin:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/work/armv7ahf-vfpv4d16-openbmc-linux-gnueabi/power-capping/1.0-r0/recipe-sysroot-native/bin:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/poky/bitbake/bin:/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/hosttools"; export HOME="/home/user"; git -c core.fsyncobjectfiles=0 ls-remote ssh://[email protected]/AMDESE/amd-power-cap.git failed with exit code 1, output:
Traceback (most recent call last):
File "/home/user/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5/tmp/hosttools/git", line 30, in
os.execv(real_git, sys.argv)
TypeError: execv: path should be string, bytes or os.PathLike, not NoneType

Summary: There were 3 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
user@quanta:~/dhanasekar/BMC/AMD/AMDESE/OB1/OpenBMC/build/sp5$

A clear and concise description of what unexpectedly happened.

Expected behavior
Source should build successfully for sp5 machine.

To Reproduce
Steps to reproduce the behavior:

  1. In Ubuntu Terminal type, mkdir OpenBMC
  2. cd OpenBMC
  3. git clone https://github.com/AMDESE/OpenBMC.git .
  4. . setup sp5
  5. bitbake obmc-phosphor-image

Screenshots

image

OS Information:

  • /etc/os-release:
    NAME="Ubuntu" VERSION="18.04.6 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.6 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic

  • uname -a:
    Linux quanta 4.15.0-176-generic #185-Ubuntu SMP Tue Mar 29 17:40:04 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Please correct me, If I made any mistake in building process.
Please provide your suggestion.

Cannot Compile OpenBMC on AMD EPYC 9684X Server

Hi, I am trying to compile OpenBMC on AMD the Genoa sp5 server. However, it keeps showing me some variables expanding failures. I am not sure they are python version portability issues or I miss something. (I am using Python 3.10.12.)

Unexpected behavior you saw
I tried to compile OpenBMC, but faced an error:

ERROR: ExpansionError during parsing /home/amd/OpenBMC/meta/recipes-kernel/linux/linux-yocto-tiny_5.4.bb                                                         | ETA:  0:00:04
Traceback (most recent call last):
bb.data_smart.ExpansionError: Failure expanding variable KERNEL_VERSION, expression was ${@get_kernelversion_headers('/home/amd/OpenBMC/build/sp5/tmp/work/sp5-openbmc-linux-gnueabi/linux-yocto-tiny/5.4.107+git${SRCPV}-r0/linux-sp5-tiny-build')} which triggered exception SyntaxError: unterminated string literal (detected at line 1) (Var <KERNEL_VERSION>, line 1)

From this error, I found that 'SRCPV' was not defined, which caused the expansion failure.

After I uncommented SRCPV = "${@bb.fetch2.get_srcrev(d)}" in /OpenBMC/meta/conf/bitbake.conf to try to resolve the issue, I got another error:

ERROR: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: SRCREV was used yet no valid SCM was found in SRC_URI

Expected behavior
OpenBMC should compile successfully on following the instructions in the README file.

To Reproduce
Steps to reproduce the behavior:

  1. In Ubuntu 22.04.4 command line interface, mkdir OpenBMC.
  2. cd OpenBMC
  3. git clone https://github.com/AMDESE/OpenBMC.git .
    4. . setup sp5
  4. Edit multiple .py files in /OpenBMC/poky/bitbake/lib/bb to change from collection import ... to from collection.abc import ...). This was done to solve trivial Python version issues, like the change of syntax with different versions.
  5. bitbake obmc-phosphor-image
  6. See first error
  7. Uncomment SRCPV = "${@bb.fetch2.get_srcrev(d)}" in /OpenBMC/meta/conf/bitbake.conf
  8. See second error

Screenshots
First error:
Capture
Second error:
image

OpenBMC Information:

  • /etc/os-release: PRETTY_NAME="Ubuntu 22.04.4 LTS" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.4 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" UBUNTU_CODENAME=jammy
  • uname -a: Linux 5.15.0-97-generic #107-Ubuntu SMP Wed Feb 7 13:26:48 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Please enable two factor authentication in your github account

@edtanous;@iwoloschin;@yocto-zz-project;@strange671; @Banjars-Insyde; @JerryNieXJ;@pravinashj; @joe5510; @ckimchan; @FrederickLTLee;@edwinliu0229;@leiyu-bytedance;@MichaelJeiShen;@Fii-USA;@ahuja-sanjay;@xp-chen;
@AlexHsieh6698;@JamesChang-Inventec;@insyde-conradyao;@huangalang;@averyzlyang;@jonleeami;
@allenliu0513;@FXN-BMC-SteveZhang;@Aarya-AMD;@FXN-Queena-BMC;@leesonghua;@ezekriAtos;@adoussain2;
@brassac;@AprilTseng2021;@FrancoisOliveau;@EilinLi;@gkech381;@jinbaodou-bytedance;@lida903;@Suma-qiuhw;
@nick-tseng;@NimoHsieh;@EricLin1206;@pkr-amazon

We are going to enforce two factor authentication in (https://github.com/AMDESE) organization on 9th March , 2022 . Since we identified you as outside collaborator for AMD organization, you need to enable two factor authentication in your github account else you shall be removed from the organization after the enforcement. Please skip if already done.
To set up two factor authentication, please go through the steps in below link:

https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/configuring-two-factor-authentication

Please email "[email protected]" for queries

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.