From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NiEhP-0007XA-SG for mharc-grub-devel@gnu.org; Thu, 18 Feb 2010 17:18:19 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NiEhN-0007WP-Lr for grub-devel@gnu.org; Thu, 18 Feb 2010 17:18:17 -0500 Received: from [140.186.70.92] (port=39370 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiEhM-0007WE-Mi for grub-devel@gnu.org; Thu, 18 Feb 2010 17:18:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NiEhM-0001fn-5O for grub-devel@gnu.org; Thu, 18 Feb 2010 17:18:16 -0500 Received: from mail2.ruggedcom.com ([204.50.148.11]:26572) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiEhL-0001fi-Sq for grub-devel@gnu.org; Thu, 18 Feb 2010 17:18:16 -0500 Received: from mail2.ruggedcom.com (10.200.2.23) by RCexchangeSVR1.ruggedcom.local (10.200.2.21) with Microsoft SMTP Server id 8.2.176.0; Thu, 18 Feb 2010 17:18:52 -0500 Received: from rceng01.eng.lan ([10.200.2.11]) by mail2.ruggedcom.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 18 Feb 2010 17:18:52 -0500 Received: from rcws-214.eng.lan (unknown [10.200.20.26]) by rceng01.eng.lan (Postfix) with ESMTP id BA86E14E6F7 for ; Thu, 18 Feb 2010 17:18:14 -0500 (EST) Received: from localhost ([127.0.0.1] ident=richardretanubun) by rcws-214.eng.lan with esmtp (Exim 4.71) (envelope-from ) id 1NiEhK-00042E-NJ for grub-devel@gnu.org; Thu, 18 Feb 2010 17:18:14 -0500 Message-ID: <4B7DBCA6.8020309@RuggedCom.com> Date: Thu, 18 Feb 2010 17:18:14 -0500 From: Richard Retanubun Organization: RuggedCom User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) MIME-Version: 1.0 To: The development of GNU GRUB References: <4B7BFB49.6030306@RuggedCom.com> <4B7C3506.6060503@gmail.com> In-Reply-To: <4B7C3506.6060503@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 18 Feb 2010 22:18:52.0090 (UTC) FILETIME=[59EA29A0:01CAB0E8] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) Subject: Re: how to get started with developing grub2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Thu, 18 Feb 2010 22:18:18 -0000 Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: > 1) First of all use the latest version. Either BZR trunk or BZR > experimental branch: > http://bzr.savannah.gnu.org/r/grub/trunk/grub/ and > http://bzr.savannah.gnu.org/r/grub/branches/experimental/ > In your case 'clear' command is already in since a long time. > 2) Then speak before you do. It's quite possible that what you want is > done with something else or by somebody else. > 3) Get to develop when feature you proposed is considered good Hi Vladimir, Thanks for the response, Sorry if I am not being clear, I am using the clear command patch as a starting point/example to figure out how to port commands from grub1 to g= rub2, I don't actually need the command :) The commands I am adding is very specific to our board and does not apply t= o general PCs so I didn't bother wasting people's time with it. Anyhow, In case there are people following this thread, this is a solution = I found (I think from a Gentoo webpage) Howto rebuild Grub2 and reinstall it in chainload mode with Grub1 ----------------------------------------------------------------- 1. Assuming your system boot with grub1 chainloading grub2 to your main os = (I used debian-linux). 2. Get the grub source package on your target (I placed mine in /usr/local/= src) 3. Get any build tools that you need (for debian you can use dpkg-checkbuil= ddeps for this) 4. run 'configure' and 'make' and then 'make install' (make install places = the compiled stuff in /usr/local) FROM [/usr/local/sbin] 6. run "grub-install --grub-setup=3D/bin/true /dev/hda" (the [--grub-setup= =3D/bin/true] prevents it from being loaded into MBR and [/dev/hda] is your= disk) 7. run update-grub to update /boot/grub/grub.cfg from the files in /usr/loc= al/ 8. check that /boot/grub contains new files 9. reboot, If you like the results run the update-grub-from-legacy to make = it permanent Question -------- I may be using it wrong, but the "grub-install --grub-setup=3D/bin/true /de= v/hda" step only worked once subsequent changes are not (re)installed and sometimes it reverts back to t= he unmodified grub2. Is anyone seeing this as well?? Sorry if it sounds crazy, I didn't test it = very much. Thanks for the time. - Richard