From: longbow <longbow.cao@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Support Big Endian for ARM926ejs
Date: Thu, 25 Oct 2007 21:28:03 +0800 [thread overview]
Message-ID: <005101c8170a$e6f53300$0401a8c0@Admin> (raw)
Hello
I'm porting u-boot for my board which using ARM926ejs and big endian mode
My GNU toolchain is for big endian, I use it to build u-boot-1.2.0
For build, do some modification
u-boot.lds
/*OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")*/
OUTPUT_FORMAT("elf32-bigarm", "elf32-bigarm", "elf32-bigarm ")
Start.S
cpu_init_crit:
.....
/*
* disable MMU stuff and caches
*/
mrc p15, 0, r0, c1, c0, 0
bic r0, r0, #0x00002300 /* clear bits 13, 9:8 (--V- --RS) */
/*bic r0, r0, #0x00000087 clear bits 7, 2:0 (B--- -CAM) */
/*orr r0, r0, #0x00000002 set bit 2 (A) Align */
bic r0, r0, #0x00000007 /* clear bits 2:0 (--- -CAM) */
orr r0, r0, #0x00000082 /* set bit 7, 2 (Big)(A) Align */
orr r0, r0, #0x00001000 /* set bit 12 (I) I-Cache */
mcr p15, 0, r0, c1, c0, 0
....
For porting successfully, I want to confirm the source code of u-boot for
arm support big endian ?
Thanks
Longbow
reply other threads:[~2007-10-25 13:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='005101c8170a$e6f53300$0401a8c0@Admin' \
--to=longbow.cao@gmail.com \
--cc=u-boot@lists.denx.de \
/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 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.