Re: Using the DRAWS hat with a Raspberry Pi 4 #draws #yaac #install #js8call #replacecompass

Basil Gunn
 

There is no upgrade path from draws_image13 which uses Debian stretch to
the latest Raspbian distribution which uses Debian buster.

This is because the transition of the DRAWS driver support to be in a
native Linux kernel. If you use a Raspbian image & add these lines at
bottom of your /boot/config.txt file:

dtoverlay=draws,alsaname=udrc
force_turbo=1

DRAWS drivers will be running & your DRAWS hat will be recognized.

There is no upgrade path from draws_image13 which uses Debian stretch to
the latest Raspbian distribution which used Debian buster.

There will be a new image posted sometime after the Pacific Northwest
Summer Gathering in the last part of September. In the mean time either
use draws_image13 and don't do an upgrade or use the latest Raspbian
image.

/Basil n7nix


Jonathan Visser via Groups.Io <n9tjx=yahoo.com@groups.io> writes:

I was able to successfully see the sound card when completing the steps that Mr. Hays gave. The issue I have is going onto the n7nix scripts. After running the ./app_config.sh core, I no longer see the UDRC sound card. This was discovered late last night and I have not had a chance to troubleshoot these issues. For those
having issues did you continue run that script before testing the sound card? I will try to troubleshoot soon and open a separate thread for the issues with the n7nix config script.

My steps I used.

1 Downloaded Buster 2019-07-10-raspbian-buster.img
2 Used Etcher on MAC to flash image to a SanDisk 32G Card
3 Booted SD in Raspberry Pi 3B+ DRAWS (received July 2019) hat installed - Power through 12V DRAWS hat
4 Boot resized file system and entered United States - and Chicago Time then set password and then selected WiFi.
5 enable ssh - to be able to cut and paste commands.
6 Changed Hostname (N9TJX-Draws)
7 Rebooted.
8 sudo apt update -
9 sudo apt upgrade.
10 Rebooted.
11 sudo apt install git build-essential vim and nmap (- git and build-essential were up to date installed vim and nmap)
12 git clone https://github.com/nwdigitalradio/n7nix.git
13 cd n7nix/config
14 sudo ./image_install.sh
15 sudo apt --fix-broken install
16 reboot - Current Location
17 cd n7nix/bin
18 ./sndcard.sh -

* udrc card number line: card 1: udrc [udrc], device 0: bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0 []
* udrc is sound card #1

* aplay -l

* **** List of PLAYBACK Hardware Devices ****
* card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
* Subdevices: 7/7
* Subdevice #0: subdevice #0
* Subdevice #1: subdevice #1
* Subdevice #2: subdevice #2
* Subdevice #3: subdevice #3
* Subdevice #4: subdevice #4
* Subdevice #5: subdevice #5
* Subdevice #6: subdevice #6
* card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
* Subdevices: 1/1
* Subdevice #0: subdevice #0
* card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
* Subdevices: 1/1
* Subdevice #0: subdevice #0
* card 1: udrc [udrc], device 0: bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0 []
* Subdevices: 1/1
* Subdevice #0: subdevice #0

* pi@N9TJX-Draws:~/n7nix/bin $ ./showudrc.sh
==== Sound Card ====
udrc card number line: card 1: udrc [udrc], device 0: bcm2835-i2s-tlv320aic32x4-hifi tlv320aic32x4-hifi-0 []
udrc is sound card #1
==== ALSA Controls for Radio Tansmit ====
LO Driver Gain L:[0.00dB] R:[0.00dB]
PCM L:[-20.00dB] R:[-20.00dB]
DAC Playback PT L:[P3] R:[P3]
LO Playback CM [Full Chip]
==== ALSA Controls for Radio Receive ====
ADC Level L:[0.00dB] R:[0.00dB]
IN1 L:[Off] R:[Off]
IN2 L:[Off] R:[Off]
==== Pi Ver ====
Pi 3 Model B+ 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: 0x0106
UUID: 5a56f3f8-8633-40e2-b6d6-7961de41e7f5
Vendor: NW Digital Radio

==== sys Ver ====
----- image version
2019 08 28 21:11:46 CDT: image_install.sh: image install script START
----- /proc/version
Linux version 4.19.66-v7+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1253 SMP Thu Aug 15 11:49:46 BST 2019

