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 39 8,040 10-15-2024, 01:12 PM
Last Post: anonymous
  Mobian-Kicksecure? 3460p 0 800 05-26-2024, 02:09 PM
Last Post: 3460p
  Mobian repository status henrythemouse 16 11,957 04-10-2024, 10:02 AM
Last Post: diederik
  cant verify mobian image at website gnugpg penguins_rule 0 862 03-18-2024, 08:54 PM
Last Post: penguins_rule
  mobian installed to eMMC - how to install tow-boot grump_fiddle_reinstall 6 3,871 11-22-2023, 11:46 AM
Last Post: aLoop100o
  What actions needed to keep on mobian testing user641 3 2,561 09-05-2023, 06:44 AM
Last Post: Zebulon Walton
  Mobian boot failed with zstd message after upgrade. Mahgue 0 962 09-01-2023, 11:29 AM
Last Post: Mahgue
  Problem with updates: Repository 'Debian bookworm' changed its 'non-free component' Anna 7 5,241 08-31-2023, 12:38 PM
Last Post: vusra
  how to update mobian over tor vusra 13 9,067 07-09-2023, 08:57 PM
Last Post: vusra
  opensnitch outbound firewall now works on mobian vusra 2 2,392 07-09-2023, 01:37 AM
Last Post: vusra

Forum Jump:


Users browsing this thread: 1 Guest(s)