From owner-freebsd-arm@freebsd.org Wed Jul 25 02:25:03 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB7CD103B01A for ; Wed, 25 Jul 2018 02:25:02 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::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 76ACC8ABA7 for ; Wed, 25 Jul 2018 02:25:02 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x236.google.com with SMTP id q19-v6so5099870ioh.11 for ; Tue, 24 Jul 2018 19:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=QgGMvrT2hLGdtLmS/a7cVDzHcRPJwQwSjrXXFicjN8I=; b=DbEOjq0M50FIlDrJ6TfaLO5eYdBwRipXbpPTxcMoFxObzslmfmCAO2kaR2raf/w+B/ NXUik26eViLLkbpJSDoUvFtMg4GTaLp8UUEswY93BSNBPIrOQiB03uzUsux3DUse5aK5 kZ5QXEQL5rIsBUy8DuXAdGZ/0QY1z06ZjjOz2ZoJfJ7x/ePQAS+zNLfuw/xhOfN3c/LQ xDWII3ZieVksXFikVfNcMs1rUu3HiYVpdFNbXAqFpvxrP/JbQla1BpRFpqlGaVn7t4Jo ql5YOo8tD4SaOTrE+oDyBQAHzyGAH/I8bz/5rxZTKc3eK9XpR5NOq0zpb58hRUmxu1YY trnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=QgGMvrT2hLGdtLmS/a7cVDzHcRPJwQwSjrXXFicjN8I=; b=cljX2xOlUsJjoMGMeBsYZFmyv/1CH7LXQn5n/nmk7B6NXtzP6pMZey4UMwX4jdy9QK 6SV1NsCZVvigRe6gXSdXvvwyH+mOWHTDhZWBC9IbJPmpEjG0hRqD2irVp2+aWKnAgFWM +oLz7jL2Fvhm7NqHLfT/ryIudwG7IPkxVwQ/NrhmGFefaW4wBK084MuxEBUrFDBW4J0R hYfMa0A3pfc96taXtr5oUVOnSmcKTczqw7g+uoRwKQs/j4pkSqjEIUZynr8ORu/4Y9UL Pjh3IFFhTf4qe81EScGlVbh1ycfbglCtofco/7P4H7mqfjXo5Z+EK+XpvywbPwDokIhE 4+ag== X-Gm-Message-State: AOUpUlFU6vS0LZfQyScOkmWHKJli+ZMn9U3jv+AcmRxcvc91qtqepNk0 NiteCKGHj3mIP4TL2LogF3jA/3hwGpTqsF+P/JikiniIO8w= X-Google-Smtp-Source: AAOMgpcRAiamspuvAQjyy3v/nJuVyNBqsE4XWuxIR+agB5KmFF9viwkJ3CZP5841Sg+wu4FHBiVddiNOc+DFn39LKhc= X-Received: by 2002:a6b:d004:: with SMTP id x4-v6mr14866058ioa.299.1532485501729; Tue, 24 Jul 2018 19:25:01 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 2002:a4f:4485:0:0:0:0:0 with HTTP; Tue, 24 Jul 2018 19:25:01 -0700 (PDT) X-Originating-IP: [50.253.99.174] In-Reply-To: References: From: Warner Losh Date: Tue, 24 Jul 2018 20:25:01 -0600 X-Google-Sender-Auth: pclWH5zD1UgU-bVl61byTGoGGSA Message-ID: Subject: Re: rpi3 and Adafruit GPS hat continued To: Per olof Ljungmark Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2018 02:25:03 -0000 On Tue, Jul 24, 2018 at 1:44 PM, Per olof Ljungmark wrote: > Thanks to > http://freebsd.1045724.x6.nabble.com/Adding-a-GPS-Module-hat-shield-on-a- > Raspberry-Pi-td6236680.html > and helpful people on the list I managed to get the pi to boot by > silencing the console messages in u-boot. > > I skipped the switch and patched rpi.h: > > @@ -85,10 +87,13 @@ > #define CONFIG_INITRD_TAG > > /* Environment */ > +#define CONFIG_SYS_DEVICE_NULLDEV > +#define CONFIG_SILENT_CONSOLE_UPDATE_ON_RELOC > +#define CONFIG_SILENT_CONSOLE_UPDATE_ON_SET > #define ENV_DEVICE_SETTINGS \ > - "stdin=serial,usbkbd\0" \ > - "stdout=serial,vidconsole\0" \ > - "stderr=serial,vidconsole\0" > + "stdin=usbkbd\0" \ > + "stdout=vidconsole\0" \ > + "stderr=vidconsole\0" > > and now the pi is booting. > > Now to the next problem, I need to rewire TXD and RXD and add reception > of the PPS signal on pin 4. The advice in the link above is not > appclicable to current and rpi3. > > Right now uart1 is wired to the RXD and TXD pins, I want uart0. Is it > recompile a dts or use gpioctl? > > uart0: mem 0x7e201000-0x7e201fff irq 24 on > simplebus0 > uart1: mem 0x7e215040-0x7e21507f irq 32 on simplebus0 > uart1: console (115200,n,8,1) > I'm pretty sure that you'll need to hack dts. Warner