linux-mips
[Top] [All Lists]

Re: [loongson-PATCH-v3 17/25] add a machtype kernel command line argumen

To: wuzhangjin@gmail.com
Subject: Re: [loongson-PATCH-v3 17/25] add a machtype kernel command line argument
From: Arnaud Patard <apatard@mandriva.com>
Date: Thu, 04 Jun 2009 15:51:18 +0200
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org, Wu Zhangjin <wuzj@lemote.com>, Yan Hua <yanh@lemote.com>, Philippe Vachon <philippe@cowpig.ca>, Zhang Le <r0bertz@gentoo.org>, Zhang Fuxin <zhangfx@lemote.com>, loongson-dev <loongson-dev@googlegroups.com>, Liu Junliang <liujl@lemote.com>, Erwan Lerale <erwan@thiscow.com>
In-reply-to: <d1f4caa360114f843459dc71827b1175232a24be.1244120575.git.wuzj@lemote.com> (wuzhangjin@gmail.com's message of "Thu, 4 Jun 2009 21:08:03 +0800")
Organization: Mandriva
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1244120575.git.wuzj@lemote.com> <d1f4caa360114f843459dc71827b1175232a24be.1244120575.git.wuzj@lemote.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1 (gnu/linux)
wuzhangjin@gmail.com writes:

Hi,

> From: Wu Zhangjin <wuzj@lemote.com>
>
> the difference between yeeloong-7inch and yeeloong-8.9inch is very
> small, only including the screen size and shutdown logic. so, it's very
> important to share the same kernel image file between them instead of
> adding some new kernel config options. benefit from this, the
> distribution developers only have a need to compile the kernel one time.
>
> to share the same kernel image file between yeelooong-7inch and
> yeeloong-8.9inch, there is a need to add a kernel command line, here I
> name is machtype, it works like this:
>
>       machtype=lemote-yeeloong-2f-7inch
>             company - product - cpu revision - size

I'm curious. Why can't you use the boot monitor to pass the right
machine type instead ? iirc, you're using pmon and pmon has a variable
called "systype". If the systype variable is not designed for that, I'll
be happy to know its use :)


Arnaud

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