All of lore.kernel.org
 help / color / mirror / Atom feed
* Difficulty booting on Raspberry Pi 4.
@ 2020-09-23 17:36 Cheng Yang
  2020-09-24  0:10 ` Patrick Williams
       [not found] ` <CACWQX831sTH1Mp5nZEo+_bs2pCgz9ovspXD9onqiHCgAs=vciw@mail.gmail.com>
  0 siblings, 2 replies; 4+ messages in thread
From: Cheng Yang @ 2020-09-23 17:36 UTC (permalink / raw)
  To: openbmc

[-- Attachment #1: Type: text/plain, Size: 1456 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2907 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Difficulty booting on Raspberry Pi 4.
  2020-09-23 17:36 Difficulty booting on Raspberry Pi 4 Cheng Yang
@ 2020-09-24  0:10 ` Patrick Williams
  2020-09-24  0:34   ` Cheng Yang
       [not found] ` <CACWQX831sTH1Mp5nZEo+_bs2pCgz9ovspXD9onqiHCgAs=vciw@mail.gmail.com>
  1 sibling, 1 reply; 4+ messages in thread
From: Patrick Williams @ 2020-09-24  0:10 UTC (permalink / raw)
  To: Cheng Yang; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 1204 bytes --]

On Wed, Sep 23, 2020 at 10:36:03AM -0700, Cheng Yang wrote:
> Hi,  I’m openbmc noob here.

Welcome.

> 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): <yocto@yoctoproject.org>
```

-- 
Patrick Williams

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Difficulty booting on Raspberry Pi 4.
  2020-09-24  0:10 ` Patrick Williams
@ 2020-09-24  0:34   ` Cheng Yang
  0 siblings, 0 replies; 4+ messages in thread
From: Cheng Yang @ 2020-09-24  0:34 UTC (permalink / raw)
  To: Patrick Williams; +Cc: openbmc

[-- Attachment #1: Type: text/plain, Size: 1519 bytes --]

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


> On Sep 23, 2020, at 5:10 PM, Patrick Williams <patrick@stwcx.xyz> wrote:
> 
> On Wed, Sep 23, 2020 at 10:36:03AM -0700, Cheng Yang wrote:
>> Hi,  I’m openbmc noob here.
> 
> Welcome.
> 
>> 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): <yocto@yoctoproject.org>
> ```
> 
> -- 
> Patrick Williams


[-- Attachment #2: Type: text/html, Size: 3733 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Difficulty booting on Raspberry Pi 4.
       [not found] ` <CACWQX831sTH1Mp5nZEo+_bs2pCgz9ovspXD9onqiHCgAs=vciw@mail.gmail.com>
@ 2020-09-24  1:05   ` Ed Tanous
  0 siblings, 0 replies; 4+ messages in thread
From: Ed Tanous @ 2020-09-24  1:05 UTC (permalink / raw)
  To: Cheng Yang, OpenBMC Maillist

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@tanous.net> wrote:
>
> On Wed, Sep 23, 2020 at 3:35 PM Cheng Yang <cyang999@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-24  1:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-23 17:36 Difficulty booting on Raspberry Pi 4 Cheng Yang
2020-09-24  0:10 ` Patrick Williams
2020-09-24  0:34   ` Cheng Yang
     [not found] ` <CACWQX831sTH1Mp5nZEo+_bs2pCgz9ovspXD9onqiHCgAs=vciw@mail.gmail.com>
2020-09-24  1:05   ` Ed Tanous

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.