Finally I resolved this problem.
It seems a bug in kernel, which is caused by using 'enum' in a struct
in Linux's kernel.
Different compilers use different data types on 'enum' (maybe 'char'
or 'int')
In my android, the kernel's 'enum' size is 4, while the size of 'enum'
in ELF binarys is 1.
Th
Hi
Could you share which enum cause problem?
I am fighting some strange android behavior in my board.
Your information might help me.
On 11月13日, 午後11:22, WANG Xiaoguang <[EMAIL PROTECTED]> wrote:
> Finally I resolved this problem.
>
> It seems a bug in kernel, which is caused by using 'enum' in
include/linux/if_ppp.h
91 struct npioctl {
92 int protocol; /* PPP protocol, e.g. PPP_IP */
93 enum NPmode mode;
94 };
I hate enum in struct it wasted me a whole week.
I am sure a patch must be submitted to the kernel to prevent others
from
Hi,
I had the same issues when I implemented UVC camera support. In my
case,
struct v4l2_requestbuffers in linux/videodev2.h is the problem. I
settled it using android toolchain with CONFIG_CC_OPTIMIZE_FOR_SIZE
option.
On 11月14日, 午前10:58, koba <[EMAIL PROTECTED]> wrote:
> Hi
>
> Could you share
Don't you think the enum problem is more related to "short enums"?
Have you tried to compile your code also with -fno-short-enums cflag?
Misa
2008/11/13 jyukon <[EMAIL PROTECTED]>:
>
> Hi,
>
> I had the same issues when I implemented UVC camera support. In my
> case,
> struct v4l2_requestbuffers
We're facing a similar problem as WANG Xiaoguang, refer to
http://groups.google.com/group/android-porting/browse_thread/thread/5031fb191f2f1a14
Our ppp0 interface is up but connections to the outside network won't
go through.
What are the changes you did to the enum to make it work?
Do you thin
Okay, tried the solution suggested by Misael. Changed the ../external/
ppp/pppd/Android.mk to include the following:
# To force sizeof(enum) = 4
ifneq ($(TARGET_SIMULATOR),true)
LOCAL_CFLAGS += -mabi=aapcs-linux
endif
This will prevent the Android compiler from using short enums when
compiling p
The real way is:
LOCAL_CFLAGS += -fno-short-enums
Android compiler default setting is 1 byte for enum type.
2008/12/9 Ulrik Bech Hald <[EMAIL PROTECTED]>
>
> Okay, tried the solution suggested by Misael. Changed the ../external/
> ppp/pppd/Android.mk to include the following:
>
> # To force sizeof
Hi,
Could you explain what steps you had to go through to get GPRS working
on your Android port? From what I understand, one needs at least:
- a SIM card to a wireless provider with a data plan (of course)
- a working libhardware_ril ?
- what else ?
I'm trying to understand what are the co
On Tue, Dec 9, 2008 at 3:10 PM, Maxime Petazzoni <[EMAIL PROTECTED]
> wrote:
>
> Hi,
>
> Could you explain what steps you had to go through to get GPRS working
> on your Android port? From what I understand, one needs at least:
> - a SIM card to a wireless provider with a data plan (of course)
>
Hi,
On Dec 9, 3:23 pm, "David Turner" <[EMAIL PROTECTED]> wrote:
> there is alreadya reference ril library available in the open source tree
> that can be
> used to talk with some hardware. the name is reference-ril
>
> it should be easy to modify for many platforms.
Nice. What else is needed?
the SIM Card is accessed through the AT command channel, i.e. through the
RIL.
normally, there is no need for a specific kernel driver, or additionnal
code.
On Wed, Dec 10, 2008 at 10:45 AM, Maxime Petazzoni <
[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> On Dec 9, 3:23 pm, "David Turner" <[EMAIL PROTECT
Hi John:
Do u mean modify /external/ppp/pppd/Android.mk to include
"LOCAL_CFLAGS += -fno-short-enums" ?
I have tried both 2 ways but the connection still didn't go through~
Do I missed anything?
Herb.
On 12月9日, 上午9時30分, "john wang" wrote:
> The real way is:
> LOCAL_CFLAGS += -fno-short-enums
>
13 matches
Mail list logo