Coder Social home page Coder Social logo

the-modem-distro / quectel_eg25_kernel Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 4.0 156.47 MB

License: Other

Makefile 0.27% C 97.71% Assembly 1.72% C++ 0.04% Shell 0.05% Perl 0.11% Awk 0.01% sed 0.01% Python 0.04% GDB 0.01% Yacc 0.02% Lex 0.01% UnrealScript 0.01% SmPL 0.01% Scilab 0.01% XS 0.01% Raku 0.01% Roff 0.01% Clojure 0.01% M4 0.01%

quectel_eg25_kernel's People

Contributors

biktorgj avatar psychogame avatar victor-gj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

quectel_eg25_kernel's Issues

alsa simple sound card & mdm9607 i2s

Hello!

Is it possible to setup alsa generic simple sound card driver to work with qcom,msm-dai-mi2s driver instead of using qcom provided complicated sound card driver?
Looking for help and advices.

select on /dev/sdm7 (GPS data)

Hello!

I am trying to handle gps data on mdm9607.

echo -ne "AT+QGPS=1\r" | microcom -t 100 /dev/smd9 for this kernel (or smd8 if I use original 3.18 downstream kernel).

After I can obtain data from /dev/smd7

# cat /dev/smd7
$GPVTG,,T,,M,,N,,K,N*2C
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGGA,,,,,,0,,,,,,,,*66
$GPRMC,,V,,,,,,,,,,N*53
$GPVTG,,T,,M,,N,,K,N*2C
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGGA,,,,,,0,,,,,,,,*66
$GPRMC,,V,,,,,,,,,,N*53
^C

But gpsd (as it is proper way to handle NMEA data) can't read from this tty device.
Seems it is because pselect/select for some reason doesn't work with

[CUT]
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
getuid32()                              = 0
stat64("/dev/smd7", {st_mode=S_IFCHR|0600, st_rdev=makedev(248, 7), ...}) = 0
chmod("/dev/smd7", 020660)              = 0
setgroups32(0, [])                      = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
connect(5, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(5)                                = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
connect(5, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(5)                                = 0
openat(AT_FDCWD, "/etc/group", O_RDONLY|O_CLOEXEC) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=361, ...}) = 0
_llseek(5, 0, [0], SEEK_SET)            = 0
read(5, "root:x:0:\ndaemon:x:1:\nbin:x:2:\ns"..., 4096) = 361
close(5)                                = 0
setgid32(18)                            = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
connect(5, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(5)                                = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 5
connect(5, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(5)                                = 0
openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=395, ...}) = 0
_llseek(5, 0, [0], SEEK_SET)            = 0
read(5, "root:x:0:0:root:/root:/bin/sh\nda"..., 4096) = 395
close(5)                                = 0
setuid32(65534)                         = 0
rt_sigaction(SIGHUP, {0x15d7c, ~[RTMIN RT_1], SA_RESTORER, 0xb6c8a2e0}, NULL, 8) = 0
rt_sigaction(SIGINT, {0x15d7c, ~[RTMIN RT_1], SA_RESTORER, 0xb6c8a2e0}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x15d7c, ~[RTMIN RT_1], SA_RESTORER, 0xb6c8a2e0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {0x15d7c, ~[RTMIN RT_1], SA_RESTORER, 0xb6c8a2e0}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTORER|SA_RESTART, 0xb6c8a2e0}, {SIG_DFL, [], 0}, 8) = 0
clock_gettime(CLOCK_REALTIME_COARSE, {5624, 999999915}) = 0
getpid()                                = 298
getpid()                                = 298
getsid(298)                             = 257
write(2, "gpsd:ERROR: system time looks bo"..., 64gpsd:ERROR: system time looks bogus, dates may not be reliable.
) = 64
pselect6(5, [3 4], NULL, NULL, {5, 0}, {NULL, 8}) = 0 (Timeout)
pselect6(5, [3 4], NULL, NULL, {5, 0}, {NULL, 8}) = 0 (Timeout)
pselect6(5, [3 4], NULL, NULL, {5, 0}, {NULL, 8}^CProcess 298 detached
 <detached ...>

I checked /drivers/tty/serial/msm_smd_tty.c, but I am not very familiar with deep kernel's internals.

Maybe you faced something similar before or just know what can I dig to debug this issue?

P.S.

# stty -aF /dev/smd7
speed 38400 baud;stty: /dev/smd7: No such file or directory
 line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon
-ixoff -iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop
-echoprt -echoctl -echoke -flusho -extproc

stty for some reason reports /dev/smd7: No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.