Date: Wed, 25 Jul 2018 06:35:53 -0400 From: Ralph Smith <ralph@ralphsmith.org> To: Per olof Ljungmark <peo@nethead.se> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: rpi3 and Adafruit GPS hat continued Message-ID: <CF8A1708-2D3E-414C-92BA-442999DDBB37@ralphsmith.org> In-Reply-To: <2f55aaea-6832-7441-1011-b8288628a4a9@nethead.se> References: <d1341718-f8a3-31f9-9ac4-24b7a2de51d9@nethead.se> <CANCZdfrDXytg%2B3a5O%2BHch5fMhm85Uf5GGKKVP=AfbPydO-c22Q@mail.gmail.com> <ba6d3be7-73ed-46b7-df87-0cf98b035397@nethead.se> <2f55aaea-6832-7441-1011-b8288628a4a9@nethead.se>
next in thread | previous in thread | raw e-mail | index | archive | help
Sent from my iPhone > On Jul 25, 2018, at 5:55 AM, Per olof Ljungmark <peo@nethead.se> wrote: >=20 >> On 07/25/18 11:27, Per olof Ljungmark wrote: >>> On 07/25/18 04:25, Warner Losh wrote: >>>=20 >>>=20 >>> On Tue, Jul 24, 2018 at 1:44 PM, Per olof Ljungmark <peo@nethead.se >>> <mailto:peo@nethead.se>> wrote: >>>=20 >>> Thanks to >>> http://freebsd.1045724.x6.nabble.com/Adding-a-GPS-Module-hat-shield-o= n-a-Raspberry-Pi-td6236680.html >>> <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. >>>=20 >>> I skipped the switch and patched rpi.h: >>>=20 >>> @@ -85,10 +87,13 @@ >>> #define CONFIG_INITRD_TAG >>>=20 >>> /* 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=3Dserial,usbkbd\0" \ >>> - "stdout=3Dserial,vidconsole\0" \ >>> - "stderr=3Dserial,vidconsole\0" >>> + "stdin=3Dusbkbd\0" \ >>> + "stdout=3Dvidconsole\0" \ >>> + "stderr=3Dvidconsole\0" >>>=20 >>> and now the pi is booting. >>>=20 >>> Now to the next problem, I need to rewire TXD and RXD and add recepti= on >>> of the PPS signal on pin 4. The advice in the link above is not >>> appclicable to current and rpi3. >>>=20 >>> Right now uart1 is wired to the RXD and TXD pins, I want uart0. Is it= >>> recompile a dts or use gpioctl? >>>=20 >>> uart0: <PrimeCell UART (PL011)> mem 0x7e201000-0x7e201fff irq 24 on >>> simplebus0 >>> uart1: <BCM2835 Mini-UART> mem 0x7e215040-0x7e21507f irq 32 on >>> simplebus0 >>> uart1: console (115200,n,8,1) >>>=20 >>>=20 >>> I'm pretty sure that you'll need to hack dts. >>=20 >> Yes. Most importantly, stop the kernel from talking to the serial console= . >>=20 >> I've been wandering around the source and right now the theory is to >> change /usr/src/sys/gnu/dts/arm/bcm283x.dtsi, it is the only place in >> all the included dts files where I find a reference to the console: >>=20 >> chosen { >> stdout-path =3D "serial0:115200n8"; >> }; >>=20 >> Says nothing about stdin though, not anywhere. >=20 > Tried stdout-path =3D ""; but that did not help. >=20 > I'm giving up and move to rpi2 and 11.2 instead. Phew. Just another gotcha to worry about: be aware of the difference between the r= pi2 board versions 1.1 and 1.2. They quietly changed the SOC, so FreeBSD 11.= 1 would not boot on the rev 1.2 board. It will boot FreeBSD 11.2, but I=E2=80= =99ve not tried the GPS HAT on that yet.=20 Ralph=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CF8A1708-2D3E-414C-92BA-442999DDBB37>