Thanks Jon, the code you gave me worked like a charm :D

by the way, do you have any idea about how to modify the kernel and images which has been loaded into the NAND?
I am facing some problem with Wifi and probably need to add some capability for USB camera connectivity.

so far I knew how to compile a kernel with kernel source code which I got from here:
git clone git://www.sakoman.com/git/linux-omap-2.6 linux
but I have no idea how to configure the kernel which is inside my SD card or flash.
Or, the cause of my problem doesn't have anything to do with kernel?

Sorry for the new generated and long question, any comment will be greatly appreciated 

James


2012/9/25 Jonathan Kunkee <jonathan.kunkee@gmail.com>

I'm not sure just how new you are, so I'll guess:

This sounds like a simple permissions issue. You need to instruct the system to permit you to execute the file as a program:

chmod u+x ./run.sh
./run.sh

Does that do the trick?

--Jon

On Sep 25, 2012 12:09 PM, "kfcandroid" <kfc.android@gmail.com> wrote:
Hi all,

I'm facing a problem while flashing to the NAND.
while I have all the images and script saved in the SD card's /root/images
folder,
I boot up my Gumstix from SD card, logged in as root:
/overo login: root/
root@overo:~#

and then I navigate to the folder, tried to run the .sh file with this
instruction:
root@overo:~/images#/ ./run.sh/

but I got this error message:
-sh: ./run.sh: Permission denied


Is there anything I should fix before running the script?
I am totally new to this world, so detailed instruction would be highly
appreciated :)

Thanks in advance!!

James




--
View this message in context: http://gumstix.8.n6.nabble.com/Writing-images-to-onboard-nand-tp649052p4965498.html
Sent from the Gumstix mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users




--
Best,
James