[U-Boot] [Patch 0/17] New 'qemu-mips64' test architecture for U-Boot

As so far, U-Boot has already supports mips32. But there are some differences between mips64 and mips32. Such as different ABI, different output format. so this patch adds mips64 support. I use cross compiler from clfs and build U-Boot like this: export CROSS_COMPILE=/home/zhangzz/work/clfs/sys_root/cross-tools/bin/mips64el-unknown-linux-gnu- make qemu_mips64_config make And run U-Boot with command below: $ qemu-system-mips64el -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic U-Boot 2012.07-00089-gbbffc64 (Aug 14 2012 - 22:34:02)
Board: Qemu -M mips CPU: unknown proc_id=0x10000 DRAM: 128 MiB Using default environment
In: serial Out: serial Err: serial Net: NE2000 qemu-mips64 #
===== Detail: 1 Add qemu_mips64_defconfig, and add related build configuration. 2 mips/cpu/mips64/* are derived from mips/cpu/mips32, but mips32 is using ABI O32, we can't build it with mips64 cross compiler. so changes are made. 3 Some address operation didn't take care about mips64, so asm/addrspace.h and io.h were changed.
arch/mips/config.mk | 14 +- arch/mips/cpu/mips64/Makefile | 48 +++++ arch/mips/cpu/mips64/cache.S | 229 +++++++++++++++++++++ arch/mips/cpu/mips64/config.mk | 36 ++++ arch/mips/cpu/mips64/cpu.c | 116 +++++++++++ arch/mips/cpu/mips64/interrupts.c | 38 ++++ arch/mips/cpu/mips64/start.S | 374 +++++++++++++++++++++++++++++++++++ arch/mips/cpu/mips64/time.c | 86 ++++++++ arch/mips/include/asm/addrspace.h | 2 +- arch/mips/include/asm/io.h | 16 ++ arch/mips/include/asm/posix_types.h | 4 + board/qemu-mips/config.mk | 7 + board/qemu-mips/u-boot.lds | 8 + boards.cfg | 1 + examples/standalone/mips64.lds | 59 ++++++ include/configs/qemu-mips64.h | 168 ++++++++++++++++ 17 files changed, 1206 insertions(+), 3 deletions(-)

On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote:
As so far, U-Boot has already supports mips32. But there are some differences between mips64 and mips32. Such as different ABI, different output format. so this patch adds mips64 support.
many of your patches are line wrapped. please use `git send-email` rather than whatever client you're using (looks like gmail?) as it won't screw things up. -mike

On Tuesday 14 August 2012 11:49:49 Mike Frysinger wrote:
On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote:
As so far, U-Boot has already supports mips32. But there are some
differences between mips64 and mips32. Such as different ABI, different output format. so this patch adds mips64 support.
many of your patches are line wrapped. please use `git send-email` rather than whatever client you're using (looks like gmail?) as it won't screw things up.
hmm, actually it's worse than that -- the leading whitespace is all mangled too. i'm assuming your code isn't that screwed up, so please resend with git- sendemail. -mike

On Tue, Aug 14, 2012 at 11:51 PM, Mike Frysinger vapier@gentoo.org wrote:
On Tuesday 14 August 2012 11:49:49 Mike Frysinger wrote:
On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote:
As so far, U-Boot has already supports mips32. But there are some
differences between mips64 and mips32. Such as different ABI, different output format. so this patch adds mips64 support.
many of your patches are line wrapped. please use `git send-email`
rather
than whatever client you're using (looks like gmail?) as it won't screw things up.
hmm, actually it's worse than that -- the leading whitespace is all mangled too. i'm assuming your code isn't that screwed up, so please resend with git- sendemail. -mike
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
OK, I will retry. actually I sent it by copy-and-paste. I wasn't aware of that. thanks.

Hi,
2012/8/15 Zhi-zhou Zhang etou.zh@gmail.com:
On Tue, Aug 14, 2012 at 11:51 PM, Mike Frysinger vapier@gentoo.org wrote:
On Tuesday 14 August 2012 11:49:49 Mike Frysinger wrote:
On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote:
As so far, U-Boot has already supports mips32. But there are some
differences between mips64 and mips32. Such as different ABI, different output format. so this patch adds mips64 support.
many of your patches are line wrapped. please use `git send-email`
rather
than whatever client you're using (looks like gmail?) as it won't screw things up.
hmm, actually it's worse than that -- the leading whitespace is all mangled too. i'm assuming your code isn't that screwed up, so please resend with git- sendemail. -mike
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
OK, I will retry. actually I sent it by copy-and-paste. I wasn't aware of that. thanks.
then you should read http://www.denx.de/wiki/U-Boot/Patches
And please do for all MIPS specific patches: - CC me - use the prefix MIPS: in the email subject

On Thu, Aug 16, 2012 at 5:31 AM, Daniel Schwierzeck < daniel.schwierzeck@gmail.com> wrote:
Hi,
2012/8/15 Zhi-zhou Zhang etou.zh@gmail.com:
On Tue, Aug 14, 2012 at 11:51 PM, Mike Frysinger vapier@gentoo.org
wrote:
On Tuesday 14 August 2012 11:49:49 Mike Frysinger wrote:
On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote:
As so far, U-Boot has already supports mips32. But there are some
differences between mips64 and mips32. Such as different ABI,
different
output format. so this patch adds mips64 support.
many of your patches are line wrapped. please use `git send-email`
rather
than whatever client you're using (looks like gmail?) as it won't
screw
things up.
hmm, actually it's worse than that -- the leading whitespace is all
mangled
too. i'm assuming your code isn't that screwed up, so please resend
with
git- sendemail. -mike
U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
OK, I will retry. actually I sent it by copy-and-paste. I wasn't aware of that. thanks.
then you should read http://www.denx.de/wiki/U-Boot/Patches
And please do for all MIPS specific patches:
- CC me
- use the prefix MIPS: in the email subject
-- Thanks and regards, Daniel
Thanks for all your suggestions. I will improve them in next version.
participants (3)
-
Daniel Schwierzeck
-
Mike Frysinger
-
Zhi-zhou Zhang