I have been working on Galileo Gen2 for installing CSI tool for several weeks. I followed this link Linux 802.11n CSI Tool — Installation Instructions to install it. I tried to install it on both debian system for Galileo and Linux galileo 3.8.7-yocto-standard However, I find that I need to install linux-headers which csi tool needs to recompile and change some kernel modules like iwlwifi as the following command shows.
make -C /lib/modules/$(uname -r)/build M=$(pwd)/drivers/net/wireless/iwlwifi modules
So,I tried to install kernel-headers for the Linux galileo 3.8.7-yocto-standard kernel. However I can't find anything helpful for me to install the corresponding linux-headers. Then I tried to compile kernel using the source codes csi tool offered directly so that the kernel modules are what csi tool needs. I builded the kernel from 3.8.0 to 4.1.0 successfully using the original .config file from 3.8.7-yocto-standard kernel. The correlative kernel files and kernel headers I need are also generated. (including initrd.img and vmlinuz in /boot/ and kernel headers in /lib/modules/)
I think the system boot configuration file is from the grub.conf from /boot/grub/grub.conf on the SD card first partition .The partial content of this file is on the following.
default 1
timeout 10
color white/blue white/cyan
title Clanton SVP kernel-SPI initrd-SPI IMR-On IO-APIC/HPET NoEMU
kernel --spi root=/dev/ram0 console=ttyS1,115200n8 earlycon=uart8250,mmio32,,$EARLY_CON_ADDR_REPLACE,115200n8 vmalloc=384M reboot=efi,warm apic=debug rw
initrd --spi
title Custom Quark Kernel with Debian Wheezy
root (hd0,3)
kernel /boot/vmlinuz-3.8.7+ root=/dev/mmcblk0p4 3 console=ttyQRK1,115200n8 earlycon=uart8250,mmio32,$EARLY_CON_ADDR_REPLACE,115200n8 vmalloc=3844M reboot=efi,warm apic=debug rw LABEL=boot debugshell=5
initrd /boot/initrd.img-3.8.7+
I changed the part from 3.8.7+ to 3.8.0( because vmlinuz-3.8.0 and initrd.img-3.8.0 are generated in the same place of vmlinuz-3.8.7+ and initrd.img-3.8.7+)
But it just failed to load the 3.8.0 kernel after I changed the grub.conf file. It stopped on a place where I think initrd.img should be loaded.
Besides I find that the system intel offered is built through yocto. Does it mean that I need to build the system using yocto? If it does, I also want to make sure that how to add kernel headers when I build the system
So, the problem:How can I install csi tool on Galileo Gen2 changed into: How can I change kernel on the system or how can I install kernel headers for installing the kernel modules the csi tool needed.
I would appreciate it if you would help me solve these problems. Thanks a lot