TinkerOS 2.0.4
Achim Gratz
Stromeko at nexgo.de
Sun Feb 4 20:25:57 UTC 2018
Achim Gratz via devel writes:
> That image is officially available now. It will be some time before
> I'll get around to test it most likely, though.
I've just set up a second TinkerBoard using this image. Works well
including the gpio-pps overlay, which has to be added to
/boot/hw_intf.conf to get activated.
The full installation sequence (minus my own mistakes along the way):
--8<---------------cut here---------------start------------->8---
*** Linaro 2.0.4
**** Prepare SD card
- cd /mnt/root # root partion
+ vi etc/shadow # change password hash (copy from other machine or use passwd -R /mnt/root pi)
+ vi etc/hostname # change hostname
+ vi etc/hosts # change hostname
- cd /mnt/boot
+ nothing to do yet apparently
**** Further Steps
- uname -a # Linux tinkerboard2 4.4.71+ #1 SMP Wed Nov 15 14:31:48 CST 2017 armv7l GNU/Linux
- sudo apt-get update && sudo apt-get -us dist-upgrade && sudo apt-get -u dist-upgrade && sudo apt-get --purge autoremove
- sudo dpkg-reconfigure tzdata locales # set up TZ and locale information, ensure availability of at least one UTF-8 locale
- echo LC_MESSAGES=POSIX | sudo tee -a /etc/default/locale
- sudo apt-get install ntp emacs cpufrequtils pps-tools setserial minicom picocom python-serial rsync git ethtool
- sudo systemctl stop systemd-timesyncd && sudo systemctl disable systemd-timesyncd # stop and disable timesyncd (SNTP client)
- sudo apt-mark hold ntp # install ntpsec over existing scaffolding
- sudo systemctl set-default multi-user.target
- sudo apt-get purge anacron
- sudo vi /etc/default/cpufrequtils # set governor userspace @ fixed frequency 1.2GHz
- sudo reboot
**** NTPsec development
- git clone https://gitlab.com/NTPsec/ntpsec.git
- cd ntpsec && sudo ./buildprep --doc --ntpviz # this is bullshit…
- ./waf configure --refclock=nmea,pps,local,generic,shm --prefix=/usr --enable-early-droproot
- sudo vi /etc/udev/rules.d/{77-dcf77,66-ublox6,88-ublox8,99-navspark}.rules
- echo intf:dtoverlay=pps-gpio | sudo tee -a /boot/hw_intf.conf
- sudo vi /etc/cron.daily/ntp # increase retention period
- sudo vi /etc/ntp.conf
- echo "1 SHA1" $(base64 /dev/urandom | tr -d '+/=' | head -c 20) | sudo tee /etc/ntp.keys && sudo chmod 600 /etc/ntp.keys
- sudo reboot
- sudo ethtool -C eth0 rx-usecs 69
- sudo rm /run/ntp.conf.dhcp /etc/dhcp/dhclient-exit-hooks.d/ntp
- sudo mkdir -p /var/log/ntpstat && sudo chown ntp.ntp /var/log/ntpstat
- rm wafhelpers/.autorevision-cache ; ./waf build && sudo ./waf install && sudo systemctl restart ntp && watch -n 5 'ntpq -W92 -c rv -c peers -c "cv &1"'
--8<---------------cut here---------------end--------------->8---
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
More information about the devel
mailing list