# Raspberry Pi 3 + Yocto Linux bootup too fast, so couldn't get IP address

**URL:** https://hub.mender.io/t/raspberry-pi-3-yocto-linux-bootup-too-fast-so-couldnt-get-ip-address/6355
**Category:** Board Integrations
**Tags:** yocto, raspberry-pi-3
**Created:** [November 20, 2023, 1:20am UTC](https://hub.mender.io/t/raspberry-pi-3-yocto-linux-bootup-too-fast-so-couldnt-get-ip-address/6355 "2023-11-20T01:20:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![cin200618](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@cin200618](https://hub.mender.io/u/cin200618)
#### Post date: [November 20, 2023, 1:20am UTC](https://hub.mender.io/t/raspberry-pi-3-yocto-linux-bootup-too-fast-so-couldnt-get-ip-address/6355/1 "2023-11-20T01:20:34Z")

</div>

I am using Raspberry Pi 3 Model B and used Yocto project to build disk image including Mender layer. Then used Rasperry Pi Imager to flash microSD card along with Wifi SSID, password info and also enabled SSH.

After that, I disconnected the SD card, inserted it into Raspberry Pi and boot it. It booted up very fast, although there is no boot error, I also couldn’t see its IP address which is required by SSH and connect to hosted Mender. Is it normal in this case? Also how to get IP address? Thank you.

---

<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: [November 21, 2023, 11:11am UTC](https://hub.mender.io/t/raspberry-pi-3-yocto-linux-bootup-too-fast-so-couldnt-get-ip-address/6355/2 "2023-11-21T11:11:51Z")

</div>

Hi @cin200618,

If you built with Yocto, then actually the IP+SSH process is not required. You can set the `MENDER_SERVER_URL` and `MENDER_TENANT_TOKEN` variables in your `local.conf`, then the device will automatically appear as pending in your hosted Mender account. (see also [Variables | Mender documentation](https://docs.mender.io/operating-system-updates-yocto-project/variables)).

For obtaining the ip address from a running device, you can use

```auto
ip a

```

on the command line. This will list connectivity details, including the IP address(es). On the Raspberry Pi, the `eth0` section should be the one to check.

Alternatively, you might be able to check the DHCP server status on your WiFi router.

Greetz,  
Josef

---

<div class="post-metadata">

### Author: ![cin200618](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@cin200618](https://hub.mender.io/u/cin200618)
#### Post date: [November 22, 2023, 4:51pm UTC](https://hub.mender.io/t/raspberry-pi-3-yocto-linux-bootup-too-fast-so-couldnt-get-ip-address/6355/3 "2023-11-22T16:51:27Z")

</div>

Hi Josef,

Thank you for the reply! I tried it out by adding sever url and token in the local.conf. No device showed up in my hosted mender account.

I hooked up the Raspberry Pi box to a monitor. The bootup was so fast, like within 2 seconds and then the screen just went black. I took a video and played back using slow motion speed. There was no error. The last screen snapshot is in below. But the Raspberry Pi appeared to shut down right after that. Why it shuts down so fast?

 ![IMG_E0029](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/6/630ddb3018526df36ecb4b4b9f72cea8335eaced.jpeg)

Thank you,  
Cindy

---

<div class="post-metadata">

### Author: ![cin200618](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@cin200618](https://hub.mender.io/u/cin200618)
#### Post date: [December 18, 2023, 10:10pm UTC](https://hub.mender.io/t/raspberry-pi-3-yocto-linux-bootup-too-fast-so-couldnt-get-ip-address/6355/4 "2023-12-18T22:10:30Z")

</div>

Hi Josef and Mender Hub,

Any idea of what happened here? And how to get Yocto Linux bootup and IP address work properly?

Thank you,  
Cindy

---

<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: [December 22, 2023, 8:05am UTC](https://hub.mender.io/t/raspberry-pi-3-yocto-linux-bootup-too-fast-so-couldnt-get-ip-address/6355/5 "2023-12-22T08:05:52Z")

</div>

Hi @cin200618,

Hard to guess, really. The times I saw Raspis shut down so fast were badly usually one of

- badly flashed or broken SD cards
- insufficient power supplies

Ah, and re-reading it. Sorry!

The Raspberry Pi Imager is known to break images that are _not_ Raspberry Pi OS. So either use it without any add-on modifications while writing, or an alternative tool such as Etcher or plain old dd.

Sorry this didn’t strike me earlier. ☹

The Yocto build can be instructed add a root account without password by having `IMAGE_FEATURES += "debug-tweaks"` in `local.conf`. Plus, the UART should also have a login console exposed by default.

WiFi and user management are a bit of a different story on Yocto than on debianoids. So lets get one thing working (the board booting to shell), and then we can take on the next one.

Greetz,  
Josef
