block device has corrupt executables on first run

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I wrote a block device driver (its a chopped down compact flash device
that supports ata PIO transfers, can read/write sectors etc.)

I can partition it with fdisk, create ext3 filesystem on it, mount it
and copy some executables onto it (e.g. /usr/sbin). I can then run
these executables from the drive just fine (Though, I suspect the
files are in the cache thats in main memory). Then I unmount and
remount the drive. When I run some executables from the drive, I
either get illegal instruction or segfaults. If I attempt to run them
a few more times eventually they run OK. If I read or write raw
sectors from/to the device /dev/cf they look correct. diff -r
/usr/sbin /mnt/cf/sbin also gives no differences.

What does this suggest?

Thanks,
Bahadir

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux