GPS not recognized


William McKeehan (KI4HDU)
 

I recently did a `apt upgrade` to my pi that has my draws hat on
it...since then, the GPS no longer "works" (i.e., the devices are not
present in `/dev`).

Is there an easy fix for this?

Output from showudrc.sh below (because that always seems to help with
troubleshooting).

Thanks!
William

==== Sound Card ====
udrc card number line: card 3: udrc [udrc], device 0:
bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0
[bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0]
udrc is sound card #3
==== ALSA Controls for Radio Transmit ====
LO Driver Gain L:[0.00dB] R:[0.00dB]
PCM L:[-2.00dB] R:[-2.00dB]
DAC Playback PT L:[P3] R:[P3]
LO Playback CM [Full Chip]
==== ALSA Controls for Radio Receive ====
ADC Level L:[-7.00dB] R:[-7.00dB]
IN1 L:[Off] R:[Off]
IN2 L:[10 kOhm] R:[10 kOhm]

==== Pi Ver ====
Pi 3 Model B, Rev 1.2, Mfg by Sony UK with WiFi
Hardware : BCM2835
Revision : a02082
Serial : 000000003d167355
Model : Raspberry Pi 3 Model B Rev 1.2

==== Pi Firmware VideoCore Ver ====
Feb 25 2021 12:12:09
Copyright (c) 2012 Broadcom
version 564e5f9b852b23a330b1764bcf0b2d022a20afd0 (clean) (release) (start)

==== Pi Firmware EEPROM Ver ====
unknown

==== Pi Firmware EEPROM Config ====


==== udrc Ver ====
Found a DRAWS

HAT ID EEPROM
Name: hat
Product: Digital Radio Amateur Work Station
Product ID: 0x0004
Product ver: 0x0204
UUID: 7b87530a-0975-43cc-bbc0-203350f4c6e9
Vendor: NW Digital Radio

==== sys Ver ====
----- image version
2020 08 05 09:41:31 EDT: config.sh: direwolf config script FINISHED
----- /proc/version
Linux version 5.10.17-v7+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8
(Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu)
2.34) #1403 SMP Mon Feb 22 11:29:51 GMT 2021

