LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-12-2013, 08:45 PM   #1
vbsaltydog
Member
 
Registered: Nov 2005
Distribution: CentOS
Posts: 154

Rep: Reputation: 15
build kernel module without kernel source?


Hey everyone,

I have Arch running on an embedded system and the specific version of the kernel (3.7.2-2-ARCH) was obtained in an official Arch build disk image

http://archlinuxarm.org/platforms/armv5/olinuxino

so there are no exact kernel sources, that I can find, to be used to reconfigure/compile a new kernel.

I am trying to add dallas 1-wire support that is available in this kernel version but it is not enabled by default.

I have kernel headers in /usr/src/3.7.2-2-ARCH and when I run make menuconfig I do have the dallas 1-wire drivers available, but disabled.

I know I cant compile a new kernel without the kernel source but how can I use the kernel headers to build the dallas 1-wire drivers as kernel modules to be loaded into the running kernel? I do have the kernel config set to allow loadable modules.

Thanks
 
Old 03-13-2013, 05:10 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
I do not know how to answer your question. However, having similar tasks in past I've succeeded creating chroot and building the whole OS in a [a more powerful] host system.
 
Old 03-13-2013, 06:14 PM   #3
vbsaltydog
Member
 
Registered: Nov 2005
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
Thanks. I actually found the kernel source as an arch pkgbuild and I am in the process of config/compiling the new kernel as an arch package but the new problem is that the system has no boot loader (grub, grub2, lilo, etc.) because it boots the kernel as a /boot/zImage so now I have to sort that out before I can boot to the new kernel.
 
Old 03-13-2013, 07:40 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Hmmm ... I do remember booting kernels 2.0 directly. Nowadays Linux kernels support EFI boot and can be booted directly using (U)EFI. How exactly is this embedded system booting?
 
Old 03-13-2013, 07:42 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Most embedded linux systems (at least the ones that I've played with) use u-boot for a bootloader.
 
Old 03-13-2013, 07:54 PM   #6
vbsaltydog
Member
 
Registered: Nov 2005
Distribution: CentOS
Posts: 154

Original Poster
Rep: Reputation: 15
It looks like it uses u-boot

http://www.eewiki.net/display/linuxo...ino-Bootloader
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Create kernel module with self build kernel schirrmie Linux - General 1 08-29-2011 08:25 AM
kernel module question for kernel build davimint Slackware 2 09-22-2006 07:03 PM
[Error] Kernel Module : No kernel module build environment saman007uk Debian 7 09-09-2006 06:34 PM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:46 AM.

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