----- /etc/*version: 10.0

----- /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: N9TJX-Draws
Icon name: computer
Machine ID: 4b759e4c7f8047a8b474e800d1ab08a0
Boot ID: acd9bb3830084b90a194a153cc6e5ecf
Operating System: Raspbian GNU/Linux 10 (buster)
Kernel: Linux 4.19.66-v7+
Architecture: arm

---- modules
snd_soc_tlv320aic32x4_i2c 16384 9
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_pcm

Command 'apt-get install udrc-dkms' failed or was not run.

---- kernel
dpkg-query: no packages found matching udrc-dkms
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==================-============-============-=================================
ii raspberrypi-kernel 1.20190819-1 armhf Raspberry Pi bootloader

Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists and status is okay

---- syslog

---- dmesg

---- compass
Compass preference file not found: /etc/apt/preferences.d/compass
Compass apt sources list file not found: /etc/apt/sources.list.d/compass.list
---- compass package files
ls: cannot access '/var/lib/apt/lists/archive.compasslinux.org_*': No such file or directory

----- Dire Wolf DEVELOPMENT version 1.6 C (Aug 28 2019)

==== Filesystem ====
/dev/root 29G 3.5G 25G 13% /

==== 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

# 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.19 (revision 3.19)
● gpsd.service - GPS (Global Positioning System) Daemon
Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-08-28 21:54:19 CDT; 9h ago
Process: 516 ExecStart=/usr/local/sbin/gpsd $GPSD_OPTIONS $OPTIONS $DEVICES (code=exited, status=0/SUCCESS)
Main PID: 527 (gpsd)
Tasks: 3 (limit: 2200)
Memory: 1.2M
CGroup: /system.slice/gpsd.service
└─527 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0

Aug 28 21:54:19 N9TJX-Draws systemd[1]: Starting GPS (Global Positioning Sy…n...
Aug 28 21:54:19 N9TJX-Draws systemd[1]: Started GPS (Global Positioning Sys…mon.
Hint: Some lines were ellipsized, use -l to show in full.

---- chrony
crw-rw---- 1 root root 241, 0 Aug 28 21:54 /dev/pps0
crw------- 1 root root 241, 1 Aug 28 21:54 /dev/pps1
crw-rw---- 1 root dialout 239, 0 Aug 28 21:54 /dev/ttySC0
crw-rw---- 1 root dialout 239, 1 Aug 28 21:54 /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
^+ 159.203.158.197 2 10 377 35m -2762us[-2744us] +/- 58ms
^- satellite.gensonline.eu 2 10 377 781 -2266us[-2236us] +/- 94ms
^- vps6.ctyme.com 2 9 377 236 +7359us[+7359us] +/- 52ms
^* tara.castrovalva.org 2 10 377 584 +2140us[+2171us] +/- 31ms
-- chrony tracking
Reference ID : 2D4F0DCE (tara.castrovalva.org)
Stratum : 3
Ref time (UTC) : Thu Aug 29 12:04:19 2019
System time : 0.000001521 seconds slow of NTP time
Last offset : +0.000030475 seconds
RMS offset : 0.000163167 seconds
Frequency : 2.914 ppm slow
Residual freq : +0.000 ppm
Skew : 0.038 ppm
Root delay : 0.052745562 seconds
Root dispersion : 0.003564177 seconds
Update interval : 1038.6 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
159.203.158.197 55 24 523m -0.012 0.046 -2390us 973us
satellite.gensonline.eu 8 5 121m -0.055 0.571 -1448us 622us
vps6.ctyme.com 7 6 60m +0.864 3.569 +1530us 928us
tara.castrovalva.org 54 27 549m +0.023 0.064 +1736us 1326us

---- sensors
-rw-r--r-- 1 root root 171 Aug 28 21:22 /etc/sensors.d/draws
rpi_volt-isa-0000
Adapter: ISA adapter
in0: N/A

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

---- throttle
throttled=0x0
---- locale
Locale country codes consistent among WiFi cfg file, iw reg & X11: US
core_config.sh has been run 0 time(s)

* Draws manager

* This installed without any issues.

* cd n7nix/config
* sudo su
* ./app_config.sh core
* reboot

* At this point I cannot see the sound card.
* I have not had a chance to see diagnose this, as I found this late last night. It took me a little while to figure out that for me the issue is running the "./app_config.sh core” command
*

73’s
Jonathan N9TJX

On Aug 29, 2019, at 6:37 AM, Mitch Winkle <ab4mw@...> wrote:

Second that notion. There is a lot of what I consider unwanted fluff in this image since I don't care about packet radio. I would really like to have a clean image with only the necessary drivers and such and then I could install my own programs, and select the HF programs that I want to use. So perhaps a "minimal" image
that gets the DRAWS functioning properly on the RPi??

On 8/29/19 2:44 AM, Jonathan Magee wrote:

Hi Mike,
I can confirm that I am powering it via the 12 volt plug. When you write up your clean install, please could you specify which version of the buster image you use....

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