News:

RCS Forums now online!

Main Menu

Compiling and Updating BMC

Started by markr87, February 06, 2022, 02:48:19 PM

Previous topic - Next topic

markr87

Working on a Blackbird/Fedora via debian-chroot, I was able to self compile "blackbird.pnor". 

I am stuck with a
"OSError: [Errno 38] Function not implemented
)
ERROR: Unable to connect to bitbake server, or start one"
while Building the OpenBMC firmware.

I had decided to just download the pre-compiled version and became a little confused.  The instructions for self compiling say you should end up with 2 files,  "image-rofs" and "image-kernel" but when I open the pre-compiled version it contains only one file, "blackbird-v2.00-image-bmc".

EDIT: So, if updating via shell you use the web_ipmi_upgrade and if updating via the web you use the shell_upgrade?  I'm sure this makes sense to everybody else but I invert my x-y axis on FPS's. ;)

SiteAdmin

Quote from: markr87 on February 06, 2022, 02:48:19 PM
Working on a Blackbird/Fedora via debian-chroot, I was able to self compile "blackbird.pnor". 

I am stuck with a
"OSError: [Errno 38] Function not implemented
)
ERROR: Unable to connect to bitbake server, or start one"
while Building the OpenBMC firmware.

I had decided to just download the pre-compiled version and became a little confused.  The instructions for self compiling say you should end up with 2 files,  "image-rofs" and "image-kernel" but when I open the pre-compiled version it contains only one file, "blackbird-v2.00-image-bmc".

EDIT: So, if updating via shell you use the web_ipmi_upgrade and if updating via the web you use the shell_upgrade?  I'm sure this makes sense to everybody else but I invert my x-y axis on FPS's. ;)

Error 38 from Python means you don't have SHM (proc etc.) bind mounted in your chroot.

SiteAdmin

Quote from: SiteAdmin on February 07, 2022, 01:06:44 PM
Error 38 from Python means you don't have SHM (proc etc.) bind mounted in your chroot.

Correction: /dev is typically where the missing SHM node is located, so you need to bind mount /dev into your chroot.

markr87

#3
Thank you for your quick response.  Your assessment was spot on. After a quick "sudo mount --bind /dev ~/debian-chroot/dev" I was able to compile sort of-ish.  Now I get "Summary: There were 2 ERROR messages shown, returning a non-zero exit code."

SiteAdmin

Quote from: markr87 on February 08, 2022, 02:53:35 PM
Thank you for your quick response.  Your assessment was spot on. After a quick "sudo mount --bind /dev ~/debian-chroot/dev" I was able to compile sort of-ish.  Now I get "Summary: There were 2 ERROR messages shown, returning a non-zero exit code."

Did the build process generate the ROM file?  If so, the errors can be ignored, if not, then you should delete the build directory and try again as the lack of SHM might have corrupted the build state enough to stop ROM generation.

markr87

It did not produce any ROM files.  Deleting the build directory returned same results.