The Ubuntu-based setup allows you to build the openUBMC environment natively using the toolchains and packages provided by the openUBMC project, combined with standard open-source tools.
Currently openUBMC only support Ubuntu 24.04 environment.
NOTE
Certain installation steps and commands require sudo privileges. Ensure you perform the openUBMC installation and development using an account with sudo access.
Preparing the Development Environment
Create a workspace directory and clone the
manifestrepository:shellmkdir workspace cd workspace git clone https://gitcode.com/openUBMC/manifest.gitDownload the
bmcsdkpackage from the openUBMC Community Software Marketplace. Place the downloadedbmc_sdk.zipfile in the root of the clonedmanifestdirectory.Then, run the initialization script. This script extracts and configures the required components (
hpm_tools,rtos_compiler,sdk, and lua-format) from the SDK archive.shellcd manifest python3 init.py -path ./bmc_sdk.zip -user USER -psw PASSWORDReplace
USERandPASSWORDwith your openUBMC community login credentials.
That's it! You've finished the basic setup with the openUBMC init script. Your environment is now good to go for the next steps, like building and developing— we'll cover those in the upcoming sections.
Configuring Your GitCode Account
Before cloning and building the source code, configure your GitCode account for SSH access. Follow the official guide: Adding SSH Keys on GitCode.
git config --global user.name <your username>
git config --global user.email <your email>
ssh-keygen -t rsa -b 2048 -C <your email>
cat ~/.ssh/id_rsa.pubIMPORTANT
When you submit a Pull Request, the bot checks if you've signed the CLA using the email from your git config. Keep it the same as the one tied to your GitCode account.