flashcp problem when called via execlp
tglx at linutronix.de
Wed Mar 23 19:50:51 EST 2005
On Thu, 2005-03-24 at 11:01 +1100, Aras Vaichas wrote:
> I'm calling "flashcp" from a utility in order to write a file to a NOR flash
> device. When I call flashcp from my utility, it doesn't work properly.
> In my utility I create a temporary file, fill it with data and then I call
> flashcp via execlp like so:
> execlp( "flashcp", "flashcp", filenamep, MTDFILE, (char *)0 );
I doubt, that flashcp executes different when executed via execlp.
> $ flashcp uenv_Zdp5Bp /dev/mtd/2 && hexdump /dev/mtd/2
Is the file created by your utility ? If not, then your file creation is
More information about the linux-mtd