Jump to content


Photo

[ROM][beta]CyanogenMod 9

* * * * * 8 votes

  • Please log in to reply
681 replies to this topic

#381
Lens_flare

Lens_flare

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,504 posts

The script you used in miui?

darktremor scripts are much different from that..

  • 0

#382
Lens_flare

Lens_flare

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,504 posts
I'm introducing new way to "recharge" phone(return ability to call) so you don't need to reboot:
-terminal emulator -> acquire root by typing
su
-type "ps", scroll list you got and remember its pid;
for example you got something like that:
radio	 108   1	 21468  4728  ffffffff 40010d14 S /system/bin/rild
2nd number - 108 will be a pid, remember it.
-just type
kill [pid you remembered]
for example:
kill 108
it will restart ril, so just a minute, and you are ready to go.

Also my ril investigations went me to main reason of data connection hungs - qmuxd binary and maybe its link to kernel. As I investigated earlier- framework attempts to read setup_data_call request, so now I found that request is formed in qmux_connect_socket at data/radio by both qmuxd and netmgrd. But system just don't have qmux_client_socket, seems like a user-part socket for others. And that chain unlinks somewhere over these binaries which are proprietary.
to trace ril binaries I used
strace -f [binary name]
command. last outputs gave me those errors:
[pid   970] unlink("/data/radio/qmux_client_socket    970") = -1 ENOENT (No such file or directory)
[pid   810] connect(3, {sa_family=AF_UNIX, path="/data/radio/qmux_connect_socket"}, 33) = -1 ECONNREFUSED (Connection refused)
it's in netmgrd, in qmuxd and rild errors are the same.

  • 0

#383
remisch

remisch

    Newbie

  • Members
  • Pip
  • 6 posts
  • Gender:Male
  • Location:Poland
  • Devices:Acer Liquid Metal S120

Also my ril investigations went me to main reason of data connection hungs - qmuxd binary and maybe its link to kernel. As I investigated earlier- framework attempts to read setup_data_call request, so now I found that request is formed in qmux_connect_socket at data/radio by both qmuxd and netmgrd. But system just don't have qmux_client_socket, seems like a user-part socket for others. And that chain unlinks somewhere over these binaries which are proprietary.
to trace ril binaries I used

strace -f [binary name]
command. last outputs gave me those errors:
[pid   970] unlink("/data/radio/qmux_client_socket	970") = -1 ENOENT (No such file or directory)
[pid   810] connect(3, {sa_family=AF_UNIX, path="/data/radio/qmux_connect_socket"}, 33) = -1 ECONNREFUSED (Connection refused)
it's in netmgrd, in qmuxd and rild errors are the same.


