This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: eCos 3.0 beta 1 now available for download


John Dallaway wrote:
On behalf of the eCos maintainers, I am pleased to announce that the
eCos 3.0 beta 1 release is now available for download.

...


Both eCos and the pre-built toolchains may be downloaded and installed
by following the instructions provided at:

http://ecos.sourceware.org/getstart.html

Following installation, please refer to the release notes at
ecos-3.0b1/README.txt for details of known issues in this release.

Thank you for your on-going support of eCos.

I downloaded eCos from CVS and cvs updated to tag ecos-v3_0-branch. Since my build system relies on command-line ecosconfig, I then configured and built the host tools (in a separate directory) from ~ECOS/host/ without problems.


My eCos setup (one of the two) is the BlackFin port from the Univ Chemnitz, extended by me to other BlackFin CPUs and DevKits. I copied all BlackFin-related packages into the 3.0 tree, and my beta NAND flash and YAFFS packages. I compiled and built for EZ-Kit BF548 which includes YAFFS/NAND. I ran into exactly one problem: YAFFS requires chmod(), so I diff/patched that from my usual eCos checkout into eCos 3.0, see attached patch.

Then I built and ran the fileio1 test for YAFFS2. All went without problems.

Then I built the libs for my application, RFID Guardian (http://www.rfidguardian.org). I built the file system traversal executable for it, which uses threads, interrupt-driven serial port, and all kinds of file IO. All went well.

This obviously isn't an exhaustive test, but it shows that threads, serial port interrupts, my newer packages etc work well without any adaptation (except addition of chmod()).

Compiler: custom-built from svn from uCLinux/Bfin:
bfin-elf-gcc (GCC) 4.1.2 (ADI svn)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Host system:
$ uname -a
Linux athlon 2.6.24-23-generic #1 SMP Mon Jan 26 00:13:11 UTC 2009 i686 GNU/Linux
Ubuntu-Hardy


Rutger Hofman
VU Amsterdam
Index: isoinfra/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/isoinfra/current/ChangeLog,v
retrieving revision 1.32
diff -u -r1.32 ChangeLog
--- isoinfra/current/ChangeLog	29 Jan 2009 17:49:50 -0000	1.32
+++ isoinfra/current/ChangeLog	24 Feb 2009 14:39:43 -0000
@@ -1,3 +1,6 @@
+2009-02-24  Rutger Hofmman	<rutger@cs.vu.nl>
+	* include/sys/stat.h: restore chmod() prototype
+
 2007-01-24  Peter Korsgaard  <peter.korsgaard@barco.com>
 
 	* cdl/isoinfra.cdl:
Index: isoinfra/current/include/sys/stat.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/isoinfra/current/include/sys/stat.h,v
retrieving revision 1.8
diff -u -r1.8 stat.h
--- isoinfra/current/include/sys/stat.h	29 Jan 2009 17:49:50 -0000	1.8
+++ isoinfra/current/include/sys/stat.h	24 Feb 2009 14:39:43 -0000
@@ -148,6 +148,8 @@
 
 __externC int mkdir(const char *path, mode_t mode);
 
+__externC int chmod(const char *path, mode_t mode);
+
 #endif /* CYGONCE_ISO_STAT_H multiple inclusion protection */
 
 /* EOF stat.h */
Index: io/fileio/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/fileio/current/ChangeLog,v
retrieving revision 1.69
diff -u -r1.69 ChangeLog
--- io/fileio/current/ChangeLog	12 Dec 2008 10:50:43 -0000	1.69
+++ io/fileio/current/ChangeLog	24 Feb 2009 14:39:45 -0000
@@ -1,3 +1,7 @@
+2008-11-18  Rutger Hofman <rutger@cs.vu.nl>
+	* src/file.cxx: add a chmod() call, implemented by calling
+	cyg_fs_setinfo with parameter FS_INFO_CHMOD
+
 2008-12-11  Nick Garnett  <nickg@ecoscentric.com>
 
 	* src/fd.cxx (fp_ucount_dec, fd_close): Fix locking strategy so
Index: io/fileio/current/include/fileio.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/fileio/current/include/fileio.h,v
retrieving revision 1.16
diff -u -r1.16 fileio.h
--- io/fileio/current/include/fileio.h	29 Jan 2009 17:49:46 -0000	1.16
+++ io/fileio/current/include/fileio.h	24 Feb 2009 14:39:46 -0000
@@ -161,6 +161,8 @@
 #ifdef  CYGSEM_FILEIO_INFO_DISK_USAGE
 #define FS_INFO_DISK_USAGE      6       /* get_disk_usage()    */
 #endif
+#define FS_INFO_CHMOD           7       /* chmod() */
+
 //-----------------------------------------------------------------------------
 // Types for link()
 
Index: io/fileio/current/src/file.cxx
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/fileio/current/src/file.cxx,v
retrieving revision 1.12
diff -u -r1.12 file.cxx
--- io/fileio/current/src/file.cxx	29 Jan 2009 17:49:46 -0000	1.12
+++ io/fileio/current/src/file.cxx	24 Feb 2009 14:39:49 -0000
@@ -41,6 +41,7 @@
 //
 // Author(s):           nickg
 // Contributors:        nickg
+// Contributors:        rutger at cs dot vu dot nl: chmod()
 // Date:                2000-05-25
 // Purpose:             Fileio file operations
 // Description:         These are the functions that operate on files as a whole,
@@ -877,7 +878,6 @@
 
 //==========================================================================
 // FS set info.
-
 __externC int cyg_fs_setinfo( const char *path, int key, void *buf, int len )
 {
     FILEIO_ENTRY();
@@ -901,5 +901,19 @@
     FILEIO_RETURN(ret);
 }
 
+//==========================================================================
+// chmod
+
+__externC int chmod(const char *path, mode_t mode)
+{
+    int         ret;
+
+    FILEIO_ENTRY();
+
+    ret = cyg_fs_setinfo(path, FS_INFO_CHMOD, &mode, sizeof mode);
+
+    FILEIO_RETURN(ret);
+}
+
 // -------------------------------------------------------------------------
 // EOF file.cxx

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]