# Serial interface development image

**URL:** <https://forums.balena.io/t/serial-interface-development-image/6099>\
**Category:** balenaOS\
**Created:** [April 17, 2019, 1:59pm UTC](https://forums.balena.io/t/serial-interface-development-image/6099 "2019-04-17T13:59:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bversluijs](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/bversluijs/32/3954_2.png) [@bversluijs](https://forums.balena.io/u/bversluijs)\
**Post date:** [April 17, 2019, 1:59pm UTC](https://forums.balena.io/t/serial-interface-development-image/6099/1 "2019-04-17T13:59:48Z")

</div>

Hi all,

I’m trying to get the development image to work with the serial interface on a Raspberry Pi 3B+. I’m using the `/dev/serial0` interface for serial communication. On production images, this works great! I’ve no problem with using the serial interface stable on the production image. But for development, using a production image is not really the way to go.

The problem with the development image is that it has some interference, I guess. Because after a few seconds of writing to the `/dev/serial0` interface, I get some input/output errors and it stops working, which is not the case on the production image. I’ve enabled uart on the Raspberry Pi via the balenaCloud dashboard, but I can’t seem to make it work stable on the development image. I’m developing via local mode, if that’s any useable information.

I’m using the Raspberry Pi 3 development image with version 2.31.5+rev1.

I’m happy to share some more details if necessary!

---

<div class="post-metadata">

**Author:** ![bversluijs](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/bversluijs/32/3954_2.png) [@bversluijs](https://forums.balena.io/u/bversluijs)\
**Post date:** [April 24, 2019, 10:05am UTC](https://forums.balena.io/t/serial-interface-development-image/6099/3 "2019-04-24T10:05:31Z")

</div>

Anyone that can help me with this issue? It’s really hard to develop like this…

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [April 24, 2019, 10:18am UTC](https://forums.balena.io/t/serial-interface-development-image/6099/4 "2019-04-24T10:18:47Z")

</div>

Hey @bversluijs, I believe the problem is that the .dev images write kernel logs to the to the serial console. I believe you can disable that by changing the `cmdline.txt` in `/mnt/boot/` on the running device. Find the console entry that refers to the serial0 device, and remove it, including the baud rate setting. It will look something like `console=serial0,115200` . Make sure the rest of the line remains the same, as errors in this configuration can stop the Raspberry Pi from booting.

I have a feature request to make this opt out which you can follow here [https://github.com/balena-os/meta-balena/issues/1387](https://github.com/balena-os/meta-balena/issues/1387), but for now the best way is to manually change the cmdline.txt

Let me know if that sorts things out for you.

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [April 24, 2019, 10:27am UTC](https://forums.balena.io/t/serial-interface-development-image/6099/5 "2019-04-24T10:27:00Z")

</div>

ah, you also might need to remove `console=tty1` from cmdline.txt too.

---

<div class="post-metadata">

**Author:** ![zagatta-sonah](https://avatars.discourse-cdn.com/v4/letter/z/e47c2d/32.png) [@zagatta-sonah](https://forums.balena.io/u/zagatta-sonah)\
**Post date:** [July 12, 2019, 8:38am UTC](https://forums.balena.io/t/serial-interface-development-image/6099/6 "2019-07-12T08:38:58Z")

</div>

How can I find this file?

> I believe you can disable that by changing the `cmdline.txt` in `/mnt/boot/`

If I ssh into the Host OS or into a container, it is not there.
