From owner-freebsd-mobile@freebsd.org Wed Mar 2 00:11:19 2016 Return-Path: Delivered-To: freebsd-mobile@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED6A9ABFEDD for ; Wed, 2 Mar 2016 00:11:18 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: from mail-vk0-x235.google.com (mail-vk0-x235.google.com [IPv6:2607:f8b0:400c:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AC575119A for ; Wed, 2 Mar 2016 00:11:18 +0000 (UTC) (envelope-from johannes@brilliantservice.co.jp) Received: by mail-vk0-x235.google.com with SMTP id e185so185555236vkb.1 for ; Tue, 01 Mar 2016 16:11:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brilliantservice-co-jp.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XEh99uESLezjPDA5PCgpq/SKU5/4BG+2c/SLoO0LmME=; b=vUw7GLnPKHS1pU+ZIMPTljzf6wUC7BTMYvtY4QriHaS4iLHLTHkgtGfVsOmZRdJ2HI JPDaO5uy4YNjh9rMh5P7oZpvNmP6gQAGnUvkEzCpHJxwNoRSOgwY73T4OblnomXA9hMe b+GTaBERZDYnogY03FxIFmafxklfY3ev8SeneNMwn/pmkS33gShaadpGT5lBC8NK+4aM xWNKEKumiLlNQ6g+Tr/JtDVVevp2zvZsw09wINd2O5cu0TRnkReliXQCyBSDlQu9QH6C 2IFtUm4KE97VFPM4X8TNhnwMRbrHVocSn3zgBBsDL+gCqGA6uMSgf1mjyOdNzVA9m30R bdhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XEh99uESLezjPDA5PCgpq/SKU5/4BG+2c/SLoO0LmME=; b=TLJSERg7WWT0xcZGtube77nArS1HposmFbGA2nOFMEHnFwHDRWStXMX3W0MFyGRZai pmjQtmVElpv6UcUGG6sucUIoHsJYBGVky6AXwqRnZqEax1o/SZ0VACtyfZeX06181mzf na3HthH8I89aKgNzJapSitD/2quq5HzyPcNiyawiy52sVh+iSOGmlugxn0d98/aXRT/6 3ljBSR0gKPxD3zo4wrSW6c9+hI3Gry8zm1vwB8LB3MR4L4mhgnsS5mHQX/tqNEIxevIV JLrELnRe0XqBzFsEE1eP4Fz1iVyY6NnMZ1C9dnZHVvT8pi2CGDBQnNKQkf41TQr8ZReD XahQ== X-Gm-Message-State: AD7BkJJ83KdKr12ekKR5/SITzKBGaUSL618EDeBHB/HJzDAi+WXH5ueTlaVNJso5hxyqFR/ztoWOR7dIs+AgI1sNWPYEoVNmH9v2qq1duxRg20BYsgVDdjryZ+QaLZsGEPvmrGXqjzqWV/NLajKu3lhnXg== X-Received: by 10.31.16.218 with SMTP id 87mr18377113vkq.105.1456877477406; Tue, 01 Mar 2016 16:11:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.36.197 with HTTP; Tue, 1 Mar 2016 16:11:02 -0800 (PST) In-Reply-To: <00A3C4F0-AEEE-4341-9D5C-3810A9A08EA3@xcllnt.net> References: <4E9118B0-FC9F-444F-B277-3E5BAE75C723@xcllnt.net> <20160227172039.F26318@sola.nimnet.asn.au> <00A3C4F0-AEEE-4341-9D5C-3810A9A08EA3@xcllnt.net> From: "Lundberg, Johannes" Date: Tue, 1 Mar 2016 16:11:02 -0800 Message-ID: Subject: Re: hint.uart.1 in device.hints causes freeze at boot To: Marcel Moolenaar Cc: Ian Smith , Warner Losh , "freebsd-mobile@freebsd.org" , "freebsd-embedded@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2016 00:11:19 -0000 Hi Marcel Switching to PCI does not help the halting boot, only disabling UART1 does. I'm working with UART0 (in PCI mode with Adafruit cable) to get serial console output but all I get is garbage (question marks with filled elliptic background) from BIOS. When kernel is loaded output stops. Where did you get this info? hw.uart.console=3D"mm:0xd0810000,br:115200,rs:2,xo:44236800 The only info I can find is that this address is for the sound chip(?).. Even though HDMI is working out of the box it would be nice to also have serial console for when you don't wanna carry around a big monitor... On Sat, Feb 27, 2016 at 9:22 AM, Marcel Moolenaar wrote= : > > On Feb 27, 2016, at 5:54 AM, Lundberg, Johannes < > johannes@brilliantservice.co.jp> wrote: > > >though I've no clue why or how that should cause a boot failure? > > Verbose logging don't give any clues either.. It just stops. > > > On the Atom SoC I have, you can configure the UARTs as PCI or ACPI device= s. > They work as PCI devices but required better support for memory mapped lo= w- > level consoles in x86. If configured as ACPI (supposedly compatible), the= y > just > don=E2=80=99t work. I belief FreeBSD would just hang when configured as A= CPI, but > I=E2=80=99m > foggy on that detail. > > Key is that they we=E2=80=99re trimmed-down UARTs (3-wire functionality) = and thus > weird > beasts... > > Johannes: If your BIOS has the same capability, try switching. PCI mode i= s > well > supported in FreeBSD, though requires something like the following in you= r > loader.conf: > > hw.uart.console=3D"mm:0xd0810000,br:115200,rs:2,xo:44236800 > > This tells the uart(4) driver that the device is memory mapped (at I/O > address 0xd0810000, uses 32-bit register access and has a non-standard > clock input of 44236800 (=3D44Mhz). > > -- > Marcel Moolenaar > marcel@xcllnt.net > > --=20 =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- =E7=A7=98=E5=AF=86=E4=BF=9D=E6=8C=81=E3=81=AB=E3=81=A4=E3=81=84=E3=81=A6=EF= =BC=9A=E3=81=93=E3=81=AE=E9=9B=BB=E5=AD=90=E3=83=A1=E3=83=BC=E3=83=AB=E3=81= =AF=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E3=81=AB=E9=80=81=E4=BF=A1=E3=81=97= =E3=81=9F=E3=82=82=E3=81=AE=E3=81=A7=E3=81=82=E3=82=8A=E3=80=81=E7=A7=98=E5= =8C=BF=E7=89=B9=E6=A8=A9=E3=81=AE=E5=AF=BE=E8=B1=A1=E3=81=A8=E3=81=AA=E3=82= =8B=E6=83=85=E5=A0=B1=E3=82=92=E5=90=AB=E3=82=93=E3=81=A7=E3=81=84=E3=81=BE= =E3=81=99=E3=80=82 =E3=82=82=E3=81=97=E3=80=81=E5=90=8D=E5=AE=9B=E4=BA=BA=E4=BB=A5=E5=A4=96=E3= =81=AE=E6=96=B9=E3=81=8C=E5=8F=97=E4=BF=A1=E3=81=95=E3=82=8C=E3=81=9F=E5=A0= =B4=E5=90=88=E3=80=81=E3=81=93=E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=E3=81=AE= =E7=A0=B4=E6=A3=84=E3=80=81=E3=81=8A=E3=82=88=E3=81=B3=E3=81=93=E3=81=AE=E3= =83=A1=E3=83=BC=E3=83=AB=E3=81=AB=E9=96=A2=E3=81=99=E3=82=8B=E4=B8=80=E5=88= =87=E3=81=AE=E9=96=8B=E7=A4=BA=E3=80=81 =E8=A4=87=E5=86=99=E3=80=81=E9=85=8D=E5=B8=83=E3=80=81=E3=81=9D=E3=81=AE=E4= =BB=96=E3=81=AE=E5=88=A9=E7=94=A8=E3=80=81=E3=81=BE=E3=81=9F=E3=81=AF=E8=A8= =98=E8=BC=89=E5=86=85=E5=AE=B9=E3=81=AB=E5=9F=BA=E3=81=A5=E3=81=8F=E3=81=84= =E3=81=8B=E3=81=AA=E3=82=8B=E8=A1=8C=E5=8B=95=E3=82=82=E3=81=95=E3=82=8C=E3= =81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=8A=E9=A1=98=E3=81=84=E7=94=B3=E3=81= =97=E4=B8=8A=E3=81=92=E3=81=BE=E3=81=99=E3=80=82 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message.