From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from astoria.ccjclearline.com ([64.235.106.9]) by bombadil.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RvXqt-0006JC-Rx for barebox@lists.infradead.org; Thu, 09 Feb 2012 17:32:12 +0000 Date: Thu, 9 Feb 2012 12:32:02 -0500 (EST) From: "Robert P. J. Day" In-Reply-To: <20120209174519.4d0ae559@eb-e6520> Message-ID: References: <20120209174519.4d0ae559@eb-e6520> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-586104779-1328808726=:23476" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: how to read GPIO values from command line? To: =?ISO-8859-15?Q?Eric_B=E9nard?= Cc: barebox@lists.infradead.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-586104779-1328808726=:23476 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 9 Feb 2012, Eric B=E9nard wrote: > Le Thu, 9 Feb 2012 11:34:55 -0500 (EST), > "Robert P. J. Day" a =E9crit : > > so what exactly does one do to read those values? i tried: > > > > barebox@Texas Instrument's Beagle:/ gpio_direction_input 171 > > barebox@Texas Instrument's Beagle:/ gpio_get_value 171 > > > > but what do i check? the shell variable $? i'm not sure what i > > should do next. > > > you can check the mux of the pins to be sure they are in GPIO mode. ok, bear with me as i'm in new territory here. i'm assuming that in order to do that, i need to configure barebox with MACH_OMAP_ADVANCED_MUX, yes? because at the moment, the default is *not*, as you can see in arch/arm/mach-omap/Kconfig: config MACH_OMAP_ADVANCED_MUX bool "Enable advanced pin muxing" depends on MACH_OMAP343xSDP default n help Say Y here if you would like to have complete pin muxing to be done at boot time am i correct in guessing that that's why i'm not getting the values i'm expecting? rday --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --8323329-586104779-1328808726=:23476 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --8323329-586104779-1328808726=:23476--