# Walkthrough for Raspberry Pi 3B fails to start physical device

**URL:** https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191
**Category:** General Discussions
**Created:** [February 1, 2019, 4:06pm UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191 "2019-02-01T16:06:26Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![bder](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@bder](https://hub.mender.io/u/bder)
#### Post date: [February 1, 2019, 4:06pm UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/1 "2019-02-01T16:06:26Z")

</div>

Hello,

we are evaluating mender for our embedded device development. To start we would like to follow the walkthrough as outlined.

However, we get stuck while attempting to connect a physical device, based on the Raspberry Pi 3B example image as provided.

When starting the target device, it boots up and fails to identify an Ethernet connection. It shows a message “Ethernet: No ethernet” and fails to continue booting.

Any clues as what is happening? The target device is a Raspberry Pi 3B (not the plus variant).

Thanks in advance, ragards

---

<div class="post-metadata">

### Author: ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)
#### Post date: [February 1, 2019, 4:20pm UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/2 "2019-02-01T16:20:04Z")

</div>

@bder can you please share boot log? Did you try on other board (maybe this one have eth issue?) Which yocto version do you use? Thanks.

---

<div class="post-metadata">

### Author: ![bder](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@bder](https://hub.mender.io/u/bder)
#### Post date: [February 1, 2019, 8:42pm UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/3 "2019-02-01T20:42:27Z")

</div>

Hello Marek, where can I find the bootlog?

I will try with a different Raspberry PI (same model) next week, however other images (default Raspbian for example) boot up just fine.

We are following the exact same steps as outline here: [https://docs.mender.io/1.7/getting-started/deploy-to-physical-devices](https://docs.mender.io/1.7/getting-started/deploy-to-physical-devices) with the DHCP option.

Regards

---

<div class="post-metadata">

### Author: ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)
#### Post date: [February 1, 2019, 9:07pm UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/4 "2019-02-01T21:07:30Z")

</div>

Do you have attached serial console on device (or just use hdmi monitor?) If raspbian works then it is not likely HW problem. That is the reason why I asked to share bootlog. So if you don’t have serial console just when board boots and over monitor type

```auto
journalctl -b

```

this should print kernel messages and provide some info. Can you pls also try to provide output of:

```auto
ifconfig -a

```

Which version of poky you’re using?  
There is already a topic [Raspberry Pi 3 Model B/B+](https://hub.mender.io/t/raspberry-pi-3-model-b-b/57) which is same board as you use. Image from topic is tested on rocko, sumo and latest thud poky versions.  
Thanks.

---

<div class="post-metadata">

### Author: ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)
#### Post date: [February 1, 2019, 9:13pm UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/5 "2019-02-01T21:13:41Z")

</div>

Moving this to [General Discussions](https://hub.mender.io/c/general-discussions) section.

---

<div class="post-metadata">

### Author: ![bder](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@bder](https://hub.mender.io/u/bder)
#### Post date: [February 1, 2019, 9:40pm UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/6 "2019-02-01T21:40:54Z")

</div>

Wow thanks for the quick followup.

I have yet to start building our custom image using Yocto. As I said I’m just using the prebuilt demo image as can be downloaded from the Mender QuickStart docs.

Also, when the device boots it seems to be stuck early on in U-boot. It doesn’t get to the point at which I can enter commands at the command prompt (to enter the commands you entered)

Any clues as to why the prebuilt demo image might generate this scenario?

---

<div class="post-metadata">

### Author: ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)
#### Post date: [February 4, 2019, 11:19am UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/7 "2019-02-04T11:19:26Z")

</div>

Just to confirm you are downloading these images,

```
 https://docs.mender.io/1.7/getting-started/download-test-images

```

?

---

<div class="post-metadata">

### Author: ![bder](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@bder](https://hub.mender.io/u/bder)
#### Post date: [February 5, 2019, 3:39pm UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/8 "2019-02-05T15:39:56Z")

</div>

Hello, I have confirmed the problem to be in the fact that we have connected a custom UART module to the Raspberry PI’s GPIO pins. Apparently the bootloader expects there to be a serial console input, but that is not the case.

I have succesfully tested the image using a plain Raspberry PI without any external modules connected toe the GPIO’s.

Maybe that’s worth mentioning since many PI’s are augmented with external modules.

What would be the impliciation for our use case? In other words, would it be possible to allow this scenario (instead of the bootloader to fail)?

Regards,

---

<div class="post-metadata">

### Author: ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)
#### Post date: [February 6, 2019, 10:53am UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/9 "2019-02-06T10:53:46Z")

</div>

> What would be the impliciation for our use case? In other words, would it be possible to allow this scenario (instead of the bootloader to fail)?

I believe you are having the same issue as described here, [UART issue when setting RPI\_USE\_U\_BOOT = "1" · Issue #374 · agherzan/meta-raspberrypi · GitHub](https://github.com/agherzan/meta-raspberrypi/issues/374) which also includes a resolution.

> Maybe that’s worth mentioning since many PI’s are augmented with external modules.

That makes sense.

Our documentation is [open-source](https://github.com/mendersoftware/mender-docs), feel free to make a suggested change where you would expect this information to be.

---

<div class="post-metadata">

### Author: ![bder](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@bder](https://hub.mender.io/u/bder)
#### Post date: [February 11, 2019, 8:56am UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/10 "2019-02-11T08:56:28Z")

</div>

Hello mirzak,

thanks for the suggestion, it seems like this is a similar issue. I have yet to test a custom Yocto version of an image with a modified version of the u-boot. But judging from the discussion in the said issue I would say this would solve the issue.

If it turns out that the mentioned solution won’t fix our problems, I will reopen the issue.

Thanks

---

<div class="post-metadata">

### Author: ![bder](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@bder](https://hub.mender.io/u/bder)
#### Post date: [February 18, 2019, 4:36pm UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/11 "2019-02-18T16:36:19Z")

</div>

Hello mirzak,

It appears as the solution would be to patch the U-boot such that it doesn’t use the serial port as a console output (as also described in the said topic).

However, as we are fairly new to the Yocto built process, could you provide a hint as how to implement this within the process? Would that be a recipe of some sorts?

We are currently following the build process based on this gist [https://gist.github.com/drewmoseley/816701ec0ca30d495786f03afea518dc](https://gist.github.com/drewmoseley/816701ec0ca30d495786f03afea518dc)

Many thanks in advance, regards

---

<div class="post-metadata">

### Author: ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)
#### Post date: [February 18, 2019, 4:58pm UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/12 "2019-02-18T16:58:24Z")

</div>

To provide a patch to U-boot you would typically provide a `bbappend` file, which amends the recipe for actual U-boot. This is normally done by creating a custom layer and putting that `bbappend` there.

More about this in the [Yocto Mega Manual](https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#using-bbappend-files), there is also a section on [Patching Code](https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#new-recipe-patching-code).

You can also take a look at how we are providing [Mender specific patches](https://github.com/mendersoftware/meta-mender/tree/master/meta-mender-raspberrypi/recipes-bsp/u-boot), using the same methods

---

<div class="post-metadata">

### Author: ![bder](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@bder](https://hub.mender.io/u/bder)
#### Post date: [February 20, 2019, 10:24am UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/13 "2019-02-20T10:24:11Z")

</div>

Hello mirzak,  
many thanks for pointing me in the right direction. I have managed to create a custom u-boot patch that disables the serial input/output on the raspberry pi3 in u-boot.  
Regards

---

<div class="post-metadata">

### Author: ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)
#### Post date: [February 20, 2019, 11:42am UTC](https://hub.mender.io/t/walkthrough-for-raspberry-pi-3b-fails-to-start-physical-device/191/14 "2019-02-20T11:42:06Z")

</div>

Glad it worked out 👍
