[CentOS] rebuilding the kernel.

Sat Aug 9 08:17:53 UTC 2008
Johnny Hughes <johnny at centos.org>

Yahia Tachwali wrote:
> Yahia Tachwali wrote:
> 
>> Thank you very much for the link.. I have built a new bootable kernel 
>> 2.6.9-67 on my machine. However I still have a problem :(
>>
>> During the installation at "make menuconfig" stage after "make 
>> oldconfig" I have added the generic HDLC package with synchronous PPP 
>> support and saved the new config then run
>>
>> rpmbuild -bb --target=`uname -m` kernel-2.6.spec 2> build-err.log | 
>> tee build-out.log.
>>
>> After reboot, I rechecked the menuconfig to make sure that the HDLC 
>> setting is there. I am not sure if this setting took effect or I have 
>> to make modules or build something else. So how would I know that the 
>> HDLC package is availalbe and built in?
>>
>> To elaborate more on the reasons behind this HDLC package, I am trying 
>> to build a device driver that asks for HDLC support. upon building the 
>> driver, I get the following warnings:
>>
>>  Building modules, stage 2.
>>  MODPOST
>> *** Warning: "unregister_hdlc_device" 
>> [/home/DS3/wanPTMC-256T3_2_0B/driver/wan256t3.ko] undefined!
>> *** Warning: "hdlc_ioctl" 
>> [/home/DS3/wanPTMC-256T3_2_0B/driver/wan256t3.ko] undefined!
>> *** Warning: "hdlc_open" 
>> [/home/DS3/wanPTMC-256T3_2_0B/driver/wan256t3.ko] undefined!
>> *** Warning: "register_hdlc_device" 
>> [/home/DS3/wanPTMC-256T3_2_0B/driver/wan256t3.ko] undefined!
>> *** Warning: "hdlc_close" 
>> [/home/DS3/wanPTMC-256T3_2_0B/driver/wan256t3.ko] undefined!
>> *** Warning: "alloc_hdlcdev" 
>> [/home/DS3/wanPTMC-256T3_2_0B/driver/wan256t3.ko] undefined!
>>
>> Therefore, I am suspecting that I need the HDLC package available. I 
>> would be extremely thankful for anybody who can help me in this 
>> problem. Am I going into the wrong direction?
>>
>>
>>
>> jancio_wodnik at wp.pl wrote:
>>
>>> Johnny Hughes pisze:
>>>
>>>> jancio_wodnik at wp.pl wrote:
>>>>
>>>>> Yahia Tachwali pisze:
>>>>>
>>>>>> Hello folks,
>>>>>
>>>>>
>>>>> Hi. It is request for it to add this in kernel for centosplus, look 
>>>>> at this: http://bugs.centos.org/view.php?id=3019
>>>>>
>>>>>>
>>>>>> I am trying to add HDLC module support in the menuconfig. However, 
>>>>>> I am facing difficulties in rebuilding the kernel and modules. My 
>>>>>> main objective is to get the HDLC supported in kernel 2.6.9. I 
>>>>>> have a CentOS 4.4 with kernel 2.6.9.42. I need help in finding the 
>>>>>> best way to add the HDLC support whether through getting an RPM 
>>>>>> package for it or refering me to the right procedure in rebuilding 
>>>>>> the kernel.
>>>>>>
>>>>>> Thank you very much in advance for your help.
>>>>>
>>>>>
>>>>> No problem.
>>>>
>>>>
>>>>
>>>> That request was for CentOS-5, not CentOS-4 :D
>>>
>>>
>>> ? I can see: Category: [CentOS-4] kernel-centosplus My request was 
>>> exactly for centos 4 branch, but for 5 is good too. So, can i count 
>>> for You to make it posible in centos4 to support hdlc ?
>>>
>>>>
>>>> HDLC was added to the CentOS-5 plus kernel for the latest version.
> 
> Sorry about the top posting :(
> 
> After reconfiguring the menuconfig to enable the HDLC suport package 
> (under device drivers). I have tried also do:
> 
> modinfo hdlc
> 
> but i did not get any info in return... Also I have tried :
> 
> lsmod
> 
> to check for hdlc module but I could not find it... I guess I am missing 
> something to activate my new settings in the menuconfig.  Is there a way 
> to verify that my new settings active!! Does any body know about the 
> HDLC modules loading in the 2.6.9. Please advise. And thank you all for 
> your help.
> 

After you rebuild the RPM, you need to install the new RPM you just built.

After that, modinfo should work

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20080809/4c2be3ed/attachment-0005.sig>