From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1RK6Yn-00056f-FK for mharc-grub-devel@gnu.org; Sat, 29 Oct 2011 06:54:45 -0400 Received: from eggs.gnu.org ([140.186.70.92]:47915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK6Yk-00053Y-Gj for grub-devel@gnu.org; Sat, 29 Oct 2011 06:54:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RK6Yj-0000CN-CI for grub-devel@gnu.org; Sat, 29 Oct 2011 06:54:42 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:56364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RK6Yj-0000CH-6s for grub-devel@gnu.org; Sat, 29 Oct 2011 06:54:41 -0400 Received: by wwe3 with SMTP id 3so82581wwe.30 for ; Sat, 29 Oct 2011 03:54:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=kwR3wyjLhcRZ6xQVO7OmxFa9ajIR064vpdFTbTbhUME=; b=JHuexzqdKvIDk7OyQxudf8cTja1iq9os2dO1ZWPJKRduKbc9yCgUA8dtV+x5G88RIz whzZBDwz/cjZlgWu8Vp8sG9hwPHgVULEo6n1MMxT/k0DrM1uHAeXvFdOPmKw3gnRI13K 7/0RvyJ0onpAxNvkhosSIUtb7ZbefX5epn/oA= Received: by 10.216.140.223 with SMTP id e73mr2402725wej.9.1319885680310; Sat, 29 Oct 2011 03:54:40 -0700 (PDT) Received: from debian.x201.phnet (gprs21.swisscom-mobile.ch. [193.247.250.21]) by mx.google.com with ESMTPS id gd6sm20608016wbb.1.2011.10.29.03.54.37 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 29 Oct 2011 03:54:39 -0700 (PDT) Message-ID: <4EABDB6B.9010108@gmail.com> Date: Sat, 29 Oct 2011 12:54:35 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20111005 Iceowl/1.0b2 Icedove/3.1.15 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: [bug] Wrong machtype argument passed for fuloong-2f References: <87y5w4f8bj.fsf@snail.Pool> <20111029103758.GM4110@mails.so.argh.org> <4EABD869.5040801@gmail.com> <20111029104517.GN4110@mails.so.argh.org> In-Reply-To: <20111029104517.GN4110@mails.so.argh.org> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigAB34BFA4B2C477F53FAC585B" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 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:54:43 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAB34BFA4B2C477F53FAC585B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 29.10.2011 12:45, Andreas Barth wrote: > * Vladimir '=CF=86-coder/phcoder' Serbinenko (phcoder@gmail.com) [11102= 9 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=3Dlemote-fuloong-2f-unknown as first argument to the linux >>>> kernel. >>> Did you see any issues because of that in Linux? Fallback within linu= x >>> 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=3D...). >> GRUB isn't restricted ot pmon environments so this argument makes litt= le >> 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. > Which creates a separate codepath uselessly. If GRUB is firmware it uses the information available on mkimage time, if loaded by pmon or another GRUB, use command line. > (The optimal case would be device trees everywhere, but well. We are > today.) > Device trees have some nonsensical devices, like commandline which I couldn't find inside of any of my chips. --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigAB34BFA4B2C477F53FAC585B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk6r22sACgkQNak7dOguQgnDAAD9HDoR2Zvj0uucbq/GJhkVVqy6 PRD2L5YvCf2ay9VJ1yYA/j2KoRsOaHTwdKjt3GnclxKg8vHXlWGNB4E80Yxk0nIi =v3Oz -----END PGP SIGNATURE----- --------------enigAB34BFA4B2C477F53FAC585B--