Hello,
First of all sorry for my English, I do not have my native language: D
It’s been more days that I’m stuck with a problem with SPI from my raspberry Pi 3,
I explain what it was, sent music through the I2S port to a DSP card that processes sound.
And I have a command in SPI that modifies the parameters of my DPS and the problem comes from here, because the port is activated.
And here are the logs I have when launching my App
20.02.19 15:44:15 (+0100) main hostname: No address associated with hostname
20.02.19 15:44:15 (+0100) main xauth: file /root/.Xauthority does not exist
20.02.19 15:44:15 (+0100) main xauth: (stdin):1: bad display name "0c9c5ac:0" in "add" command
20.02.19 15:44:15 (+0100) main
20.02.19 15:44:15 (+0100) main
20.02.19 15:44:15 (+0100) main X.Org X Server 1.19.2
20.02.19 15:44:15 (+0100) main Release Date: 2017-03-02
20.02.19 15:44:15 (+0100) main X Protocol Version 11, Revision 0
20.02.19 15:44:15 (+0100) main Build Operating System: Linux 4.9.41-v7+ armv7l Raspbian
20.02.19 15:44:15 (+0100) main Current Operating System: Linux 0c9c5ac 4.14.79 #1 SMP Mon Feb 4 20:46:56 UTC 2019 armv7l
20.02.19 15:44:15 (+0100) main Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=800 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=tty1 console=ttyS0,115200 rootfstype=ext4 rootwait root=PARTUUID=9ac57703-02 rootwait
20.02.19 15:44:15 (+0100) main Build Date: 18 October 2017 04:55:30PM
20.02.19 15:44:15 (+0100) main xorg-server 2:1.19.2-1+rpt1+deb9u2 (https://www.debian.org/support)
20.02.19 15:44:15 (+0100) main Current version of pixman: 0.34.0
20.02.19 15:44:15 (+0100) main Before reporting problems, check http://wiki.x.org
20.02.19 15:44:15 (+0100) main to make sure that you have the latest version.
20.02.19 15:44:15 (+0100) main Markers: (--) probed, (**) from config file, (==) default setting,
20.02.19 15:44:15 (+0100) main (++) from command line, (!!) notice, (II) informational,
20.02.19 15:44:15 (+0100) main (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
20.02.19 15:44:15 (+0100) main (==) Log file: "/var/log/Xorg.0.log", Time: Wed Feb 20 14:44:15 2019
20.02.19 15:44:15 (+0100) main (==) Using system config directory "/usr/share/X11/xorg.conf.d"
20.02.19 15:44:20 (+0100) main [44:0220/144420.075526:ERROR:bus.cc(395)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
20.02.19 15:44:20 (+0100) main [ { sendBuffer: <Buffer 01 02 03>,
20.02.19 15:44:20 (+0100) main receiveBuffer: <Buffer 00 00 00>,
20.02.19 15:44:20 (+0100) main byteLength: 3,
20.02.19 15:44:20 (+0100) main speedHz: 20000 } ]
20.02.19 15:44:21 (+0100) main [44:0220/144421.100965:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
20.02.19 15:44:21 (+0100) main [44:0220/144421.103563:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
20.02.19 15:44:21 (+0100) main [44:0220/144421.106622:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
20.02.19 15:44:21 (+0100) main [44:0220/144421.111862:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
20.02.19 15:44:21 (+0100) main [44:0220/144421.113641:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.
20.02.19 15:44:21 (+0100) main [44:0220/144421.923391:INFO:CONSOLE(188)] "%cElectron Security Warning (Insecure Content-Security-Policy)", source: /usr/src/app/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js (188)
And here is my DockerFile
# Install other apt deps
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
build-essential \
xserver-xorg-core \
xorg \
dbus \
pigpio \
libxcb-image0 \
libdbus-1-dev \
libasound2 \
libnss3 \
libgconf-2-4 \
libxss1 \
libgtk2.0-0 \
libxtst6 \
bluez \
python \
libgtk-3-0 \
libdbus-1-3 \
libexpat-dev
RUN echo "#!/bin/bash" > /etc/X11/xinit/xserverrc \
&& echo "" >> /etc/X11/xinit/xserverrc \
&& echo 'exec /usr/bin/X -s 0 dpms -nocursor -nolisten tcp "$@"' >> /etc/X11/xinit/xserverrc
# Move to app dir
WORKDIR /usr/src/app
ENV DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket
ENV UDEV=1
# Move package.json to filesystem
COPY ./app/package.json ./
# Install npm modules for the application & clear cache npm
RUN JOBS=MAX npm install --unsafe-perm --production && npm cache clean --force && \
rm -rf /tmp/* && node_modules/.bin/electron-rebuild
# Move app to filesystem
COPY ./app ./
COPY ./app/misc/asound.conf /etc/asound.conf
## uncomment if you want systemd
ENV INITSYSTEM on
# Start app
CMD ["bash", "/usr/src/app/start.sh"]```