* How to translate Little to Big endian ?
@ 2003-09-24 15:15 Prabhakar Kalasani
2003-09-24 15:15 ` karthikeyan natarajan
2003-09-24 16:12 ` Lyle Bainbridge
0 siblings, 2 replies; 5+ messages in thread
From: Prabhakar Kalasani @ 2003-09-24 15:15 UTC (permalink / raw)
To: 'linux-mips@linux-mips.org'
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to translate Little to Big endian ?
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
1 sibling, 0 replies; 5+ messages in thread
From: karthikeyan natarajan @ 2003-09-24 15:15 UTC (permalink / raw)
To: prabhakark@contechsoftware.com,
'linux-mips@linux-mips.org'
Hi Prabhakar,
> 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.
Guess you are looking for a library call to do
this.
If i am correct, then htonl function will serve the
purpose.
My $0.02
Thanks,
-karthi
> Is anybody worked on Cogent's CSB250 board till.
>
> Thanks in advance
> Prabhakar
>
>
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: How to translate Little to Big endian ?
@ 2003-09-24 16:12 ` Lyle Bainbridge
0 siblings, 0 replies; 5+ messages in thread
From: Lyle Bainbridge @ 2003-09-24 16:12 UTC (permalink / raw)
To: prabhakark, linux-mips
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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: How to translate Little to Big endian ?
@ 2003-09-24 16:12 ` Lyle Bainbridge
0 siblings, 0 replies; 5+ messages in thread
From: Lyle Bainbridge @ 2003-09-24 16:12 UTC (permalink / raw)
To: prabhakark, linux-mips
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
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: How to translate Little to Big endian ?
2003-09-24 16:12 ` Lyle Bainbridge
(?)
@ 2003-09-24 17:16 ` Pete Popov
-1 siblings, 0 replies; 5+ messages in thread
From: Pete Popov @ 2003-09-24 17:16 UTC (permalink / raw)
To: Lyle Bainbridge, prabhakark; +Cc: Linux MIPS mailing list
Prabhakar,
I recently checked-in a patch for CSB250 support, courtesy of Embedded
Edge. The port is big endian. I assume you haven't seen the bits
because you haven't pulled the latest bits from the linux-mips tree and
that's why you're trying to port it yourself?
Pete
On Wed, 2003-09-24 at 09:12, Lyle Bainbridge wrote:
> 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
> >
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-09-24 17:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2003-09-24 16:12 ` Lyle Bainbridge
2003-09-24 17:16 ` Pete Popov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.