Re: USB support doubt

2009-02-22 Thread Frank Thieme
On Sunday 22 February 2009 05:17:48 niamathullah sharief wrote: Actually i disabled the USB support in make menuconfig while building a kernelnow i have to make that USB port enable dynamically...that is while kernel runswhat are all the modules are needed to enable the USB port...?how

MTD partitions, MTD_WRITEABLE and flash_lock and flash_unlock

2009-02-22 Thread Robert P. J. Day
i'm sure i could verify this by RTFS but i've had a long week and i'm feeling lazy so ... is it true that i can protect an MTD partition from accidental overwriting by defining it in the map file with the MAP_WRITEABLE flag? and having done that, the only way to change that partition would

Re: MTD partitions, MTD_WRITEABLE and flash_lock and flash_unlock

2009-02-22 Thread Matthias Kaehlcke
Hi Robert, El Sun, Feb 22, 2009 at 02:02:12PM -0500 Robert P. J. Day ha dit: i'm sure i could verify this by RTFS but i've had a long week and i'm feeling lazy so ... is it true that i can protect an MTD partition from accidental overwriting by defining it in the map file with the

Re: MTD partitions, MTD_WRITEABLE and flash_lock and flash_unlock

2009-02-22 Thread Matthias Kaehlcke
El Sun, Feb 22, 2009 at 08:37:15PM +0100 Matthias Kaehlcke ha dit: Hi Robert, El Sun, Feb 22, 2009 at 02:02:12PM -0500 Robert P. J. Day ha dit: i'm sure i could verify this by RTFS but i've had a long week and i'm feeling lazy so ... is it true that i can protect an MTD partition

Re: Cannot open from user space a misc device - why ?

2009-02-22 Thread Belisko Marek
Hi, On Sun, Feb 22, 2009 at 8:11 PM, Kevin Wilson wkev...@gmail.com wrote: Hello, Following is a simple kernel module of 40 lines which only registers a misc device. I insmod the module and it is ok; the return value of misc_register() is 0. ls -al /dev/mymodule gives: crw-rw 1 root

Re: mutual exclusion locks over PCI memory

2009-02-22 Thread Grant Grundler
On Mon, Feb 23, 2009 at 11:47:19AM +0530, arun c wrote: ... Yes I don't need any lock to protect my data here, as host is write only and target is read only. Here is what I did. typedef command_pkt { u32 valid; .. .. .. u32 data[]; } typedef struct my_circ_buf { u32

Re: mutual exclusion locks over PCI memory

2009-02-22 Thread arun c
Hi, On Mon, Feb 23, 2009 at 12:43 PM, Grant Grundler grund...@parisc-linux.org wrote: On Mon, Feb 23, 2009 at 11:47:19AM +0530, arun c wrote: ... Yes I don't need any lock to protect my data here, as host is write only and target is read only. Here is what I did. typedef command_pkt {