Hi, From: [email protected] [mailto:[email protected]] On Behalf Of ext Yuvaraj Ragupathi Sent: 17. toukokuuta 2011 9:29 To: [email protected] Subject: [Meego-kernel] Meego kernel recompile
Hi All, I want to recompile the Meego kernel. Hence to enable CAIF protocol support. So I recompiled and enable CAIF support . When i am loading recompiled kernel along with meego rootfs . Device(N900 ) is going for shutdown My steps here 1)Downloaded meego-os-base-kernel-source from git 2) Downloaded linux source version 2.6.37 3) applied patches( copied path-2.6.37.xx.bz<http://path-2.6.37.xx.bz> file to linux source and executed ) 4) comipled for ARM architecuter 5) Loaded kernel via flashed-3.5 Here Device is going to power off Please help me ,if i am doing anything wrong here. Where i find procedure to recompile and load the kernel to device I don't think there's a good tutorial for that, but here's how I do it (applies only to N900 kernel): 1. Install codesourcery 2010.09 toolchain from here : http://www.codesourcery.com/sgpp/lite/arm/portal/package7851/public/arm-none-linux-gnueabi/arm-2010.09-50-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 * untar to e.g. /opt/cs/<toolchain-release-name> * add to your ~/.bashrc export PATH=$PATH:/opt/cs/<toolchain-release-name>/bin export CROSS_COMPILE=arm-none-linux-gnueabi- export ARCH=arm # this will make all compiles using "ARCH" assume arm architecture, beware!! 2. clone the n900 kernel tree from gitorious: git clone http://git.gitorious.org/meego-device-adaptation/n900_kernel.git n900_kernel 3. make your configurations cd n900_kernel make omap2plus_defconfig make gconfig # or "make menuconfig" if you prefer libncurses 4. Build the kernel and modules make zImage make modules make modules_install INSTALL_MOD_PATH=mod # remove the symbolic links to avoid copying the sources to the device... rm mod/lib/modules/2.6.37+/source rm mod/lib/modules/2.6.37+/build 5. copy the modules to the N900 (assuming it's booted to meego, usb connected) cd mod scp -r lib [email protected]/ 6. flash the kernel: sudo flasher-3.5 -l -k arch/arm/boot/zImage -b above only loads the kernel for that particular boot (not permanent copy) Other way to do this is to use OBS, but that requires that you have access to at least community OBS. There the procedure is roughly like this (don't remember all the osc commands...): 1. Copy the kernel-adaptation-n900 package from MeeGo.com:Trunk:Testing to your home project 2. check out that project to local directory 3. copy your patch file to the local project directory and add the file's name to "series" file 4. run "make" #this will update the .spec and other files according to "series" patch information 5. check in all the changes to your remote OBS project 6. OBS automatically builds you a kernel package after check in 7. install the kernel package to your device (download it from the obs web page & copy to n900 & install) 8. remember to run "sync" so that the files actually get written! 9. reboot (assuming you are using u-boot here) If not using uboot, flash the kernel zImage with flasher-3.5 after installing the RPM... If you want to help documenting these procedures, there is a wikipage where one can add these kind of tutorials for the N900 DE relese. If you have time, please add the procedure that worked for you here: http://wiki.meego.com/ARM/N900/Developers Under "Tutorials and How-Tos" Thanks, Kalle Thanks Yuvi R
_______________________________________________ MeeGo-kernel mailing list [email protected] http://lists.meego.com/listinfo/meego-kernel
