Eric S. Raymond writes: > Achim Gratz <[email protected]>: >> NTPsec is up and running on both, but without a refclock at the moment. > > I'd love to have a patch for the HOWTO describing the TinkerBoard tweaks.
Given that the Tinkerboard currently does not seem to allow PPS out of the box I'll pass on that. I've done some changes regarding the installation instructions.
>From 06a99f5f847ffc3cc259b81875894049d6c7cf34 Mon Sep 17 00:00:00 2001 From: Achim Gratz <[email protected]> Date: Sun, 26 Mar 2017 20:39:08 +0200 Subject: [PATCH] work on the installation instructions --- index.txt | 98 +++++++++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 73 insertions(+), 25 deletions(-) diff --git a/index.txt b/index.txt index bbef18e..9af7bfe 100644 --- a/index.txt +++ b/index.txt @@ -203,10 +203,11 @@ Within each phase, we try to indicate how difficult each operation is to back out. This recipe consists of a few commands run on your host machine, and -more on your SBC. A '#' before a command line means you need to be +more on your SBC. A +#+ before a command line means you need to be root to run it. Some commands won't require root; those command lines -will be marked with "$". Remember that you go root with the command -"sudo -s" or (after you have set a +root password) "su -". +will be marked with +$+. Remember that you go root with the command ++sudo -s+ (staying in your current directory) or "sudo su -" (doing a +full login as root). === Making a bootable SD === @@ -244,9 +245,10 @@ environment you are using. If your window manger pops up a file-browser view of the device, you should unmount it through that GUI. -You can use the older 'dd' if you do the next step manually, but +You can use the older +dd+ if you do the next step manually, but dcfldd is better about giving you progress messages during the -operation. +operation (if you send the +dd+ process a +USR1+ signal it will also +report on the progress). Better yet, we provide a script, link:ddimage[ddimage], to semi-automate the next step of the process; it's safer to use that, @@ -255,27 +257,36 @@ scribbling on your disks. Here's how to get it: [subs="attributes"] ------------------------------------------------------------------------ -wget {home}ddimage +$ wget {home}ddimage ------------------------------------------------------------------------ Either way, automatic or manual, you'll need to know the device name of your SD card reader. On a host running Debian or Ubuntu, the USB -device will most likely be /dev/sdd, but could have a different last letter -depending on how many hard drives you have and how your reader firmware -is set up. If you're using a built-in SD reader port, e.g. on a laptop, the -devicename might be something like '/dev/mmcblk0' +device will most likely be /dev/sdd, but could have a different last +letter depending on how many hard drives you have and how your reader +firmware is set up. If you're using a built-in SD reader port, e.g. on +a laptop, the devicename might be something like +/dev/mmcblk0+. +Right after inserting the card into the reader you can check with ++dmesg+ which device was recognized. -First, unpack the zip file to get an img file: +First, check that the zip file contains just one img file: ------------------------------------------------------------------------ -$ unzip 2016-03-18-raspbian-jessie-lite.zip +$ unzip -l 2016-03-18-raspbian-jessie-lite.zip ------------------------------------------------------------------------ -To proceed manually, follow the directions at <<INSTALLATION>>, using dcfldd. -Your command will look something like this: +To proceed manually, follow the directions at <<INSTALLATION>>, using +dcfldd. Your command will look something like this (assuming your +card is +/dev/sdd+): ------------------------------------------------------------------------ -# dcfldd statusinterval=16 sizeprobe=if bs=4M if=2016-03-18-raspbian-jessie-lite.img of=/dev/sdd +# zcat 2016-03-18-raspbian-jessie-lite.zip | dcfldd statusinterval=16 sizeprobe=if bs=4M if=- of=/dev/sdd +------------------------------------------------------------------------ + +Or, if you prefer to use the +dd+ command: + +------------------------------------------------------------------------ +# zcat 2016-03-18-raspbian-jessie-lite.zip | dd sizeprobe=if bs=4M if=- of=/dev/sdd ------------------------------------------------------------------------ For safety's sake, force pending I/O to the SD card before removing it. @@ -284,11 +295,11 @@ For safety's sake, force pending I/O to the SD card before removing it. # sync ------------------------------------------------------------------------ -To use ddimage, first read it. You should always read any script that will -run with root permissions, to check that it doesn't do anything -nefarious. Give it the basename of your SD reader (usually "sdd"). It -will do some safety checks, then generate a dcfldd command -like the above. +To use +ddimage+, first read it. You should always read any script +that will run with root permissions, to check that it doesn't do +anything nefarious. Give it the basename of your SD reader (usually +something like +sdd+). It will do some safety checks, then generate a +dcfldd command like the above. You should make it executable so you can run it as a script: @@ -296,7 +307,13 @@ You should make it executable so you can run it as a script: # chmod a+x ddimage ------------------------------------------------------------------------ -Your ddimage command execution should look roughly like this: +The script expects an image file, so extract it from the archive: + +------------------------------------------------------------------------ +# unzip 2016-03-18-raspbian-jessie-lite.zip +------------------------------------------------------------------------ + +Your +ddimage+ command execution should look roughly like this: ------------------------------------------------------------------------ # ./ddimage sdd @@ -351,6 +368,10 @@ Internet can reach your SBC via ssh before you either change the default-account password or remove the default account altogether, your Pi could be enslaved by an attack bot within minutes. +The current version of raspbian has ssh disabled. You need to enable +it (after changing the password) from +raspi-config+ or the GUI +configuration tool. + === First ssh access === Next, make sure your SBC has a live Ethernet cable plugged in and @@ -396,7 +417,7 @@ The hardest part is now done. === Initial configuration === -Call 'sudo raspi-config' on the Pi. +Call +sudo raspi-config+ on the Pi. ------------------------------------------------------------------------ # raspi-config @@ -416,6 +437,16 @@ are under "Internationalization Options". In the US, you probably want en_US.UTF-8; in any other country, look for your ISO language code followed by ".UTF-8". Also, set up WiFi country. +If you changed the locale to anything other than the default, current +Debian based distributions have a bug that trips up some programs that +expect the default locale to be available. To correct this, edit ++/etc/locale.gen+ and uncomment the line +en_US.UTF-8 UTF-8+ in +addition to your locale and re-generate the locale files: + +------------------------------------------------------------------------ +# locale-gen +------------------------------------------------------------------------ + It is not likely you will ever use a direct keyboard with this machine (as opposed to getting to it with ssh). But just in case, you might want to set the keyboard type. Raspbian defaults to a "Generic @@ -528,10 +559,17 @@ some of his steps because this build is designed to run headless. {--config} Edit the /boot/config.txt file to append these lines: ------------------------------------------------------------------------ -# Disable Bluetooth so serial-tty speed is no longer tied to CPU speed +# Demote Bluetooth to mini-UART so serial-tty speed is no longer tied to CPU speed dtoverlay=pi3-miniuart-bt ------------------------------------------------------------------------ +Or better yet really switch off Bluetooth: + +------------------------------------------------------------------------ +# Disable Bluetooth entirely so serial-tty speed is no longer tied to CPU speed +dtoverlay=pi3-disable-bt +------------------------------------------------------------------------ + This change restores the behavior of the Pi2 and earlier, in which the serial device attached to the UART is /dev/ttyAMA0 rather than /dev/ttyS0. @@ -544,12 +582,22 @@ dtoverlay line. # systemctl disable hciuart ------------------------------------------------------------------------ +{--config} If you have the +setserial+ package installed, you must +reconfigure it to not mess with the serial devices during boot by +chosing the "kernel only" option in the reconfiguration dialog. +Failure to do so will end up in a hung boot process when the Bluetooth +interface is switched off. + +------------------------------------------------------------------------ +# dpkg-reconfigure setserial +------------------------------------------------------------------------ + {--config} Create a symlink to the GPS device to make it easier to refer -to. Put one of the following in a new file /etc/udev/rules.d/10-pps.rules to +to. Put one of the following in a new file /etc/udev/rules.d/10-gps.rules to accomplish this. On the Pi: ------------------------------------------------------------------------ -KERNEL=="ttyAMA0", SYMLINK+="gpsd0" +KERNEL=="ttyAMA0" SYMLINK+="gpsd0" GROUP="ntp" ------------------------------------------------------------------------ === Configure the 1PPS GPIO pin === -- 2.12.0
Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
_______________________________________________ devel mailing list [email protected] http://lists.ntpsec.org/mailman/listinfo/devel
