Device '/dev/kmem' and patches on Fedorakernel.

Matias Feliciano feliciano.matias at free.fr
Wed Apr 28 00:31:36 UTC 2004


Le mer 28/04/2004 à 01:19, maillist at wolke7.net a écrit :
> Hi Matias, hi Maillist,
> 
> 
> >> brings me this "cat: /dev/kmem: Operation not permitted"
> 
> > I suppress the patch linux-2.6.0-devmem.patch and now I have this
> > "feature".
> 
> 
> OK, then i would like to try to compile the default Fedorakernel
> without the "devmem.patch". In the first mail yesterday you said:
> "See the src.rpm package. All patchs are there." but:
>
> [snip]
> 
> So, i suppose all patches are already submitted in the src.rpm.
> But now, how i can remove the "dvmem.patch" from the defalut
> Fedorakernel-sources?
> 

For exemple : 
$ cd /usr/src/linux-2.6.5-1.327
$ rpm2cpio path/kernel-2.6.5-1.327.src.rpm | cpio -tv
[...]
linux-2.6.0-devmem.patch
[...]

Extract linux-2.6.0-devmem.patch
$ rpm2cpio path/kernel-2.6.5-1.327.src.rpm | cpio -iv linux-2.6.0-devmem.patch
linux-2.6.0-devmem.patch
73695 blocks

Reverse the patch
$ patch -p1 -R < linux-2.6.0-devmem.patch
patching file arch/i386/mm/init.c
patching file arch/s390/mm/init.c
Hunk #1 succeeded at 240 (offset 4 lines).
patching file arch/x86_64/mm/init.c
Hunk #1 succeeded at 374 (offset 2 lines).
patching file drivers/char/mem.c
Hunk #2 succeeded at 125 (offset 5 lines).
Hunk #3 succeeded at 163 (offset 6 lines).
Hunk #4 succeeded at 183 (offset 5 lines).
Hunk #5 succeeded at 199 (offset 6 lines).
Hunk #6 succeeded at 218 (offset 5 lines).
Hunk #7 succeeded at 283 with fuzz 2 (offset 7 lines).
patching file fs/proc/kcore.c
patching file arch/ppc/mm/init.c
patching file arch/ia64/mm/init.c

Do as usual.

Use at you own risk.

> Many thanks
> Marco
> 
> 
> -- 
> "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
> Jetzt aktivieren unter http://www.gmx.net/info
> 





More information about the fedora-test-list mailing list