Personal tools
You are here: Home Members gillesgigan Sensor Gateway Recompiling the kernel(Nano 8522)
Document Actions

Recompiling the kernel(Nano 8522)

by Gilles Gigan last modified 2007-11-28 11:28

Steps to recompile the kernel with needed features only

Besides the usual advantages of customising a kernel to contain only needed features, recompiling the kernel is also required to avoid the "ds2490", "wire" and possibly "w1_therm" modules to be loaded as they conflict with owfs.

Install tools and download kernel

apt-get install ccache kernel-package ncurses-dev fakeroot wget bzip2 build-essential
cd /usr/src
wget "http://mirror.aarnet.edu.au/pub/ftp.kernel.org/linux/kernel/v2.6/linux-X.Y.Z.tar.bz2"
tar -jxf ./linux-X.Y.Z.tar.bz2
cd linux-X.Y.Z

Kernel Configuration

Fix the HID_BLACKLIST table so the LabJack can work fine:
Add "{0xcd5, 0x0001, HID_QUIRK_IGNORE}"to the hid_blacklist structure in drivers/usb/input/hid-core.c, or drivers/hid/usbhid/hid-quirks.c


Use this .config file (v2.6.22.6) as base. Then make oldconfig menuconfig

Useful things to know:
To enable system temperature and voltage monitoring on Nano-8522,
In Device drivers, enable "I2C support", and "I2C device interface". In "I2C hardware bus support", enable "Intel 82801 (ICH)" as a module.
Then, in Device drivers, enable "Hardware monitoring support" and "Winbond W83627EHF/DHG" as a module.

To enable support for BT878, enable "Video for Linux", "Enable V4Lv1", "Video capture adapters", "Autoselect pertinent encoders/decoders", and "BT848 V4L" as a module.

To enable sound, enable"Sound card support", in ALSA enable "Sequencer support", "RTC timer support", in PCI devices, enable "Intel/SiS/nVidia/AMD/ALi AC97 Controller", in "USBĀ  devices", enable as module "USB Audio/MIDI driver"

To enable the watchdog, in "Device drivers" , "Char devices", "Watchdog timers", enable "W83627HF Watchdog Timer" and follow these steps to make use of it. (TO BE VERIFIED !!!!)

To enable support for USB to serial converter, in "USB support". in "USB Serial Converter support", enable as a module "USB Prolific 2303".

Enable "ext2", "ext3" and the IDE chipset driver (not as modules).

Enable "Inotify" in "Filesystems" so udev doesnt have to be manually restarted when its config changes.

To support owfs, enable "Filesystem in Userspace support" in Filesystems.

Compile the kernel

make
make modules_install
make install
update-grub
shutdown -r now

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: