Passing kernel space data buffer where userspace is expected.

2008-08-06 Thread Prasad Joshi
Hi All, I want to encrypt the data before it is written to the disk and decrypt is after it is being read from the disk. so copied the ext2 source code in my directory. Then modified the ext2 file_operations structure to invoke my read and write functions instead of do_sync_read/write const stru

how are you supposed to invoke "namespace.pl"?

2008-08-06 Thread Robert P. J. Day
just curious, but how does one execute the script "scripts/namespace.pl"? based on the early comments, it seems that you should just cd to the top of the kernel source tree, do a build, then run the script with no arguments. i tried that but got a truckload of "No source file found" msgs eve

Re: what is "unpack_to_rootfs()" unpacking, and where is it putting it?

2008-08-06 Thread Robert P. J. Day
On Wed, 6 Aug 2008, Thomas Petazzoni wrote: > Hi Robert, > > Le Tue, 5 Aug 2008 18:28:00 -0400 (EDT), > "Robert P. J. Day" <[EMAIL PROTECTED]> a écrit : > > > this code is particularly ugly because this file includes the > > source file lib/inflate.c, then promptly uses a plethora of global > >

Re: request_firmware on-fly

2008-08-06 Thread Rene Herman
On 06-08-08 21:19, Belisko Marek wrote: A: Because it messes up the natural reading order Q: Why do email users complain about top-posting? On Wed, Aug 6, 2008 at 7:56 PM, Rene Herman <[EMAIL PROTECTED]> wrote: On 06-08-08 11:05, Belisko Marek wrote: it is possible to call request_firmware i

Re: request_firmware on-fly

2008-08-06 Thread Belisko Marek
Hi, maybee I don't correctly explain situation. Main processor consist from ARM core and 3 co-processors. To co-processors should be load FW after boot sequence, but sometimes is necessary load FW when device is running. So stop co-processors and load different FW. I would like to ask if this is p

Re: request_firmware on-fly

2008-08-06 Thread Rene Herman
On 06-08-08 11:05, Belisko Marek wrote: it is possible to call request_firmware in case that I would like to load new FW to device on-fly? I have more FW beause device has low memory and program is splitted to several bin files. I believe you first need to indicate why you'd consider it would

Re: Who decides PCI device number?

2008-08-06 Thread Rene Herman
On 06-08-08 07:54, Rajat Jain wrote: In the PCI addess (domain + PCI bus num + PCI Device num + function num) of a PCI device, who decides the PCI device number assigned to a PCI device? - Is it hard wired for a particular PCI slot? (So that any PCI card plugged into this slot will always hav

Re: Why both macro definitions and struct declarations are included in sched.c?

2008-08-06 Thread Daniel Baluta
" It's especially important to put a declaration or definition in a header file when it will be shared between several other files" I guess those definitions or declarations are used only in sched.c , so there is no reason to put them in header file. Daniel. On Wed, Aug 6, 2008 at 5:05 PM, Zellu

Why both macro definitions and struct declarations are included in sched.c?

2008-08-06 Thread ZelluX
Hi all I'm learning scheduling algorithm and reading sched.c ( http://lxr.linux.no/linux+v2.6.11/kernel/sched.c) , and come up with a question. As C FAQ 10.6 points out, macro definitions and struct declarations should be put in header files(http://c-faq.com/cpp/hfiles.html) But sched.c violates

Re: JFFS2 issues

2008-08-06 Thread Hinko Kocevar
Hi, Nancy Isaac wrote: > Hi, > > This is a very long email with lots of questions. > > Summary of my system > I am working on bringing up a system that's running PPC 8313 with 32MB > of NOR flash, 512MB of NAND flash and 128MB of RAM. We have the NOR > flash to run u-boot and NAND flash has t

Re: what is "unpack_to_rootfs()" unpacking, and where is it putting it?

2008-08-06 Thread Thomas Petazzoni
Hi Robert, Le Tue, 5 Aug 2008 18:28:00 -0400 (EDT), "Robert P. J. Day" <[EMAIL PROTECTED]> a écrit : > this code is particularly ugly because this file includes the source > file lib/inflate.c, then promptly uses a plethora of global variables > to get things done. yeesh. Yes, the way to inte

Re: JFFS2 issues

2008-08-06 Thread David Woodhouse
On Wed, 2008-08-06 at 10:58 +0200, Hinko Kocevar wrote: > Hi, > > Nancy Isaac wrote: > > Hi, > > > > This is a very long email with lots of questions. > > > > Summary of my system > > I am working on bringing up a system that's running PPC 8313 with 32MB > > of NOR flash, 512MB of NAND flash a

request_firmware on-fly

2008-08-06 Thread Belisko Marek
Hi, it is possible to call request_firmware in case that I would like to load new FW to device on-fly? I have more FW beause device has low memory and program is splitted to several bin files. Thanks in advance Marek -- Marek Beliško Ruská Nová Ves 219 08005 Prešov Slovakia http://binaural.i

Re: JFFS2 issues

2008-08-06 Thread Thomas Petazzoni
Le Tue, 5 Aug 2008 19:04:48 -0700, "Nancy Isaac" <[EMAIL PROTECTED]> a écrit : > Problem1 : It takes about 5 minutes for me to boot up the system. > Question: Does anyone have any suggestions to reduce this time? Have a look at http://elinux.org/Boot_Time. Basically, the first step is to measure