Received: from [74.125.44.156] (helo=yx-out-1718.google.com) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1KHL9T-0003Je-8H for openembedded-devel@lists.openembedded.org; Fri, 11 Jul 2008 18:07:19 +0200 Received: by yx-out-1718.google.com with SMTP id 4so1324928yxp.42 for ; Fri, 11 Jul 2008 09:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=rSsRv3r26M6aIgbgTKaGB9J/s74CI36Qhfgi4IIyaCA=; b=pUwzrWMFUex+CweUWvb0tz7uLdNirkmoxp4UyJA9sG1pFamaeJk7IPlVox+rJkZXT+ ZMGbFkwShZeFEjiAlhIg3fM5FaqQwttswuHLVmmwf/d3+Y+Ehvs0Vat0gf37Z7Nh8rOj XWHe1Fax+rvG4L/3zpptsgoO8Q4TjqwgiM/vQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Y6MZRTHFZ2ifZwZWSogd3hpE96U30TfrSim+vB5wFNv1cZ0i8a5/51Edp+ZJE07nw9 3v0g2ON9AB5ChWkuXNQJuMmFTsb8KKFe7qi0QGZZbqG4XFFU9MYYmCb0TxzVraNyts4o 7uV3a0r/hGEMipBWY2/8zIJRpfqxk5qTR4xQw= Received: by 10.114.13.10 with SMTP id 10mr14116732wam.106.1215792419625; Fri, 11 Jul 2008 09:06:59 -0700 (PDT) Received: by 10.114.184.13 with HTTP; Fri, 11 Jul 2008 09:06:59 -0700 (PDT) Message-ID: Date: Fri, 11 Jul 2008 12:06:59 -0400 From: "Cliff Brake" To: openembedded-devel@lists.openembedded.org In-Reply-To: <200807110949.07500.blaine@cliftonlabs.com> MIME-Version: 1.0 References: <48761569.4080304@gmx.net> <1215703284.32070.6.camel@isis> <4876A7DD.8090608@palm.com> <200807110949.07500.blaine@cliftonlabs.com> Subject: Re: Compiling a custom kernel module X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.10 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2008 16:07:19 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Fri, Jul 11, 2008 at 9:49 AM, Blaine Booher wrote: > Hey guys, > I am very new to Open Embedded so please bare with me if I make it too > obvious :). Welcome :-) > We are using a gumstix embedded system with open embedded (and > the angstrom release that gumstix provides). We would like to use the kernel > module cp2101 with a usb device. The default cp2101 module won't work, since > we have to edit the USB Device ID in the source code. I'm having a hard time > figuring out: > 1. How do I 'enable' the cp2101 module in the kernel? Copy an updated defconfig to: packages/linux/gumstix-kernel-2.6.21/gumstix-connex/defconfig Note, figure out what kernel you are building first, the above is just a guess. > 2. How do I rebuild the kernel, once the source code is edited? bitbake -c rebuild virtual/kernel (rebuilds the kernel) For development, I usually keep a kernel tree separate from the OE kernel, and then just copy the defconfig and patches to the OE build when I get everything correct. Alternatively, you can: bitbake -c devshell virtual/kernel and do your development there in a development shell. Once you get everything finished, create patch files/defconfig and copy to the OE recipe. > 3. How to I ensure that the module is part of the final build, so that I can > do a 'modprove cp2101' on the gumstix and have it load successfully? look at the name of the *.ipk file generated by OE build system. Then create a custom image file and add the ipk file name to the IMAGE_INSTALL variable. The following article has some examples: http://bec-systems.com/web/content/view/79/9/ Cliff -- ======================= Cliff Brake http://bec-systems.com