advancedtelematic / meta-updater

OTA Software updates using OSTree
MIT License
160 stars 61 forks source link

Raspberry pi3 not booting with meta-updater layer #828

Open nsmohan opened 2 years ago

nsmohan commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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.