# Raspberry Pi 5 and Yocto, modifications and adding users

**URL:** <https://hub.mender.io/t/raspberry-pi-5-and-yocto-modifications-and-adding-users/7244>\
**Category:** General Discussions\
**Tags:** yocto, raspberry-pi-5\
**Created:** [October 18, 2024, 8:00am UTC](https://hub.mender.io/t/raspberry-pi-5-and-yocto-modifications-and-adding-users/7244 "2024-10-18T08:00:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [October 18, 2024, 10:08am UTC](https://hub.mender.io/t/raspberry-pi-5-and-yocto-modifications-and-adding-users/7244/3 "2024-10-18T10:08:56Z")

</div>

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](https://docs.yoctoproject.org/ref-manual/features.html?highlight=root+password#image-features). 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](https://docs.yoctoproject.org/ref-manual/classes.html#extrausers)
- `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

```auto
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

---

_[View the full topic](https://hub.mender.io/t/raspberry-pi-5-and-yocto-modifications-and-adding-users/7244)._
