#draws #draws


Brian Badger
 

Fresh DRAWS install from nwdr20.img is not bringing up the audio device, gps or sensors.  I reviewed the docs and followed them exactly.  DRAWS still comes up with early nwdr release.

pi@raspberrypi:~ $ chk_conflict.sh 
 
Check udrc driver conflict for Kernel release: 5.10.63-v7+
 
=== Loaded module check
 
=== Sound card check
aplay: device_list:272: no soundcards found...
udrc driver not loaded.
pi@raspberrypi:~ $ chk_bootcfg.sh 
 
Verify IF dtoverlay= is set properly
  dtoverlay currently set to: #dtoverlay=i2c-gpio,i2c_gpio_sda=0,i2c_gpio_scl=1
  dtoverlay for DRAWS OK
 
Verify IF dtparam=audio is set properly
  Last line in /boot/config.txt OK
pi@raspberrypi:~ $ showudrc.sh
aplay: device_list:272: no soundcards found...
==== Sound Card ====
No udrc sound card found.
==== 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: 0x0204
UUID:        01582c3b-533f-46b1-ac7a-a819821a0cf9
Vendor:      NW Digital Radio
 
==== sys Ver ====
----- image version
2021 10 14 10:55:56 PDT: SD image version: nwdr20
----- /proc/version
Linux version 5.10.63-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) #1459 SMP Wed Oct 6 16:41:10 BST 2021
 
