Tim:

correct,  that is all that I had to do....
> >               #ifdef __ARM_EABI__
> >                   0x40E00000 / MAP_SIZE
> >               #else
> >                   0x40E00000 & ~MAP_MASK
> >               #endif

But there still is a question.  Does this patch always work?  It seems that in buildroot 1206 the patch for eabi was backed out:

"R1206: Back out eabi/mmap patch; looks like upstream maybe fixed that issue"

but in 1265 the patch is back in with the comment that it does not work:
"R1265: Back the mmap patch back *in* -- it is *not* fixed"

So what is up?
Chuck


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

Hi Chuck,

Just to be clear as to what the fix is:
> >               #ifdef __ARM_EABI__
> >                   0x40E00000 / MAP_SIZE
> >               #else
> >                   0x40E00000 & ~MAP_MASK
> >               #endif

Is this correct?

BTW: Craig is in charge of releasing the builds.  Ask him in another post.

Tim

 -------------- Original message ----------------------
From: chuck kamas <chuckkamas@yahoo.com>
>  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/21
> > 43
> > 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
> > >


Get your own web address.
Have a HUGE year through Yahoo! Small Business.