Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 15834E009C8; Thu, 4 Jun 2015 05:01:33 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [194.211.207.200 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from smtp1.eteinen.fi (smtp1.eteinen.fi [194.211.207.200]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5F956E007B6 for ; Thu, 4 Jun 2015 05:01:29 -0700 (PDT) Received: from [194.100.86.92] (helo=LenovoPC) by smtp1.eteinen.fi with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1Z0Tpt-0005tv-1f for yocto@yoctoproject.org; Thu, 04 Jun 2015 15:01:25 +0300 From: "Andreas Enbacka" To: Date: Thu, 4 Jun 2015 15:01:26 +0300 Message-ID: <001701d09ebe$2f3a5030$8daef090$@gasera.fi> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: AdCevi7nsQD2Mr7MRbySLELCozFF4w== Subject: [meta-raspberrypi] Issue with 8250/16550 UART1 access in raspberrypi (meta-raspberrypi) X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2015 12:01:33 -0000 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0018_01D09ED7.5488E7C0" Content-Language: fi ------=_NextPart_000_0018_01D09ED7.5488E7C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, After a long break, I have returned to the Yocto project, and generally very pleased. A lot of progress has been done since I last used the project (two years ago), and now in my opinion everything works very smoothly. I have used yocto to build a custom image for the RaspberryPi Compute Module. Generally everything works ok, however I am experiencing problem with accessing the UART1 port on the raspberryPi. I am using a library called wiringPi to put the appropriate GPIO pins in the correct mode (alt5) for RXD1/TXD1 (pins 32/33). Also I have used menuconfig to enable the 8250/16550 serial port support in the kernel (3.18.5+). After booting the image I examined the dmesg output, and it shows following information related to 8250/16550: .. [ 1.010958] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 1.013920] serial8250.0: ttyS0 at MMIO 0x20215040 (irq = 29, base_baud = 7812500) is a 8250 . Then I put the pins 32/33 into alternative mode alt5, and try to connect to the port /dev/ttyS0 using minicom (baud 115200). Trying to enter something into the Mincom terminal does not give any indications on our connected oscilloscope (connected to the relevant pins), however change of the alt mode earlier was observed correctly. The serial port should not be using any flow control, but when trying to disable the flow control using Minicom (it was on by default) freezes the complete RaspberryPi system (requiring to disconnect and reconnect power). Does anyone have any thoughts what could be the cause of these issues (e.g., problems with driver etc)? Any information would be greatly appreciated. In the project we are working on we would need to use both uart ports (0/1) provided by the compute module (the uart0 is a pl011 and by disabling console use of /dev/ttyAMA0 we were able to successfully connect to that port). Thanks for the great work with the Yocto platform. Sincerely, Andreas Enbacka SW designer Gasera Ltd ------=_NextPart_000_0018_01D09ED7.5488E7C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

After a long break, I have returned to the Yocto project, = and generally very pleased. A lot of progress has been done since I last = used the project (two years ago), and now in my opinion everything works = very smoothly.

 

I have used yocto to build a custom image for the = RaspberryPi Compute Module. Generally everything works ok, however I am = experiencing problem with accessing the UART1 port on the raspberryPi. I = am using a library called wiringPi to put the appropriate GPIO pins in = the correct mode (alt5) for RXD1/TXD1 (pins 32/33). Also I have used = menuconfig to enable the 8250/16550 serial port support in the kernel = (3.18.5+). After booting the image I examined the dmesg output, and it = shows following information related to = 8250/16550:

..

[   1.010958] Serial: 8250/16550 driver, 4 ports, = IRQ sharing disabled

[   1.013920] serial8250.0: ttyS0 at MMIO = 0x20215040 (irq =3D 29, base_baud =3D 7812500) is a = 8250

…

 

Then I put the pins 32/33 into alternative mode alt5, and = try to connect to the port /dev/ttyS0 using minicom (baud 115200). = Trying to enter something into the Mincom terminal does not give any = indications on our connected oscilloscope (connected to the relevant = pins), however change of the alt mode earlier was observed correctly. = The serial port should not be using any flow control, but when trying to = disable the flow control using Minicom (it was on by default) freezes = the complete RaspberryPi system (requiring to disconnect and reconnect = power).

 

Does anyone have any thoughts what could be the cause of = these issues (e.g., problems with driver etc)? Any information would be = greatly appreciated. In the project we are working on we would need to = use both uart ports (0/1) provided by the compute module (the uart0 is a = pl011 and by disabling console use of /dev/ttyAMA0 we were able to = successfully connect to that port).

 

Thanks for the great work with the = Yocto platform.

 

Sincerely,

Andreas Enbacka

SW designer

Gasera Ltd

 

------=_NextPart_000_0018_01D09ED7.5488E7C0--