Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry pi3 not booting with meta-updater layer #828

Open
nsmohan opened this issue May 9, 2022 · 3 comments · May be fixed by #832
Open

Raspberry pi3 not booting with meta-updater layer #828

nsmohan opened this issue May 9, 2022 · 3 comments · May be fixed by #832

Comments

@nsmohan
Copy link

nsmohan commented May 9, 2022

Hello. I have a raspberry pi3 Model B and I have created a minimal image using the yocto project (Hardknott)

I initially created a image using the following layers:

 BBLAYERS ?= " \
    /drv2/ostree/poky/meta \
    /drv2/ostree/poky/meta-poky \
    /drv2/ostree/poky/meta-yocto-bsp \
    /drv2/ostree/poky/meta-raspberrypi \
    /drv2/ostree/poky/meta-updater \
"

bitbake core-image-minimal

This generated a *.rpi-sdimg file which I then dd'd onto a SD card and was able to successfully run.

I then updated my bblayers.conf file and added the following:

BBLAYERS ?= " \
      /drv2/ostree/poky/meta \
      /drv2/ostree/poky/meta-poky \
      /drv2/ostree/poky/meta-yocto-bsp \
      /drv2/ostree/poky/meta-raspberrypi \
     /drv2/ostree/poky/meta-updater \
     /drv2/ostree/poky/meta-openembedded/meta-filesystems \
     /drv2/ostree/poky/meta-openembedded/meta-oe \
     /drv2/ostree/poky/meta-openembedded/meta-python \
"

I also updated my local.conf by adding the following:

require conf/distro/sota.conf.inc
INHERIT += " sota"

I reran bitbake and this time flashed raspberrypi.wic file into the sd card via the dd tool.

This time however when I try to boot I see the following error:
Warning: no boot file name; using COA884C70.img

This error basically shows up multiple times until a time out occurs.

What am I missing ?

@pattivacek
Copy link
Collaborator

You're missing https://github.com/advancedtelematic/meta-updater-raspberrypi. There was a long-term goal to merge the repos with dynamic layers, but we never got around to it.

Did you try following the README and the quickstart guide?

BTW, the Uptane namespace version of this repo is more actively maintained, although you still have to use the meta-updater-raspberrypi repo from this namespace.

@nsmohan
Copy link
Author

nsmohan commented May 10, 2022

Thank you for your reply.

I added meta-updater-raspberrypi and also switched to the dunfell branch. I am also not using the uptane namespace for meta-updater.

I used the flash-image.sh script to flash the image onto the SD card. Now I am seeing the device constantly rebooting right after uboot. Is there something I need to configure after the image has been built ?

@pattivacek
Copy link
Collaborator

I used the flash-image.sh script to flash the image onto the SD card. Now I am seeing the device constantly rebooting right after uboot. Is there something I need to configure after the image has been built ?

That sounds like it isn't powered enough to boot. I've seen that problem lately with more and more boards, and I know for example the RPi4 basically requires wall power to boot successfully.

Otherwise, I'm afraid I don't know. I don't have a good way to test or debug myself anymore.

@pagousmile pagousmile linked a pull request Jun 2, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants