Author: crichmon Date: To: dng Subject: Re: [DNG] Setting serial speed on boot with daedalus on RPi
> From: Gregory Nowak <greg@???> > Create /etc/serial.conf. See /etc/init.d/setserial for details. ... > I had a closer look at /etc/init.d/setserial. I see it doesn't
> actually seem to read /etc/serial.conf itself, and I couldn't find
Me either. FWIW, I had to manually install setserial. It wasn't part of the default install.
> From: Ralph Ronnquist <ralph@???>
> First option if possible would perhaps be to add console=serial0,38400
> to the kernel commandline.
If I'm understanding the various guides, console=<port> sets up an actual console on that
port, which in this case, the port is needed for the GPS unit, so that would be counter-productive.
> Second option if using sysvinit would perhaps be to enable serial
> console in /etc/inittab with maybe one of the following lines:
> T0:23:boot:/sbin/getty -L serial0 38400
> T0:23:once:/sbin/getty -L serial0 38400
> T0:23:respawn:/sbin/getty -L serial0 38400
I'd swear I'd looked for /etc/inittab before asking for help, but didn't find it. It was there the
whole time (wrong xterm probably). Anyhow, I added the first two lines above, and that didn't
end up setting the speed, and prevented ntp from working after manually setting the speed.
What ended up working was adding: stty -F /dev/serial0 38400 to the end of rc.local
Now, ntp comes up using the PPS signal from the GPS without intervention.
FWIW and semi-related, but how reference clocks are supposed to be configured in ntpsec is different
than the legacy ntp config. ntpsec seems to accept the old style config anyway.