Hello folks,
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.
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.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
jancio_wodnik@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
HDLC was added to the CentOS-5 plus kernel for the latest version.
Johnny Hughes pisze:
jancio_wodnik@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.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
jancio_wodnik@wp.pl wrote:
Johnny Hughes pisze:
jancio_wodnik@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.
Hmmm .... I did not see that it was for 4.6 but thought it was for 5.2.
I can try to add the same things to the CentOS-4 kernel and see if it builds, but I have already done the 4.7 centosplus kernels and it is a several hour process that I am not going to redo before release.
I will see if I can get it to build, and put it in testing if it builds. I can try to roll that into newer CentOS-4 kernels too.
Johnny Hughes pisze:
jancio_wodnik@wp.pl wrote:
Johnny Hughes pisze:
jancio_wodnik@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.
Hmmm .... I did not see that it was for 4.6 but thought it was for 5.2.
I can try to add the same things to the CentOS-4 kernel and see if it builds, but I have already done the 4.7 centosplus kernels and it is a several hour process that I am not going to redo before release.
I will see if I can get it to build, and put it in testing if it builds. I can try to roll that into newer CentOS-4 kernels too.
OK, hdlc and goramo wan interfaces
Thx.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
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@wp.pl wrote:
Johnny Hughes pisze:
jancio_wodnik@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.
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
Also, on the procedure mentioned in the link, I am confused about the need to run:
rpmbuild -bb --target=`uname -m` kernel-2.6.spec 2> build-err.log | tee build-out.log
after menuconfig... I tend to believe that I need to do make all then make modules and make install after reconfiguring the menuconfig. but I did not find that in the wiki link. Could that be a reason? upon attempting to build the new kernel, I get the following:
make[1]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop. make: *** [init] Error 2
Is it because I do not have the complete source tree there? How can I verfiry that I have the complete kernel source tree?
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@wp.pl wrote:
Johnny Hughes pisze:
jancio_wodnik@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.
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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Fri, Aug 8, 2008 at 3:30 PM, Yahia Tachwali ytachwali@signalogic.com wrote:
Also, on the procedure mentioned in the link, I am confused about the need to run:
rpmbuild -bb --target=`uname -m` kernel-2.6.spec 2> build-err.log | tee build-out.log
This will do all the makes for you. That's what rpms are for.
BTW, please do not top post.
mhr
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@wp.pl wrote:
Johnny Hughes pisze:
jancio_wodnik@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.
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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
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.
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@wp.pl wrote:
Johnny Hughes pisze:
jancio_wodnik@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
Johnny Hughes wrote:
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@wp.pl wrote:
Johnny Hughes pisze:
jancio_wodnik@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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hello,
Thank you for the info, I have installed the rpm and I ended up with the following : ---------------------------------------------------------------------------------------------------------- [root@localhost i686]# rpm -ivh kernel-*.rpm Preparing... ########################################### [100%] package kernel-2.6.9-67.0.22.EL is already installed package kernel-devel-2.6.9-67.0.22.EL is already installed package kernel-hugemem-devel-2.6.9-67.0.22.EL is already installed package kernel-smp-devel-2.6.9-67.0.22.EL is already installed file /boot/System.map-2.6.9-67.0.22.EL from install of kernel-2.6.9-67.0.22.EL conflicts with file from package kernel-2.6.9-67.0.22.EL file /boot/config-2.6.9-67.0.22.EL from install of kernel-2.6.9-67.0.22.EL conflicts with file from package kernel-2.6.9-67.0.22.EL file /boot/symvers-2.6.9-67.0.22.EL.gz from install of kernel-2.6.9-67.0.22.EL conflicts with file from package kernel-2.6.9-67.0.22.EL file /boot/vmlinuz-2.6.9-67.0.22.EL from install of kernel-2.6.9-67.0.22.EL conflicts with file from package kernel-2.6.9-67.0.22.EL ----------------------------------------------------------------------------------------------------------
However, I was able to reboot with the new kernel but still I can not find o files for my HDLC in the kernel path under driver/net/wan. I am listing below the steps that I did to install a new customized kernel starting from fresh installation of CentOS 4.4 with kernel 2.6.9-42
1- getting the kernel: 1.1 access as root 1.2 yum install rpm-build redhat-rpm-config 1.3 su user 1.4 cd 1.5 mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} 1.6 echo "%_topdir %(echo $HOME)/rpmbuild" > .rpmmacros 1.7 rpm -i http://mirror.centos.org/centos/4/updates/SRPMS/kernel-2.6.9-67.0.22.EL.src.... 2> /dev/null 1.8 cd ~/rpmbuild/SPECS 1.9 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log
These so far sound fine. but then I guess there might be a mistake or missing step in my procdure to build the new kernel:
2- building a new kernel: 2.1 access as root 2.2 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log 2.3 su user 2.4 cd ~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.`uname -m` 2.5 cp configs/kernel-2.6.18-i686.config .config 2.6 make oldconfig 2.7 make menuconfig {here I left it as is and did not do any modification since I am planning to include HDLC as a module after build a complete custom kernel} 2.8 [user@host SPECS]$ rpmbuild -bb --target=`uname -m` kernel-2.6.spec 2> build-err.log | tee build-out.log 2.9 su 2.10/ rpm -ivh kernel-*.rpm
and after the last command I have got the conflict warning above. What is wrong in my installation procedure! :( Please help. /
On Sun, Aug 10, 2008 at 3:07 PM, Yahia Tachwali ytachwali@signalogic.com wrote:
Thank you for the info, I have installed the rpm and I ended up with the following :
[root@localhost i686]# rpm -ivh kernel-*.rpm Preparing... ########################################### [100%] package kernel-2.6.9-67.0.22.EL is already installed package kernel-devel-2.6.9-67.0.22.EL is already installed package kernel-hugemem-devel-2.6.9-67.0.22.EL is already installed package kernel-smp-devel-2.6.9-67.0.22.EL is already installed file /boot/System.map-2.6.9-67.0.22.EL from install of kernel-2.6.9-67.0.22.EL conflicts with file from package kernel-2.6.9-67.0.22.EL file /boot/config-2.6.9-67.0.22.EL from install of kernel-2.6.9-67.0.22.EL conflicts with file from package kernel-2.6.9-67.0.22.EL file /boot/symvers-2.6.9-67.0.22.EL.gz from install of kernel-2.6.9-67.0.22.EL conflicts with file from package kernel-2.6.9-67.0.22.EL file /boot/vmlinuz-2.6.9-67.0.22.EL from install of kernel-2.6.9-67.0.22.EL conflicts with file from package kernel-2.6.9-67.0.22.EL
However, I was able to reboot with the new kernel but still I can not find o files for my HDLC in the kernel path under driver/net/wan. I am listing below the steps that I did to install a new customized kernel starting from fresh installation of CentOS 4.4 with kernel 2.6.9-42
1- getting the kernel: 1.1 access as root 1.2 yum install rpm-build redhat-rpm-config 1.3 su user 1.4 cd 1.5 mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} 1.6 echo "%_topdir %(echo $HOME)/rpmbuild" > .rpmmacros 1.7 rpm -i http://mirror.centos.org/centos/4/updates/SRPMS/kernel-2.6.9-67.0.22.EL.src.... 2> /dev/null 1.8 cd ~/rpmbuild/SPECS 1.9 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log
Looks good so far.
These so far sound fine. but then I guess there might be a mistake or missing step in my procdure to build the new kernel:
2- building a new kernel: 2.1 access as root 2.2 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log
The above rpmbuild is not necessary. You have done it correctly in step 1.9 (as user).
2.3 su user 2.4 cd ~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.`uname -m` 2.5 cp configs/kernel-2.6.18-i686.config .config 2.6 make oldconfig 2.7 make menuconfig {here I left it as is and did not do any modification since I am planning to include HDLC as a module after build a complete custom kernel}
I am confused. If you did not make any changes here, why would you expect your new kernel to provide the HDLC support (see above) ???
2.8 [user@host SPECS]$ rpmbuild -bb --target=`uname -m` kernel-2.6.spec 2> build-err.log | tee build-out.log
Before that step (rpmbuild -bb), you should at least edit the line:
%define buildid .your_identifier
as written in the Wiki tutorial to make your rpm's version different from the distro's.
2.9 su 2.10/ rpm -ivh kernel-*.rpm
and after the last command I have got the conflict warning above. What is wrong in my installation procedure! :( Please help. /
Your "customized" kernel has the same version/revision as the distro's. So, it won't install unless you force it (not recommended at all).
Akemi
Akemi Yagi wrote:
On Sun, Aug 10, 2008 at 3:07 PM, Yahia Tachwali ytachwali@signalogic.com wrote:
Thank you for the info, I have installed the rpm and I ended up with the following :
[root@localhost i686]# rpm -ivh kernel-*.rpm Preparing... ########################################### [100%] package kernel-2.6.9-67.0.22.EL is already installed package kernel-devel-2.6.9-67.0.22.EL is already installed package kernel-hugemem-devel-2.6.9-67.0.22.EL is already installed package kernel-smp-devel-2.6.9-67.0.22.EL is already installed file /boot/System.map-2.6.9-67.0.22.EL from install of kernel-2.6.9-67.0.22.EL conflicts with file from package kernel-2.6.9-67.0.22.EL file /boot/config-2.6.9-67.0.22.EL from install of kernel-2.6.9-67.0.22.EL conflicts with file from package kernel-2.6.9-67.0.22.EL file /boot/symvers-2.6.9-67.0.22.EL.gz from install of kernel-2.6.9-67.0.22.EL conflicts with file from package kernel-2.6.9-67.0.22.EL file /boot/vmlinuz-2.6.9-67.0.22.EL from install of kernel-2.6.9-67.0.22.EL conflicts with file from package kernel-2.6.9-67.0.22.EL
However, I was able to reboot with the new kernel but still I can not find o files for my HDLC in the kernel path under driver/net/wan. I am listing below the steps that I did to install a new customized kernel starting from fresh installation of CentOS 4.4 with kernel 2.6.9-42
1- getting the kernel: 1.1 access as root 1.2 yum install rpm-build redhat-rpm-config 1.3 su user 1.4 cd 1.5 mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} 1.6 echo "%_topdir %(echo $HOME)/rpmbuild" > .rpmmacros 1.7 rpm -i http://mirror.centos.org/centos/4/updates/SRPMS/kernel-2.6.9-67.0.22.EL.src.... 2> /dev/null 1.8 cd ~/rpmbuild/SPECS 1.9 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log
Looks good so far.
These so far sound fine. but then I guess there might be a mistake or missing step in my procdure to build the new kernel:
2- building a new kernel: 2.1 access as root 2.2 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log
The above rpmbuild is not necessary. You have done it correctly in step 1.9 (as user).
2.3 su user 2.4 cd ~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.`uname -m` 2.5 cp configs/kernel-2.6.18-i686.config .config 2.6 make oldconfig 2.7 make menuconfig {here I left it as is and did not do any modification since I am planning to include HDLC as a module after build a complete custom kernel}
I am confused. If you did not make any changes here, why would you expect your new kernel to provide the HDLC support (see above) ???
2.8 [user@host SPECS]$ rpmbuild -bb --target=`uname -m` kernel-2.6.spec 2> build-err.log | tee build-out.log
Before that step (rpmbuild -bb), you should at least edit the line:
%define buildid .your_identifier
as written in the Wiki tutorial to make your rpm's version different from the distro's.
2.9 su 2.10/ rpm -ivh kernel-*.rpm
and after the last command I have got the conflict warning above. What is wrong in my installation procedure! :( Please help. /
Your "customized" kernel has the same version/revision as the distro's. So, it won't install unless you force it (not recommended at all).
Akemi _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Thank you. So if it is not recommended to force it , what should I do to get it installed ?
On Sun, Aug 10, 2008 at 4:04 PM, Yahia Tachwali ytachwali@signalogic.com wrote:
Akemi Yagi wrote:
1- getting the kernel: 1.1 access as root 1.2 yum install rpm-build redhat-rpm-config 1.3 su user 1.4 cd 1.5 mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} 1.6 echo "%_topdir %(echo $HOME)/rpmbuild" > .rpmmacros 1.7 rpm -i
http://mirror.centos.org/centos/4/updates/SRPMS/kernel-2.6.9-67.0.22.EL.src.... 2> /dev/null 1.8 cd ~/rpmbuild/SPECS 1.9 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log
Looks good so far.
These so far sound fine. but then I guess there might be a mistake or missing step in my procdure to build the new kernel:
2- building a new kernel: 2.1 access as root 2.2 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log
The above rpmbuild is not necessary. You have done it correctly in step 1.9 (as user).
2.3 su user 2.4 cd ~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.`uname -m` 2.5 cp configs/kernel-2.6.18-i686.config .config 2.6 make oldconfig 2.7 make menuconfig {here I left it as is and did not do any modification since I am planning to include HDLC as a module after build a complete custom kernel}
I am confused. If you did not make any changes here, why would you expect your new kernel to provide the HDLC support (see above) ???
2.8 [user@host SPECS]$ rpmbuild -bb --target=`uname -m` kernel-2.6.spec 2> build-err.log | tee build-out.log
Before that step (rpmbuild -bb), you should at least edit the line:
%define buildid .your_identifier
as written in the Wiki tutorial to make your rpm's version different from the distro's.
2.9 su 2.10/ rpm -ivh kernel-*.rpm
and after the last command I have got the conflict warning above. What is wrong in my installation procedure! :( Please help. /
Your "customized" kernel has the same version/revision as the distro's. So, it won't install unless you force it (not recommended at all).
Akemi
Thank you. So if it is not recommended to force it , what should I do to get it installed ?
Please read my reply to you in its entirety, not just the last part -- especially the line about "buildid".
Akemi
Akemi Yagi wrote:
On Sun, Aug 10, 2008 at 4:04 PM, Yahia Tachwali ytachwali@signalogic.com wrote:
Akemi Yagi wrote:
1- getting the kernel: 1.1 access as root 1.2 yum install rpm-build redhat-rpm-config 1.3 su user 1.4 cd 1.5 mkdir -p rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} 1.6 echo "%_topdir %(echo $HOME)/rpmbuild" > .rpmmacros 1.7 rpm -i
http://mirror.centos.org/centos/4/updates/SRPMS/kernel-2.6.9-67.0.22.EL.src.... 2> /dev/null 1.8 cd ~/rpmbuild/SPECS 1.9 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log
Looks good so far.
These so far sound fine. but then I guess there might be a mistake or missing step in my procdure to build the new kernel:
2- building a new kernel: 2.1 access as root 2.2 rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log | tee prep-out.log
The above rpmbuild is not necessary. You have done it correctly in step 1.9 (as user).
2.3 su user 2.4 cd ~/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.`uname -m` 2.5 cp configs/kernel-2.6.18-i686.config .config 2.6 make oldconfig 2.7 make menuconfig {here I left it as is and did not do any modification since I am planning to include HDLC as a module after build a complete custom kernel}
I am confused. If you did not make any changes here, why would you expect your new kernel to provide the HDLC support (see above) ???
2.8 [user@host SPECS]$ rpmbuild -bb --target=`uname -m` kernel-2.6.spec 2> build-err.log | tee build-out.log
Before that step (rpmbuild -bb), you should at least edit the line:
%define buildid .your_identifier
as written in the Wiki tutorial to make your rpm's version different from the distro's.
2.9 su 2.10/ rpm -ivh kernel-*.rpm
and after the last command I have got the conflict warning above. What is wrong in my installation procedure! :( Please help. /
Your "customized" kernel has the same version/revision as the distro's. So, it won't install unless you force it (not recommended at all).
Akemi
Thank you. So if it is not recommended to force it , what should I do to get it installed ?
Please read my reply to you in its entirety, not just the last part -- especially the line about "buildid".
Akemi _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hello Akemi,
I am sorry, I missed your extremely helpful notes. I got it working!!! Thank you very much... I got now my card running after getting the HDLC module loaded. Thank you very much to you and all the group for this support.
I am still wondering if what I did is an overkill to get the module loaded. I had the CentOS 4.4 with kernel 2.6.9.42 before installing this 2.6.9.67 kernel. Is there a way to get the HDLC module built and installed with minimal steps rather than going into a complete fresh kernel rebuilt? My understanding from tutorials in the web that all what you need is to make and make install after editing the config file, but unfortunately that did not work in my original kernel, and that is why I decided to get a fresh kernel to experiment on. If I can really get HDLC built and load without kernel build or download another kernel source. What could be missing in my original 2.6.9.42 kernel that prevents me from doing make and make install after editing the config file?
Again, I appreciate alot the help and support from this group. You all have helped me alot and I am very thankful.
Yahia Tachwali pisze:
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@wp.pl wrote:
Johnny Hughes pisze:
jancio_wodnik@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.
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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
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.
As i remember: hdlc is build not as module, it is core kernel module, not module to load by modprobe - so in menuconfig is [*] with hdlc not [M] as module.
But maybe i'm wrong.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Sat, Aug 9, 2008 at 12:29 PM, Jancio Wodnik jancio_wodnik@wp.pl wrote:
Yahia Tachwali pisze:
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.
As i remember: hdlc is build not as module, it is core kernel module, not module to load by modprobe - so in menuconfig is [*] with hdlc not [M] as module.
But maybe i'm wrong.
Just to expand this a bit...
Go to Device Drivers -> Networking support -> Wan interfaces -> Wan interface support (y or n only).
In the 'Wan interface support' menu, check 'Generic HDLC layer' (y, n, or M).
Inside the 'Generic HDLC layer', there are a few support options (y or n)
The above layout is for CentOS-5, but CentOS-5 is similar. Hope this helps,
Akemi
Akemi Yagi pisze:
On Sat, Aug 9, 2008 at 12:29 PM, Jancio Wodnik jancio_wodnik@wp.pl wrote:
Yahia Tachwali pisze:
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.
As i remember: hdlc is build not as module, it is core kernel module, not module to load by modprobe - so in menuconfig is [*] with hdlc not [M] as module.
But maybe i'm wrong.
Just to expand this a bit...
Go to Device Drivers -> Networking support -> Wan interfaces -> Wan interface support (y or n only).
In the 'Wan interface support' menu, check 'Generic HDLC layer' (y, n, or M).
Inside the 'Generic HDLC layer', there are a few support options (y or n)
The above layout is for CentOS-5, but CentOS-5 is similar. Hope this helps,
Akemi
you are right, only raw hdlc support and raw hdlc ethernet support are as [*]. My fault.
Irek
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Sat, Aug 9, 2008 at 1:29 PM, Jancio Wodnik jancio_wodnik@wp.pl wrote:
Akemi Yagi pisze:
On Sat, Aug 9, 2008 at 12:29 PM, Jancio Wodnik jancio_wodnik@wp.pl wrote:
As i remember: hdlc is build not as module, it is core kernel module, not module to load by modprobe - so in menuconfig is [*] with hdlc not [M] as module.
But maybe i'm wrong.
Just to expand this a bit...
Go to Device Drivers -> Networking support -> Wan interfaces -> Wan interface support (y or n only).
In the 'Wan interface support' menu, check 'Generic HDLC layer' (y, n, or M).
Inside the 'Generic HDLC layer', there are a few support options (y or n)
The above layout is for CentOS-5, but CentOS-5 is similar. Hope this helps,
Err... I meant "above layout is for CentOS-4"
Akemi
you are right, only raw hdlc support and raw hdlc ethernet support are as [*]. My fault.
I don't see any "fault" ... :-)
Akemi
Irek
Yahia Tachwali wrote:
Hello folks,
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.
There are detailed instructions how to build kernel modules, or a complete custom kernel on the Wiki:
http://wiki.centos.org/HowTos#head-dd8d94c4485b015477e28031bba1b51e7224c2fa
Regards,
Ned