LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LinuxQuestions.org Member Intro
User Name
Password
LinuxQuestions.org Member Intro New to LinuxQuestions.org? Been a long time member but never made a post? Introduce yourself here.

Notices


Reply
  Search this Thread
Old 04-16-2009, 09:18 AM   #1
rbeck@us.ibm.com
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Rep: Reputation: 0
New Member of the Community


Hi All,

Today I joined LinuxQuestions.org and am making my first append as recommended.

My motivation for joining was to learn more about building the Linux kernel. There are tons of choices to make when running "make menuconfig" so I would like to be better informed. The first time I built the kernel a couple of days ago I was distressed to see a "panic" when I tried to load it.

Hopefully I will learn enough to build a working kernel. I think it is so cool to be able to do this.

-Randy Beck
 
Old 04-16-2009, 09:36 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Welcome to LQ!

Hope you enjoy your stay
 
Old 04-16-2009, 09:38 AM   #3
hurry_hui
Member
 
Registered: Oct 2008
Location: Near Jakarta
Distribution: Slackware, Arch, Slax, Porteus, Tiny Core, Slitaz
Posts: 355
Blog Entries: 1

Rep: Reputation: 52
Hi, welcome to LQ. For building kernel you might want to check www.kernelnewbies.org .
 
Old 04-16-2009, 09:40 AM   #4
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
Welcome Randy,

What distro are you using?

Did you try make oldconfig before you did menuconfig to modify options? And did you do make install afterward?
 
Old 04-17-2009, 09:21 AM   #5
rbeck@us.ibm.com
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kentyler View Post
Welcome Randy,

What distro are you using?

Did you try make oldconfig before you did menuconfig to modify options? And did you do make install afterward?
Thanks to everyone for their welcome messages. They are most appreciated.

Ken, being brave, I chose the latest, stable, pristine kernel from kernel.org/mirrors, linux-2.6.29.1.

I did not try make oldconfig before building. But I did do make install afterwards.
 
Old 04-20-2009, 10:25 AM   #6
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
Well the best way to be sure that you have the options you need would be to use the .config from either the kernel package sometimes in /boot/ copied to the source directory .config or install the kernel build packages and then take that .config from the place the kernel package is installed in and place it in your kernel directory and run make oldconfig then resolve issues with anything which has been removed/depreciated since the distro's kernel. This way you have all the modules/features enabled that comes with the stock kernel and can add/remove from the list but start with a BASE working kernel but the latest version.
 
Old 04-21-2009, 10:56 AM   #7
rbeck@us.ibm.com
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Rebuilding the Kernel

Quote:
Originally Posted by kentyler View Post
Well the best way to be sure that you have the options you need would be to use the .config from either the kernel package sometimes in /boot/ copied to the source directory .config or install the kernel build packages and then take that .config from the place the kernel package is installed in and place it in your kernel directory and run make oldconfig then resolve issues with anything which has been removed/depreciated since the distro's kernel. This way you have all the modules/features enabled that comes with the stock kernel and can add/remove from the list but start with a BASE working kernel but the latest version.
Thanks Ken,

I took your advice and things have gone well thus far. I just ran the command "make modules install" and see the following output. Should I be concerned about all the WARNING's?

