I believe the problem of supplying your own kernel config has answered
though not directly or definitively (that I could find)... See
http://www.nabble.com/Switching-from-Buildroot-to-OE-%28Open-Embedded%29-to14713242.html#a14720004, which gives the basic concept. I'll attempt
to summarize what I've done with the kernel (though TODO's still
remain). Hope it's the OE way:). Hope this helps and that I haven't
forgot anything...
Assumes you in your gumstix-oe directory and you've already successfully
baked gumstix-*-image:
Get base kernel package into your user.collection:
gumstix-oe]$ mkdir -p user.collection/packages/linux
gumstix-oe]$ cp -r com.gumstix.collection/packages/linux/*
user.collection/packages/linux/
Make kernel changes (note I'm using connex platform):
gumstix-oe]$ cd
tmp/work/gumstix-custom-connex-angstrom-linux-gnueabi/gumstix-kernel-2.6
.21-r1/linux-2.6.21/
linux-2.6.21]$ make ARCH=arm menuconfig
[Make your changes and save]
Copy the new kernel configuration to be your default config:
linux-2.6.21]$ cat .config >
~/gumstix-oe/user.collection.packages/linux/gumstix-kernel-2.6.21/gumsti
x-custom-connex/defconfig
Rebuild:
gumstix-oe]$ bitbake -c rebuild gumstix-kernel
gumstix-oe]$ bitbake -c rebuild task-base-gumstix
gumstix-oe]$ bitbake -c rebuild gumstix-*-image
Now you have your [default] custom kernel config completely independent
of what gets delivered in com.gumstix... Note I followed similar
concepts (start with copy of com.gumstix.collection/package/foo into
user.collection/packages/foo, tweak user.collection/packages/foo...) for
images, tasks, etc... The main concept is: if it's found in
user.collection, it is used, else if it is found in
com.gumstix.collection it is used, else if it is in
org.openembedded.snapshot it is used, else error it cant be found.
What I haven't figured out yet is:
1. How to cause new kernel module load scripts to get generated into
image. See tmp/rootfs/etc/modutils/*. How do these get generated?
Thanks,
John
> -----Original Message-----
> From:
gumstix-users-bounces@...
> [mailto:
gumstix-users-bounces@...] On
> Behalf Of Mathias Bage
> Sent: Wednesday, May 21, 2008 8:43 AM
> To: General mailing list for gumstix users.
> Subject: Re: [Gumstix-users] Kernel Hacking
>
>
>
> On Tue, 20 May 2008, Sergiy Fefilatyev wrote:
>
> > for me rebuild command did not produce the right results
>
>
> I had problems with kernel compiles too.
>
> After googling and trying some bitbake commands, I noticed
> that you can't
> (re)compile the kernel with 'bitbake -c rebuild gumstix-kernel' --
> 'rebuild' will download and unpack a fresh kernel source and
> then copy the
> file:
>
>
> gumstix-oe/com.gumstix.collection/packages/linux/gumstix-kerne
l-2.6.21/gumstix-custom-verdex/defconfig
>
> to the file (assuming a uclibc target system and linux kernel version
> 2.6.21):
>
>
> gumstix-oe/tmp/work/gumstix-custom-verdex-angstrom-linux-uclib
cgnueabi/gumstix-kernel-2.6.21-r1/linux-2.6.21/.config
>
>
> So, if you use 'bitbake gumstix-kernel -c rebuild' after a
> linux kernel
> menuconfig (using 'bitbake gumstix-kernel -c menuconfig'),
> your kernel
> .config file (path above) will have been overwritten by Gumstix Inc's
> default file (the .../defconfig file (see 11 lines above))
>
> To avoid this problem, I did the following;
>
> bitbake gumstix-kernel -c menuconfig
>
> bitbake gumstix-kernel -f -c compile
>
> bitbake gumstix-kernel
>
> bitbake -c rebuild task-base-gumstix
>
> bitbake -c rebuild gumstix-directfb-image
>
> (replace gumstix-directfb-image with your preferred image name)
> The '-f' is used to force a '-c compile'.
>
> >
> > On Tue, May 20, 2008 at 3:21 PM, Mark Barton
> <
mark@...> wrote:
> >
> >> Mike Caruso wrote:
> >>> Hello list,
> >>> I was wondering if anybody knew how to build a custom kernel for a
> >>> Verdex running Open Embedded? I have a USB Ethernet
> adapter I'd like
> >>> to get working on my Verdex, it uses the RTL8150 driver. My first
> >>> thought was to try and add it to gumstix-custom-verdex.conf, but
> >>> wouldn't you need to enable it in the kernel config first
> so that it
> >>> knows to build that module? I found what appears to be the kernel
> >>> config in:
> [snip]
>
> /Mathias
>
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
>
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/> _______________________________________________
> gumstix-users mailing list
>
gumstix-users@...
>
https://lists.sourceforge.net/lists/listinfo/gumstix-users>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users