Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] endian issue
@ 2010-05-15 13:47 Marcel
  2010-05-15 14:09 ` Grant Edwards
  2010-05-15 14:19 ` Lionel Landwerlin
  0 siblings, 2 replies; 10+ messages in thread
From: Marcel @ 2010-05-15 13:47 UTC (permalink / raw)
  To: buildroot

Hi,

I'm using an Atmel sam9g45 using buildroot with linux 2.6.33.

I currently have most of my things working but run into an issue which is 
endian related.

My driver outputs it's data in big-endian mode (ADC data). This is fine with 
me.I added a package to buildroot with my own software that talks to the 
driver. This package than transfers the results either over ethernet, usb or 
rs232. This all works great as long as I don't perform any calculations in the 
package that I added. When I do so, all data will be messed up and I'm sure 
it's related to endiannes.
I think my package is compiled in little-endian mode and I'm quite sure this 
is the issue. I did some byte swapping to proof it's the issue and this byte 
swapping makes things fine. 

Is there any way to compile my package in big-endian mode from buildroot ?
Or is there another way I should force this ?

Best regards,
Marcel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-05-15 17:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-15 13:47 [Buildroot] endian issue Marcel
2010-05-15 14:09 ` Grant Edwards
2010-05-15 14:19 ` Lionel Landwerlin
2010-05-15 14:43   ` Grant Edwards
2010-05-15 15:26     ` Marcel
2010-05-15 16:33       ` Thomas Petazzoni
2010-05-15 16:37       ` Lionel Landwerlin
2010-05-15 16:45       ` Grant Edwards
2010-05-15 17:53         ` Marcel
2010-05-15 15:18   ` Marcel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox