Author Topic: Compile blackbird firmware with upstream codes  (Read 3778 times)

tle

  • Sr. Member
  • ****
  • Posts: 463
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
Compile blackbird firmware with upstream codes
« on: August 18, 2023, 08:49:21 am »
I've been curious about compiling the firmware by using the upstream code in the open-power repository. Today I find some spare time to do so.

The firmware from upstream has more up-to-date component, for example skiboot, linux, hostboot, buildroot, sbe, hcode, etc and I hope one day the upstream would bump linux kernel from 5.x to 6.x so I get the AMD RX 6600XT amdgpu modules loaded in Petitboot

AFAIK Fedora 38 is no good for building the firmware as I've run into so many compilation issues with buildroot. If you are to try it yourself, please use Ubuntu 22.04 ppc64le (as of August 2023). You can use https://github.com/containers/toolbox to spin up an Ubuntu 22.04 ppc64le container environment if you don't want to install Ubuntu 22.04 in QEMU.




$ sudo apt-get install cscope ctags libz-dev libexpat-dev \
   python language-pack-en texinfo gawk cpio xxd \
   build-essential g++ git bison flex unzip \
   libssl-dev libxml-simple-perl libxml-sax-perl libxml-parser-perl libxml2-dev libxml2-utils xsltproc \
   wget bc rsync
$ git clone --recursive https://github.com/open-power/op-build.git
$ git checkout -b my-own-build c84a4260b7f1849dc9bb67cd1bf727cff25b4d9d # This is the latest commit as of 31 Aug 2023
$ cd op-build
$ ./op-build blackbird_defconfig && ./op-build


It will take LOOOOOOOOONG time to get the buildroot ready. Once done, the blackbird.pnor file can be found in the output/images folder.

You can now flash this firmware by following this guide
« Last Edit: October 08, 2023, 07:02:28 pm by tle »
Faithful Linux enthusiast

My Raptor Blackbird

tle

  • Sr. Member
  • ****
  • Posts: 463
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
Re: Compile firmware with upstream codes
« Reply #1 on: October 06, 2023, 07:10:35 am »
The blackbird firmware has been bumped to run linux kernel 5.10.197
Faithful Linux enthusiast

My Raptor Blackbird