From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LWyws-0004Fq-TT for mharc-grub-devel@gnu.org; Tue, 10 Feb 2009 15:11:14 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWywo-0004A6-Lg for grub-devel@gnu.org; Tue, 10 Feb 2009 15:11:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWywk-00045b-DF for grub-devel@gnu.org; Tue, 10 Feb 2009 15:11:08 -0500 Received: from [199.232.76.173] (port=51843 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWywk-00045C-2H for grub-devel@gnu.org; Tue, 10 Feb 2009 15:11:06 -0500 Received: from xsmtp1.ethz.ch ([82.130.70.13]:8959) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWywj-0002RB-Ja for grub-devel@gnu.org; Tue, 10 Feb 2009 15:11:05 -0500 Received: from xfe2.d.ethz.ch ([82.130.124.42]) by xsmtp1.ethz.ch with Microsoft SMTPSVC(6.0.3790.3959); Tue, 10 Feb 2009 21:11:03 +0100 Received: from [192.168.2.86] ([81.221.211.164]) by xfe2.d.ethz.ch over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 10 Feb 2009 21:11:03 +0100 Message-ID: <4991DF17.9030002@student.ethz.ch> Date: Tue, 10 Feb 2009 21:09:59 +0100 From: Jan Alsenz User-Agent: Thunderbird 2.0.0.19 (X11/20090104) MIME-Version: 1.0 To: The development of GRUB 2 References: <4991C150.3090504@student.ethz.ch> <4991DC4D.4060802@gmail.com> In-Reply-To: <4991DC4D.4060802@gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig16E9D57D00258293A1BA394E" X-OriginalArrivalTime: 10 Feb 2009 20:11:03.0326 (UTC) FILETIME=[B2E4E3E0:01C98BBB] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ Subject: Re: [PATCH] Long linux kernel command lines X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2009 20:11:12 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig16E9D57D00258293A1BA394E Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Hi! I also don't know the exact details, it sure would be better to have some= kind of detection! But the limit I set is not that arbitrary: --- Quote from Documentation/kernel-parameters.txt --- The number of kernel parameters is not limited, but the length of the complete command line (parameters including spaces etc.) is limited to a fixed number of characters. This limit depends on the architecture and is between 256 and 4096 characters. It is defined in the file =2E/include/asm/setup.h as COMMAND_LINE_SIZE. --- Quote end --- And from what I've seen in the kernel code the maximum supported length i= s copied from lh.cmd_line_ptr into kernel space and processed. Greets, Jan phcoder schrieb: > Hello! > I don't know the linux booting protocol in details but it looks like yo= u > patch replaces one arbitrary limit (256) by another (4096). Is there an= y > way of avoiding any arbitrary limit at all wothout modyfiing boot proto= col? > Thanks > Vladimir 'phcoder' Serbinenko > Jan Alsenz wrote: >> Hello! >> >> I just noticed, that the pc linux loader (loader/i386/pc/linux.c) alwa= ys >> truncates the kernel command line to less than 256 characters. >> Well since I needed a longer command line, I fixed this problem. >> >> I found a patch on this list from last year ( >> http://lists.gnu.org/archive/html/grub-devel/2008-05/msg00005.html ), >> which apparently was lost in some other discussion. >> I didn't use it, because I think my version works better with older >> kernels. >> >> I tested this on my machine and it worked without a problem with a >> 2.6.27 kernel. >> >> It would be great if you could add this (or something like it), so I c= an >> switch to the official version again. >> >> Thanks and Regards, >> >> Jan >> >> >> ----------------------------------------------------------------------= -- >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel >=20 >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel >=20 --------------enig16E9D57D00258293A1BA394E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmR3xwACgkQfZylhtn4XvcohACg12sCubOMjqCh5tcBy41LLePl ZoIAni8otqHA2X+w9x/HPMJiAYS7Su22 =6TQC -----END PGP SIGNATURE----- --------------enig16E9D57D00258293A1BA394E--