Mail Archives: cygwin/2003/04/14/22:13:11
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/
- Raw text -