[GSOC2009]GUMSTIX(PXA255) BSP for RTEMS
xi yang
hiyangxi at gmail.com
Thu Jun 4 14:08:46 UTC 2009
In gumstix_bsp.patch, I also delete some unused global variables in
bspstart.c of CSB337 BSP.
Regards
2009/6/5 xi yang <hiyangxi at gmail.com>:
> Hi, I work for project of GSOC2009. Here is a sample BSP for Gumstix
> with clock, uart, timer support.
> gumstix_bsp.patch is generated by cvs diff -uN
> You need place gumstix.cfg to ./make/custom/
> Extract gumstix.tar.gz to c/src/lib/libbsp/arm/
> Extract pxa255.tar.gz to c/src/lib/libcpu/arm/
> gumstix.skyeye is configure file for skyeye simulator.
> With below patch for current version from SVN of skyeye project, you
> can use skeyey to run GUMSTIX bsp by ./skyeye -c gumstix.skyeye -e
> hello.exe (Please notice that when you execute ticker.exe, you have to
> wait for a long time since one tick of skyeye simulator is more slower
> than real hardware)
>
> Here is Skyeye patch(Maybe then have fixed in SVN)
>
> Index: device/nandflash/nandflash_smallblock.c
> ===================================================================
> --- device/nandflash/nandflash_smallblock.c (revision 653)
> +++ device/nandflash/nandflash_smallblock.c (working copy)
> @@ -516,7 +516,7 @@
> #endif
> nf->writebuffer=(u8*)malloc(dev->pagedumpsize);
> //nf->memsize=528*32*4096;
> - if ((nf->fdump= open(dev->dump, FILE_FLAG)) < 0)
> + if ((nf->fdump= open(dev->dump, FILE_FLAG, FILE_MODE)) < 0)
> {
> free(nf);
> printf("error open nandflash dump!\n");
> Index: device/nandflash/nandflash_smallblock.h
> ===================================================================
> --- device/nandflash/nandflash_smallblock.h (revision 653)
> +++ device/nandflash/nandflash_smallblock.h (working copy)
> @@ -27,6 +27,8 @@
> #define FILE_FLAG (O_RDWR | O_CREAT)
> #endif
>
> +#define FILE_MODE (0x777)
> +
> #if (defined(__MINGW32__) || defined(__BEOS__))
> #define POSIX_SHARE_MEMORY_BROKEN
> #endif
> Index: memory/ram.c
> ===================================================================
> --- memory/ram.c (revision 653)
> +++ memory/ram.c (working copy)
> @@ -261,10 +261,10 @@
> void * state;
> switch(size){
> case 8:
> - *(uint8_t *)value = (uint8_t)mem_read_byte (offset);
> + *value = (uint8_t)mem_read_byte (offset);
> break;
> case 16:
> - *(uint16_t *)value =
> (uint16_t)mem_read_halfword(offset);
> + *value = (uint16_t)mem_read_halfword(offset);
> break;
> case 32:
> *value = mem_read_word(offset);
>
>
> Regards
>
More information about the users
mailing list