Rene Herman | 1 Nov 2007 02:38
Picon

Re: simple (and probably trivial) git question about cumulative patches

On 10/31/2007 09:57 AM, Ramagudi Naziir wrote:

> On 10/31/07, Rene Herman <rene.herman <at> keyaccess.nl> wrote:

>> Quilt is tool to manage a stack of patches. You push and pop patches
>> and there's always one on top. I've used it a while, but did not find
>> it to be very handy for managing trees you do actual development in.
>> Working on anything but the patch on top of the stack is somewhere
>> between impossible and ill adviced with it, and I frequently found
>> myself realizing I needed to work on earlier patches a bit more. You
>> then have to pop everything that's on top, work, commit, push all the
>> others again (and suffering maybe massive recompiles due to touching
>> many files...) and so on.
> 
> This is the same problem I have with git (I have never tried quilt). How
> can you work an an earlier patch in git ? I also do exactly what you said
> - I pop everything on top... work.. commit.. push back all others... do
> you have a way to do this otherwise using git ?

Well, firstly, I use seperate branches for most anything. My master branch 
tracks linus' tree but I'm only on that branch when I want to upgrade to a 
new upstream which I don't do daily or anything. I branch off for anything 
conceptually seperate and have a "local" branch that pulls in all the other 
branches that contains work I want to compile, and which generates the 
kernel I run.

I usually branch of at a full release:

	<at the master branch>
	git branch foo v2.6.23
(Continue reading)

Iman Darabi | 1 Nov 2007 18:14
Picon

scull driver from ldd3 book , insmod , error

hi

I'm working on linux device drivers 3 book .

i got scull driver from http://examples.oreilly.com/linuxdrive3/ 
it needs linux-2.6.10 , but i've gentoo with linux-2.6.22.9 ( and gcc version 4.1.1 ) 

so i used 2.6.10 header files to compile scull like this :

( modified Makefile's scull ) :
KERNELDIR ?= /lib/modules/2.6.10/build

source compiled with no error
but when try to load module get this error :

tux scull # bash scull_load

insmod: error inserting './scull.ko': -1 Invalid module format

and kernel log message is :

<3>scull: version magic '2.6.10 SMP preempt 686 gcc-4.1' should be '2.6.22.9 SMP preempt mod_unload CORE2 '

BTW :

i've thinkpad t60 with Intel(R) Core(TM)2 CPU         T5600   <at> 1.83GHz

and some of my config kernel is :

CONFIG_SMP=y

CONFIG_MCORE2=y

thanks for your attentions ...


--
Nothing but perfection
http://iman.darabi.googlepages.com/
Andrea Gasparini | 1 Nov 2007 19:18
Picon
Favicon

Re: scull driver from ldd3 book , insmod , error

Iman Darabi spiffera, alle Thursday 01 November 2007 circa:
> i got scull driver from http://examples.oreilly.com/linuxdrive3/
> it needs linux-2.6.10 , but i've gentoo with linux-2.6.22.9 ( and gcc
> version 4.1.1 )
>
> so i used 2.6.10 header files to compile scull like this :

No, you must compile it against a 2.6.22 kernel, so you have to:
- download the 2.6.22 version sources, 
- modify the makefile in order to point to the right sources.
- try to compile it again ;)

bye!
--

-- 
-gaspa-
-----------------------------------------------
--------- http://launchpad.net/~gaspa ---------
------ HomePage: iogaspa.altervista.org -------
-Il lunedi'dell'arrampicatore: www.lunedi.org -

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

Picon
Favicon

running ide driver in the polling mode

Hi All,
Is there anyway I can configure the generic linux ide driver to run in the polling mode rather than interrupt mode?
 
Thanks,
Biz
Surej Antony Joseph | 1 Nov 2007 20:30
Picon

Accessing PCMCIA device registers.

Hello all,

    I have a doubt regarding the difference between I/O Ports and I/O 
Memory. I'm reading through LDD3 and it says I/O ports are consecutive 
address in either memory address space or I/O address space through 
which device registers can be accessed  and I/O memory is a region of 
RAM that the device makes available to the processor over the bus. I 
would like to know as to which are the devices using I/O Ports and which 
are the devices using I/O memory and why.

     I'm trying to write a device driver for PCMCIA MC315+ data card on 
i386 platform for kernel 2.6.18. I'm trying to access the Local 
Configuration Registers made available by the device. By reading the CIS 
from the device i am able to get address of I/O Space. Can someone tell 
the kind of I/O access used for accessing these registers.

Thanks for your help.
Surej

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

Greg KH | 2 Nov 2007 06:30
Gravatar

