Hi,

Agreed, I found the process described in the kernel workflow very helpful. For adding a new driver it boils down to these three commands:

bitbake -c menuconfig linux-omap3-2.6.31
bitbake -c compile linux-omap3-2.6.31 -f
bitbake -c deploy linux-omap3-2.6.31

br,
Ors


On Tue, Jan 19, 2010 at 6:29 PM, Ash Charles <ashcharles@gmail.com> wrote:
Hi,

Taking some of the hints from this thread
(http://old.nabble.com/How-to-enable-pl2303-in-linux-kernel-td25193368.html),
it looks like you'll need to enable the driver in the kernel.
For a quick test, go into your
overo-oe/tmp/work/gumstix.../linux-2.6.27.../linux-2.6..27/ directory
and do a 'make ARCH=arm menuconfig' and toggle
'CONFIG_USB_SERIAL_PL2303' (see
http://cateee.net/lkddb/web-lkddb/USB_SERIAL_PL2303.html)  to be a
module (or compile it in if you want to). Now rebuild the kernel from
the compilation stage and copy the new kernel and the updated modules
package to your Gumstix.  Equally, you can follow similar steps to
those given by this excellent link
((http://blogs.elphel.com/2009/12/openembeddedangstrom-kernel-workflow/)
that Steve recently sent out.

HTH,

Ash

On Tue, Jan 19, 2010 at 8:00 AM, Jon Wurl <jon@whizzsystems.com> wrote:
>
> There are probably better experts out there than me on this, but I'll
> offer some suggestions.  Do you know if the source code for this driver
> is in that version of the kernel?  If it is, then the issue is whether
> or not the build is turned on or not.  I believe you do this in the
> appropriate location in Kconfig.  Look around in the sources for a
> Kconfig that is in the same directory as the source for this driver, and
> there should be a comment inside there which tells you what do
> (uncomment a CONFIG macro line, for example).  You will then need to
> build a local version of the kernel.  Are you using bitbake?
>
> If this version of the kernel does not have the source for this driver,
> then you either need to use a kernel version which has it, or get the
> source and build the driver separately.  That last option is where
> things get real tricky -- it can be done, people do it all the time, but
> it is tricky for someone who says they are a newbie.  So either get some
> more direct help, or be prepared to work it out over a protracted period.
>
> akshaysn wrote:
>> Hi all,
>>
>> I have a gumstix overo with 2.6.27-omap1 kernel, which doesnt have a
>> pl2303.ko driver which i badly need it... So how can i get a pl2303 driver
>> for the current kernel version ... Or how can i upgrade the kernel...I'm a
>> Newbie please help me to solve this issue....
>>
>> ravix wrote:
>>
>>>
>>>
>>>
>>>>  If you replace that file you just need to run "bitbake -c rebuild
>>>> linux-omap3" to get a new uImage built.
>>>>
>>>>
>>> Thank you! This is the step I was leaving out. The information about
>>> putting the files in my user directory was very nice, too.
>>>
>>> So as a recap to anyone else who is interested in reconfiguring a kernel:
>>>
>>> 1.) Set up the build environment for the Overo as instructed on
>>> Gumstix.net.
>>> 2.) Copy "linux-omap3_git.bb" and "linux.inc" from
>>> ${OE-HOME}/org.openembedded.dev/packages/linux to
>>> ${OE-HOME}/user.collection/packages/linux
>>> 3.) Copy directory "linux-omap3" from
>>> ${OE-HOME}/org.openembedded.dev/packages/linux to
>>> ${OE-HOME}/user.collection/packages/linux
>>> 4.) cd to
>>> ${OE-HOME}/tmp/work/overo-angstrom-linux-gnueabi/linux-omap-{most_recent_kernel}/git/
>>> 5.) run  "make ARCH=arm menuconfig" and configure the kernel
>>> 6.) copy ".config" file to
>>> ${OE-HOME}/user.collection/packages/linux/linux-omap3/overo/defconfig
>>> (defconfig is the new filename)
>>> 7.) run "bitbake -c rebuild linux-omap3"
>>> 8.) the new uImage file will be located at
>>> ${OE-HOME}/tmp/deploy/glibc/images/overo/uImage-overo.bin
>>>
>>>
>>> That seems to be working for me, at least. No guarantees!
>>>
>>> -Eric
>>>
>>>
>>
>>
>
>
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users