Difficulty booting on Raspberry Pi 4.

Ed Tanous ed at tanous.net
Thu Sep 24 11:05:25 AEST 2020


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

On Wed, Sep 23, 2020 at 3:43 PM Ed Tanous <ed at tanous.net> wrote:
>
> On Wed, Sep 23, 2020 at 3:35 PM Cheng Yang <cyang999 at apple.com> wrote:
> >
> > 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?
> >
> > 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.
>
> >
> >
> > Any tip/pointer will be greatly appreciated.
> >
> > Cheng


More information about the openbmc mailing list