Using the DRAWS hat with a Raspberry Pi 4 #draws #yaac #install #js8call #replacecompass
Mitch Winkle
This happened to me after it had been working. I re-imaged the SD card and it came back to life.
toggle quoted messageShow quoted text
In my case, I had used some of the scripts to update the HF programs and some other things. After that was finished, nothing worked any longer, so I ended up having to re-image.
On 8/28/19 11:16 AM, Frank Ivan via Groups.Io wrote:
Hi John,
|
|
I took the commands I provided, directly from my shell history One additional command I gave 1st was sudo apt install git build-essential vim nmap (before running the git clone and script) just to make sure git and build-essential were installed, I also use vim as my primary editor and nmap to help with network diagnostics. Basil (n7nix) is the builder and tester of images (beta13 et all). The sudo ./image_install.sh is part of that process. Yes, I used the latest Buster (as of a few days ago) and cloned n7nix tools directly from github. What does your current ~/n7nix/bin/showudrc.sh show?
On Wed, Aug 28, 2019 at 8:16 AM Frank Ivan via Groups.Io <k0fei=me.com@groups.io> wrote: Hi John, --
John D. Hays Kingston, WA K7VE
|
|
Frank Ivan
Hi John,
Decided to try again with new SD card and all. 1. Downloaded Buster 2019-07-10-raspbian-buster.img 2.Got new SanDisk Extreme 64 gig SD out of package. 3. Used Etcher to flash image. 4. Booted SD in Raspberry Pi 3B+ with original DRAWS hat installed - running from power through micro-USB port. 5. Boot resized file system and entered United States - and Denver then set password and then selected WiFi. 6. Rebooted. 7. Did sudo apt update - then sudo apt dist-upgrade. 8. Rebooted. 9. sudo apt install git build-essential vim and nmap - git and build-essential were up to date installed vim and nmap 10. git clone https://github.com/nwdigitalradio/n7nix.git 11. cd n7nix/config 12. sudo ./image_install.sh 13. sudo apt --fix-broken install 14 reboot 15. sudo apt update - sudo apt upgrade - nothing installed 16. cd n7nix/bin 17. ./sndcard.sh - No UDRC sound card found. 18 enable ssh to be able to cut and paste commands. 19 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 chk1: snd-soc-tlv320aic32x4-i2c.ko exists, Driver CONFLICT chk2: snd-soc-tlv320aic32x4.ko exists, Driver CONFLICT ==== Sound Card ==== No udrc sound card found. ==== 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: 0x0204 UUID: 2420cda1-931d-478c-80e5-d770f3346adb Vendor: NW Digital Radio
==== sys Ver ==== ----- image version 2019 08 28 11:40:22 MDT: 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: raspberrypi Icon name: computer Machine ID: 4b4422b92c324d0abed84ad9f45dc301 Boot ID: 58ad2de1744940d9bf6d256c87ee90be Operating System: Raspbian GNU/Linux 10 (buster) Kernel: Linux 4.19.66-v7+ Architecture: arm
---- modules
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 does NOT exist
Directory: /proc/device-tree/soc/i2c@7e804000 exists and status is disabled
---- 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 59G 3.5G 53G 7% /
==== boot config ====
# Enable audio (loads snd_bcm2835) dtparam=audio=on
[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
---- 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 12:09:50 MDT; 8min ago Main PID: 487 (gpsd) Tasks: 1 (limit: 2200) Memory: 828.0K CGroup: /system.slice/gpsd.service └─487 /usr/local/sbin/gpsd -n /dev/ttySC0 /dev/pps0
Aug 28 12:09:50 raspberrypi systemd[1]: Starting GPS (Global Positioning System) Daemon... Aug 28 12:09:50 raspberrypi systemd[1]: Started GPS (Global Positioning System) Daemon. Aug 28 12:09:50 raspberrypi gpsd[487]: gpsd:ERROR: SER: device open of /dev/ttySC0 failed: No such file or directory - retrying read-only Aug 28 12:09:50 raspberrypi gpsd[487]: gpsd:ERROR: SER: read-only device open of /dev/ttySC0 failed: No such file or directory Aug 28 12:09:50 raspberrypi gpsd[487]: gpsd:ERROR: initial GPS device /dev/ttySC0 open failed Aug 28 12:09:50 raspberrypi gpsd[487]: gpsd:ERROR: SER: device open of /dev/pps0 failed: No such file or directory - retrying read-only Aug 28 12:09:50 raspberrypi gpsd[487]: gpsd:ERROR: SER: read-only device open of /dev/pps0 failed: No such file or directory Aug 28 12:09:50 raspberrypi gpsd[487]: gpsd:ERROR: initial GPS device /dev/pps0 open failed
---- 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 ^* time.nullroutenetworks.c> 2 6 377 25 -2585us[-2695us] +/- 26ms ^+ 216.126.233.109 2 6 377 85 -2683us[-2784us] +/- 33ms ^+ vf2.bbnx.net 2 6 377 88 +4271us[+4170us] +/- 62ms ^- h184-60-28-49.mdtnwi.dsl> 2 6 377 89 +4790us[+4690us] +/- 68ms -- chrony tracking Reference ID : 1783A007 (time.nullroutenetworks.com) Stratum : 3 Ref time (UTC) : Wed Aug 28 18:18:05 2019 System time : 0.000431385 seconds fast of NTP time Last offset : -0.000109855 seconds RMS offset : 0.002575286 seconds Frequency : 5.132 ppm fast Residual freq : -0.043 ppm Skew : 3.747 ppm Root delay : 0.029145319 seconds Root dispersion : 0.007230671 seconds Update interval : 64.2 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 time.nullroutenetworks.c> 11 8 457 -0.555 4.369 -538us 457us 216.126.233.109 10 8 395 +0.003 7.370 -2334us 657us vf2.bbnx.net 10 5 394 +3.868 12.961 +5571us 1182us h184-60-28-49.mdtnwi.dsl> 10 5 393 -4.706 23.535 +4642us 1796us
---- sensors -rw-r--r-- 1 root root 171 Aug 28 11:50 /etc/sensors.d/draws rpi_volt-isa-0000 Adapter: ISA adapter in0: N/A
---- 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) Thats a blow by blow. Thanks Frank - K0FEI
|
|
The main difference I see, and may be the culprit is the sudo apt dist-upgrade The dist-upgrade may be introducing the conflict, I just do an upgrade.
On Wed, Aug 28, 2019 at 11:21 AM Frank Ivan via Groups.Io <k0fei=me.com@groups.io> wrote: Hi John, --
John D. Hays Kingston, WA K7VE
|
|
Corky Searls
I am not sure if this is still the case as the latest Buster image may include the updated kernel. When I did this on an R-Pi 3B+, I needed to run rpi-update to get the latest kernel and once that was done and the changes made to /boot/config.txt everything worked fine. Hope this helps, On 8/28/19 11:20 AM, Frank Ivan via
Groups.Io wrote:
Hi Joh -- Thanks and 73, -Corky, AF4PM
|
|
Mitch Winkle
Noticed kernel 4.19 in his output. When I updated my Beta13
using the supplied scripts the kernel upgraded to a 4.19 version
and then nothing worked. That may be a clue.
On 8/28/19 2:20 PM, Frank Ivan via
Groups.Io wrote:
Hi John,
|
|
Hi Corky, The current "buster" seems to work fine at my place with the N7NIX script. I find clean installs work best, but Pi 4/Buster are still leading edge.
On Wed, Aug 28, 2019 at 11:50 AM Corky Searls <af4pm@...> wrote:
--
John D. Hays Kingston, WA K7VE
|
|
Frank Ivan
Hi John,
I don't think the dist-upgrade makes any difference but I'll try again. Frank - K0FEI
|
|
Mike Watkins <mike.watkins@...>
I promise to do a clean install on Buster, no scripts, to documents what it is I did to get the sound card detected. Just to confirm with everyone that is chiming in right now that hasn't got it working, you are powering the device through the 12-volt plug, not through the raspberry Pi, correct? sorry to ask such a basic question but there's been so many emails going back and forth, best to be certain. The steps to get it to be recognized we're not complicated but there is something missing that I just can't remember right now. 73 Mike VE7WV
On Wed., Aug. 28, 2019, 11:21 Frank Ivan via Groups.Io, <k0fei=me.com@groups.io> wrote: Hi John,
|
|
Frank Ivan
Hi Mike,
I am powering through the Pi not the 12 volts, but I don't think that makes any difference as long as the power supply is not being maxed out. I have tried using the 12 volts in the past. Frank - K0FEI
|
|
Frank Ivan
Hi John,
I redid it using sudo apt upgrade - no difference. Maybe the best way forward, since you guys can get it to go, would be to just have you guys make a buster image ready to go for the Pi4 and Pi3 that we could download and flash to a SD. Thanks Frank - K0FEI
|
|
Jonathan Magee
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. I am using a Pi4 for all the steps. I initially was using the "Raspbian Buster with desktop and recommended software" version but to speed up the imaging of the sd card I tried ""Raspbian Buster with desktop" but with the smaller image I wasn't even seeing the built in sound device after completing all the steps. I will keep trying things as I am determined to get it working. 73 de Jonathan GI7KMC
On Wed, 28 Aug 2019 at 20:14, Mike Watkins via Groups.Io <mike.watkins=vectorradio.ca@groups.io> wrote:
|
|
Mitch Winkle
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??
toggle quoted messageShow quoted text
On 8/29/19 2:44 AM, Jonathan Magee wrote:
Hi Mike,
|
|
Edouard Lafargue
Why not just simply release a Debian "draws.deb" package that enables the DRAWS ? This is the standard way to do that sort of stuff on Debian/Raspbian and would avoid having to create full image instead of using the official Raspbian distribution...
Ed
|
|
Jonathan Visser
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.
toggle quoted messageShow quoted text
My steps I used.
73’s Jonathan N9TJX
|
|
Edouard Lafargue <ed@wizkers.io> writes:
Why not just simply release a Debian "draws.deb" package that enablesIn the latest kernels supported by Raspbian (4.19.58) DRAWS hat required drivers are in the main stream Linux kernel. You still need to load the overlay in /boot/config.txt but other than that, thanks to Anna, DRAWS is supported in the latest Linux kernel. As far as the DRAWS boot images are concerned they were provided as a convenience to provide a distribution that supports A LOT of commonly used amateur radio Linux software. It would be nice if all those programs were Debian packages but someone would have to step up & do that work. /Basil n7nix
|
|
There is no upgrade path from draws_image13 which uses Debian stretch to
toggle quoted messageShow quoted text
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
|
|
Mitch Winkle <ab4mw@radcommsoft.com> writes:
Second that notion. There is a lot of what I consider unwanted fluffUse the latest Raspbian image that supports Debian buster and add these lines in /boot/config.txt dtoverlay=draws,alsaname=udrc force_turbo=1 /Basil n7nix
|
|
Frank Ivan
Hi Jonathan,
Are you using the hat with the gps antenna on the side with the sockets or on the back of the card? Thanks Frank - K0FEI
|
|
I have had both recognized with the Buster version.
On Thu, Aug 29, 2019 at 8:41 AM Frank Ivan via Groups.Io <k0fei=me.com@groups.io> wrote: Hi Jonathan, --
John D. Hays Kingston, WA K7VE
|
|