Re: #DRAWS oddity, GPS and ALSA headaches #draws


Jack Spitznagel
 

Hi Basil,

Just when I thought everything was pretty stable, I started to get protests
from xastir that my GPS wasn't behaving. Dropped out of xastir and ran
gpsmon only receive a blank stare... Unfortunately did not check to see that
the alsa config was recognized... but for some 23:59EDT reason put a new SSD
with image 15 in and did a core config. (I do have the old microSD card
saved).

Well - things seemed to be OK as I followed the setup steps until I ran
alsa-show.sh and it gave a matrix of nothing entries, then gpsmon gave me a
blank stare.

I then ran showudrc.sh and got the following which seems to indicate that I
hosed the configuration somehow or the DRAWS card is behaving abnormally:
-----------------------------------------------------------------------
pi@kd4izdraws1:~/n7nix/config $ showudrc.sh
==== Sound Card ====
udrc card number line: card 1: udrc [udrc], device 0:
bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0
[bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0]
udrc is sound card #1
==== ALSA Controls for Radio Tansmit ====
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
LO Driver Gain L: R:
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
PCM L: R:
amixer: Mixer hw:1 load error: Remote I/O error
==== ALSA Controls for Radio Receive ====
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
ADC Level L: R:
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
amixer: Mixer hw:1 load error: Remote I/O error
IN1 L:[] R:[]
IN2 L:[] R:[]
==== Pi Ver ====
Pi 3 Model B+, Rev 1.3, Mfg by Sony UK
Has WiFi
==== udrc Ver ====
Found a DRAWS

HAT ID EEPROM
Name: hat
Product: Digital Radio Amateur Work Station
Product ID: 0x0004
Product ver: 0x0405
UUID: 6170bac5-b90e-462b-8dec-8f564d9cbbe5
Vendor: NW Digital Radio

==== sys Ver ====
----- image version
2020 01 23 09:25:01 PST: SD image version: nwdr15
----- /proc/version
Linux version 4.19.97-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG
crosstool-ng-1.22.0-88-g8460611)) #1294 SMP Thu Jan 30 13:15:58 GMT 2020

