From: <tim...@co...> - 2007-03-10 02:04:04
|
Hi Chuck, Let me know if this works and I will update the wiki. Thanks Tim -------------- Original message ---------------------- From: "Sam Green" <sam...@gm...> > 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/21437/focus=21 > 476 > > -Sam > > On 3/10/07, chuck kamas <chu...@ya...> 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. > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > gumstix-users mailing list > > gum...@li... > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users |