linux-mips
[Top] [All Lists]

Re: [PATCH v2 0/7] add support for lemote loongson2f machines

To: Wu Zhangjin <wuzhangjin@gmail.com>
Subject: Re: [PATCH v2 0/7] add support for lemote loongson2f machines
From: Ralf Baechle <ralf@linux-mips.org>
Date: Mon, 9 Nov 2009 17:11:27 +0100
Cc: zhangfx@lemote.com, yanh@lemote.com, huhb@lemote.com, Nicholas Mc Guire <hofrat@hofr.at>, Arnaud Patard <apatard@mandriva.com>, loongson-dev@googlegroups.com, linux-mips@linux-mips.org
In-reply-to: <cover.1257781987.git.wuzhangjin@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1257781987.git.wuzhangjin@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.19 (2009-01-05)
On Tue, Nov 10, 2009 at 12:05:21AM +0800, Wu Zhangjin wrote:

> for example, if you pass "machtype=8.9" to kernel when booting, it will run
> well on yeeloong netbook. the default machtype is 2f-box, so, you can run the
> kernel on fuloong2f directly. In the future, we will pass the machtype 
> argument
> by PMON directly, and then the linux distributions will only need to build one
> kernel image, and will make it work on all of lemote loongson2f family
> machines.

A more general solution to this sort of problem is the flattened device tree.
Grant Likely convinced me in Tokyo that this is the way to go.  He intends
to rewrite the FDT code into an easily re-usable library which he estimates
to take a month or two after which I'd like to start using it on MIPS.
This probably also means FDT support for PMON will eventually be needed.

Until then of course machtype=<whatever> is a fair solution.

  Ralf

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