> Since one of my goals is to run this as an NTP server, I was somewhat surprised to note that
> "hwclock" didn't work (Missing driver, maybe?) :
> root@pi:~# hwclock --verbose --show
> hwclock from util-linux 2.33.1
> System Time: 1613889592.600667
> Trying to open: /dev/rtc0
> Trying to open: /dev/rtc
> Trying to open: /dev/misc/rtc
> No usable clock interface found.
> hwclock: Cannot access the Hardware Clock via any known method.
FYI, for next purchase, maybe. Pine A64+ board had a couple options for RTC battery attachments and for battery backup. On Bullseye/sid, that command is working. Thanks for helping me feel I didn't waste a few dollars on that option. :)
# hwclock --verbose --show
hwclock from util-linux 2.36.1
System Time: 1613958480.577164
Trying to open: /dev/rtc0
Using the rtc interface to the clock.
Last drift adjustment done at 1612997502 seconds after 1969
Last calibration done at 1612997502 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2021/02/22 01:48:03
Hw clock time : 2021/02/22 01:48:03 = 1613958483 seconds since 1969
Time since last adjustment is 960981 seconds
Calculated Hardware Clock drift is 0.000000 seconds
2021-02-21 20:48:01.547366-05:00
An advantages of minimal images versus normal install process is less user time and tedium. If you have several Pi's to setup similarly, with favorite sets of a few additional packages, headless, it is faster to dd a minimal image, then do a few manual steps and run a script for your customizations. Versus the longer step-by-step process of normal installs. Thank you Gunnar, and Michael!
There are scripts for those, keyboard and language too. Also WiFi country, I forget what else. Locales is in there.Take a look at a recent raspi-config. I think Odroid, maybe the Pine64 bunch has a generic-ized version of that. Armbian probably does too. Raspi-config is just a Bash script that uses Whiptail for its menus. Parts of it are useful on other things. It's on Github somewhere.On Thu, Feb 25, 2021, 11:09 PM Rick Thomas <rick....@pobox.com> wrote:
I got wifi working on RPi4B 4GB, and RPi Zero W with Buster, with only the following. Using a couple months older version of:
https://wiki.debian.org/WiFi/HowToUse
It was Command line section, now is Using_ifupdown section:
To get interface name (wlan0):
# ip a
To bring up interface:
# ip link set wlan0 up
To scan for networks (not necessary at home):
# iwlist scan
Edit /etc/network/interfaces.d/wlan0
Uncomment lines and change to my wifi SSID and password.
To connect (have some patience):
# ifup wlan0
To verify IP address:
# ip a
It's probably better, more secure, to use WPA-PSK so the password is encrypted, but the above was simpler and worked.
I also mostly use 2.4GHz, because range seems farther through walls.
For me on Pi4, 5.9 kernel, Buster
# iwlist scan
does show some 5 GHz transmitters around me, but does not show MY access point, and I was unable to connect to it with 5 GHz, although my phones can. 2.4 works OK for me with simple wlan0 settings, as Gunnar. The interwebs say setting a country code may help RPi's WiFi, but examples I found were only for wpa_supplicant.conf, which seems "missing" on my Rpi so far.
Does the below "daemon failed to start" mean I need to do something to setup and start wpa supplicant?
# ifup wlan0
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan0/whatever
Sending on LPF/wlan0/whatever
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
ifup: failed to bring up wlan0