[root@kobol linux-2.6.29.1]# make modules install
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC [M] samples/markers/probe-example.o
CC [M] samples/markers/marker-example.o
CC [M] samples/tracepoints/tracepoint-sample.o
CC [M] samples/tracepoints/tracepoint-probe-sample.o
CC [M] samples/tracepoints/tracepoint-probe-sample2.o
Building modules, stage 2.
MODPOST 1052 modules
CC samples/markers/marker-example.mod.o
LD [M] samples/markers/marker-example.ko
CC samples/markers/probe-example.mod.o
LD [M] samples/markers/probe-example.ko
CC samples/tracepoints/tracepoint-probe-sample.mod.o
LD [M] samples/tracepoints/tracepoint-probe-sample.ko
CC samples/tracepoints/tracepoint-probe-sample2.mod.o
LD [M] samples/tracepoints/tracepoint-probe-sample2.ko
CC samples/tracepoints/tracepoint-sample.mod.o
LD [M] samples/tracepoints/tracepoint-sample.ko
sh /root/kernel/linux-2.6.29.1/arch/x86/boot/install.sh 2.6.29.1 arch/x86/boot/bzImage System.map "/boot"
WARNING: /lib/modules/2.6.29.1/kernel/drivers/bluetooth/btusb.ko needs unknown symbol hci_free_dev
WARNING: /lib/modules/2.6.29.1/kernel/drivers/bluetooth/btusb.ko needs unknown symbol hci_alloc_dev
WARNING: /lib/modules/2.6.29.1/kernel/drivers/bluetooth/btusb.ko needs unknown symbol hci_unregister_dev
WARNING: /lib/modules/2.6.29.1/kernel/drivers/bluetooth/btusb.ko needs unknown symbol hci_recv_fragment
WARNING: /lib/modules/2.6.29.1/kernel/drivers/bluetooth/btusb.ko needs unknown symbol hci_register_dev
WARNING: /lib/modules/2.6.29.1/kernel/drivers/bluetooth/btusb.ko needs unknown symbol hci_recv_fragment
WARNING: /lib/modules/2.6.29.1/kernel/drivers/bluetooth/btusb.ko needs unknown symbol hci_register_dev
WARNING: /lib/modules/2.6.29.1/kernel/drivers/bluetooth/btusb.ko needs unknown symbol kmalloc_caches
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/hidp/hidp.ko needs unknown symbol batostr
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/hidp/hidp.ko needs unknown symbol bt_sock_unregister
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/hidp/hidp.ko needs unknown symbol baswap
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/hidp/hidp.ko needs unknown symbol hci_get_route
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/hidp/hidp.ko needs unknown symbol bt_sock_register
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/hidp/hidp.ko needs unknown symbol kmalloc_caches
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol hci_conn_auth
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol hci_conn_check_link_mode
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol batostr
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_sock_link
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_sock_unregister
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_accept_dequeue
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol hci_conn_encrypt
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol hci_get_route
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_accept_unlink
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_sock_unlink
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_accept_enqueue
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol hci_connect
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_err
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_sock_wait_state
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_class
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_sock_register
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol hci_conn_change_link_key
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_sock_ioctl
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol hci_unregister_proto
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_sock_poll
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol bt_sock_recvmsg
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol hci_register_proto
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol hci_send_acl
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/l2cap.ko needs unknown symbol kmalloc_caches
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol hci_conn_auth
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol hci_conn_switch_role
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol hci_unregister_cb
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol batostr
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol bt_sock_link
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol bt_sock_unregister
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol baswap
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol bt_accept_dequeue
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol hci_conn_encrypt
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol hci_get_route
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol bt_accept_unlink
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol bt_sock_unlink
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol bt_accept_enqueue
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol bt_sock_wait_state
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol bt_class
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol bt_sock_register
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol hci_conn_change_link_key
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol bt_sock_ioctl
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol hci_register_cb
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol bt_sock_poll
WARNING: /lib/modules/2.6.29.1/kernel/net/bluetooth/rfcomm/rfcomm.ko needs unknown symbol kmalloc_caches
WARNING: /lib/modules/2.6.29.1/kernel/drivers/scsi/scsi_wait_scan.ko needs unknown symbol scsi_complete_async_scans
WARNING: No module ehci-hcd found for kernel 2.6.29.1, continuing anyway
WARNING: No module ohci-hcd found for kernel 2.6.29.1, continuing anyway
WARNING: No module uhci-hcd found for kernel 2.6.29.1, continuing anyway
WARNING: No module ata_piix found for kernel 2.6.29.1, continuing anyway
WARNING: No module ata_piix found for kernel 2.6.29.1, continuing anyway
WARNING: No module aic79xx found for kernel 2.6.29.1, continuing anyway
WARNING: No module ata_piix found for kernel 2.6.29.1, continuing anyway
WARNING: No module dm-mem-cache found for kernel 2.6.29.1, continuing anyway
WARNING: No module dm-region_hash found for kernel 2.6.29.1, continuing anyway
WARNING: No module dm-message found for kernel 2.6.29.1, continuing anyway
WARNING: No module dm-raid45 found for kernel 2.6.29.1, continuing anyway
 
Old 04-23-2009, 07:40 AM   #8
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
Sounds like you need to build and install the kernel with the modules that you built. Even though the kernel may be the same version the modules you built won't work with a stock kernel.

What distro are you using?
 
Old 04-24-2009, 04:41 PM   #9
rbeck@us.ibm.com
LQ Newbie
 
Registered: Apr 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hi Ken,

I am using Red Hat Enterprise Linux 5.
The kernel source I downloaded from kernel.org/mirrors is:

uname -a
Linux kobol 2.6.29.1 #1 SMP Tue Apr 21 19:45:36 EDT 2009 i686 i686 i386 GNU/Linux

Thanks for your help/encouragement. I was able to build and successfully load the 2.6.29.1 kernel this afternoon.

--Randy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MSUNL - I am new member to this very useful net community - Introduction msunl LinuxQuestions.org Member Intro 1 01-27-2009 01:34 PM
LXer: KDE Community Working Group takes care of the community LXer Syndicated Linux News 0 09-05-2008 12:40 PM
LXer: Canberra Student Linux Australia's People's Choice Community Member of the Year LXer Syndicated Linux News 0 01-15-2006 04:01 PM
LQ member progress status from member to senior member............. emailssent LQ Suggestions & Feedback 3 10-11-2004 01:31 PM

LinuxQuestions.org > Forums > LinuxQuestions.org > LinuxQuestions.org Member Intro

All times are GMT -5. The time now is 02:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration