From owner-freebsd-arm@freebsd.org Sun Jan 22 05:07:41 2017 Return-Path: Delivered-To: freebsd-arm@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 E0709CBAF92 for ; Sun, 22 Jan 2017 05:07:41 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: from mail-yb0-x236.google.com (mail-yb0-x236.google.com [IPv6:2607:f8b0:4002:c09::236]) (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 96B6E843 for ; Sun, 22 Jan 2017 05:07:41 +0000 (UTC) (envelope-from dmarquess@gmail.com) Received: by mail-yb0-x236.google.com with SMTP id w194so78878016ybe.0 for ; Sat, 21 Jan 2017 21:07:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=FApYUkP+FJdIM62A/MGFrKiboabfARN1oPHnaCHIOSI=; b=PgHzGZ53mLihHAT9f63mT+vghX1fcE0cZfMckl5HocJ1xkLXtxLPpppMi+ZddwgwF6 SNW8Vmv1iBIcEToOUoYYfy8KlaJ6f0PWl7G26i8bR44ujutC96AZo8V/B/n4oA/ypjx5 68Ffu0GkDO3QLEjM/O3J1cKcA9yYUTj5UKdqbq1cFNJuehXfUxpYAOwftTfhGHt4CsLA yzUe94FOK+rjc/984/BVjmBVVSogErfwzSO3QFoLx6/OKz6eTcF7MeKmDcU9BqchuXx6 ODu+U3dqEUU5Mhbi5fFbCf3t8GRR5Rz4FlBwkuwnK4PYIHoGWTfhwlMomLBObqW11qqz Oihw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FApYUkP+FJdIM62A/MGFrKiboabfARN1oPHnaCHIOSI=; b=iaZ40WXK2kW1Q+lOQtXUG9YuLmB9SDNF5/N0hyaAJg66V393rfDZkxN8dKQuK2kU6B N+gZ39KfINaFu3h9ZRW/AlK/xePjaNh6/W8XLVS9CO5XSwBfPiUl3/1t85lyrsaM+X+S QrGmzHVIdPODOnhZmiiod8RBe+VF3xI6yeGMl2FGQXVKMV3bgsYadi0t/Fo8JIuEkJqR cffquwZF7hV4uWSTsd+Xzzht2oSmKhO4BFC0JJEo9Eetwtq/0D+iNjFJF23rByHdCd3R dFJ4UbblYmdjChcIC4sA3yLmjAJcLkaR1mDRePxKzioONjghS/QTmXyZwrOtSwmrcSoZ VymA== X-Gm-Message-State: AIkVDXKfsoqG8tOa6ygsm8Q4RAUIJHzZWR++blC4sucWr5JY/tIjAVyaEXjMByNKrIwSwv2pWaCHHiJhiUpetA== X-Received: by 10.37.224.77 with SMTP id x74mr15622522ybg.80.1485061660673; Sat, 21 Jan 2017 21:07:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.13.231.135 with HTTP; Sat, 21 Jan 2017 21:07:40 -0800 (PST) From: Dustin Marquess Date: Sat, 21 Jan 2017 23:07:40 -0600 Message-ID: Subject: Getting the kernel to let go of my UART! To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jan 2017 05:07:42 -0000 [Sorry if this is somewhat of a dupe, I have yet to find a solution] I've been running FreeBSD on my Pi 3s for a little over a month now, first using gonzo's SMP code + a home cross-compiled kernel, and then I moved to the HardenedBSD images. All of them work great except one issue that's driving me nuts... The downside to the Pi 3 vs some other boards is that there's really only one UART tied to the GPIO pins. I'm trying to feed my Pi 3 with a GPS board. 1st issue: The NMEA stream upsets U-boot. Fine, compiled my own and that's "fixed". 2nd issue: Even with a USB keyboard attached and HDMI output connected, FreeBSD still wants to steal the first uart (ttyu0) as a console port. I thought that would be fine as long as I use "-m -n -q" in the boot config to disable kernel output and then "conscontrol delete ttyu0". Well, that KIND of works. It seems to work fine when using 115200bps, but trying to change the baud rate to match the GPS unit doesn't seem to work at all, I'm guessing because it's still set as an available console? hint.uart.0.flags="0x0" doesn't work, as it still marks it as a console. console="efi" seems to be the only setting that works, "vidconsole" and "nullconsole" both don't work. Is there a way to stop the kernel from trying to claim the UART as a console? Thanks! -Dustin