[android-porting] Re: E/dalvikvm : ERROR: Byte swap + verify failed

2009-07-28 Thread Elvis Dowson
Hi Fadden, On Jul 28, 9:35 am, Elvis Dowson elvis.dow...@gmail.com wrote: The error that I get is related to the v2.6.31 bionic/libc/ kernel/common/linux/tcp.h file, line 60 enum {  TCP_FLAG_CWR = __cpu_to_be32(0x0080),  TCP_FLAG_ECE = __cpu_to_be32(0x0040),  TCP_FLAG_URG =

[android-porting] Re: E/dalvikvm : ERROR: Byte swap + verify failed

2009-07-28 Thread Elvis Dowson
Hi, Using __constant_cpu_to_be32 worked, problem solved! Best regards, Elvis --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting

[android-porting] Re: E/dalvikvm : ERROR: Byte swap + verify failed

2009-07-27 Thread Elvis Dowson
Hi, I can zip up the existing bionic and kernel modifications for download, if someone could help me troubleshoot this error. Elvis --~--~-~--~~~---~--~~ unsubscribe: android-porting+unsubscr...@googlegroups.com website:

[android-porting] Re: E/dalvikvm : ERROR: Byte swap + verify failed

2009-07-27 Thread fadden
On Jul 26, 10:10 am, Elvis Dowson elvis.dow...@gmail.com wrote: I'm getting this error with linux-omap3-2.6.31: E/dalvikvm(  676): ERROR: Byte swap + verify failed [...] E/dalvikvm(  670): ERROR: Bad length: expected 818624000, got 3590960 In hex, those are 0x30cb3600 and 0x36cb30,

[android-porting] Re: E/dalvikvm : ERROR: Byte swap + verify failed

2009-07-27 Thread Elvis Dowson
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

[android-porting] Re: E/dalvikvm : ERROR: Byte swap + verify failed

2009-07-27 Thread Elvis Dowson
Hi, The error that I get is related to the v2.6.31 bionic/libc/ kernel/common/linux/tcp.h file, line 60 enum { TCP_FLAG_CWR = __cpu_to_be32(0x0080), TCP_FLAG_ECE = __cpu_to_be32(0x0040), TCP_FLAG_URG = __cpu_to_be32(0x0020), TCP_FLAG_ACK = __cpu_to_be32(0x0010),