Well, me seems its about permissions in init scripts starting qmuxd:
chmod /dev/oncrpc and /dev/oncrpc/* to be writeable by qmuxd and rild (777 should work fine, but I don't know if it's the best way),
as well as created /data/radio/ and made it writeable by qmuxd and rild (777) - no socket, connection refused.

HTH.

  • 0

#384
Lens_flare

Lens_flare

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,504 posts

Well, me seems its about permissions in init scripts starting qmuxd:
chmod /dev/oncrpc and /dev/oncrpc/* to be writeable by qmuxd and rild (777 should work fine, but I don't know if it's the best way),
as well as created /data/radio/ and made it writeable by qmuxd and rild (777) - no socket, connection refused.

tommorow I will commit ramdisk changes that I got at the moment, so you could see and test them. All permissions were worked on gingerbread.
My "ps" out shows qmuxd, netmgrd and rild with right owner. Data/radio is on right permissions, maybe there should be also chown radio radio on that folder..

  • 0

#385
vidalix

vidalix

    Regular

  • Members
  • PipPip
  • 60 posts
  • Devices:acer liquid metal
so now mobile data and camera are working?

  • 0

#386
Samsung S3

Samsung S3

    Newbie

  • Members
  • Pip
  • 26 posts
  • Gender:Male
  • Devices:Acer Liquid Metal
"external help arrived, let's start to rock&roll!" WOOOOOOOOOOOOOOOOOOOOOOW

  • 0

#387
Lens_flare

Lens_flare

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,504 posts

[pid   970] unlink("/data/radio/qmux_client_socket	  970") = -1 ENOENT (No such file or directory)

sounds strange, but when deeply investigated strace outputs at gingerbread, found that error is COMMON! what the damn ril..
so for now it seems all is common, but error
[pid   810] connect(3, {sa_family=AF_UNIX, path="/data/radio/qmux_connect_socket"}, 33) = -1 ECONNREFUSED (Connection refused)
still persists at ics and don't even appears at gb.. oh how I wish to bash that qualcomm-acer mess..

so now mobile data and camera are working?

No, we even haven't started yet :P

ADD:
gingerbread:
srwxrwxrwx	1 root	 root		  4096 Jun 27 16:37 qmux_connect_socket
ics:
srwxrwxrwx root	 root 		   2012-06-27 05:28 qmux_connect_socket
as I read, 1 is a link count.. ics one don't have any links.. and ics one is null byte(so placeholder)..
and seems qmux_client_socket is a free data connection representation, constructed by framework, so it's really means nothing binaries don't have access to it initially.

Edited by Lens_flare, 27 June 2012 - 07:18 AM.

  • 0

#388
vidalix

vidalix

    Regular

  • Members
  • PipPip
  • 60 posts
  • Devices:acer liquid metal
ok... in any case great job.... great lens, thank you!!! :)

  • 0

#389
vache

vache

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,038 posts
  • Gender:Male
  • Devices:Acer CloudMobile
  • Twitter:@vachounet
Just flashed the ROM to try out.

From what i see, there's no "/dev/diag" entry, RILD needs it.

[pid  1617] open("/dev/diag", O_RDWR)   = -1 ENOENT (No such file or directory)
[pid  1617] write(1, " Diag_LSM: Diag_LSM_Init: Failed"..., 74 Diag_LSM: Diag_LSM_Init: Failed to open handle to diag driver, error = 2

Can someone check if it exists in GingerBread ?

  • 0

#390
TechnoLover

TechnoLover

    Diehard

  • Members
  • PipPipPipPip
  • 415 posts
  • Gender:Male
  • Location:Germany
  • Devices:Acer Liquid MT S120
  • Twitter:@marcOcram
CM 7.2
crw-rw-rw- 1 root root 240, 0 Jun 26 01:00 diag

  • 0

Leonardo d'Avicii & Tiesto <3


Posted Image


#391
vache

vache

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,038 posts
  • Gender:Male
  • Devices:Acer CloudMobile
  • Twitter:@vachounet
Thanks for the quick replay, so let's find why it's not created =)

  • 0

#392
Glory.0

Glory.0

    Newbie

  • Members
  • Pip
  • 11 posts
I'm glad you guys decided to go back on that CM9 port ! Keep it up :')

  • 0

#393
Lens_flare

Lens_flare

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,504 posts

From what i see, there's no "/dev/diag" entry, RILD needs it.

Vache, I have made it working by activating drivers/diag/char driver at kernel(was "m", I switched to "y"), I do had these lines too, but it's not a reason.
From what I could understand, the problem is somewhere on kernel<->qmuxd bridge.
As we could see, qmux_connect_socket is just a stub, and it should be mapped to 4k space as it used to be at gingerbread.

Edited by Lens_flare, 27 June 2012 - 12:51 PM.

  • 0

#394
vache

vache

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,038 posts
  • Gender:Male
  • Devices:Acer CloudMobile
  • Twitter:@vachounet
Did you check that the entry was created ?

Cause each time i'm trying to build the kernel, the .config is rewrited without the DIAG_CHAR option.

  • 0

#395
Lens_flare

Lens_flare

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,504 posts

Did you check that the entry was created ?

yeah, now I have:
open("/dev/diag", O_RDWR)   =3
and subsequent entry at dev - dev/diag with right permissions.

Cause each time i'm trying to build the kernel, the .config is rewrited without the DIAG_CHAR option.

I used make menuconfig instead :P

  • 0

#396
stigshumi

stigshumi

    Newbie

  • Members
  • Pip
  • 8 posts
oohh i'm so tired of metallic voice....
(maybe it's can be fixed???)

  • 0

#397
Lens_flare

Lens_flare

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,504 posts

oohh i'm so tired of metallic voice....

not a first priority, wait.

  • 0

#398
stigshumi

stigshumi

    Newbie

  • Members
  • Pip
  • 8 posts

not a first priority, wait.

Very sad.....

  • 0

#399
vache

vache

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,038 posts
  • Gender:Male
  • Devices:Acer CloudMobile
  • Twitter:@vachounet

yeah, now I have:

open("/dev/diag", O_RDWR)   =3
and subsequent entry at dev - dev/diag with right permissions.

I used make menuconfig instead :P


Could you share this kernel ?

Edit : Wich branch i should use from your github ?

Edited by vache, 27 June 2012 - 03:01 PM.

  • 0

#400
Lens_flare

Lens_flare

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,504 posts
device tree
https://github.com/N...device_acer_a4-
kernel
https://github.com/N...kernel/tree/ics

but it doesn't contain that line at config(bit lazy to revert usb gadget commit)
should be:
#
# Diag Support
#
CONFIG_DIAG_CHAR=y

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users