Date: Sun, 29 Jul 2018 13:29:17 +0200 From: Per olof Ljungmark <peo@nethead.se> To: Ralph Smith <ralph@ralphsmith.org> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: rpi3 and Adafruit GPS hat continued Message-ID: <eb0c71e3-35ba-1e38-afa1-4957d1100db0@nethead.se> In-Reply-To: <6DCECF08-1366-4289-9929-94A967284291@ralphsmith.org> 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> <CF8A1708-2D3E-414C-92BA-442999DDBB37@ralphsmith.org> <2aee4fd4-c221-23a6-00e4-1db2694bfef6@nethead.se> <6DCECF08-1366-4289-9929-94A967284291@ralphsmith.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07/25/18 16:35, Ralph Smith wrote: > > > Sent from my iPhone > >> On Jul 25, 2018, at 10:26 AM, Per olof Ljungmark <peo@nethead.se> wrote: >> >>> On 07/25/18 12:35, Ralph Smith wrote: >>> >>> >>> Sent from my iPhone >>> >>>>> On Jul 25, 2018, at 5:55 AM, Per olof Ljungmark <peo@nethead.se> wrote: >>>>> >>>>>> On 07/25/18 11:27, Per olof Ljungmark wrote: >>>>>> On 07/25/18 04:25, Warner Losh wrote: >>>>>> >>>>>> >>>>>> On Tue, Jul 24, 2018 at 1:44 PM, Per olof Ljungmark <peo@nethead.se >>>>>> <mailto:peo@nethead.se>> wrote: >>>>>> >>>>>> Thanks to >>>>>> http://freebsd.1045724.x6.nabble.com/Adding-a-GPS-Module-hat-shield-on-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. >>>>>> >>>>>> 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: <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) >>>>>> >>>>>> >>>>>> I'm pretty sure that you'll need to hack dts. >>>>> >>>>> Yes. Most importantly, stop the kernel from talking to the serial console. >>>>> >>>>> 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: >>>>> >>>>> chosen { >>>>> stdout-path = "serial0:115200n8"; >>>>> }; >>>>> >>>>> Says nothing about stdin though, not anywhere. >>>> >>>> Tried stdout-path = ""; but that did not help. >>>> >>>> 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 rpi2 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’ve not tried the GPS HAT on that yet. >> >> I have dug out a rpi2 v1.1 and now wandering what image to boot, the >> v1.1 is armv7 but can't find any images for 11 and armv7. Does this mean >> I have to build it? The idea here was to aviod 12 due to the dts shuffle. > > For 11 you will need to use armv6. > Just FYI, I have the hat working now on the rpi2 v1.1 with 11-STABLE and about to learn how to use the rpi3+current with the hat as well. One thing I have realised is the the pi's can be a bit flaky, perhaps you could recommend some other single board cpu that works with FreeBSD 12? Like the rpi3 or even better spec. Thanks,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?eb0c71e3-35ba-1e38-afa1-4957d1100db0>