Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: John Williams Subject: chmod again Date: Tue, 15 Apr 2003 12:12:25 +1000 Lines: 40 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT main DOT gmane DOT org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en Hi there, Building a (cross-platform) uClinux kernel under Cygwin I stike a variant of the Cygwin chmod issue: The build process is to make the kernel, make the libs, make the user apps, then copy everything into a directory and run the utility genromfs over it. This makes a romfs image of the file system which gets appended to the kernel and uploaded to the target board, ready to run. Here's the catch: the compiled and linked user executables coming out of my toolchain don't have the execute permissions set. genromfs faithfully mirrors the file permissions, meaning that my user executables can't be exec'ed when my board boots up, failing because (of course) the files don't have execute permission. So, I naively tried to just do a chmod 777 on all of my user binaries then run genromfs over it, but chmod doesn't actually do anything, the permissions stay unchanged, as illustrated by the following log: jwilliams AT G435-9029 /cygdrive/d/uClinux-dist/user/init $ ls -alrt init -rw-r--r-- 1 jwilliam mkgroup_ 27984 Apr 15 11:45 init jwilliams AT G435-9029 /cygdrive/d/uClinux-dist/user/init $ chmod 777 init jwilliams AT G435-9029 /cygdrive/d/uClinux-dist/user/init $ ls -alrt init -rw-r--r-- 1 jwilliam mkgroup_ 27984 Apr 15 11:45 init I've checked the FAQ and tried the CYGWIN variable settings ntsec and nontsec, but it has no effect in the example presented above. How can I force Cygwin to get these permissions right? Thanks, John -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/