From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29945 invoked by alias); 1 Jul 2009 16:55:23 -0000 Received: (qmail 29937 invoked by uid 22791); 1 Jul 2009 16:55:23 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from exprod6og104.obsmtp.com (HELO exprod6og104.obsmtp.com) (64.18.1.187) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Wed, 01 Jul 2009 16:55:18 +0000 Received: from source ([63.240.6.3]) (using TLSv1) by exprod6ob104.postini.com ([64.18.5.12]) with SMTP ID DSNKSkuU8wF2CZYpcyeOQSKGCssRO+2N+1PK@postini.com; Wed, 01 Jul 2009 09:55:17 PDT Received: from D01SMTP04.Mi8.com ([172.16.1.243]) by Outbound01.Mi8.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 1 Jul 2009 12:55:14 -0400 Received: from mi8nycmail19.Mi8.com ([172.16.7.219]) by D01SMTP04.Mi8.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 1 Jul 2009 12:55:14 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Querying Loader from Kernel Date: Wed, 01 Jul 2009 16:55:00 -0000 Message-ID: In-Reply-To: <113b56700906291200n4e3ca671s63462d29b31e5821@mail.gmail.com> References: <113b56700906291200n4e3ca671s63462d29b31e5821@mail.gmail.com> From: "H Hartley Sweeten" To: "Eric Bresie" , X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2009-07/txt/msg00001.txt.bz2 On Monday, June 29, 2009 12:00 PM, Eric Bresie wrote: > Is it possible to query info from the loader (Redboot) from the > loaded kernel? > > I'd like to have Redboot version indicated in syslog or something > to confirm version details at both loader and kernel level. > > With dmesg I see some indication of the mtd partitions but nothing > else beyond that. > > Any ideas? I'm not sure you can query the info from the kernel but maybe from userspace. You can use the fconfig utility to parse the mtd partition that contains your Redboot config. Create an alias in Redboot that has the version information you need. For example I set a serial number on each of my boards as: alias/SNUM: 0x27260017 Then use fconfig to read it: / #fconfig -r -d /dev/mtd3 -n alias/SNUM 0x27260017 / # Regards, Hartley