Re: Does kernel 2.6.20.3 have any apparmor module?

On Tue, Oct 30, 2007 at 10:56:59PM -0400, hxsrmeng wrote:
> Hi friends,
> 
> I am building a 2.6.20.3 kernel on an openSUSE 10.2. I cannot find the
> apparmor in the kernel's configuration file. 

That is because apparmor is not part of the main linux kernel tree.

> When boot with the new kernel, it shows that it's failed to load
> apparmor module. I try to pass capabilities.disable=1 to the booting
> command line. It doesn't work, there is no apparmor module to load.
> 
> Do I need to apply a patch? May I use the kernel patch at the website:
> http://forgeftp.novell.com//apparmor/LKML_Submission-June-07/ ?
> 
> or the kernel-patch-mm at
> http://forge.novell.com/modules/xfmod/project/?apparmor ?

If you want to have it in your kernel, yes, you are going to have to
apply some kind of patch.

thanks,

greg k-h

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

Robert P. J. Day | 2 Nov 2007 09:13
Picon
Gravatar

can a git commit have more than two parents?


  reading the git user manual, and i'm curious about the phrasing that
a commit might have more than one parent if that commit represents a
merge.  sure, it's obvious that it would have *two* parents, but why
doesn't the text just say that?  can there be *more* than two parents
for a commit operation?  or for any other operation?  thanks.

rday

--

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================

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

Iman Darabi | 2 Nov 2007 09:42
Picon

Re: scull driver from ldd3 book , insmod , error



On Nov 1, 2007 9:48 PM, Andrea Gasparini <gaspa <at> yattaweb.it> wrote:
Iman Darabi spiffera, alle Thursday 01 November 2007 circa:
> i got scull driver from http://examples.oreilly.com/linuxdrive3/
> it needs linux-2.6.10 , but i've gentoo with linux-2.6.22.9 ( and gcc
> version 4.1.1 )
>
> so i used 2.6.10 header files to compile scull like this :

No, you must compile it against a 2.6.22 kernel, so you have to:
- download the 2.6.22 version sources,
- modify the makefile in order to point to the right sources.
- try to compile it again ;)
 
yes, this is the right way , and i've 2.6.22 source ...
but the problem is that scull driver dose not compile against 2.6.22 . ( api changes ??? )
ldd3 book uses version 2.6.10 . and when try to compile 2.6.10 get lots of errors , maybe because  my gcc version is  4.1.1 and is  so  new to compile  it .

Wang Yu | 2 Nov 2007 10:38
Picon

Device driver in I/O architecture

Hi, all
Since the I/O architecture is CPU<-->I/O Bus<-->I/O interface<-->I/O controller<-->I/O device,and sometimes I/O ports are represented by four registers, device driver is a software layer which implements some device-related routines, my question is where device driver is implemented? Is it within I/O controller? because it will handle interrupts issued by I/O device.

Thanks!
Best regards

--
National Research Center for Intelligent Computing Systems
Institute of Computing Technology, Chinese Academy of Sciences

ashok | 2 Nov 2007 13:26

problem in read operations - inconsistency

Hi All,

My system configuration is   :
Arch : ppc7400
kernel : 2.6.21
Memory : 512MB.
Filesystem : XFS

I am facing a strange problem !

When i do a read operation on a large file,  i am not getting the 
expected data (ie., it reads wrong data).

I  have written a simple read & write program, where it does the 
following :

1.allocate a buffer of 314MB
2.memset it to '5'
3.write this buffer to a file
4.fsync the file
5.close the file
6.open the same file
7.read the contents in chunksize of 4k into a buffer.
8.check the contents for '5'
    Here i am supposed to get only '5's, but i get some different value 
after some reads.

The interesting thing here is :  If i open the file with O_DIRECT, i 
don't see such inconsistency.

Due to this inconsistency, i am not able to untar a large file (600MB) 
properly. In the middle of untarring i get "Invalid headers".  Copy 
operations are also not happening properly, get "Structure needs 
cleanining" in the middle of copy. Even the compare on two same files 
shows me differences.

I guess all the above inconsistency is due to the "buffered read path". 
Some thing goes wrong in the flow of buffered reads.
I have checked the buffer inside the "do_generic_mapping_read" function 
(ie., before the copy_to_user ), even here there is inconsistency.

I checked the memory with memtest, and harddisk with smartmon tools, 
found no errors here. Also same problem is reproduced on different m/c's 
with similar configuration.

Is this a bug in kernel-2.6.21-PPC?
Please help me on finding out the problem.

Thanks
Ashok

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


Gmane