[GSOC2009]GUMSTIX(PXA255) BSP for RTEMS

xi yang hiyangxi at gmail.com
Thu Jun 4 14:05:39 UTC 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gumstix_bsp.patch
Type: text/x-patch
Size: 5457 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20090605/95b5275a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gumstix.cfg
Type: application/octet-stream
Size: 630 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20090605/95b5275a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gumstix.tar.gz
Type: application/x-gzip
Size: 7397 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20090605/95b5275a/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pxa255.tar.gz
Type: application/x-gzip
Size: 7140 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20090605/95b5275a/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gumstix.skyeye
Type: application/octet-stream
Size: 263 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20090605/95b5275a/attachment-0001.obj>


More information about the users mailing list