From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 02:26:38 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F5B3106566B; Mon, 30 May 2011 02:26:38 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 1199A8FC13; Mon, 30 May 2011 02:26:37 +0000 (UTC) Received: from sbhfislrext01.fnfis.com ([192.168.249.167]) by SCSFISLTC02 (8.14.3/8.14.3) with ESMTP id p4U2QYbB015162; Sun, 29 May 2011 21:26:34 -0500 Received: from sbhfisltcgw02.FNFIS.COM (Not Verified[10.132.248.122]) by sbhfislrext01.fnfis.com with MailMarshal (v6, 5, 4, 7535) id ; Sun, 29 May 2011 21:26:34 -0500 Received: from sbhfisltcgw02.FNFIS.COM ([10.132.248.122]) by sbhfisltcgw02.FNFIS.COM with Microsoft SMTPSVC(6.0.3790.4675); Sun, 29 May 2011 21:26:34 -0500 Received: from [10.0.0.102] ([10.132.254.136]) by sbhfisltcgw02.FNFIS.COM over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sun, 29 May 2011 21:26:32 -0500 Mime-Version: 1.0 (Apple Message framework v1084) From: Devin Teske In-Reply-To: <4DE2EE28.6050308@freebsd.org> Date: Sun, 29 May 2011 19:26:30 -0700 Message-Id: <8C5F02EB-E700-453F-988A-0DEEB8BB263B@vicor.com> References: <20110430192737.287270@gmx.com> <20110501031105.GA16357@DataIX.net> <20110504040621.GC78390@DataIX.net> <5536F45D-82C1-44EE-8BF2-E1C081FAC095@vicor.com> <7D68720F-A9D2-4FAF-A9AA-D6DEB6CE473C@vicor.com> <4DE2EE28.6050308@freebsd.org> To: Julian Elischer X-Mailer: Apple Mail (2.1084) X-OriginalArrivalTime: 30 May 2011 02:26:32.0942 (UTC) FILETIME=[FDC1F8E0:01CC1E70] Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Jason Hellenthal , 'Dieter BSD' , freebsd-hackers@freebsd.org Subject: Re: [RELEASE] New Boot-Loader Menu X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2011 02:26:38 -0000 On May 29, 2011, at 6:08 PM, Julian Elischer wrote: > On 5/29/11 2:53 PM, Devin Teske wrote: >> On May 4, 2011, at 8:57 AM, Devin Teske wrote: >>=20 >>> On May 3, 2011, at 9:06 PM, Jason Hellenthal wrote: >>>=20 >>>> Devin, >>>>=20 >>>>=20 >>>> On Sat, Apr 30, 2011 at 08:45:14PM -0700, Devin Teske wrote: >>>>> On Apr 30, 2011, at 8:11 PM, Jason Hellenthal wrote: >>>>>=20 >>>>>> Devin, >>>>>>=20 >>>>>>=20 >>>>>> On Sat, Apr 30, 2011 at 04:00:47PM -0700, Devin Teske wrote: >>>>>>>> Would be nice: "uname -v" of the kernel it will boot. >>>>>>> That's a bit more technically challenging. I'll have another look a= t the >>>>>>> FICL words available, but I don't recall if there was a way to craw= l the >>>>>>> object space of the items loaded with ``load'' (looking for the una= me). I'm >>>>>>> open to suggestions if you had an idea of how to do this in Forth -= - else >>>>>>> I'd think this would need to be a loader(8) modification. >>>>>> How about forgetting a mention of unmae& ... instead look into if we >>>>>> can support some sort of bootcode versioning to be displayed on the >>>>>> screen. This would serve to be very helpful in the future when for s= ay a >>>>>> new version of bootcode for ZFS has to be installed then it would be >>>>>> easy for announce@ to simply say "A new version of ZFS has been MFCd= and >>>>>> requires boot version>=3D X. To find out your version please see the >>>>>> bottom right hand corner of your boot screen." >>>>>>=20 >>>>>> I would place a pretty good bet that loader(8) could be modified to >>>>>> export some sort of versioning of the bootcode to make this a easier >>>>>> stance for the user to gather information before a upgrade. >>>>> Piece of cake! If you give me a loader(8) that exports a "version" en= vironment variable, I'll give the Forth functionality in mere seconds. It's= already been developed (but was not packaged). >>>>>=20 >>>>> I have a module named "version.4th" which prints the value of the "ve= rsion" environment variable at the bottom-right of the screen underneath th= e beastie logo. >>>>>=20 >>>>> Since you mention this, I'll add the code to the next package and if/= when loader(8) ever exports a "version" environment variable, it will just = magically appear. How's that sound? >>>>>=20 >>>> Sounds perfect! >>> One minor adjustment... can we make that environment variable "loader_v= ersion" instead of "version"? >>>=20 >>> The code is already in for "loader_version". Whatever string you export= into that environment variable will be displayed on-screen at bottom-right= , right-justified. >> The code for thew new menu has been committed to HEAD. >>=20 >> http://svnweb.freebsd.org/base?view=3Drevision&revision=3D222417 >>=20 >> Now... >>=20 >> Who wants to make the necessary patch to loader(8) to export $loader_ver= sion text? >>=20 >> Or maybe a suggestion on another list worth including on this? > I suggest this move to -current since it is checked on there, > and a port be kept for 8.x/7.x >=20 > Devin, a fix was made at 222450 as it was broken for ppc. >=20 Regarding fix 222450: Oops. Slight oversight. Thanks for the one-liner fix. Looks like we'll have to do the same thing for the following: sys/boot/ia64/common/Makefile sys/boot/powerpc/ps3/Makefile sys/boot/sparc64/loader/Makefile Here's a patch that can be applied by anyone willing: http://druidbsd.sourceforge.net/download/loader_menu-1.6.1-HEAD201105210929= 52-fixup.patch --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________