I have a Raspberry Pi 3 Model B and a Waveshare SIM7600A-H 4G HAT Board running on Debian Raspberry Pi OS Lite 64bit.
When I try to install the Waveshare drivers via the Core Electronics guide:
cd /home/pi/SIM7600X-4G-HAT-Demo/Raspberry/c/bcm2835
chmod +x configure && ./configure && sudo make && sudo make install
I am getting the error:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/pi/SIM7600X-4G-HAT-Demo/Raspberry/c/bcm2835/missing: Unknown `--is-lightweight' option
Try `/home/pi/SIM7600X-4G-HAT-Demo/Raspberry/c/bcm2835/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for clock_gettime in -lrt... yes
checking for doxygen... no
configure: WARNING: Doxygen not found - continuing without Doxygen support
checking for ranlib... ranlib
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
cd . && automake-1.13 --gnu
/bin/bash: line 5: automake-1.13: command not found
make: *** [Makefile:298: Makefile.in] Error 1
Any ideas on this? Is the Waveshare driver really required? What about the Waveshare script sim7600_4G_hat_init
that needs to run at bootup?
echo "4" > /sys/class/gpio/export
sleep 0.1
echo "out" > /sys/class/gpio/gpio4/direction
echo "0" > /sys/class/gpio/gpio4/value
echo "6" > /sys/class/gpio/export
sleep 0.1
echo "out" > /sys/class/gpio/gpio6/direction
echo "0" > /sys/class/gpio/gpio6/value