----- /etc/*version: 10.3

----- /etc/*release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

----- lsb_release
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster

---- systemd
Static hostname: kd4izdraws1
Icon name: computer
Machine ID: 27ac1f0c20904cb7a960920e966db545
Boot ID: 5c158adeda3043cda9402f8dc718f6d3
Operating System: Raspbian GNU/Linux 10 (buster)
Kernel: Linux 4.19.97-v7+
Architecture: arm

---- modules
snd_soc_tlv320aic32x4_i2c 16384 48
snd_soc_tlv320aic32x4 40960 1 snd_soc_tlv320aic32x4_i2c
snd_soc_core 192512 4
snd_soc_simple_card_utils,snd_soc_bcm2835_i2s,snd_soc_tlv320aic32x4,snd_soc_
simple_card
snd_pcm 102400 5
snd_pcm_dmaengine,snd_soc_bcm2835_i2s,snd_soc_tlv320aic32x4,snd_bcm2835,snd_
soc_core
snd 73728 12
snd_compress,snd_timer,snd_soc_tlv320aic32x4,snd_bcm2835,snd_soc_core,snd_pc
m

---- kernel
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==================-============-============-===========================
======
ii raspberrypi-kernel 1.20200212-1 armhf Raspberry Pi bootloader

---- Codec drivers
Found: snd-soc-tlv320aic32x4-i2c.ko, OK
Found: snd-soc-tlv320aic32x4.ko, OK
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists and
status is okay

---- syslog

---- dmesg


----- Dire Wolf DEVELOPMENT version 1.6 D (Jan 6 2020)

==== Filesystem ====
/dev/root 29G 5.3G 22G 20% /

==== boot config ====
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d

# Flush all overlays, ie. deprecated overlays loaded from eeprom
dtoverlay=
# enable udrc/draws if no eeprom
dtoverlay=draws,alsaname=udrc
force_turbo=1
# Enable audio (loads snd_bcm2835)
dtparam=audio=on

---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.20 (revision 3.20)
● gpsd.service - GPS (Global Positioning System) Daemon
Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset:
enabled)
Active: active (running) since Tue 2020-03-31 16:36:26 EDT; 4min 41s ago
Process: 509 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS
$DEVICES (code=exited, status=0/SUCCESS)
Main PID: 511 (gpsd)
Tasks: 1 (limit: 2200)
Memory: 1.1M
CGroup: /system.slice/gpsd.service
└─511 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0

Mar 31 16:36:26 kd4izdraws1 systemd[1]: Starting GPS (Global Positioning Sy
…n...
Mar 31 16:36:26 kd4izdraws1 systemd[1]: Started GPS (Global Positioning Sys
…mon.
Hint: Some lines were ellipsized, use -l to show in full.

---- chrony
crw------- 1 root root 241, 0 Mar 31 16:36 /dev/pps0
crw-rw---- 1 root dialout 239, 0 Mar 31 16:36 /dev/ttySC0
crw-rw---- 1 root dialout 239, 1 Mar 31 16:36 /dev/ttySC1
-- chrony sources
210 Number of sources = 6
MS Name/IP address Stratum Poll Reach LastRx Last sample

============================================================================
===
#? GPS 0 3 0 - +0ns[ +0ns] +/-
0ns
#? PPS 0 3 0 - +0ns[ +0ns] +/-
0ns
^- darwin.kenyonralph.com 2 6 77 107 -2007us[-3418us] +/-
79ms
^- atl1.ntp7.mattnordhoff.n> 2 6 177 43 -1306us[-1697us] +/-
54ms
^* ellone.fdisk.io 2 6 177 41 -249us[ -641us] +/-
14ms
^- fin.mattnordhoff.net 2 6 177 42 +270us[ -122us] +/-
50ms
-- chrony tracking
Reference ID : 30FED930 (ellone.fdisk.io)
Stratum : 3
Ref time (UTC) : Tue Mar 31 20:40:26 2020
System time : 0.000266782 seconds slow of NTP time
Last offset : -0.000392392 seconds
RMS offset : 0.001072069 seconds
Frequency : 2.079 ppm fast
Residual freq : -2.085 ppm
Skew : 17.376 ppm
Root delay : 0.027547063 seconds
Root dispersion : 0.001782908 seconds
Update interval : 64.9 seconds
Leap status : Normal
-- chrony sourcestats
210 Number of sources = 6
Name/IP Address NP NR Span Frequency Freq Skew Offset Std
Dev
============================================================================
==
GPS 0 0 0 +0.000 2000.000 +0ns
4000ms
PPS 0 0 0 +0.000 2000.000 +0ns
4000ms
darwin.kenyonralph.com 6 4 136 +3.546 18.414 -1660us
337us
atl1.ntp7.mattnordhoff.n> 7 3 200 +0.169 7.690 -1323us
211us
ellone.fdisk.io 7 5 201 -2.085 21.671 -87us
586us
fin.mattnordhoff.net 7 4 201 -0.646 19.456 +210us
437us

---- sensors
-rw-r--r-- 1 root root 171 Sep 19 2019 /etc/sensors.d/draws
rpi_volt-isa-0000
Adapter: ISA adapter
in0: N/A ALARM (LCRIT)

ads1015-i2c-1-48
Adapter: bcm2835 I2C adapter
+12V: +0.00 V
in5: +0.53 V
User ADC 1: +0.01 V
User ADC 2: +0.00 V


---- throttle
temp=69.3'C
throttled=0xd0005

---- locale
Locale country codes consistent among WiFi cfg file, iw reg & X11: US
core_config.sh has been run 1 time(s)
pi@kd4izdraws1:~/n7nix/config $
-----------------------------------------------------------------------

I've tried my best to follow the output above to troubleshoot, but have a
bit of difficulty with what I see other than the obvious.

SO:
Should I wait for image 16, try another install then?
Do you see something that got flipped the wrong way by me when running
./app_config.sh core?

Join udrc@nw-digital-radio.groups.io to automatically receive all group messages.