UpdatingTheKernel

From VentureResearchWiki
Jump to navigation Jump to search

Building kernel module (yocto danny)[edit | edit source]

ssh embedded-dev

cd ../yocto-danny/poky/

. oe-init-build-env

diff ../meta-venture/recipes-kernel/linux/linux-omap3-venture/vrreader-am35/defconfig tmp/work/vrreader_am35-poky-linux-gnueabi/linux-omap3-venture-2.6.37-
r12/git/.config

-- cp if different--

MACHINE=vrreader-am35 bitbake virtual/kernel -c menuconfig

-- add/remove kernel option or module and save --

cp tmp/work/vrreader_am35-poky-linux-gnueabi/linux-omap3-venture-2.6.37-r12/git/.config /home/yocto-danny/poky/meta-venture/recipes-kernel/linux/linux-omap3-venture/vrreader-am35/defconfig

-- svn checkin --

MACHINE=vrreader-am35 bitbake virtual/kernel

./update-feed.sh

Updating kernel config (old yocto)[edit | edit source]

in venture@gfx-ubuntu:/home/yocto/poky/build

$ MACHINE=vrreader-am35 bitbake virtual/kernel -c configure

$ cd tmp/work/vrreader_am35-poky-linux-gnueabi/

$ cd linux-variscite-2.6.37-r4/

$ cp defconfig linux-(TAB)/.config
$ cd linux-(TAB)/

$ make ARCH=arm menuconfig 

... kernel config ...

$ cp .config /home/yocto/poky/meta-venture/recipes-kernel/linux/linux-variscite/vrreader-am35/defconfig

... svn checkin ...

Updating actual kernel code (drivers)[edit | edit source]

this is old, for the previous 2.6.36 kernel.[edit | edit source]

a bit more involved, this is not something that you can deal with in pikg.

basically:

change kernel code in

/home/venture/svn/som-9g45/linux-2.6.35.5-clean/

git diff <file> > patchfile to pickup your changes into a patch file

move the patchfile into the bitbake config in /opt/oe/venture-stable-2009/recipes/linux/linux-vr/

add the patchfile to the SRC_URI in /opt/oe/venture-stable-2009/recipes/linux/linux-vr_2.6.36.bb

rebuild the kernel using a ./oe-run -c clean virtual/kernel && ./oe-run virtual/kernel

optionally, deploy everything after running the venture-image as well using the ./deploy.sh script