[android-porting] Re: RIL GPRS data channel

2009-05-21 Thread Brian Liu
PPP is not mandatory for data connection. That's depend on the modem you use. In fact, ro.radio.use-ppp is default as "no". Even using PPP, you don't need set ro.radio.use-ppp to "yes". You can launch pppd to setup data connection when PDP context is successfully activated (i.e. RIL_REQUEST_DEFAU

[android-porting] Re: [android-porting]About RILD system

2009-05-22 Thread Brian Liu
The command socket (s_fdCommand) will be closed only when there is any exception like EINTR or end of stream (e.g. service layer close this socket). The sequence is like this: 1. Bootup 1.1 Init process create UNIX domain socket on /dev/socket/rild and then fork RILD according to init.rc 1.2 RILD

[android-porting] Re: Android can't detect the SDcard

2009-05-26 Thread Brian Liu
It's vold (or mountd if you are using an old version) to mount your SD card for you according to configuration defined in /etc/vold.conf. Take a look in /sys to see whether your SD card is correctly recognized in kernel (/sys/class/mmc_host/mmc0/mmc0:/block/ mmcblk0/..., mmc0 assuming you ar

[android-porting] Re: Touch screen not up yet

2009-06-01 Thread Brian Liu
>From log, it seems that it was caused by "exception" when launching ActivityManager Service: > W/dalvikvm( 1541): threadid=17: thread exiting with uncaught exception > (group=0x4000fe70) > E/AndroidRuntime( 1541): Uncaught handler: thread ActivityManager > exiting due to uncaught exception > E/An

[android-porting] Re: touchscreen tsc2102 on I.mx27

2009-06-12 Thread Brian Liu
Maybe you can trial to change your driver to generate input events like below: (EV_ABS, 0x, 0x0189) - 0x means "ABS_X" (X axes), 0x0189 the absolute X value of pen point (EV_ABS, 0x0001, 0x001c) - 0x0001 means "ABS_Y" (Y axes), 0x001c the absolute Y value of pen point (EV_KEY, 0x014a, 0x00

[android-porting] Re: RIL GPRS data channel

2009-06-17 Thread Brian Liu
Looks like your RIL HAL (libreferen-ril.so) was loaded but didn't open the serial connection with modem successfully. Check mainLoop() in reference-ril.c, make sure you successfully open the serial port (i.e. fd >= 0). If that's true, put some log in initializeCallback() which will do some initia

[android-porting] Re: android Boot up issue

2009-06-17 Thread Brian Liu
Make sure ALSA is enabled in your kernel configure. If yes, check your kernel boot log. If you get your audio working in ALSA level, then there should be: ALSA device list: #0: On Jun 17, 12:57 pm, muneendra kumar wrote: > Hi all, > > Iam using imx31 on my custom board. > > Iam using the

[android-porting] Re: sdcard on real hardware

2009-06-17 Thread Brian Liu
Check /etc/vold.conf or /etc/mountd.conf (depend on how old your Android code are) to correctly setup media volume in case you want to mount the vfat partition to /sdcard On Jun 16, 8:56 pm, xro wrote: > hello, > > i have android's files on my sdcard. I boot with the initial file > system and af

[android-porting] Re: RIL GPRS data channel

2009-06-18 Thread Brian Liu
ent SIM_STATE_CHANGED_ACTION > NOT_READY reason null > D/RILJ( 756): WAKE_LOCK_TIMEOUT mReqPending=0 mRequestList=1 > D/RILJ( 756): 0: [0] GET_CURRENT_CALLS > D/STK ( 756): StkAppService$ServiceHandler: OP_BOOT_COMPLETED > > As if there is something wrong with the data c

[android-porting] Re: pppd stuck in TIOCSETD ioctl call

2009-07-23 Thread Brian Liu
I got the same problem when working with HuaWei E180 USB dongle. With some debugging, it seems that it stuck in kernel code "tty_set_ldisc", i.e. when pushing PPP line discipline. No root cause identified yet. But I workaround this by using ttyUSB1 for AT and ttyUSB0 for PPP. In most case, modem

[android-porting] Re: pppd syslogs not printing for packets or IP addresses

2009-05-17 Thread Brian Liu
liblog in Android doesn't support "%I" format string for IP address. I use below workaround: notice("local IP address %I", go->ouraddr); CHANGE TO notice("local IP address %s", ip_ntoa(go_outaddr); On May 16, 3:58 am, John Michelau wrote: > A little more digging shows that the error, notice, et