hi, On Thu, Nov 18, 2010 at 02:15:43PM +0530, nidhi mittal hada wrote:
Its a data acquisition ssytem ... Requirement is like this..I have to work on arm omap arm processor with linux on it . I have to acquire data from some interfaces like UART and store that data through USB interface.OR read it from USB interface Now most probably it shd be a pendrive on usb connected to board . So i want to learn how can we store data on a pen drive connected to usb interface from use space C program.
you can use a script for that: #!/bin/sh mount=$(which mount) cat=$(which cat) $mount /dev/sda1 /mnt $cat /dev/tty1 >> /mnt/data.cap something like that should be enough from what you describe above.
Now another question ...related to basic concept ..... As i have practiced writing a few block device driver(but just on virtual memory not on acttual device ) and worked on filesystem code i was wondering .... If we have a pendrive acting as a block device with lets say fat32 on it . Then how do we interact with it through USb driver or through block device driver
mount the device and use normal read() write() poll() operations. -- balbi -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html