From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1cj0vU-0005iM-OT for mharc-grub-devel@gnu.org; Wed, 01 Mar 2017 04:52:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj0vS-0005gQ-Em for grub-devel@gnu.org; Wed, 01 Mar 2017 04:52:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cj0vR-0004sw-0Y for grub-devel@gnu.org; Wed, 01 Mar 2017 04:52:02 -0500 Received: from mail-vk0-x22e.google.com ([2607:f8b0:400c:c05::22e]:34146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cj0vQ-0004ss-QM for grub-devel@gnu.org; Wed, 01 Mar 2017 04:52:00 -0500 Received: by mail-vk0-x22e.google.com with SMTP id r136so6348662vke.1 for ; Wed, 01 Mar 2017 01:52:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0oHY74dO2GGO7ccz+LDLy+yybvrk4OU2MUiDzibPWAk=; b=seBpbWIrXMAG01vUSRrUQg1NWOA62dQ+gaVEbxP3z4R8w/4kHUVQvLb+QkDJSAte8a 1rOkbG6tH3Bm5IDLgFVZfb3CrQ+Z7xGoX+YjXLYsQvAwxyUCOIND5dwsIMI4Ei919+bo BioTvOViF6aWjENUQsjy0GDh3DATcS5GgkThkqhO79+MQL0XtRnCtYVziF3l6huAX/QZ Lbep5VQuX1fzsenIucjV4SlHQwNnEaurZ1WsJyt87hzz0alDKnf+Oa8FeGK0RcLFctmk rEtIOSfnmDZVbM3lsnArWt9jqNsiNNOjT3vCa6BR1+2RKgybTc5lXG0pnLLzvYJivPEQ etYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0oHY74dO2GGO7ccz+LDLy+yybvrk4OU2MUiDzibPWAk=; b=e+16tzuESATzf7QPqjLHkEmNYcGEVkuQoiyZHrtnQwZoHuuK3L4evuG4hmj/vItO53 G3QUc7MqBCHdqT98W0cHzyXHATs8DWYKwMY9RFU0EzJQ3q/6L6jYy9VZP+yDRXTVfAc5 3eu/+PPk6qvHtPz54HM/ohlnmq3u6yPMshIWb+O+f1Cz71jOKY9o/RxS9soyYTKtXKo7 wMZL/aZAT8iv+/eca8EGo7/Dhnqnz4lvsz8gwJQ62Kxl/pMyh7oV6BTF/3/6a/UvdSme duI2wt5SaUNKX/JhG4B7FsK0Jvww5CztUuJoTEN7qXfpwiIeMNq6Uha/6i0Nb2Penp4q Texw== X-Gm-Message-State: AMke39kGTAHbAb7e7qGv1JcsrUKo8217wPCeIxNMf6axDindUVf8Vd5KvBM7Yqjv8A701J5VMPMHH+/+DejC+w== X-Received: by 10.31.85.4 with SMTP id j4mr3013270vkb.1.1488361920066; Wed, 01 Mar 2017 01:52:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.54.240 with HTTP; Wed, 1 Mar 2017 01:51:59 -0800 (PST) In-Reply-To: <947f7550-489b-0d54-dd43-422f01fdc7c6@kernkonzept.com> References: <947f7550-489b-0d54-dd43-422f01fdc7c6@kernkonzept.com> From: Gailu Singh Date: Wed, 1 Mar 2017 15:21:59 +0530 Message-ID: Subject: Re: 8250 memory mapped UART To: Matthias Lange Cc: Andrei Borzenkov , The development of GNU GRUB Content-Type: multipart/alternative; boundary=001a114e5abc8afb320549a8433f X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22e X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Mar 2017 09:52:03 -0000 --001a114e5abc8afb320549a8433f Content-Type: text/plain; charset=UTF-8 My board is Intel Oxbohill CRB (Apollo lake). On my board UART are not connected to PCI. I am using grub2 payload loaded by coreboot. UART works fine in coreboot by using memory mapped 8050 driver ( https://github.com/coreboot/coreboot/blob/master/src/drivers/uart/uart8250mem.c), however when grub2 is loaded it refuses to recognize UART. On Wed, Mar 1, 2017 at 3:08 PM, Matthias Lange < matthias.lange@kernkonzept.com> wrote: > Hi, > > On 03/01/2017 08:00 AM, Andrei Borzenkov wrote: > > please test patches from Matthias Lange > > > > https://lists.gnu.org/archive/html/grub-devel/2017-02/msg00104.html > > > > > > On Wed, Mar 1, 2017 at 9:15 AM, Gailu Singh wrote: > >> Hi Experts, > >> > >> I am using GRUB2 on intel apollo lake board. This board does not have IO > >> mapped uart instead it has 8250 memory mapped UART. > > Could you share some details about the board? > > >> GRUB2 does not recognize memory mapped uart and gives error ("serial > port > >> COM0 not found). There is a 8250 memory mapped driver available in > coreboot. > >> Is it possible to port that driver to Grub2? > > My patch set adds support for 8250 MMIO PCI cards. Is the UART on your > board connected via PCI? > > Best, > Matthias. > --001a114e5abc8afb320549a8433f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
My board is Intel Oxbohill CRB (Apollo lake). On my board = UART are not connected to PCI.=C2=A0

I am using grub2 pa= yload loaded by coreboot. UART works fine in coreboot by using memory mappe= d 8050 driver (https://github.com/coreboot/coreboot/blob/m= aster/src/drivers/uart/uart8250mem.c), however when grub2 is loaded it = refuses to recognize UART.



On Wed, Mar 1, 2017 at 3= :08 PM, Matthias Lange <matthias.lange@kernkonzept.com>= ; wrote:
Hi,

On 03/01/2017 08:00 AM, Andrei Borzenkov wrote:
> please test patches from Matthias Lange
>
> https://lists.gnu.org/archiv= e/html/grub-devel/2017-02/msg00104.html
>
>
> On Wed, Mar 1, 2017 at 9:15 AM, Gailu Singh <gailu96@gmail.com> wrote:
>> Hi Experts,
>>
>> I am using GRUB2 on intel apollo lake board. This board does not h= ave IO
>> mapped uart instead it has 8250 memory mapped UART.

Could you share some details about the board?

>> GRUB2 does not recognize memory mapped uart and gives error ("= ;serial port
>> COM0 not found). There is a 8250 memory mapped driver available in= coreboot.
>> Is it possible to port that driver to Grub2?

My patch set adds support for 8250 MMIO PCI cards. Is the UART on yo= ur
board connected via PCI?

Best,
Matthias.

--001a114e5abc8afb320549a8433f--