Hi Fadden, Thanks a lot for your reply!! :-) The TI OMAP3503 which uses a Cortex-A8 ARM core is big endian I think.
When I was porting the bionic libc kernel headers to v2.6.31, I noticed that the byte order was getting redefined, so I explicitly forced ARM BIG ENDIAN in three locations. That might be causing the error. The full technotes can be found here: http://groups.google.com/group/android-porting/browse_thread/thread/8393f87245699b32/c4ce2ab17acf050d#c4ce2ab17acf050d In the v2.6.29 headers, the byte order settings worked fine. Is there a location where you have to specify the byte order in some special file, when you port the bionic libraries to a new kernel version? Here is the offending patch: diff --git a/libc/arch-arm/include/endian.h b/libc/arch-arm/include/ endian.h index 04204ed..8e42583 100644 --- a/libc/arch-arm/include/endian.h +++ b/libc/arch-arm/include/endian.h @@ -1,5 +1,8 @@ /* $OpenBSD: endian.h,v 1.3 2005/12/13 00:35:23 millert Exp $ */ +/* Define ARM big endian byte order. */ +#define __ARMEB__ + #ifdef __ARMEB__ #define _BYTE_ORDER _BIG_ENDIAN #else diff --git a/libc/arch-arm/include/machine/_types.h b/libc/arch-arm/ include/machine/_types.h index 6d10e12..e63093b 100644 --- a/libc/arch-arm/include/machine/_types.h +++ b/libc/arch-arm/include/machine/_types.h @@ -118,6 +118,9 @@ typedef int __rune_t; typedef void * __wctrans_t; typedef void * __wctype_t; +/* Define ARM big endian byte order. */ +#define __ARMEB__ + #ifdef __ARMEB__ #define _BYTE_ORDER _BIG_ENDIAN #else diff --git a/libc/kernel/arch-arm/asm/byteorder.h b/libc/kernel/arch- arm/asm/byteorder.h index 7737974..8c23ca8 100644 --- a/libc/kernel/arch-arm/asm/byteorder.h +++ b/libc/kernel/arch-arm/asm/byteorder.h @@ -15,6 +15,9 @@ #ifndef __ASM_ARM_BYTEORDER_H #define __ASM_ARM_BYTEORDER_H +/* Define ARM big endian byte order. */ +#define __ARMEB__ + #ifdef __ARMEB__ #include <linux/byteorder/big_endian.h> #else Best regards, Elvis --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---