Thanks Tim!

this fixed the problem.  I was getting ready to move on to a newer build root release,  but I prefer not to chase you guys.

BTW when will be the next stable build root release?

Chuck


-----Original Message-----
From: gumstix-users-bounces@lists.sourceforge.net [mailto:gumstix-users-bounces@lists.sourceforge.net] On Behalf Of timcrawford@comcast.net
Sent: Friday, March 09, 2007 6:04 PM
To: General mailing list for gumstix users.
Subject: Re: [Gumstix-users] gpio regs from user space

Hi Chuck,

Let me know if this works and I will update the wiki.

Thanks
Tim

 -------------- Original message ----------------------
From: "Sam Green" <samgreen@gmail.com>
> Hi Chuck,
>
> Try modifying the mmap() calls in gpregs.c to look like:
>
>     map = mmap(0,
>               MAP_SIZE,
>               PROT_READ | PROT_WRITE,
>               MAP_SHARED,
>               fd,
>               #ifdef __ARM_EABI__
>                   0x40E00000 / MAP_SIZE
>               #else
>                   0x40E00000 & ~MAP_MASK
>               #endif
>              );
>
> Comes from
> http://thread.gmane.org/gmane.linux.distributions.gumstix.general/2143
> 7/focus=21
> 476
>
> -Sam
>
> On 3/10/07, chuck kamas <chuckkamas@yahoo.com> wrote:
> > Hi all,
> >
> > I compiled the code for the gpio registers found at:
> > http://docwiki.gumstix.org/Sample_code/C/gpregs
> >
> > but when I run it I get:
> > Unhandled fault: imprecise external abort (0xc16) at 0x40000060 Bus
> > error
> >
> > when I ported this into my own code I get a segfault when I try to
> > set a GPIO register.
> >
> > Has anyone else compiled this code and gotten it to work?  My
> > build_root is 1200.
> >
> > Chuck
> >
> >
> >
> >
> >  ________________________________
> >  Don't get soaked. Take a quick peek at the forecast  with theYahoo!
> > Search weather shortcut.
> >
> >
> > --------------------------------------------------------------------
> >
>


Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.