NSLU2-Linux
view · edit · print · history

FAQ.Endianness History

Hide minor edits - Show changes to markup

February 28, 2008, at 02:14 AM by wodell --
Changed lines 1-2 from:

Both of the distro modes (Be or Le) are built from the same source code, but the (compiled) image needs to match the CPU architecture (i.e., big or little endian). So the choice is depends based on the device support and on packages available.

to:

Both of the distro modes (Be or Le) are built from the same source code, but the (compiled) image needs to match the CPU architecture (i.e., big or little endian).

February 28, 2008, at 02:14 AM by wodell --
Changed lines 1-3 from:

Both of the distro modes (Be or Le) are made with the same code but you still not compatible because at the software base they works in different way. So the choice is more based on the device supports and on packages available.

to:

Both of the distro modes (Be or Le) are built from the same source code, but the (compiled) image needs to match the CPU architecture (i.e., big or little endian). So the choice is depends based on the device support and on packages available.

February 28, 2008, at 02:09 AM by wodell --
Changed lines 1-3 from:

Both of the distro modes (Be or Le) are maded with the same code but you still not compatible because at the software base they works in different way. So the choice is more based on the device supports and on packages available.

to:

Both of the distro modes (Be or Le) are made with the same code but you still not compatible because at the software base they works in different way. So the choice is more based on the device supports and on packages available.

January 05, 2008, at 09:02 PM by marceln -- Added \"c\" test code for endianness mode
Added line 8:
January 05, 2008, at 09:02 PM by marceln -- Added \"c\" test code for endianness mode
Added line 6:
January 05, 2008, at 09:01 PM by marceln -- Added \"c\" test code for endianness mode
Added lines 3-19:

You can test the endianness of your system with the following "c" code:

#include <stdio.h>
int main (int argc, char *argv[]) {
   unsigned char *c;
   unsigned int num = 0;
   c = (unsigned char *)&num;
   c[0] = 0x01;
   if (num == 0x01000000)
       printf ("BIG: 0x%08x (%i)\n", num, num);
   else
       printf ("LITLE: 0x%08x (%i)\n", num, num);
   return (0);
}
January 05, 2008, at 08:15 PM by SyNko --
Changed lines 3-12 from:

For more technical explanation read the sacred wikipedia :: http://en.wikipedia.org/wiki/Endianness and this link:: http://www.gnu-pascal.de/gpc-es/Endianness.html#Endianness

redboot is in be mode so for le you need byteswipping (like debian-arm do) Le mode is more faster on run but have lacks on occidental language

to:

more info at http://www.nslu2-linux.org/wiki/Info/EndianNess

January 05, 2008, at 05:23 PM by SyNko --
Changed line 10 from:

<br>

to:
January 05, 2008, at 05:23 PM by SyNko --
Changed lines 5-10 from:
to:

and this link:: http://www.gnu-pascal.de/gpc-es/Endianness.html#Endianness

<br>

January 05, 2008, at 04:39 PM by SyNko --
Changed lines 1-4 from:

Both of the distro (Be or Le) are maded with the same code but you still not compatible because at the software base they works in different way. So the choice is more based on the device supports and on packages available.

For more technical explanation read the sacred wikipedia :: http://en.wikipedia.org/wiki/Endianness

to:

Both of the distro modes (Be or Le) are maded with the same code but you still not compatible because at the software base they works in different way. So the choice is more based on the device supports and on packages available.

For more technical explanation read the sacred wikipedia :: http://en.wikipedia.org/wiki/Endianness

redboot is in be mode so for le you need byteswipping (like debian-arm do) Le mode is more faster on run but have lacks on occidental language

January 05, 2008, at 04:08 PM by SyNko --
Changed lines 1-3 from:

Both of the distro are made with the same code but you still not compatible because at the software base they works in different way. So the choice is more based on the device supports and on packages available.

to:

Both of the distro (Be or Le) are maded with the same code but you still not compatible because at the software base they works in different way. So the choice is more based on the device supports and on packages available.

January 05, 2008, at 04:07 PM by SyNko --
Changed line 4 from:

For more technical explanation read the sacre wikipedia :: http://en.wikipedia.org/wiki/Endianness

to:

For more technical explanation read the sacred wikipedia :: http://en.wikipedia.org/wiki/Endianness

January 05, 2008, at 04:07 PM by SyNko -- page created
Added lines 1-4:

Both of the distro are made with the same code but you still not compatible because at the software base they works in different way. So the choice is more based on the device supports and on packages available.

For more technical explanation read the sacre wikipedia :: http://en.wikipedia.org/wiki/Endianness

view · edit · print · history · Last edited by wodell.
Based on work by wodell, marceln, and SyNko.
Originally by SyNko.
Page last modified on February 28, 2008, at 02:14 AM