linux-mips
[Top] [All Lists]

Re: problem bring up initramfs and busybox

To: "David VomLehn" <dvomlehn@cisco.com>
Subject: Re: problem bring up initramfs and busybox
From: myuboot@fastmail.fm
Date: Wed, 18 Nov 2009 10:11:18 -0600
Cc: "Florian Fainelli" <florian@openwrt.org>, "Chris Dearman" <chris@mips.com>, "linux-mips" <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=message-id:from:to:cc:mime-version:content-transfer-encoding:content-type:references:subject:in-reply-to:date; s=smtpout; bh=4rCjDeUUq98XIca6rLk8zB0ydBU=; b=d+Bz8o7oSxeMMvqeVRKTzVi8PAUdRL4NnvaazSO5oKe8Kx6ajN99bOiE4qiBJBDJej4jrRSULYA7J4tbcl6WKQ/mFaHqwaBzhyykevs97i0hQNsHxl6KrXGfZM5U/0JLG2RrYeJ8bbo4CgjMbb+NciridvGm2+RncOVgL7odnF4=
In-reply-to: <20091118010351.GA21728@dvomlehn-lnx2.corp.sa.net>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1255735395.30097.1340523469@webmail.messagingengine.com> <4B031B78.5030204@mips.com> <1258504293.3627.1345755107@webmail.messagingengine.com> <200911180139.29283.florian@openwrt.org> <1258505915.7077.1345760963@webmail.messagingengine.com> <20091118010351.GA21728@dvomlehn-lnx2.corp.sa.net>
Sender: linux-mips-bounce@linux-mips.org

On Tue, 17 Nov 2009 20:03 -0500, "David VomLehn" <dvomlehn@cisco.com>
wrote:
> On Tue, Nov 17, 2009 at 06:58:35PM -0600, myuboot@fastmail.fm wrote:
> > 
> > On Wed, 18 Nov 2009 01:39 +0100, "Florian Fainelli"
> > <florian@openwrt.org> 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

<Prev in Thread] Current Thread [Next in Thread>