From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RK6Po-0002ia-TQ for mharc-grub-devel@gnu.org; Sat, 29 Oct 2011 06:45:28 -0400 Received: from eggs.gnu.org ([140.186.70.92]:48800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK6Pm-0002iP-9P for grub-devel@gnu.org; Sat, 29 Oct 2011 06:45:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RK6Pk-0007En-PI for grub-devel@gnu.org; Sat, 29 Oct 2011 06:45:26 -0400 Received: from alius.ayous.org ([78.46.213.165]:43769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK6Pk-0007Ee-GB for grub-devel@gnu.org; Sat, 29 Oct 2011 06:45:24 -0400 Received: from eos.turmzimmer.net ([2001:a60:f006:aba::1]) by alius.turmzimmer.net with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1RK6Pj-0007vb-AI for grub-devel@gnu.org; Sat, 29 Oct 2011 10:45:23 +0000 Received: from aba by eos.turmzimmer.net with local (Exim 4.69) (envelope-from ) id 1RK6Pd-0005T6-PA for grub-devel@gnu.org; Sat, 29 Oct 2011 12:45:17 +0200 Date: Sat, 29 Oct 2011 12:45:17 +0200 From: Andreas Barth To: The development of GNU GRUB Subject: Re: [bug] Wrong machtype argument passed for fuloong-2f Message-ID: <20111029104517.GN4110@mails.so.argh.org> References: <87y5w4f8bj.fsf@snail.Pool> <20111029103758.GM4110@mails.so.argh.org> <4EABD869.5040801@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4EABD869.5040801@gmail.com> X-Editor: Vim http://www.vim.org/ User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 78.46.213.165 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2011 10:45:27 -0000 * Vladimir 'φ-coder/phcoder' Serbinenko (phcoder@gmail.com) [111029 12:42]: > On 29.10.2011 12:37, Andreas Barth wrote: > > * David Kuehling (dvdkhlng@gmx.de) [111029 11:37]: > >> according to my /proc/cmdline grub passes > >> machtype=lemote-fuloong-2f-unknown as first argument to the linux > >> kernel. > > Did you see any issues because of that in Linux? Fallback within linux > > is MACH_LEMOTE_FL2F which is the one used with the argument > > "lemote-fuloong-2f-box" (not saying this bug shouldn't be fixed, but > > ...). Also I think grub should just forward the parameters added by > > pmon, but not adding them itself (except for the parameters via the > > grub configuration, e.g. root=...). > GRUB isn't restricted ot pmon environments so this argument makes little > sense to me. Isn't there a way to detect pmon environments in run time? Basically that's more like "is there a pmon configuration, and if so, just forward parameters"? I personally don't see how we could correctly find out the different variants the linux kernel detects without using the information the kernel uses, i.e. the command line. And if we use the command line, we could as well just forward it. (The optimal case would be device trees everywhere, but well. We are today.) Andi