Raspberry Pi 5 and Yocto, modifications and adding users

Hi @davidlekve,

Thanks for getting in touch! There’s a couple of questions in here, let me try to address them one by one:

  • logging in, with empty root password.
    By default, the root login on a Yocto image is disabled, in the reasoning of “secure by default”. The easiest way to get the empty password login is adding EXTRA_IMAGE_FEATURES += "debug-tweaks" to your local.conf or image recipe. For more details, please see 11 Features — The Yocto Project ® 5.0.999 documentation. Why is this not in the default kas file? Same reason, we don’t want to encourage insecure defaults.
  • setting the root password.
    The link which you posted seems to be quite outdated. I’d suggest to follow the documentation at 5 Classes — The Yocto Project ® 5.0.999 documentation
  • my-raspberrypi5/build/conf/local.conf versus my-raspberrypi5/poky/.... There is no reason to ever modify anything inside poky. Treat it as the upstream source it is - how would you manage and control any eventual changes upon checkout? My guess is that you have mixed up different Yocto tutorials here, one of them suggesting to to oe-init-build-env inside poky. That is definitely bad practice. If you want to have the shell initialized for building without calling kas shell, but using the setup which kas prepared, then to correctly use the my-raspberrypi5/build directory, do
cd my-raspberrypi5
source poky/oe-init-build-env
  • Building on Ubuntu 24.04 is a so-called “untested path” for the scarthgap release of Yocto as Ubuntu 24.04 just was not around when the release was constructed. I’m at least not aware of any immediate problems, and it’s a common situation. It just tells you that there is no fully official, auto builder scale quality assurance on it.

Hope this helps,
Josef