Hello All,
I am using beaglebone with android ics for enable enabling internet connection. I can able to make call,sms but i have strucked out in enabling gprs .
To enable gprs i need to add the following lins in init.rc but still there is no indication in my logcat.
service ril-pppd /system/bin/init.ril-pppd
user root
group radio cache inet misc
disabled
oneshot
And my init.ril-pppd file are as follows,
#!/system/bin/sh
PPPD_PID=/system/bin/log -t pppd "Starting pppd"
PPPD_PORT=`/system/bin/getprop rild.dataport`
/system/bin/pppd /dev/pts/0 115200 linkname ppp0 modem persist defaultroute usepeerdns -detach crtscts noauth debug lcp-echo-failure 0 ipcp-max-failure 4 ipcp-accept-local ipcp-accept-remote maxfail 1 0.0.0.0: logfile /system/etc/ppp/ppp.log connect "/system/xbin/chat -v -s -f /etc/ppp/gsm_chat"
PPPD_EXIT=$?
PPPD_PID=$!
/system/bin/log -t pppd "pppd exit $PPPD_EXIT"
/system/bin/setprop "net.ppp.exit" $PPPD_EXIT
But when i try to give the command manually ,
/system/bin/pppd /dev/pts/0 115200 linkname ppp0 modem persist defaultroute usepeerdns -detach crtscts noauth debug lcp-echo-failure 0 ipcp-max-failure 4 ipcp-accept-local ipcp-accept-remote maxfail 1 0.0.0.0: logfile /system/etc/ppp/ppp.log connect "/system/xbin/chat -v -s -f /etc/ppp/gsm_chat"
It is connecting properly. so, is there any solution to connect the internet using init.ril-pppd file instead of giving the above command manually.
And my logcat information ,
D/WebViewTimersControl( 676): onBrowserActivityResume
D/WebViewTimersControl( 676): Resuming webview timers, view=com.android.browser.BrowserWebView@411a68a8
W/BaseUi ( 676): mMainView is already attached to wrapper in attachTabToContentView!
W/BaseUi ( 676): mContainer is already attached to content in attachTabToContentView!
I/ServiceManager( 136): Waiting for service media.audio_policy...
E/uim-sysfs( 3206): uim: Inside main
E/uim-sysfs( 3206): uim:BT/FM/GPS would be unavailable on system
W/InputManagerService( 136): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@410e61c8 (uid=10033 pid=325)
I/ ( 3203): ServiceManager: 0xf958
D/dalvikvm( 676): GC_FOR_ALLOC freed 163K, 7% free 8314K/8903K, paused 83ms
I/dalvikvm-heap( 676): Grow heap (frag case) to 8.365MB for 180240-byte allocation
E/audio_hw_primary( 3203): Unable to open the mixer, aborting.
E/AudioFlinger( 3203): couldn't open audio hw device in audio.primary (Invalid argument)
I/AudioFlinger( 3203): Loaded a2dp audio interface from A2DP Audio HW HAL (audio)
I/AudioFlinger( 3203): Using 'A2DP Audio HW HAL' (audio.a2dp) as the primary audio interface
I/CameraService( 3203): CameraService started (pid=3203)
E/AudioPolicyManagerBase( 3203): Failed to initialize hardware output stream, samplingRate: 0, format 0, channels 0
E/AudioPolicyService( 3203): couldn't init_check the audio policy (No such device)
D/dalvikvm( 676): GC_FOR_ALLOC freed 625K, 14% free 7865K/9095K, paused 55ms
I/ActivityManager( 136): Displayed com.android.browser/.BrowserActivity: +2s158ms
F/libc ( 3203): Fatal signal 11 (SIGSEGV) at 0xfffffff4 (code=1)
D/dalvikvm( 325): GC_CONCURRENT freed 1692K, 25% free 13845K/18375K, paused 4ms+11ms
D/dalvikvm( 676): GC_CONCURRENT freed 315K, 13% free 7980K/9095K, paused 4ms+14ms
I/DEBUG ( 64): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 64): Build fingerprint: 'Android/am335xevm_sk/am335xevm_sk:4.0.3/IML74K/eng.marudham.20131004.182406:eng/test-keys'
I/DEBUG ( 64): pid: 3203, tid: 3203 >>> /system/bin/mediaserver <<<
I/DEBUG ( 64): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr fffffff4
I/DEBUG ( 64): r0 fffffff4 r1 00000004 r2 00000000 r3 bed609a4
I/DEBUG ( 64): r4 00010058 r5 00000000 r6 00000000 r7 00000002
I/DEBUG ( 64): r8 bed60b90 r9 00000c83 10 000003f5 fp 00000000
I/DEBUG ( 64): ip 40f545a4 sp bed609a0 lr 4010d291 pc 40f4fcb0 cpsr 00000030
I/DEBUG ( 64): d0 40e1c0a4000000ac d1 00000008000003c0
I/DEBUG ( 64): d2 000000ac000000e1 d3 0001088800000040
I/DEBUG ( 64): d4 004600490044004f d5 00550041005f0059
I/DEBUG ( 64): d6 005f004f00490044 d7 0054005400450053
I/DEBUG ( 64): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 64): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 64): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 64): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 64): d16 c1b8cb74c00353f8 d17 3f50624dd2f1a9fc
I/DEBUG ( 64): d18 41cd37faf9800000 d19 0000000000000000
I/DEBUG ( 64): d20 0000000000000000 d21 0000000000000000
I/DEBUG ( 64): d22 0000000000000000 d23 0000000000000000
I/DEBUG ( 64): d24 0000000000000000 d25 0000000000000000
I/DEBUG ( 64): d26 0000000000000000 d27 0000000000000000
I/DEBUG ( 64): d28 0000000000000000 d29 0000000000000000
I/DEBUG ( 64): d30 0000000000000000 d31 0000000000000000
I/DEBUG ( 64): scr 00000010
I/DEBUG ( 64):
I/DEBUG ( 64): #00 pc 00006cb0 /system/lib/hw/audio_policy.default.so (_ZN20android_audio_legacy22AudioPolicyManagerBase12getNewDeviceEib)
I/DEBUG ( 64): #01 pc 00007724 /system/lib/hw/audio_policy.default.so (_ZN20android_audio_legacy22AudioPolicyManagerBase11setForceUseENS_11AudioSystem9force_useENS1_13forced_configE)
I/DEBUG ( 64): #02 pc 00009170 /system/lib/hw/audio_policy.default.so
I/DEBUG ( 64): #03 pc 00034f3e /system/lib/libaudioflinger.so (_ZN7android18AudioPolicyService11setForceUseE24audio_policy_force_use_t25audio_policy_forced_cfg_t)
I/DEBUG ( 64): #04 pc 00047626 /system/lib/libmedia.so (_ZN7android20BnAudioPolicyService10onTransactEjRKNS_6ParcelEPS1_j)
I/DEBUG ( 64): #05 pc 00033408 /system/lib/libaudioflinger.so (_ZN7android18AudioPolicyService10onTransactEjRKNS_6ParcelEPS1_j)
I/DEBUG ( 64): #06 pc 00017ec0 /system/lib/libbinder.so (_ZN7android7BBinder8transactEjRKNS_6ParcelEPS1_j)
I/DEBUG ( 64): #07 pc 0001b1ea /system/lib/libbinder.so (_ZN7android14IPCThreadState14executeCommandEi)
I/DEBUG ( 64): #08 pc 0001b3c6 /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb)
I/DEBUG ( 64): #09 pc 00008a96 /system/bin/mediaserver
I/DEBUG ( 64): #10 pc 000164e4 /system/lib/libc.so (__libc_init)
I/DEBUG ( 64):
I/DEBUG ( 64): code around pc:
I/DEBUG ( 64): 40f4fc90 83fee8bd 00002e02 ab02b5f7 f1004604 .............F..
I/DEBUG ( 64): 40f4fca0 f8430014 46191d04 f7ff4615 2104fdf7 ..C....F.F.....!
I/DEBUG ( 64): 40f4fcb0 46306806 fd26f7ff b1186823 46206f5b .h0F..&.#h..[o F
I/DEBUG ( 64): 40f4fcc0 e0272104 1084f8d3 47884620 4630b928 .!'..... F.G(.0F
I/DEBUG ( 64): 40f4fcd0 f7ff2101 2800fd17 6820d01f 6f432101 .!.....(.. h.!Co
I/DEBUG ( 64):
I/DEBUG ( 64): code around lr:
I/DEBUG ( 64): 4010d270 bf00bd10 0000bd54 ffffffcc 4ff8e92d ....T.......-..O
I/DEBUG ( 64): 4010d280 68874605 46904689 a004f8d0 faa4f7f8 .F.h.F.F........
I/DEBUG ( 64): 4010d290 24003f01 e0144683 68281b39 eb01464a .?.$.F..9.(hJF..
I/DEBUG ( 64): 4010d2a0 6c0376d1 eb044628 fb0b0666 4798a106 .v.l(F..f......G
I/DEBUG ( 64): 4010d2b0 d1022800 46304634 da01e007 e0001c74 .(..4F0F....t...
I/DEBUG ( 64):
I/DEBUG ( 64): memory map around addr fffffff4:
I/DEBUG ( 64): ffff0000-ffff1000 [vectors]
I/DEBUG ( 64): (no map for address)
I/DEBUG ( 64): (no map above)
I/DEBUG ( 64):
I/DEBUG ( 64): stack:
I/DEBUG ( 64): bed60960 bed609a4 [stack]
I/DEBUG ( 64): bed60964 0001006c [heap]
I/DEBUG ( 64): bed60968 00000000
I/DEBUG ( 64): bed6096c 00000000
I/DEBUG ( 64): bed60970 00000002
I/DEBUG ( 64): bed60974 bed60b90 [stack]
I/DEBUG ( 64): bed60978 00000c83
I/DEBUG ( 64): bed6097c 000003f5
I/DEBUG ( 64): bed60980 00000000
I/DEBUG ( 64): bed60984 4010d2ed /system/lib/libutils.so
I/DEBUG ( 64): bed60988 0001006c [heap]
I/DEBUG ( 64): bed6098c 40f4f8af /system/lib/hw/audio_policy.default.so
I/DEBUG ( 64): bed60990 00000000
I/DEBUG ( 64): bed60994 bed609a4 [stack]
I/DEBUG ( 64): bed60998 df0027ad
I/DEBUG ( 64): bed6099c 00000000
I/DEBUG ( 64): #00 bed609a0 00010058 [heap]
I/DEBUG ( 64): bed609a4 00000000
I/DEBUG ( 64): bed609a8 00000000
I/DEBUG ( 64): bed609ac 00000000
I/DEBUG ( 64): bed609b0 00010058 [heap]
I/DEBUG ( 64): bed609b4 00000000
I/DEBUG ( 64): bed609b8 00000002
I/DEBUG ( 64): bed609bc 40f50729 /system/lib/hw/audio_policy.default.so
I/DEBUG ( 64): #01 bed609c0 00010778 [heap]
I/DEBUG ( 64): bed609c4 00000000
I/DEBUG ( 64): bed609c8 00000000
I/DEBUG ( 64): bed609cc 00000002
I/DEBUG ( 64): bed609d0 bed60b90 [stack]
I/DEBUG ( 64): bed609d4 00000c83
I/DEBUG ( 64): bed609d8 000003f5
I/DEBUG ( 64): bed609dc 40079ea3 /system/lib/libc.so
I/DEBUG ( 64): bed609e0 00010778 [heap]
I/DEBUG ( 64): bed609e4 4010a37b /system/lib/libutils.so
I/DEBUG ( 64): bed609e8 bed60a04 [stack]
I/DEBUG ( 64): bed609ec bed60a04 [stack]
I/DEBUG ( 64): bed609f0 00000000
I/DEBUG ( 64): bed609f4 4010ad57 /system/lib/libutils.so
I/DEBUG ( 64): bed609f8 0000fcd8 [heap]
I/DEBUG ( 64): bed609fc 0000fcec [heap]
I/DEBUG ( 64): bed60a00 00000000
I/DEBUG ( 64): bed60a04 00000002
I/DEBUG ( 64): bed60a08 bed60b90 [stack]
I/DEBUG ( 64): bed60a0c 40f52173 /system/lib/hw/audio_policy.default.so
I/BootReceiver( 136): Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)
I/ServiceManager( 60): service 'media.audio_flinger' died
I/ServiceManager( 60): service 'media.player' died
I/ServiceManager( 60): service 'media.camera' died
I/ServiceManager( 60): service 'media.audio_policy' died
W/AudioSystem( 136): AudioPolicyService server died!
I/ServiceManager( 136): Waiting for service media.audio_policy...
D/dalvikvm( 136): GC_CONCURRENT freed 762K, 20% free 9315K/11591K, paused 7ms+8ms
D/MUXD ( 594): 2411:main(): GSM0710 buffer. Stored 0
D/MUXD ( 594): 2412:main(): Frames received/dropped: 1432/0
I/ServiceManager( 136): Waiting for service media.audio_policy...
I/ ( 3211): ServiceManager: 0xf958
E/audio_hw_primary( 3211): Unable to open the mixer, aborting.
E/AudioFlinger( 3211): couldn't open audio hw device in audio.primary (Invalid argument)
I/AudioFlinger( 3211): Loaded a2dp audio interface from A2DP Audio HW HAL (audio)
I/AudioFlinger( 3211): Using 'A2DP Audio HW HAL' (audio.a2dp) as the primary audio interface
By this i feel is no indication in connecting with pppd.
Faster reply will help me out for better result.
Thanks You