Re: Beta12 release announcement


Bjorn Pehrson
 

pi@draws:~ $ journalctl -xe
Apr 18 23:17:15 draws direwolf[1909]: Audio device for both receive and transmit
Apr 18 23:17:15 draws direwolf[1909]: Could not open audio device default for in
Apr 18 23:17:15 draws direwolf[1909]: No such file or directory
Apr 18 23:17:15 draws direwolf[1909]: Pointless to continue without audio device
Apr 18 23:17:15 draws systemd[1]: Starting AX.25 device...
-- Subject: Unit ax25dev.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit ax25dev.service has begun starting up.
Apr 18 23:17:15 draws bash[1916]: ax25-upd: Start Port udr0 with device /tmp/kis
Apr 18 23:17:15 draws bash[1916]: Direwolf serial port NOT FOUND
Apr 18 23:17:15 draws systemd[1]: ax25dev.service: Main process exited, code=exi
Apr 18 23:17:15 draws systemd[1]: Failed to start AX.25 device.
-- Subject: Unit ax25dev.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit ax25dev.service has failed.
--
-- The result is failed.
Apr 18 23:17:15 draws systemd[1]: ax25dev.service: Unit entered failed state.
Apr 18 23:17:15 draws systemd[1]: ax25dev.service: Failed with result 'exit-code
Apr 18 23:17:20 draws systemd[1]: direwolf.service: Main process exited, code=ex
Apr 18 23:17:20 draws systemd[1]: direwolf.service: Unit entered failed state.
Apr 18 23:17:20 draws systemd[1]: direwolf.service: Failed with result 'exit-cod
Apr 18 23:18:46 draws systemd[1]: sys-subsystem-net-devices-ax0.device: Job sys-
Apr 18 23:18:46 draws systemd[1]: Timed out waiting for device sys-subsystem-net
-- Subject: Unit sys-subsystem-net-devices-ax0.device has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit sys-subsystem-net-devices-ax0.device has failed.
--
-- The result is timeout.
Apr 18 23:18:46 draws systemd[1]: Dependency failed for AX.25 mheard daemon.
-- Subject: Unit ax25-mheardd.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit ax25-mheardd.service has failed.
--
-- The result is dependency.
Apr 18 23:18:46 draws systemd[1]: ax25-mheardd.service: Job ax25-mheardd.service
Apr 18 23:18:46 draws systemd[1]: sys-subsystem-net-devices-ax0.device: Job sys-
Apr 18 23:18:46 draws systemd[1]: Started General purpose AX.25 daemon.
-- Subject: Unit ax25d.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit ax25d.service has finished starting up.
--
-- The start-up result is done.
Apr 18 23:18:46 draws ax25d[2221]: ax25d: no AX.25 port data configured
Apr 18 23:18:46 draws sudo[1896]: pam_unix(sudo:session): session closed for use
Apr 18 23:18:46 draws systemd[1]: ax25d.service: Main process exited, code=exite
Apr 18 23:18:46 draws systemd[1]: ax25d.service: Unit entered failed state.
Apr 18 23:18:46 draws systemd[1]: ax25d.service: Failed with result 'exit-code'.
lines 1923-1980/1980 (END)

On 2019-04-18 23:31, Basil Gunn wrote:
Please send me the console output of:
journalctl --no-page -u ax25dev.service

/Basil

Bjorn Pehrson <bjorn@sa0bxi.se> writes:

If I try to start it (it is not in the path), I am back to starting the
mheard service not terminating

/home/pi/n7nix/systemd/bin/ax25-start
pi@draws:~ $ sudo /home/pi/n7nix/systemd/bin/ax25-start
Starting: direwolf.service
Starting: ax25dev.path
Starting: ax25dev.service
Job for ax25dev.service failed because the control process exited with
error code.
See "systemctl status ax25dev.service" and "journalctl -xe" for details.
Problem starting ax25dev.service
Starting: ax25-mheardd.service
.......


On 2019-04-18 23:15, Bjorn Pehrson wrote:
Hm, there seems to be something more

Now the card is there but ax25 is not running

pi@draws:~ $ 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 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: udrc [udrc], device 0: Universal Digital Radio Controller
tlv320aic32x4-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@draws:~ $ ax25-status
Status for direwolf.service: NOT RUNNING and ENABLED
Status for ax25dev.service: NOT RUNNING and ENABLED
Status for ax25dev.path: RUNNING and ENABLED
Status for ax25-mheardd.service: NOT RUNNING and ENABLED
Status for ax25d.service: NOT RUNNING and ENABLED
AX.25 device: ax0 not configured
AX.25 device: ax1 not configured
pi@draws:~ $


On 2019-04-18 23:05, Bjorn Pehrson wrote:
Seems to have made the trick..., thanks a lot

pi@draws:~/n7nix/bin $ ./hwtest.sh

=== Verify AudioSense-Pi drivers are not loaded.
AudioSense drivers NOT loaded.

