atinout binaries for mobian/debian?
#1
Does anyone have any binaries atinout for mobian on pinephone 1.2?

https://atinout.sourceforge.net/ does not have precompiled binaries for debian/mobian and attempting to compile from source results in a segmentation fault error.
  Reply
#2
(05-12-2024, 10:03 AM)NeutralGrey Wrote: Does anyone have any binaries atinout for mobian on pinephone 1.2?

https://atinout.sourceforge.net/ does not have precompiled binaries for debian/mobian and attempting to compile from source results in a segmentation fault error.

Download the tar.gz file, and compile on a terminal:

$ gcc atinout.c -o atinout
or
$ gcc -O2 atinout.c -o atinout


If you get an error on line 173, modify this line in this way:

printf("atinout version \" VERSION \"\n");

I compiled it on mobian-bookworm without error, but i did not verify if it works.
  Reply
#3
I can confirm it works, sending these two commands with success:

echo 'AT+QGMR' | sudo ./atinout - /dev/ttyUSB2 -

echo 'AT+QMBNCFG="list"' | sudo ./atinout - /dev/ttyUSB2 -
  Reply
#4
There is a Makefile, so you don't need to compile with gcc command directly, you can just type "make" in the source folder.
I got this error:

Code:
gcc -o atinout -W -Wall -Wextra -Werror -DVERSION=\"0.9.1\" -g  atinout.c
atinout.c: In function ‘is_final_result’:
atinout.c:141:20: error: this statement may fall through [-Werror=implicit-fallthrough=]
  141 |                if (strcmp(&response[1], "K\r\n") == 0) {
      |                    ^
atinout.c:145:9: note: here
  145 |        default:
      |        ^~~~~~~
cc1: all warnings being treated as errors                                                                                                                                                                       
make: *** [Makefile:14: atinout] Error 1

So I removed -Werror from the Makefile and it compiled successfully.
If you want to use "atinout" instead of "./atinout" for the commands, you can install the binary with "sudo make install".

Executing AT commands works too:
https://wiki.pine64.org/index.php/PinePhone#AT_commands
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 36 6,651 09-25-2024, 12:41 AM
Last Post: zetabeta
  Mobian-Kicksecure? 3460p 0 639 05-26-2024, 02:09 PM
Last Post: 3460p
  Mobian repository status henrythemouse 16 11,327 04-10-2024, 10:02 AM
Last Post: diederik
  cant verify mobian image at website gnugpg penguins_rule 0 712 03-18-2024, 08:54 PM
Last Post: penguins_rule
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 3,561 11-22-2023, 11:46 AM
Last Post: aLoop100o
  What actions needed to keep on mobian testing user641 3 2,389 09-05-2023, 06:44 AM
Last Post: Zebulon Walton
  Mobian boot failed with zstd message after upgrade. Mahgue 0 916 09-01-2023, 11:29 AM
Last Post: Mahgue
  Problem with updates: Repository 'Debian bookworm' changed its 'non-free component' Anna 7 4,659 08-31-2023, 12:38 PM
Last Post: vusra
  how to update mobian over tor vusra 13 8,705 07-09-2023, 08:57 PM
Last Post: vusra
  opensnitch outbound firewall now works on mobian vusra 2 2,284 07-09-2023, 01:37 AM
Last Post: vusra

Forum Jump:


Users browsing this thread: 3 Guest(s)