mtd2 partition mapping on mtd1?...
joern at wohnheim.fh-wedel.de
Tue Nov 5 11:27:22 EST 2002
On Tue, 5 November 2002 14:13:47 +0000, vijay vijay wrote:
> Had tried doing all that. Do not have the log message, will
> try again and get back to you. Only remember the crash happening
> in cramfs_read -> bread -> ...submit_bh.
Should be a pretty simple mistake - when you see it.
> About the second query on raw operations:
> Being new to Linux, am still trying to grasp the 'user/kernel'
> space concepts. I tried my test using __raw_writel() operation
> in inode.c itself. Guess that puts me in kernel space right?.
> Should it work if tried from user space( build my code as a library,
> copy it to filesystem and run from there like other utils(dd)) ?.
If your code runs inside the kernel, either linked directly or as a
kernel module, it runs from kernel space.
If your code is compiled into a program and executed from bash, etc.
it runs from user space.
Plain and simple. :-)
Working from userspace, you don't have any access to __raw_writel().
Do you have a reason, why working on the block device from user space
is not sufficient for your needs?
Oh, and could you leave the quotation you refer to over the text you
write? This makes the reference obvious.
Those who come seeking peace without a treaty are plotting.
-- Sun Tzu
More information about the linux-mtd