Hi,
My jobs need to recompile the kernel codes, but I don't know how to yum the kernel source codes.
Any help?
Thanks in advance.
Ian
On Mon, Aug 25, 2008 at 5:14 AM, Ian jonhson jonhson.ian@gmail.com wrote:
Hi,
My jobs need to recompile the kernel codes, but I don't know how to yum the kernel source codes.
Any help?
First look in http://wiki.centos.org/HowTos/I_need_the_Kernel_Source
and then http://wiki.centos.org/HowTos/Custom_Kernel
Akemi
I have downloaded the src.rpm according the wiki instructions. however, when I executed
$ rpm -i kernel-2.6.18-92.1.10.el5.src.rpm
I got a lot of warnings and after the following command:
$ rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log
No files are created in BUILD directory. The prep-err.log said:
error: Failed build dependencies: unifdef is needed by kernel-2.6.18-92.1.10.el5.x86_64
My hardware is a 64bit machine. Are there something different in kernel version 32 and 64? or, something I miss?
Thanks again,
Ian
On Mon, Aug 25, 2008 at 8:39 PM, Akemi Yagi amyagi@gmail.com wrote:
On Mon, Aug 25, 2008 at 5:14 AM, Ian jonhson jonhson.ian@gmail.com wrote:
Hi,
My jobs need to recompile the kernel codes, but I don't know how to yum the kernel source codes.
Any help?
First look in http://wiki.centos.org/HowTos/I_need_the_Kernel_Source
and then http://wiki.centos.org/HowTos/Custom_Kernel
Akemi _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Do you have installed kernel-devel package?
Ian jonhson wrote / napĂsal(a):
I have downloaded the src.rpm according the wiki instructions. however, when I executed
$ rpm -i kernel-2.6.18-92.1.10.el5.src.rpm
I got a lot of warnings and after the following command:
$ rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log
No files are created in BUILD directory. The prep-err.log said:
error: Failed build dependencies: unifdef is needed by kernel-2.6.18-92.1.10.el5.x86_64
My hardware is a 64bit machine. Are there something different in kernel version 32 and 64? or, something I miss?
Thanks again,
Ian
On Mon, Aug 25, 2008 at 8:39 PM, Akemi Yagi amyagi@gmail.com wrote:
On Mon, Aug 25, 2008 at 5:14 AM, Ian jonhson jonhson.ian@gmail.com wrote:
Hi,
My jobs need to recompile the kernel codes, but I don't know how to yum the kernel source codes.
Any help?
First look in http://wiki.centos.org/HowTos/I_need_the_Kernel_Source
and then http://wiki.centos.org/HowTos/Custom_Kernel
Akemi _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Tue, Aug 26, 2008 at 8:18 PM, Romeo Ninov rninov@gmail.com wrote:
Do you have installed kernel-devel package?
Sure. but the problem is still there.
Any help?
What about kernel-headers
Ian jonhson wrote / napĂsal(a):
On Tue, Aug 26, 2008 at 8:18 PM, Romeo Ninov rninov@gmail.com wrote:
Do you have installed kernel-devel package?
Sure. but the problem is still there.
Any help? _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Tue, Aug 26, 2008 at 8:44 AM, Romeo Ninov rninov@gmail.com wrote:
What about kernel-headers
Rather than guessing, why not look at the output from the rpm command he ran, which gives the name of the package he's missing? Filipe nailed this one a little earlier in the thread with unifdef.x86_64 needing to be installed.
On Tue, Aug 26, 2008 at 5:49 AM, Jim Perrin jperrin@gmail.com wrote:
Rather than guessing, why not look at the output from the rpm command he ran, which gives the name of the package he's missing? Filipe nailed this one a little earlier in the thread with unifdef.x86_64 needing to be installed.
I remember running into this a while back. That being the case, shouldn't unifdef be included in kernel-devel, or at least one of the packages that are required for building a kernel? Seems like it sticks out like a sore thumb this way....
Alternatively, how do I go about suggesting this in a formal way (bugzilla, etc.)?
Thanks.
mhr
On Tue, Aug 26, 2008 at 10:32 AM, MHR mhullrich@gmail.com wrote:
On Tue, Aug 26, 2008 at 5:49 AM, Jim Perrin jperrin@gmail.com wrote:
Rather than guessing, why not look at the output from the rpm command he ran, which gives the name of the package he's missing? Filipe nailed this one a little earlier in the thread with unifdef.x86_64 needing to be installed.
I remember running into this a while back. That being the case, shouldn't unifdef be included in kernel-devel, or at least one of the packages that are required for building a kernel? Seems like it sticks out like a sore thumb this way....
Alternatively, how do I go about suggesting this in a formal way (bugzilla, etc.)?
Alan and I are now talking about this so we can amend the Wiki article appropriately. According to him, unifdef is not required on his 32-bit system. I will update on this subject as soon as I gather more info.
Akemi
On Tue, Aug 26, 2008 at 10:36 AM, Akemi Yagi amyagi@gmail.com wrote:
On Tue, Aug 26, 2008 at 10:32 AM, MHR mhullrich@gmail.com wrote:
I remember running into this a while back. That being the case, shouldn't unifdef be included in kernel-devel, or at least one of the packages that are required for building a kernel? Seems like it sticks out like a sore thumb this way....
Alternatively, how do I go about suggesting this in a formal way (bugzilla, etc.)?
Alan and I are now talking about this so we can amend the Wiki article appropriately. According to him, unifdef is not required on his 32-bit system. I will update on this subject as soon as I gather more info.
Many thanks! Let me know if I can help.
mhr
On Tue, Aug 26, 2008 at 11:12 AM, MHR mhullrich@gmail.com wrote:
On Tue, Aug 26, 2008 at 10:36 AM, Akemi Yagi amyagi@gmail.com wrote:
On Tue, Aug 26, 2008 at 10:32 AM, MHR mhullrich@gmail.com wrote:
I remember running into this a while back. That being the case, shouldn't unifdef be included in kernel-devel, or at least one of the packages that are required for building a kernel? Seems like it sticks out like a sore thumb this way....
Alternatively, how do I go about suggesting this in a formal way (bugzilla, etc.)?
Alan and I are now talking about this so we can amend the Wiki article appropriately. According to him, unifdef is not required on his 32-bit system. I will update on this subject as soon as I gather more info.
Many thanks! Let me know if I can help.
You can certainly help. So, from what you wrote I suppose you encountered the same dependency problem and then manually installed unifdef. Was this indeed the case? Also, this happened on an x86_64 system?
Akemi
On Tue, Aug 26, 2008 at 11:20 AM, Akemi Yagi amyagi@gmail.com wrote:
You can certainly help. So, from what you wrote I suppose you encountered the same dependency problem and then manually installed unifdef. Was this indeed the case? Also, this happened on an x86_64 system?
Yes, yes, and yes, not necessarily in that order.... ;^)
I routinely build a kernel with NTFS read/write support whenever a new kernel comes out, partly to get the support, but mostly to keep my hand at building kernels alive and kicking (?). My primary desktop is an AMD 64x2 and I always run CentOS x86_64 kernels.
mhr
MHR wrote:
I routinely build a kernel with NTFS read/write support whenever a new kernel comes out, partly to get the support
this is OT, but do you know you can get NTFS RW support by simply installing fuse-ntfs-3g from rpmforge? Fuse (from rf) gets rebuilt for new kernels by dkms, so it's painless on kernel updates.
On Tue, Aug 26, 2008 at 2:34 PM, Nicolas Thierry-Mieg Nicolas.Thierry-Mieg@imag.fr wrote:
MHR wrote:
I routinely build a kernel with NTFS read/write support whenever a new kernel comes out, partly to get the support
this is OT, but do you know you can get NTFS RW support by simply installing fuse-ntfs-3g from rpmforge? Fuse (from rf) gets rebuilt for new kernels by dkms, so it's painless on kernel updates.
Thanks Nicolas. I just installed that on my 32 bit desktop. Now, I'll read the documentation..... http://www.ntfs-3g.org/ Lanny
On Tue, Aug 26, 2008 at 12:53 PM, Lanny Marcus lmmailinglists@gmail.com wrote:
On Tue, Aug 26, 2008 at 2:34 PM, Nicolas Thierry-Mieg Nicolas.Thierry-Mieg@imag.fr wrote:
MHR wrote:
I routinely build a kernel with NTFS read/write support whenever a new kernel comes out, partly to get the support
this is OT, but do you know you can get NTFS RW support by simply installing fuse-ntfs-3g from rpmforge? Fuse (from rf) gets rebuilt for new kernels by dkms, so it's painless on kernel updates.
Thanks Nicolas. I just installed that on my 32 bit desktop. Now, I'll read the documentation..... http://www.ntfs-3g.org/ Lanny
Lanny,
Actually, the documentation is here:
http://wiki.centos.org/TipsAndTricks/NTFSPartitions
Akemi
On Tue, Aug 26, 2008 at 2:57 PM, Akemi Yagi amyagi@gmail.com wrote:
On Tue, Aug 26, 2008 at 12:53 PM, Lanny Marcus lmmailinglists@gmail.com wrote:
On Tue, Aug 26, 2008 at 2:34 PM, Nicolas Thierry-Mieg Nicolas.Thierry-Mieg@imag.fr wrote:
MHR wrote:
I routinely build a kernel with NTFS read/write support whenever a new kernel comes out, partly to get the support
this is OT, but do you know you can get NTFS RW support by simply installing fuse-ntfs-3g from rpmforge? Fuse (from rf) gets rebuilt for new kernels by dkms, so it's painless on kernel updates.
Thanks Nicolas. I just installed that on my 32 bit desktop. Now, I'll read the documentation..... http://www.ntfs-3g.org/ Lanny
Lanny,
Actually, the documentation is here:
Akemi: Thank you. I discovered that I need fuse and that wiki page you pointed me to shows other things are also needed. I'll follow that wiki page! The error I got, when I tried to mount it, per their web page is below..... Lanny
[root@dell2400 ~]# mount -t ntfs-3g /dev/hda6 /mnt/windows FATAL: Module fuse not found. ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root [root@dell2400 ~]# modprobe fuse FATAL: Module fuse not found. [root@dell2400 ~]#
On Tue, Aug 26, 2008 at 1:12 PM, Lanny Marcus lmmailinglists@gmail.com wrote:
On Tue, Aug 26, 2008 at 2:57 PM, Akemi Yagi amyagi@gmail.com wrote:
Actually, the documentation is here:
Akemi: Thank you. I discovered that I need fuse and that wiki page you pointed me to shows other things are also needed. I'll follow that wiki page! The error I got, when I tried to mount it, per their web page is below..... Lanny
[root@dell2400 ~]# mount -t ntfs-3g /dev/hda6 /mnt/windows FATAL: Module fuse not found. ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root [root@dell2400 ~]# modprobe fuse FATAL: Module fuse not found. [root@dell2400 ~]#
When you ran:
yum install fuse fuse-ntfs-3g dkms dkms-fuse
did it go without any error? If so, I suggest you do a reboot. You don't have to, but it is the easiest to get dkms into action.
Akemi
On Tue, Aug 26, 2008 at 3:33 PM, Akemi Yagi amyagi@gmail.com wrote:
On Tue, Aug 26, 2008 at 1:12 PM, Lanny Marcus lmmailinglists@gmail.com wrote:
On Tue, Aug 26, 2008 at 2:57 PM, Akemi Yagi amyagi@gmail.com wrote:
Actually, the documentation is here: http://wiki.centos.org/TipsAndTricks/NTFSPartitions
Akemi: Thank you. I discovered that I need fuse and that wiki page you pointed me to shows other things are also needed. I'll follow that wiki page! The error I got, when I tried to mount it, per their web page is below..... Lanny
[root@dell2400 ~]# mount -t ntfs-3g /dev/hda6 /mnt/windows FATAL: Module fuse not found. ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root [root@dell2400 ~]# modprobe fuse FATAL: Module fuse not found. [root@dell2400 ~]#
When you ran:
yum install fuse fuse-ntfs-3g dkms dkms-fuse
did it go without any error?
Yes.
If so, I suggest you do a reboot. You don't have to, but it is the easiest to get dkms into action.
Thanks! I'll reboot and ry it again
On Tue, Aug 26, 2008 at 3:33 PM, Akemi Yagi amyagi@gmail.com wrote:
On Tue, Aug 26, 2008 at 1:12 PM, Lanny Marcus lmmailinglists@gmail.com wrote:
On Tue, Aug 26, 2008 at 2:57 PM, Akemi Yagi amyagi@gmail.com wrote:
Actually, the documentation is here:
<snip>
When you ran:
yum install fuse fuse-ntfs-3g dkms dkms-fuse
did it go without any error? If so, I suggest you do a reboot. You don't have to, but it is the easiest to get dkms into action.
Akemi: I did a reboot, which makes a lot of sense, if dkms is modifying the kernel, but still no joy. Lanny
[lanny@dell2400 ~]$ su - Password: [root@dell2400 ~]# /dev/hda6 /mnt/win ntfs-3g rw,umask=0000,defaults 0 0 -bash: /dev/hda6: Permission denied [root@dell2400 ~]# fdisk -l
Disk /dev/hda: 40.0 GB, 40000000000 bytes 255 heads, 63 sectors/track, 4863 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 532 4273258+ 7 HPFS/NTFS /dev/hda2 533 1258 5831595 f W95 Ext'd (LBA) /dev/hda3 1259 1271 104422+ 83 Linux /dev/hda4 1272 4863 28852740 8e Linux LVM /dev/hda5 533 783 2016126 7 HPFS/NTFS /dev/hda6 784 1125 2747083+ 7 HPFS/NTFS /dev/hda7 1126 1258 1068291 7 HPFS/NTFS [root@dell2400 ~]#
on 8-26-2008 2:02 PM Lanny Marcus spake the following:
On Tue, Aug 26, 2008 at 3:33 PM, Akemi Yagi amyagi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
On Tue, Aug 26, 2008 at 1:12 PM, Lanny Marcus lmmailinglists-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
On Tue, Aug 26, 2008 at 2:57 PM, Akemi Yagi amyagi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
Actually, the documentation is here:
<snip> > When you ran: > > yum install fuse fuse-ntfs-3g dkms dkms-fuse > > did it go without any error? If so, I suggest you do a reboot. You > don't have to, but it is the easiest to get dkms into action.
Akemi: I did a reboot, which makes a lot of sense, if dkms is modifying the kernel, but still no joy. Lanny
[lanny@dell2400 ~]$ su - Password: [root@dell2400 ~]# /dev/hda6 /mnt/win ntfs-3g rw,umask=0000,defaults 0 0 -bash: /dev/hda6: Permission denied [root@dell2400 ~]# fdisk -l
Disk /dev/hda: 40.0 GB, 40000000000 bytes 255 heads, 63 sectors/track, 4863 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 532 4273258+ 7 HPFS/NTFS /dev/hda2 533 1258 5831595 f W95 Ext'd (LBA) /dev/hda3 1259 1271 104422+ 83 Linux /dev/hda4 1272 4863 28852740 8e Linux LVM /dev/hda5 533 783 2016126 7 HPFS/NTFS /dev/hda6 784 1125 2747083+ 7 HPFS/NTFS /dev/hda7 1126 1258 1068291 7 HPFS/NTFS [root@dell2400 ~]#
Just for a complete test how about running "ls -la /mnt"
On Tue, Aug 26, 2008 at 4:10 PM, Scott Silva ssilva@sgvwater.com wrote:
on 8-26-2008 2:02 PM Lanny Marcus spake the following:
On Tue, Aug 26, 2008 at 3:33 PM, Akemi Yagi amyagi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
<snip> > > When you ran: > > yum install fuse fuse-ntfs-3g dkms dkms-fuse > > did it go without any error? If so, I suggest you do a reboot. You > don't have to, but it is the easiest to get dkms into action.
Akemi: I did a reboot, which makes a lot of sense, if dkms is modifying the kernel, but still no joy. Lanny
[lanny@dell2400 ~]$ su - Password: [root@dell2400 ~]# /dev/hda6 /mnt/win ntfs-3g rw,umask=0000,defaults 0 0 -bash: /dev/hda6: Permission denied [root@dell2400 ~]# fdisk -l
Disk /dev/hda: 40.0 GB, 40000000000 bytes 255 heads, 63 sectors/track, 4863 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 532 4273258+ 7 HPFS/NTFS /dev/hda2 533 1258 5831595 f W95 Ext'd (LBA) /dev/hda3 1259 1271 104422+ 83 Linux /dev/hda4 1272 4863 28852740 8e Linux LVM /dev/hda5 533 783 2016126 7 HPFS/NTFS /dev/hda6 784 1125 2747083+ 7 HPFS/NTFS /dev/hda7 1126 1258 1068291 7 HPFS/NTFS [root@dell2400 ~]#
Just for a complete test how about running "ls -la /mnt"
[lanny@dell2400 ~]$ sudo ls -la /mnt Password: total 24 drwxr-xr-x 3 root root 4096 Aug 26 15:31 . drwxr-xr-x 24 root root 4096 Aug 26 15:50 .. drwxr-xr-x 2 root root 4096 Aug 26 15:31 win [lanny@dell2400 ~]$
I just read that Akemi changed something on the wiki, so I am going to go back to that page and see what's different and try that.
On Tue, Aug 26, 2008 at 4:49 PM, Ralph Angenendt ra+centos@br-online.de wrote:
Lanny Marcus wrote:
[lanny@dell2400 ~]$ su - Password: [root@dell2400 ~]# /dev/hda6 /mnt/win ntfs-3g rw,umask=0000,defaults 0 0
What do you think this "command" does?
-bash: /dev/hda6: Permission denied
Sure. You just tried to execute a partition.
You are correct Ralph. I copied what was on the wiki page and pasted and I changed to hda6 and that is exactly what it did.
On Tue, Aug 26, 2008 at 2:57 PM, Akemi Yagi amyagi@gmail.com wrote:
On Tue, Aug 26, 2008 at 12:53 PM, Lanny Marcus lmmailinglists@gmail.com wrote:
On Tue, Aug 26, 2008 at 2:34 PM, Nicolas Thierry-Mieg Nicolas.Thierry-Mieg@imag.fr wrote:
MHR wrote:
I routinely build a kernel with NTFS read/write support whenever a new kernel comes out, partly to get the support
this is OT, but do you know you can get NTFS RW support by simply installing fuse-ntfs-3g from rpmforge? Fuse (from rf) gets rebuilt for new kernels by dkms, so it's painless on kernel updates.
Thanks Nicolas. I just installed that on my 32 bit desktop. Now, I'll read the documentation..... http://www.ntfs-3g.org/ Lanny
Lanny,
Actually, the documentation is here:
Akemi: I have dkms now. On the wiki, it says: to mount read-write: /dev/sda1 /mnt/win ntfs-3g rw,umask=0000,defaults 0 0
I changed sda1 to hda6, but I get "permission denied" and you can see I was logged in as root, rather than sudo to do it. CentOS 5.2 32 bit OS. What am I doing wrong? Lanny
[root@dell2400 ~]# mkdir /mnt/win mkdir: cannot create directory `/mnt/win': File exists [root@dell2400 ~]# /dev/hda6 /mnt/win ntfs-3g rw,umask=0000,defaults 0 0-bash: /dev/hda6: Permission denied
On Tue, Aug 26, 2008 at 1:54 PM, Nicolas Thierry-Mieg Nicolas.Thierry-Mieg@imag.fr wrote:
Lanny Marcus wrote:
I have dkms now. On the wiki, it says: to mount read-write: /dev/sda1 /mnt/win ntfs-3g rw,umask=0000,defaults 0 0
[root@dell2400 ~]# /dev/hda6 /mnt/win ntfs-3g rw,umask=0000,defaults 0 0-bash: /dev/hda6: Permission denied
Lanny: that line goes in /etc/fstab
Indeed. Thank, Nicolas, for noticing this. I have amended the wiki page to make it clearer.
Akemi
On Tue, Aug 26, 2008 at 4:05 PM, Akemi Yagi amyagi@gmail.com wrote:
On Tue, Aug 26, 2008 at 1:54 PM, Nicolas Thierry-Mieg Nicolas.Thierry-Mieg@imag.fr wrote:
Lanny Marcus wrote:
I have dkms now. On the wiki, it says: to mount read-write: /dev/sda1 /mnt/win ntfs-3g rw,umask=0000,defaults 0 0
[root@dell2400 ~]# /dev/hda6 /mnt/win ntfs-3g rw,umask=0000,defaults 0 0-bash: /dev/hda6: Permission denied
Lanny: that line goes in /etc/fstab
Indeed. Thank, Nicolas, for noticing this. I have amended the wiki page to make it clearer.
Akemi: If it said to edit /etc/fstab before, I am tired and I did not see it. It works! I can see the stuff in that Windows partition. Thanks! Lanny
On Tue, 2008-08-26 at 17:14 -0500, Lanny Marcus wrote:
On Tue, Aug 26, 2008 at 4:05 PM, Akemi Yagi amyagi@gmail.com wrote:
<snip>
Lanny: that line goes in /etc/fstab
Indeed. Thank, Nicolas, for noticing this. I have amended the wiki page to make it clearer.
Akemi: If it said to edit /etc/fstab before, I am tired and I did not see it. It works! I can see the stuff in that Windows partition. Thanks! Lanny
Just an FYI Lanny. Keep in mind that you can test (or use for real too) with a manual version of that information in a CLI mount (see man mount). E.g.
# mount -t ntfs-3g -o rw,umask=0000 /dev/hda6 /mnt/win
It might be easier to see the correlation if you also review "man fstab".
<snip sig stuff>
HTH
On Tue, Aug 26, 2008 at 12:34 PM, Nicolas Thierry-Mieg Nicolas.Thierry-Mieg@imag.fr wrote:
this is OT, but do you know you can get NTFS RW support by simply installing fuse-ntfs-3g from rpmforge? Fuse (from rf) gets rebuilt for new kernels by dkms, so it's painless on kernel updates.
Yes, but the point isn't to make it painless, it's to make sure I can keep in practice. I've had jobs over the last 9 years doing Linux kernel development/analysis, and at one point I was so out of practice I had to relearn how to build the kernel all over again. /That/ was painful.
BTW, since you mentioned it, which is better - the RH NTFS module(s) or the fuse implementation? Maybe I'll look for another excuse to build a modified kernel if the latter....
Thanks.
mhr
On Tue, Aug 26, 2008 at 12:57 PM, MHR mhullrich@gmail.com wrote:
On Tue, Aug 26, 2008 at 12:34 PM, Nicolas Thierry-Mieg Nicolas.Thierry-Mieg@imag.fr wrote:
this is OT, but do you know you can get NTFS RW support by simply installing fuse-ntfs-3g from rpmforge? Fuse (from rf) gets rebuilt for new kernels by dkms, so it's painless on kernel updates.
Yes, but the point isn't to make it painless, it's to make sure I can keep in practice. I've had jobs over the last 9 years doing Linux kernel development/analysis, and at one point I was so out of practice I had to relearn how to build the kernel all over again. /That/ was painful.
BTW, since you mentioned it, which is better - the RH NTFS module(s) or the fuse implementation? Maybe I'll look for another excuse to build a modified kernel if the latter....
Well... if you go for the fuse/dkms route, you will lose the chance to build the module upon kernel update. :-)
Akemi
On Tue, Aug 26, 2008 at 1:03 PM, Akemi Yagi amyagi@gmail.com wrote:
Well... if you go for the fuse/dkms route, you will lose the chance to build the module upon kernel update. :-)
True - decisions, decisions,....
mhr
On Tue, 2008-08-26 at 13:10 -0700, MHR wrote:
On Tue, Aug 26, 2008 at 1:03 PM, Akemi Yagi amyagi@gmail.com wrote:
Well... if you go for the fuse/dkms route, you will lose the chance to build the module upon kernel update. :-)
True - decisions, decisions,....
Well you can always do what I did a few years back. "In days of yore, long ago" I had a LAN using some coax and ethernet cards leftover from my early Lantastic installation. Cards were a mixed bag Including some IBM ones that had both RJ-45 and BNC ports. At the time the drivers (for Crystal chips) had no support for the BNC ports and didn't allow use of all the chipset features.
I jumped in to the source and I WAS AGHAST! It was the crappiest, least structured, most obfuscated mess I had ever seen.
Falling back to my former life, I hollered "REWRITE, YES" (accompanied by rapid pumping of right fist upon slightly bent knee! :-))
So I went to the web site, downloaded the docs, learned how it was supposed to work and started re-work. I didn't do the whole job, but annotated and restructured the parts I had to touch.
I then maintained it of many version of the kernel and driver.
Since I was doing LFS at the time, it sometimes got interesting.
But it did keep my in practice building kernels, modules and making patches.
Maybe that's a possibility for you? A nice side-effect is being able to help occasionally when some poses a question about what you been working on. For me, a lot of satisfaction came when I was able to help the LFS list users when they had networking problems - "peripheral learning effect".
mhr
<snip>
On Aug 26, 2008, at 12:36 PM, Akemi Yagi wrote:
On Tue, Aug 26, 2008 at 10:32 AM, MHR mhullrich@gmail.com wrote:
On Tue, Aug 26, 2008 at 5:49 AM, Jim Perrin jperrin@gmail.com wrote:
Rather than guessing, why not look at the output from the rpm command he ran, which gives the name of the package he's missing? Filipe nailed this one a little earlier in the thread with unifdef.x86_64 needing to be installed.
I remember running into this a while back. That being the case, shouldn't unifdef be included in kernel-devel, or at least one of the packages that are required for building a kernel? Seems like it sticks out like a sore thumb this way....
Alternatively, how do I go about suggesting this in a formal way (bugzilla, etc.)?
Alan and I are now talking about this so we can amend the Wiki article appropriately. According to him, unifdef is not required on his 32-bit system. I will update on this subject as soon as I gather more info.
I've needed it on RHEL 5 systems before I could build the kernel source on 32 bit systems. I probably did with CentOS too, but I don't recall for sure.
On Tue, Sep 2, 2008 at 5:51 PM, Kevin Krieser k_krieser@sbcglobal.net wrote:
On Aug 26, 2008, at 12:36 PM, Akemi Yagi wrote:
Alan and I are now talking about this so we can amend the Wiki article appropriately. According to him, unifdef is not required on his 32-bit system. I will update on this subject as soon as I gather more info.
I've needed it on RHEL 5 systems before I could build the kernel source on 32 bit systems. I probably did with CentOS too, but I don't recall for sure.
I should have updated this thread earlier. I have confirmed that unifdef is required when building kernels for x86_64 but not for i686.
It's in the kernel .spec file:
# no need to build headers again for these arches, # they can just use i386 and ppc64 headers %ifarch i586 i686 ppc64iseries %define with_headers 0 %endif
and this:
%if %{with_headers} BuildRequires: unifdef %endif
We have since updated the Wiki article accordingly. Thank you all for your participation.
Akemi
On Tue, Aug 26, 2008 at 08:14, Ian jonhson jonhson.ian@gmail.com wrote:
error: Failed build dependencies: unifdef is needed by kernel-2.6.18-92.1.10.el5.x86_64
Yum is your friend.
$ yum whatprovides unifdef ... unifdef.x86_64 : Unifdef tool for removing ifdef'd lines
On Mon, Aug 25, 2008 at 08:14:19PM +0800, Ian jonhson wrote:
My jobs need to recompile the kernel codes, but I don't know how to yum the kernel source codes.
This should download the .src RPM in the current dir:
yumdownloader --source kernel
yum-utils should be installed first.
Mihai