=== Verify Sound Card is found
**** 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 ALSA [bcm2835
IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: udrc [udrc], device 0: Universal Digital Radio Controller
tlv320aic32x4-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0

udrc card number line: card 1: udrc [udrc], device 0: Universal
Digital Radio Controller tlv320aic32x4-hifi-0 []
udrc is sound card #1

=== Verify tlv320aic driver load
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists
and status is okay
pi@draws:~/n7nix/bin $

-------------

On 2019-04-18 22:54, Basil Gunn wrote:
Thank you Bjorn!! Thanks for providing all your console output!

I have never been able to replicate this symptom on any of my RPi's.
If you can do one more thing for me I will buy you a beverage of your
choice.
Edit /boot/config.txt
Move the on-board sound device enable statement to the very end of the
file and UNcomment it.
ie. put this statement at end of file.
dtparam=audio=on

Reboot and show me the output of hwtest.sh again.

Thanks,
/Basil

Bjorn Pehrson <bjorn@sa0bxi.se> writes:

On 2019-04-18 22:19, Basil Gunn wrote:
I am trying to understand why the Draws udrc driver is not loading.
Could you please get the hwtest.sh script and show me the results.
Specifically:

cd
cd n7nix
git pull
cd bin
./hwtest.sh
---------

exit
pi@draws:~/bin $ cd
pi@draws:~ $ cd n7nix/
pi@draws:~/n7nix $ git pull
remote: Enumerating objects: 39, done.
remote: Counting objects: 100% (39/39), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 31 (delta 22), reused 27 (delta 18), pack-reused 0
Unpacking objects: 100% (31/31), done.
From https://github.com/nwdigitalradio/n7nix
64cab2c..c799c3c master -> origin/master
Updating 64cab2c..c799c3c
Fast-forward
ChangeLog | 14 ++++++++++-
bin/hwtest.sh | 60
+++++++++++++++++++++++++++++++++++++++++++++
bin/mgr-stop.sh | 2 +-
bin/showudrc.sh | 5 +++-
docs/DRAWS_CONFIG.md | 7 +++++-
docs/DRAWS_IMAGE_UPDATER.md | 25 ++++++++++++++++---
6 files changed, 106 insertions(+), 7 deletions(-)
create mode 100755 bin/hwtest.sh
pi@draws:~/n7nix $ cd bin
pi@draws:~/n7nix/bin $ ./hwtest.sh

=== Verify AudioSense-Pi drivers are not loaded.
AudioSense drivers NOT loaded.

=== Verify Sound Card is found
**** 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 ALSA [bcm2835
IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0

No udrc sound card found.

=== Verify tlv320aic driver load

Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 does
NOT exist

Directory: /proc/device-tree/soc/i2c@7e804000 exists and status is
disabled
pi@draws:~/n7nix/bin $
--------------------

# Then edit /boot/config.txt & comment this line
# change
dtparam=audio=on
# to
#dtparam=audio=on

Now reboot & run n7nix/bin/hwtest.sh
----------------------

pi@draws:~/n7nix/bin $ sudo vi /boot/config.txt
pi@draws:~/n7nix/bin $ reboot
Failed to set wall message, ignoring: Interactive authentication
required.
Failed to reboot system via logind: Interactive authentication
required.
Failed to open /dev/initctl: Permission denied
Failed to talk to init daemon.
pi@draws:~/n7nix/bin $ sudo reboot
Connection to 192.168.1.236 closed by remote host.
Connection to 192.168.1.236 closed.
(base) bjorn@bpX260:~/draws$ ssh pi@192.168.1.236
pi@192.168.1.236's password:
Linux draws 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l

The programs included with the Debian GNU/Linux system are free
software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Apr 18 22:00:57 2019 from 192.168.1.148
pi@draws:~ $ cd n7nix/bin/
pi@draws:~/n7nix/bin $ ./hwtest.sh

=== Verify AudioSense-Pi drivers are not loaded.
AudioSense drivers NOT loaded.

=== Verify Sound Card is found
**** List of PLAYBACK Hardware Devices ****
card 0: udrc [udrc], device 0: Universal Digital Radio Controller
tlv320aic32x4-hifi-0 []
Subdevices: 0/1
Subdevice #0: subdevice #0

udrc card number line: card 0: udrc [udrc], device 0: Universal
Digital
Radio Controller tlv320aic32x4-hifi-0 []
udrc is sound card #0

=== Verify tlv320aic driver load
Directory: /proc/device-tree/soc/i2c@7e804000/tlv320aic32x4@18 exists
and status is okay
pi@draws:~/n7nix/bin $

--------------------

Thanks,

/Basil


Bjorn Pehrson <bjorn@sa0bxi.se> writes:

Hi Basil,

I seem to have exactly te same problem with beta12 and my answers to
your questions are

1: no, i only get

pi@draws:~ $ 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 ALSA [bcm2835
IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@draws:~ $

2.

pi@draws:~/bin $ cd
pi@draws:~ $ cd bin
pi@draws:~/bin $ sudo su
root@draws:/home/pi/bin# ./ax25-start
Starting: direwolf.service
Starting: ax25dev.path
Starting: ax25dev.service
Job for ax25dev.service failed because the control process exited
with
error code.
See "systemctl status ax25dev.service" and "journalctl -xe" for
details.
Problem starting ax25dev.service
Starting: ax25-mheardd.service

..hanging, not terminating

On 2019-04-18 19:40, Basil Gunn wrote:
Jack Spitznagel <kd4iz@frawg.org> writes:

Hi Basil.

Thanks for looking at that file. This is exactly what was
puzzling me: Did
exactly what you suggested previously, rebooted, and when I
tried to make
sure the AX25 stuff was being loaded, it turned out not. At
that point (as
root) I tried to "./ax25-start" and it failed during the run
with error (I
think I sent you that)
I need to learn what your problem is so please do not do another
install.

I do not have the console output of ax25-start after your reboot &
successful udrc driver enumeration.

1. run aplay -l
- do you see the udrc enumerated?
2.
cd
cd bin
sudo su
./ax25-start
./ax25-status
./ax25-status -d
# Send me the console output.

/Basil

. Since I have previous BETAs running on both boxes,
we know nothing is wrong at the hardware level (except maybe my
"organic
CPU"). Lets let my past reports "go away" and proceed with the
following:


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