Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "Lyle Bainbridge" <lyle@zevion.com>
To: <prabhakark@contechsoftware.com>, <linux-mips@linux-mips.org>
Subject: RE: How to translate Little to Big endian ?
Date: Wed, 24 Sep 2003 11:12:12 -0500	[thread overview]
Message-ID: <000001c382b6$9e3b6fe0$1400a8c0@radium> (raw)
In-Reply-To: <01C382AE.A6330DF0.prabhakark@contechsoftware.com>

Hi,

I believe that the CSB250 port will support big or small endian. Check
out the latest mips-linux kernel code first (2.4.22 I beleive). Then you
need to use a big endian toolchain.  Mips not Mipsel (ie,
mips-linux-gcc). Then open the arch/mips/defconfig-csb250 file and
modify the CONFIG_CPU_LITTLE_ENDIAN option.  It should be:

CONFIG_CPU_LITTLE_ENDIAN=y

Then continue to build the kernel as you would for little endian. I
think that's all from the kernel standpoint. But, are you using Micromon
to boot the kernel?  By default I think the CSB250 and it's monitor are
built little endian, and you won't be able to use this if you want a BE
kernel.  You need the boot loader to put the Au1500 into BE mode.

Email if you need more details.

Lyle



> -----Original Message-----
> From: linux-mips-bounce@linux-mips.org 
> [mailto:linux-mips-bounce@linux-mips.org] On Behalf Of 
> Prabhakar Kalasani
> Sent: Wednesday, September 24, 2003 10:15 AM
> To: 'linux-mips@linux-mips.org'
> Subject: How to translate Little to Big endian ?
> 
> 
> Hi all,
> I'm trying to port linux-2.4.21 on CSB250 , which is Au1500 
> processor based board, the processor is a Big endian, I have 
> taken PB1500 board as my prototype, but it's used Au1500 
> Little endian. anybody could help me out, what are the 
> changes do i need to change to make a Little endian souce 
> into Big endian source.
> 
> Is anybody worked on Cogent's CSB250 board till.
> 
> Thanks in advance
> Prabhakar
> 

WARNING: multiple messages have this Message-ID (diff)
From: "Lyle Bainbridge" <lyle@zevion.com>
To: prabhakark@contechsoftware.com, linux-mips@linux-mips.org
Subject: RE: How to translate Little to Big endian ?
Date: Wed, 24 Sep 2003 11:12:12 -0500	[thread overview]
Message-ID: <000001c382b6$9e3b6fe0$1400a8c0@radium> (raw)
Message-ID: <20030924161212.o2pyDqw-5EhVn3n1sGHdEJMuMM3i8dNjyqQLB82ZxgA@z> (raw)
In-Reply-To: <01C382AE.A6330DF0.prabhakark@contechsoftware.com>

Hi,

I believe that the CSB250 port will support big or small endian. Check
out the latest mips-linux kernel code first (2.4.22 I beleive). Then you
need to use a big endian toolchain.  Mips not Mipsel (ie,
mips-linux-gcc). Then open the arch/mips/defconfig-csb250 file and
modify the CONFIG_CPU_LITTLE_ENDIAN option.  It should be:

CONFIG_CPU_LITTLE_ENDIAN=y

Then continue to build the kernel as you would for little endian. I
think that's all from the kernel standpoint. But, are you using Micromon
to boot the kernel?  By default I think the CSB250 and it's monitor are
built little endian, and you won't be able to use this if you want a BE
kernel.  You need the boot loader to put the Au1500 into BE mode.

Email if you need more details.

Lyle



> -----Original Message-----
> From: linux-mips-bounce@linux-mips.org 
> [mailto:linux-mips-bounce@linux-mips.org] On Behalf Of 
> Prabhakar Kalasani
> Sent: Wednesday, September 24, 2003 10:15 AM
> To: 'linux-mips@linux-mips.org'
> Subject: How to translate Little to Big endian ?
> 
> 
> Hi all,
> I'm trying to port linux-2.4.21 on CSB250 , which is Au1500 
> processor based board, the processor is a Big endian, I have 
> taken PB1500 board as my prototype, but it's used Au1500 
> Little endian. anybody could help me out, what are the 
> changes do i need to change to make a Little endian souce 
> into Big endian source.
> 
> Is anybody worked on Cogent's CSB250 board till.
> 
> Thanks in advance
> Prabhakar
> 

  parent reply	other threads:[~2003-09-24 16:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-24 15:15 How to translate Little to Big endian ? Prabhakar Kalasani
2003-09-24 15:15 ` karthikeyan natarajan
2003-09-24 16:12 ` Lyle Bainbridge [this message]
2003-09-24 16:12   ` Lyle Bainbridge
2003-09-24 17:16   ` Pete Popov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000001c382b6$9e3b6fe0$1400a8c0@radium' \
    --to=lyle@zevion.com \
    --cc=linux-mips@linux-mips.org \
    --cc=prabhakark@contechsoftware.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox