Skip to contentSkip to conversation

Difficulty booting on Raspberry Pi 4.

DISCUSSION Cheng Yang 3 participants 4 messages Sep 23, 2020 – Sep 24, 2020 1 message not in the archive

lore
Share & tools
lore

Cheng Yang

author
#0 lore raw

Hi, I’m openbmc noob here.

I follow the instruction of https://github.com/openbmc/openbmc/blob/master/meta-raspberrypi/README.md <https://github.com/openbmc/openbmc/blob/master/meta-raspberrypi/README.md>

After 2.5 hours everything built, (I used either x86 ubuntu 18.04 or 20.04 same result) However after I copied to the image to micro SD, raspberry Pi 4 won’t boot. No video output, no serial output at all. (The board works fine with ubuntu 18.04.)

Any tip/cheat sheet to get openbmc running on Raspberry Pi 4?

The steps I did, anything I missed? Is the recipe correct?
git clone the openbmc code.
source poky/oe-init-build-env rpi-build <== yes I did this.
Add this layer to bblayers.conf and the dependencies above <== yes I added /var/openbmc/openbmc/meta-raspberrypi (where I’m using /var/openbmc as the source code dir.) Set MACHINE in local.conf to one of the supported boards <== I added MACHINE ??= “raspberrypi4” (replacing the original qemu line)
bitbake core-image-base <== went through, only 5 warnings, no error, everything successful.
Use bmaptool to copy the generated .wic.bz2 file to the SD card <== with “sudo ~/bmap-tools/bmaptool copy core-image-base-raspberrypi4.wic.bz2 /dev/sdc1” no error copied successfully. Boot your RPI <== nothing happen, no VGA, can’t be ping’ed, no console serial output either (no uboot messages).

Any tip/pointer will be greatly appreciated.

Cheng

#1 lore raw
Quoted 1 line · Cheng Yang

Hi, I’m openbmc noob here.

Welcome.

Quoted 1 line

I follow the instruction of https://github.com/openbmc/openbmc/blob/master/meta-raspberrypi/README.md <https://github.com/openbmc/openbmc/blob/master/meta-raspberrypi/README.md>

I don't think there are really many people using the meta-raspberrypi with OpenBMC. This comes from elsewhere outside the project as one of the Yocto community meta-layers and isn't related to OpenBMC.

What happened was that someone had an idea to use a rpi as an easily-accessible experimental platform for running OpenBMC code and they asked to have the meta-layer added to our tree. We keep it in sync, but I don't think that experiment really went much farther.

See https://github.com/openbmc/openbmc/issues/399 for some of the origin.

If you're doing just a simple rpi4 image build, without any of the OpenBMC layers, and it won't even boot, that seems like something you could tackle with the upstream community. The README suggests that the general Yocto mailing list is where to go:

```
* Mailing list (yocto mailing list): <[email protected]>
```
Signature · 1 line
Patrick Williams
author
#2 lore raw

Patrick and Ed,

Ed replied early and as soon as I added the line for SDImage IMAGE_FSTYPES="rpi-sdimg”
It boots now.

Thanks everyone, very helpful!

Cheng

Quoted 32 lines · Patrick Williams
Quoted 1 line · Cheng Yang

Hi, I’m openbmc noob here.

Welcome.

Quoted 1 line

I follow the instruction of https://github.com/openbmc/openbmc/blob/master/meta-raspberrypi/README.md <https://github.com/openbmc/openbmc/blob/master/meta-raspberrypi/README.md>

I don't think there are really many people using the meta-raspberrypi with OpenBMC. This comes from elsewhere outside the project as one of the Yocto community meta-layers and isn't related to OpenBMC.

What happened was that someone had an idea to use a rpi as an easily-accessible experimental platform for running OpenBMC code and they asked to have the meta-layer added to our tree. We keep it in sync, but I don't think that experiment really went much farther.

See https://github.com/openbmc/openbmc/issues/399 for some of the origin.

If you're doing just a simple rpi4 image build, without any of the OpenBMC layers, and it won't even boot, that seems like something you could tackle with the upstream community. The README suggests that the general Yocto mailing list is where to go:

```
* Mailing list (yocto mailing list): <[email protected]>
```
Signature · 1 line
Patrick Williams

A message that is not in the archive (sent off-list or not yet received): CACWQX831sTH1Mp5nZEo+_bs2pCgz9ovspXD9onqiHCgAs=vciw@mail.gmail.com

#4 lore raw

I hit reply instead of reply all earlier. Apologies if you were just confused. The content of my reply is below.
-Ed

Quoted 54 lines · Ed Tanous
Quoted 13 lines · Cheng Yang

Hi, I’m openbmc noob here.

I follow the instruction of https://github.com/openbmc/openbmc/blob/master/meta-raspberrypi/README.md

After 2.5 hours everything built, (I used either x86 ubuntu 18.04 or 20.04 same result) However after I copied to the image to micro SD, raspberry Pi 4 won’t boot. No video output, no serial output at all. (The board works fine with ubuntu 18.04.)

Any tip/cheat sheet to get openbmc running on Raspberry Pi 4?

The steps I did, anything I missed? Is the recipe correct?

Quoted 7 lines

git clone the openbmc code.
source poky/oe-init-build-env rpi-build <== yes I did this.
Add this layer to bblayers.conf and the dependencies above <== yes I added /var/openbmc/openbmc/meta-raspberrypi (where I’m using /var/openbmc as the source code dir.) Set MACHINE in local.conf to one of the supported boards <== I added MACHINE ??= “raspberrypi4” (replacing the original qemu line)
bitbake core-image-base <== went through, only 5 warnings, no error, everything successful.
Use bmaptool to copy the generated .wic.bz2 file to the SD card <== with “sudo ~/bmap-tools/bmaptool copy core-image-base-raspberrypi4.wic.bz2 /dev/sdc1” no error copied successfully. Boot your RPI <== nothing happen, no VGA, can’t be ping’ed, no console serial output either (no uboot messages).

So many people hit this; I suspect we need to update the local.conf.sample file to do some things.

The short version is, you're loading a binary (meant for a spi flash) image onto an SD card. You need an SD image that the RPI boot loader can recognize.

Add:
IMAGE_FSTYPES="rpi-sdimg"
to your build/conf/local.conf image. That should get you the correct image type.

Side note: in the past I've hit an error about phosphor-gpio-keys. If you do, you might need to add this as well. KERNEL_FEATURES_remove = "phosphor-gpio-keys"

This should cause your build to generate a obmc-phosphor-image-raspberrypi4.rpi-sdimg file in your deploy directory. Load that on your SDcard, and you should get a booting OpenBMC image. I've never tried on an RPI4 yet, but those steps have worked on previous RPI variants.

After that, if you could read the rules for contributing, and send up a patch to fix the local.conf.sample for our default RPI build, it would be appreciated.

Quoted 5 lines

Any tip/pointer will be greatly appreciated.

Cheng