----- /etc/*version: 10.11
 
----- /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: raspberrypi
         Icon name: computer
        Machine ID: 27ac1f0c20904cb7a960920e966db545
           Boot ID: 7cb8db828e0f4d0da4e96aa46dba1ae5
  Operating System: Raspbian GNU/Linux 10 (buster)
            Kernel: Linux 5.10.63-v7+
      Architecture: arm
 
---- modules
 
---- kernel
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name               Version               Architecture Description
+++-==================-=====================-============-=================================
ii  raspberrypi-kernel 1:1.20211007-2~buster armhf        Raspberry Pi bootloader
 
---- Codec drivers
 
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 does NOT exist
 
Directory: /proc/device-tree/soc/i2c@7e804000 exists and status is okay
 
---- syslog
 
---- dmesg
 
 
----- Dire Wolf DEVELOPMENT version 1.7 A (Sep 30 2021)
 
==== Filesystem ====
/dev/root        59G  5.7G   51G  10% /
 
==== boot config ====
max_framebuffers=2
 
[all]
#dtoverlay=vc4-fkms-v3d
 
#dtparam=i2c_arm=on
#dtparam=i2c1=on
# Flush all overlays, ie. deprecated overlays loaded from eeprom
dtoverlay=
# enable udrc/draws if no eeprom
dtoverlay=draws,alsaname=udrc
#dtoverlay=i2c-gpio,i2c_gpio_sda=0,i2c_gpio_scl=1
force_turbo=1
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
 
---- gpsd
/usr/local/sbin/gpsd
gpsd: 3.23.2~dev (revision release-3.23.1-23-g8df489c0c)
● gpsd.service - GPS (Global Positioning System) Daemon
   Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2021-10-21 14:43:01 PDT; 18min ago
  Process: 533 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
 Main PID: 543 (gpsd)
    Tasks: 1 (limit: 2059)
   CGroup: /system.slice/gpsd.service
           └─543 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
 
Oct 21 14:43:01 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon...
Oct 21 14:43:01 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon.
Oct 21 14:43:01 raspberrypi gpsd[543]: gpsd:ERROR: SER: stat(/dev/ttySC0) failed: No such file or directory(2)
Oct 21 14:43:01 raspberrypi gpsd[543]: gpsd:ERROR: initial GPS device /dev/ttySC0 open failed
Oct 21 14:43:01 raspberrypi gpsd[543]: gpsd:ERROR: SER: stat(/dev/pps0) failed: No such file or directory(2)
Oct 21 14:43:01 raspberrypi gpsd[543]: gpsd:ERROR: initial GPS device /dev/pps0 open failed
Oct 21 14:43:06 raspberrypi gpsd[543]: gpsd:ERROR: SER: stat(/dev/ttySC0) failed: No such file or directory(2)
Oct 21 14:43:06 raspberrypi gpsd[543]: gpsd:ERROR: /dev/ttySC0: device activation failed, freeing device.
Oct 21 14:43:06 raspberrypi gpsd[543]: gpsd:ERROR: SER: stat(/dev/pps0) failed: No such file or directory(2)
Oct 21 14:43:06 raspberrypi gpsd[543]: gpsd:ERROR: /dev/pps0: device activation failed, freeing device.
 
---- chrony
ls: cannot access '/dev/pps*': No such file or directory
ls: cannot access '/dev/ttySC*': No such file or directory
-- 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
^- clock.nyc.he.net              2   6   377    53   -919us[ -919us] +/-   64ms
^* time.cloudflare.com           3   7   377   116  +1453us[+1556us] +/-   29ms
^? 2a01:4f8:120:710b::123        0   6     0     -     +0ns[   +0ns] +/-    0ns
^+ vps6.ctyme.com                2   7   377    49   -234us[ -234us] +/-   88ms
-- chrony tracking
Reference ID    : A29FC87B (time.cloudflare.com)
Stratum         : 4
Ref time (UTC)  : Thu Oct 21 21:59:54 2021
System time     : 0.000132399 seconds slow of NTP time
Last offset     : +0.000103026 seconds
RMS offset      : 0.000598925 seconds
Frequency       : 4.414 ppm fast
Residual freq   : +0.011 ppm
Skew            : 1.088 ppm
Root delay      : 0.055559251 seconds
Root dispersion : 0.001721972 seconds
Update interval : 65.3 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
clock.nyc.he.net           11   6   969     +2.228      8.135  -1070us  1622us
time.cloudflare.com        17   8   976     +0.029      1.081   +524us   277us
2a01:4f8:120:710b::123      0   0     0     +0.000   2000.000     +0ns  4000ms
vps6.ctyme.com             18   8  1043     -0.135      2.717  -1728us  1051us
 
---- sensors
-rw-r--r-- 1 root root 171 Sep 19  2019 /etc/sensors.d/draws
cpu_thermal-virtual-0
Adapter: Virtual device
temp1:        +55.8°C  
 
rpi_volt-isa-0000
Adapter: ISA adapter
in0:              N/A  
 
 
---- throttle
temp=56.4'C
throttled=0x0
 
---- locale
Locale country codes consistent among WiFi cfg file, iw reg & X11: US
core_config.sh has been run 0 time(s)
 



Basil Gunn
 

DRAWS still comes up with early nwdr release.
Please provide console output to support this statement.
from the showudrc.sh script nwdr20 is what is running:
----- image version
2021 10 14 10:55:56 PDT: SD image version: nwdr20
** The chk_conflict.sh script should NOT be run with the NWDR20 image**

This script was meant solve a problem with the 4.14 kernel in Q1 of 2019.
Running the chk_conflict.sh script will cause the DRAWS codec to NOT be
enumerated. I will make sure it is deleted from the image.

IF you did run the chk_conflict.sh script do the following to fix:

cd
cd tmp
sudo su
cp *.ko /lib/modules/$(uname -r)/kernel/sound/soc/codecs/

# Reboot.

To verify after reboot run:
aplay -l

# look for a udrc line.

From an initial boot of a new image you should follow the instructions
here:

https://nw-digital-radio.groups.io/g/udrc/wiki/8921

Summary of initial config on first boot of a new image:

# run aplay -l to make sure the DRAWS codec is enumerated.
aplay -l

# run the init.cfg script
cd
cd n7nix/config
./init.cfg

# When this script completes it reboots the RPi.
# Follow the remainder of the steps from the above wiki link.


Brian Badger <brian@badgerfamily.com> writes:

Fresh DRAWS install from nwdr20.img is not bringing up the audio
device, gps or sensors.
Running the chk_conflict.sh script deleted the required driver modules

I reviewed the docs and followed them exactly.
Which docs? You should follow the "Getting Started Wiki" here:
https://nw-digital-radio.groups.io/g/udrc/wiki/8921

DRAWS still comes up with early nwdr release.
I am not seeing where you are getting this from.


Basil Gunn
 

CORRECTION:

https://nw-digital-radio.groups.io/g/udrc/wiki/8921

Summary of initial config on first boot of a new image:

# run aplay -l to make sure the DRAWS codec is enumerated.
aplay -l

# run the initcfg.sh script
cd
cd n7nix/config
./initcfg.sh

# When this script completes it reboots the RPi.
# Follow the remainder of the steps from the above wiki link.


Basil Gunn <basil@pacabunga.com> writes:

https://nw-digital-radio.groups.io/g/udrc/wiki/8921

Summary of initial config on first boot of a new image:

# run aplay -l to make sure the DRAWS codec is enumerated.
aplay -l

# run the init.cfg script
cd
cd n7nix/config
./init.cfg

# When this script completes it reboots the RPi.
# Follow the remainder of the steps from the above wiki link.