Recompiling the kernel(Nano 7240)
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.
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
Apply this patch to add support for the onboard W83877TG watchdog.
Use this .config file (v2.6.22.6) as base. Then make menuconfig and load the .config file.
Useful things to know:
To enable system temperature and voltage monitoring on Nano-7240,
In Device drivers, enable "I2C support", and "I2C device interface". In "I2C hardware bus support", enable "VIA VT82C596/82C686/82cc" as a module.
Then, in Device drivers, enable "Hardware monitoring support" and "VIA686A" 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 "VIA 82C686A/B, 8233/8235 AC97 Controller", in "USBĀ devices", enable as module "USB Audio/MIDI driver"
To enable the watchdog, in "Device drivers" , "Char devices", "Watchdog timers", enable "W83877TG" and follow these steps to make use of it.
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
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
Apply this patch to add support for the onboard W83877TG watchdog.
Use this .config file (v2.6.22.6) as base. Then make menuconfig and load the .config file.
Useful things to know:
To enable system temperature and voltage monitoring on Nano-7240,
In Device drivers, enable "I2C support", and "I2C device interface". In "I2C hardware bus support", enable "VIA VT82C596/82C686/82cc" as a module.
Then, in Device drivers, enable "Hardware monitoring support" and "VIA686A" 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 "VIA 82C686A/B, 8233/8235 AC97 Controller", in "USBĀ devices", enable as module "USB Audio/MIDI driver"
To enable the watchdog, in "Device drivers" , "Char devices", "Watchdog timers", enable "W83877TG" and follow these steps to make use of it.
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