<div dir="ltr">I agree that the Raspberry Pi 3 serial situation is a mess :(.<div><br></div><div>You can find a device tree modification to swap the serial ports here:</div><div><a href="https://github.com/gokrazy/kernel/blob/master/0001-expose-UART0-ttyAMA0-on-GPIO-14-15-disable-UART1-tty.patch" target="_blank">https://github.com/gokrazy/<wbr>kernel/blob/master/0001-<wbr>expose-UART0-ttyAMA0-on-GPIO-<wbr>14-15-disable-UART1-tty.patch</a><br></div><div><br></div><div>I don’t have any experience with the device tree overlay mechanism which the firmware uses, so I can’t give any more guidance, but perhaps you can make it work?</div><div><br></div><div>If this doesn’t help, I’d suggest contacting <a href="https://github.com/pelwell">https://github.com/pelwell</a>, who helped me in <a href="https://github.com/raspberrypi/firmware/issues/752">https://github.com/raspberrypi/firmware/issues/752</a>.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 19, 2018 at 11:16 AM, Thomas Wuensche <span dir="ltr"><<a href="mailto:wuensche@ems-wuensche.com" target="_blank">wuensche@ems-wuensche.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, thank you for your reply. To me it does not seem<br>
like an upstream problem, but as a raspi specific mess<br>
with the serial port hardware setup, concretely the question,<br>
which of the two uarts is mapped to the port pins.<br>
<br>
In my case the miniuart seems to be mapped to the port<br>
pins (and can't be changed to 115200 8n1, which is what<br>
I would like to use). If I output to ttyS1 (which I assume<br>
to be the miniuart) I can see signals on the port pins.<br>
<br>
The full uart (pl011) seems not to be mapped to the pins.<br>
I can change parameters with stty, but do not see any<br>
signals on the pins when writing to that port (ttyAMA0).<br>
<br>
As a side note I have the impression that changes to<br>
config.txt are without effect (for example "enable_uart").<br>
I understand that should be read and processed by the<br>
binary module to set up hardware, right? Whom can I contact<br>
regarding behaviour of the binary module?<br>
<br>
Raspbian seems to deal with such things with device tree<br>
overlays to configure the hardware on boot, but I can't<br>
see an equivalent on debian.<br>
<br>
Any more hints? Thank you!<br>
<br>
Best regards,<br>
<br>
Thomas Wuensche<br>
<span class=""><br>
Am 18.02.2018 um 22:08 schrieb Michael Stapelberg:<br>
> [+cc pkg-raspi-maintainers, in case someone else has run into this issue<br>
> before]<br>
><br>
> I have only verified the serial port works with 115200 8n1.<br>
><br>
> Please report an upstream Linux kernel bug, as there are no<br>
> Debian-specific changes in this area of the kernel.<br>
><br>
> Sorry I can’t be of more help,<br>
><br>
> On Sun, Feb 18, 2018 at 11:59 AM, Thomas Wuensche<br>
</span><div><div class="h5">> <<a href="mailto:wuensche@ems-wuensche.com">wuensche@ems-wuensche.com</a> <mailto:<a href="mailto:wuensche@ems-wuensche.com">wuensche@ems-wuensche.<wbr>com</a>>> wrote:<br>
><br>
>     Hello,<br>
><br>
>     after having troubles with the unclear kernel upgrade structures<br>
>     on raspbian I switched to your debian image. However I have troubles<br>
>     with the serial port - hope you can help.<br>
><br>
>     My project needs serial data from a sensor module. If I go with<br>
>     serial-over-usb it works, however not with direct connection.<br>
><br>
>     After a number of fruitless tries I have the following constellation:<br>
><br>
>     If I output serial data to /dev/ttyS1 I can see the data on the port<br>
>     lines with the oscilloscope and read back the data from that port.<br>
>     However when trying to switch line parameters, stty does not come<br>
>     back. So I can not adjust the required terminal parameters.<br>
><br>
>     If I try the same with /dev/ttyAMA0 I do not see anything on the<br>
>     port and can't read back data. However changing port parameters<br>
>     works. In message log I have a line:<br>
><br>
>     uart-pl011 3f201000.serial: no DMA platform data<br>
><br>
>     I have tried both with and without "enable_uart=1" in<br>
>     /boot/firmware/config.txt<br>
><br>
>     As I'm playing for weeks now with that issue and no result I would<br>
>     be glad if you could help me!<br>
><br>
>     Best regards,<br>
><br>
>     Thomas Wuensche<br>
>     --<br>
>     EMS Dr. Thomas Wuensche e.K.<br>
>     Sonnenhang 3<br>
>     85304 Ilmmuenster<br>
>     HR Ingolstadt, HRA 170106<br>
><br>
</div></div>>     Phone: <a href="tel:%2B49-8441-490260" value="+498441490260">+49-8441-490260</a> <tel:%2B49-8441-490260><br>
>     Fax  : <a href="tel:%2B49-8441-81860" value="+49844181860">+49-8441-81860</a> <tel:%2B49-8441-81860><br>
<div class="HOEnZb"><div class="h5">>     <a href="http://www.ems-wuensche.com" rel="noreferrer" target="_blank">http://www.ems-wuensche.com</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Best regards,<br>
> Michael<br>
--<br>
EMS Dr. Thomas Wuensche e.K.<br>
Sonnenhang 3<br>
85304 Ilmmuenster<br>
HR Ingolstadt, HRA 170106<br>
<br>
Phone: <a href="tel:%2B49-8441-490260" value="+498441490260">+49-8441-490260</a><br>
Fax  : <a href="tel:%2B49-8441-81860" value="+49844181860">+49-8441-81860</a><br>
<a href="http://www.ems-wuensche.com" rel="noreferrer" target="_blank">http://www.ems-wuensche.com</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Michael</div>
</div>