----- /etc/*version: 10.8

----- /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: ki4hdu-home
Icon name: computer
Machine ID: 4e0d71c3f1cc44fba354b56f96875c49
Boot ID: 3fba07d861aa4a1e9f1701fbfa25a40a
Operating System: Raspbian GNU/Linux 10 (buster)
Kernel: Linux 5.10.17-v7+
Architecture: arm
sd card id: 035344534c313647803b50245101098f

---- sound modules
snd_soc_tlv320aic32x4_i2c 16384 117
snd_soc_tlv320aic32x4 40960 1 snd_soc_tlv320aic32x4_i2c
regmap_i2c 16384 3 ti_ads1015,sc16is7xx,snd_soc_tlv320aic32x4_i2c
snd_soc_core 225280 4
snd_soc_simple_card_utils,snd_soc_bcm2835_i2s,snd_soc_tlv320aic32x4,snd_soc_simple_card
snd_pcm 106496 7
snd_compress,snd_usb_audio,snd_pcm_dmaengine,snd_soc_bcm2835_i2s,snd_soc_tlv320aic32x4,snd_bcm2835,snd_soc_core
snd 77824 33
snd_compress,snd_hwdep,snd_usb_audio,snd_timer,snd_rawmidi,snd_usbmidi_lib,snd_seq_device,snd_soc_tlv320aic32x4,snd_bcm2835,snd_soc_core,snd_pcm

---- kernel
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==================-============-============-=================================
ii raspberrypi-kernel 1.20210303-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 version 1.6

==== Filesystem ====
/dev/root 15G 13G 1.1G 93% /

==== boot config ====
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=51
dtoverlay=
dtoverlay=draws,alsaname=udrc
[pi4]
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
dtparam=audio=on

---- gpsd
/usr/sbin/gpsd
gpsd: 3.17 (revision 3.17)
● gpsd.service - GPS (Global Positioning System) Daemon
Loaded: loaded (/lib/systemd/system/gpsd.service; disabled; vendor
preset: enabled)
Active: active (running) since Mon 2021-03-29 12:37:47 EDT; 8min ago
Process: 1166 ExecStart=/usr/sbin/gpsd $GPSD_OPTIONS $DEVICES
(code=exited, status=0/SUCCESS)
Main PID: 1167 (gpsd)
Tasks: 2 (limit: 2062)
CGroup: /system.slice/gpsd.service
└─1167 /usr/sbin/gpsd -n /dev/ttySC0 /dev/pps0

Mar 29 12:37:47 ki4hdu-home systemd[1]: Starting GPS (Global
Positioning System) Daemon...
Mar 29 12:37:47 ki4hdu-home systemd[1]: Started GPS (Global
Positioning System) Daemon.
Mar 29 12:37:47 ki4hdu-home gpsd[1167]: gpsd:ERROR: SER: device open
of /dev/ttySC0 failed: No such file or directory - retrying read-only
Mar 29 12:37:47 ki4hdu-home gpsd[1167]: gpsd:ERROR: SER: read-only
device open of /dev/ttySC0 failed: No such file or directory
Mar 29 12:37:47 ki4hdu-home gpsd[1167]: gpsd:ERROR: initial GPS device
/dev/ttySC0 open failed
Mar 29 12:37:47 ki4hdu-home gpsd[1167]: gpsd:ERROR: SER: device open
of /dev/ttySC0 failed: No such file or directory - retrying read-only
Mar 29 12:37:47 ki4hdu-home gpsd[1167]: gpsd:ERROR: SER: read-only
device open of /dev/ttySC0 failed: No such file or directory
Mar 29 12:37:47 ki4hdu-home gpsd[1167]: gpsd:ERROR: /dev/ttySC0:
device activation failed.
Mar 29 12:37:47 ki4hdu-home gpsd[1167]: gpsd:ERROR: /dev/ttySC0:
activation failed, freeing device

---- chrony
ls: cannot access '/dev/ttySC*': No such file or directory
crw-rw---- 1 root root 240, 0 Mar 29 12:37 /dev/pps0
----- No chronyc program found in path

---- sensors
-rw-r--r-- 1 root root 330 Jul 17 2020 /etc/sensors.d/draws
iio_hwmon-isa-0000
Adapter: ISA adapter
in1: +2.37 V
in2: +0.58 V
in3: +0.00 V
in4: +0.00 V

cpu_thermal-virtual-0
Adapter: Virtual device
temp1: +47.8°C

rpi_volt-isa-0000
Adapter: ISA adapter
in0: N/A


---- throttle
temp=48.3'C
throttled=0x0

---- locale
Locale country codes do not match: WiFi: , iw: US, X11: US.
core_config.sh has been run 0 time(s)


Basil Gunn
 

Is there an easy fix for this?
RPi kernel upgrade problem
https://nw-digital-radio.groups.io/g/udrc/message/5475

Even though your TI tlv320aic32x4 codec was enumerated, the serial ports
on the i2c buss for the gps script failed.
Both the codec & i2c buss problems are intermittent, that is, on any
given boot the devices may not properly work.

The above link to my Feb groups.io post tells you every thing you need
to know in order to revert your kernel version and put a hold on it to
get things working again.

Using script buginfo.sh is a quicker way to get relevant information on
these 2 kernel problems.

To get the latest buginfo.sh script

cd
cd n7nix
git pull
cd config
./bin_refresh.sh

There are 3 patches recently submitted to fix these problem:

[PATCH 1/2] ASoC: tlv320aic32x4: Increase maximum register in regmap
[PATCH 2/2] ASoC: tlv320aic32x4: Register clocks before registering component
[PATCH] sc16is7xx: Defer probe if device read fails


William McKeehan (KI4HDU) <ki4hdu@gmail.com> writes:

I recently did a `apt upgrade` to my pi that has my draws hat on
it...since then, the GPS no longer "works" (i.e., the devices are not
present in `/dev`).

Is there an easy fix for this?


William McKeehan (KI4HDU)
 

I figured it was something like that, but my googling of the problem
did not lead me to that post, so thanks for the link.

After following the directions in that post, I still have an
issue....output of buginfo.sh below.

$ ./buginfo.sh
== Kernel version:
Linux ki4hdu-home 5.4.79-v7+ #1373 SMP Mon Nov 23 13:22:33 GMT 2020
armv7l GNU/Linux

== Firmware version:
Nov 18 2020 19:59:22
Copyright (c) 2012 Broadcom
version 8e01026adc5a87d80f8748fc6a4fecb9012393cc (clean) (release) (start)

== Codec driver check:
[ 9.649099] asoc-simple-card soc:sound: tlv320aic32x4-hifi <->
3f203000.i2s mapping ok

== DRAWS driver check:
udrc card number line: card 3: udrc [udrc], device 0:
bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0
[bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0]
udrc is sound card #3

== Boot 'fail' check:
[ 8.161416] brcmfmac mmc1:0001:1: Direct firmware load for
brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt failed with error -2

== GPS check:
Serial devices OK
gpsd OK

== Pi Version
Pi 3 Model B, Rev 1.2, Mfg by Sony UK with WiFi

== /boot/config
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=51
dtoverlay=
dtoverlay=draws,alsaname=udrc
[pi4]
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
dtparam=audio=on

On Mon, Mar 29, 2021 at 1:20 PM Basil Gunn <basil@pacabunga.com> wrote:


Is there an easy fix for this?
RPi kernel upgrade problem
https://nw-digital-radio.groups.io/g/udrc/message/5475

Even though your TI tlv320aic32x4 codec was enumerated, the serial ports
on the i2c buss for the gps script failed.
Both the codec & i2c buss problems are intermittent, that is, on any
given boot the devices may not properly work.

The above link to my Feb groups.io post tells you every thing you need
to know in order to revert your kernel version and put a hold on it to
get things working again.

Using script buginfo.sh is a quicker way to get relevant information on
these 2 kernel problems.

To get the latest buginfo.sh script

cd
cd n7nix
git pull
cd config
./bin_refresh.sh

There are 3 patches recently submitted to fix these problem:

[PATCH 1/2] ASoC: tlv320aic32x4: Increase maximum register in regmap
[PATCH 2/2] ASoC: tlv320aic32x4: Register clocks before registering component
[PATCH] sc16is7xx: Defer probe if device read fails


William McKeehan (KI4HDU) <ki4hdu@gmail.com> writes:

I recently did a `apt upgrade` to my pi that has my draws hat on
it...since then, the GPS no longer "works" (i.e., the devices are not
present in `/dev`).

Is there an easy fix for this?



--
William
KI4HDU


Dan Keizer
 

thanks for this info Basil - i also had missed this earlier and was trying to figure out what i was doing wrong.
Now, i'll work on trying to get my split vhf/hf operations running :-) i did log your prior emails on that subject to refer to.

73, Dan ve4drk


On Mon, Mar 29, 2021 at 12:20 PM Basil Gunn <basil@...> wrote:

> Is there an easy fix for this?

RPi kernel upgrade problem
https://nw-digital-radio.groups.io/g/udrc/message/5475

Even though your TI tlv320aic32x4 codec was enumerated, the serial ports
on the i2c buss for the gps script failed.
Both the codec & i2c buss problems are intermittent, that is, on any
given boot the devices may not properly work.

The above link to my Feb groups.io post tells you every thing you need
to know in order to revert your kernel version and put a hold on it to
get things working again.

Using script buginfo.sh is a quicker way to get relevant information on
these 2 kernel problems.

To get the latest buginfo.sh script

cd
cd n7nix
git pull
cd config
./bin_refresh.sh

There are 3 patches recently submitted to fix these problem:

[PATCH 1/2] ASoC: tlv320aic32x4: Increase maximum register in regmap
[PATCH 2/2] ASoC: tlv320aic32x4: Register clocks before registering component
[PATCH] sc16is7xx: Defer probe if device read fails


William McKeehan (KI4HDU) <ki4hdu@...> writes:

> I recently did a `apt upgrade` to my pi that has my draws hat on
> it...since then, the GPS no longer "works" (i.e., the devices are not
> present in `/dev`).
>
> Is there an easy fix for this?






Basil Gunn
 

After following the directions in that post, I still have an
issue....output of buginfo.sh below.
If by issue you are referring to:

" brcmfmac mmc1:0001:1:
Direct firmware load for brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt failed with error -2"

-2 means file not found. I see this error a lot for instance on my RPi 4
I get this.

"Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2"

It appears that file is missing or more likely wrong path or file name
anyway it seems benign.

From your buginfo.sh output I get:

Codec driver tlv320aic32x4-hifi loaded OK
DRAWS was enumerated
i2c serial devices are OK
gpsd is OK

and that's as good as it gets.


$ ./buginfo.sh
== Kernel version:
Linux ki4hdu-home 5.4.79-v7+ #1373 SMP Mon Nov 23 13:22:33 GMT 2020
armv7l GNU/Linux

== Firmware version:
Nov 18 2020 19:59:22
Copyright (c) 2012 Broadcom
version 8e01026adc5a87d80f8748fc6a4fecb9012393cc (clean) (release) (start)

== Codec driver check:
[ 9.649099] asoc-simple-card soc:sound: tlv320aic32x4-hifi <->
3f203000.i2s mapping ok

== DRAWS driver check:
udrc card number line: card 3: udrc [udrc], device 0:
bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0
[bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0]
udrc is sound card #3

== Boot 'fail' check:
[ 8.161416] brcmfmac mmc1:0001:1: Direct firmware load for
brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt failed with error -2

== GPS check:
Serial devices OK
gpsd OK

== Pi Version
Pi 3 Model B, Rev 1.2, Mfg by Sony UK with WiFi


William McKeehan (KI4HDU)
 

yes, that error is what I was referring to....looks like things are
working for me again.

Thanks for the support!

On Mon, Mar 29, 2021 at 4:10 PM Basil Gunn <basil@pacabunga.com> wrote:


After following the directions in that post, I still have an
issue....output of buginfo.sh below.
If by issue you are referring to:

" brcmfmac mmc1:0001:1:
Direct firmware load for brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt failed with error -2"

-2 means file not found. I see this error a lot for instance on my RPi 4
I get this.

"Direct firmware load for brcm/brcmfmac43455-sdio.raspberrypi,4-model-b.txt failed with error -2"

It appears that file is missing or more likely wrong path or file name
anyway it seems benign.

From your buginfo.sh output I get:

Codec driver tlv320aic32x4-hifi loaded OK
DRAWS was enumerated
i2c serial devices are OK
gpsd is OK

and that's as good as it gets.


$ ./buginfo.sh
== Kernel version:
Linux ki4hdu-home 5.4.79-v7+ #1373 SMP Mon Nov 23 13:22:33 GMT 2020
armv7l GNU/Linux

== Firmware version:
Nov 18 2020 19:59:22
Copyright (c) 2012 Broadcom
version 8e01026adc5a87d80f8748fc6a4fecb9012393cc (clean) (release) (start)

== Codec driver check:
[ 9.649099] asoc-simple-card soc:sound: tlv320aic32x4-hifi <->
3f203000.i2s mapping ok

== DRAWS driver check:
udrc card number line: card 3: udrc [udrc], device 0:
bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0
[bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0]
udrc is sound card #3

== Boot 'fail' check:
[ 8.161416] brcmfmac mmc1:0001:1: Direct firmware load for
brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt failed with error -2

== GPS check:
Serial devices OK
gpsd OK

== Pi Version
Pi 3 Model B, Rev 1.2, Mfg by Sony UK with WiFi



--
William
KI4HDU