Hi wilhemina,

   Kernel source for development pc will be available in /usr/src directory.
 In that path, patch for omap gumstix board not to be applied.

Please follow the steps to build the kernel image for gumstix omap board.

Through open embedded environment

Step 1: Setup the open embedded distribution environment

Please follow the procedure given in the weblink

http://www.gumstix.net/Setup-and-Programming/view/Overo-Setup-and-Programming/Setting-up-a-build-environment/111.html

Step 2: Locating the kernel for omap gumstix board

Change the working directory into <open-embedded-development-environment>/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.30-r40/git.

OPEN-EMBEDDED LINUX KERNEL
==================================================================================
anand@linux-omap3-2.6.30-r40:pwd
/home/anand/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.30-r40
anand@linux-omap3-2.6.30-r40:ls
defconfig  git  image  install  logo_linux_clut224.ppm  omap_overo_linux-2.6.30.config  staging-pkg  temp
anand@linux-omap3-2.6.30-r40:

==================================================================================
Step 2: Apply the patch in the kernel directory
cd ~/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.30-r40/git/

Apply the patch
cmd: patch -p0 -i overo_linux_2_6_30_cam_patch_01.patch




Build from snap shot of git repository for omap kernel

Please find the steps to download git repo and steps to apply patch and build the same..

Step1 : Downloading git repo from the Internet

Please have a look on the website
http://www.gumstix.net/Setup-and-Programming/view/Overo-Setup-and-Programming/Source-code/111.html

cmd : git clone git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git

Step 2: Apply patch in the kernel
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
anand@linux-omap-2.6:pwd
/home/anand/overo-oe/overo_git_repo/kernel/linux-omap-2.6
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please make sure the present working directory be the kernel base directory.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
anand@linux-omap-2.6:patch -p0 -i overo_linux_2_6_30_cam_patch_01.patch
patching file arch/arm/mach-omap2/board-overo.c
patching file drivers/media/video/Kconfig

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

step 3: Build the kernel with arm tool-chain for overo_defconfig configuration file

make ARCH=arm CROSS_COMPILE=/home/anand/overo-oe/tmp/cross/armv7a/bin/arm-angstrom-linux-gnueabi- overo_defconfig

make ARCH=arm CROSS_COMPILE=/home/anand/overo-oe/tmp/cross/armv7a/bin/arm-angstrom-linux-gnueabi- uImage

Please use the uImage available in arch/arm/boot/uImage after successful completion of uImage.


Thanks and regards,
Ananthapadmanaban

wilhemina wrote:
I found the kernel base directory,  but we only have one folder in the
/usr/src directory... the rpm folder.
I cannot locate the linux/arch/arm/mach-omap2 folder under the usr/src
folder thus I cannot apply the patch to the board-overo.c and the Kconfig
files.
Do you have any idea how I can get all the needed folders into the /usr/src
directory?




--------------------------
I tried applying the patch to the uImage I built using bitbake. Am I to
apply the patch to the uImage or board-overo.c located in the usr/src folder
in the gumstix filesystem? If board.overo.c, I can't seem to find the file
in the arch/arm/mach-omap2 on the overo filesystem. How can I get a copy
orabuild of the 2.6.30 kernel containing that file?