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
#5
(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.

It looks like there aren’t any precompiled binaries for Atinout on Mobian for the PinePhone. If you’re facing segmentation faults while compiling from source, it could be related to dependencies or specific configurations for ARM architecture.

Here are a few suggestions you could try:

Check Dependencies: Ensure all required libraries and dependencies are properly installed. Sometimes missing or incompatible versions can lead to segmentation faults.

Debugging: If you’re comfortable, you could try running the compilation with debugging tools like gdb to pinpoint where the segmentation fault occurs.

Community Support: Consider reaching out on forums or community channels related to Mobian or PinePhone. Other users may have encountered similar issues or may have binaries available.

Alternative Solutions: If Atinout is crucial for your use case, you could explore whether similar tools are available or if you could use a different method to achieve your goals.
geometry dash wave
Play geometry dash wave to improve your reflex skills
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  bookworm vs trixie discussion for mobian in pinephone regular. zetabeta 43 10,765 01-17-2025, 02:39 PM
Last Post: fernando_c_m
  mobian phosh on screen keyboard not popping up for Chromium/Electron apps grump_fiddle_reinstall 1 179 01-15-2025, 08:08 PM
Last Post: Kevin Kofler
  How to use QR codes on Mobian Sid(unstable) Pinephone Pro biketool 1 207 01-02-2025, 12:47 PM
Last Post: zetabeta
  Upgrade to Mobian (Trixie) Staging biketool 13 1,198 12-29-2024, 10:35 AM
Last Post: biketool
  Mobian Bulleyes aberrio 0 221 12-16-2024, 08:27 AM
Last Post: aberrio
  Mobian, Suspend, and Audio Playback biketool 0 281 12-11-2024, 12:56 AM
Last Post: biketool
  how to update mobian over tor vusra 14 9,987 12-04-2024, 07:01 PM
Last Post: vusra
  Mobian-Kicksecure? 3460p 0 1,049 05-26-2024, 02:09 PM
Last Post: 3460p
  Mobian repository status henrythemouse 16 13,055 04-10-2024, 10:02 AM
Last Post: diederik
  cant verify mobian image at website gnugpg penguins_rule 0 1,021 03-18-2024, 08:54 PM
Last Post: penguins_rule

Forum Jump:


Users browsing this thread: 1 Guest(s)