Re: problem bring up initramfs and busybox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Tue, 17 Nov 2009 20:03 -0500, "David VomLehn" <dvomlehn@xxxxxxxxx>
wrote:
> On Tue, Nov 17, 2009 at 06:58:35PM -0600, myuboot@xxxxxxxxxxx wrote:
> > 
> > On Wed, 18 Nov 2009 01:39 +0100, "Florian Fainelli"
> > <florian@xxxxxxxxxxx> wrote:
> > > -------------------------------
> > Actually I already got this patch for the board in little endian mode,
> > and it is still there for the big endian mode. And this is one of the
> > place I have been wondering if that needs to be changed for big endian. 
> 
> It sounds like you've done a good job getting the bootloader and kernel
> to work, so this may be a silly suggestion, but are you sure your root
> filesystem and busybox are little-endian? It would be an easy mistake to
> make...
> 
> > thanks. Andrew
> 
> David VL

I am pretty sure the filesystem and busybox are big endian. I can see
the following print out when the filesystem is built for big endian
mode. 
"Swapping filesystem endian-ness"
Though I don't know if there is a command to check the endianess of a
filesystem directly.

And below is the header info of the busybox showing it is a big endian
object.
readelf -h busybox-1.14.3/busybox
ELF Header:
  Magic:   7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, big endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           MIPS R3000
  Version:                           0x1
  Entry point address:               0x4001b0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          926564 (bytes into file)
  Flags:                             0x50001007, noreorder, pic, cpic,
  o32, mips32
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         3
  Size of section headers:           40 (bytes)
  Number of section headers:         19
  Section header string table index: 18
Thanks, Andrew


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux