Search:  
Gentoo Wiki

HARDWARE_DMA_and_you

This page is a candidate for deletion 
Reason given: The guide stops before getting interesting
If you disagree with its deletion, please explain why on its discussion page.
If you intend to fix it, please remove this notice, but do not remove this notice from articles that you have created yourself.
Make sure no other pages link here and check the page's history before deleting.
This article is part of the Hardware series.
Laptops TV Tuner Cards Wireless Servers Storage Other Hardware Motherboards Related
Wikipedia has an article on:
Direct memory access

Introduction

This is a short and snappy way to setup DMA.

What controller do you have?

You have to emerge two ebuilds, kernel sources of your choice and pciutils.

emerge pciutils gentoo-sources
ln -sf /usr/src/linux-2.x.x-x /usr/src/linux

To find out what controller you have, just run /sbin/lspci. It will print out all the devices on the PCI bus. Look for one containing IDE in it and look for the brand name on the same line.

Or pipe it to grep:

/usr/sbin/lspci | grep IDE

After you have collected this information you can go into your kernel configuration..

Enabling the driver

cd /usr/src/linux
make menuconfig

Once the curses GUI comes up navigate yourself over to Device Drivers ---> ATA/ATAPI/MFM/RLL support and scroll down until you find the controller that matches the one you found in lspci. Note this may have a slightly different name and may be a generic driver (i.e. VIA82CXXX). Select it and then build your kernel. Don't forget to add any other options you might need.

make clean && make dep && make bzImage && make modules && make modules_install
make && make modules_install

Mount /boot partition:

mount /boot

Then copy over your Kernel and System map (note, the location of bzImage may depend on your architecture):

cp arch/i386/boot/bzImage /boot/kernel-2.6.11-gentoo-r3
cp System.map /boot/System.map-2.6.11-gentoo-r3

Restart your computer and see the annoying "DMA NOT ENABLED" error disappear! Oh and it'll go faster too...

Retrieved from "http://www.gentoo-wiki.info/HARDWARE_DMA_and_you"

Last modified: Thu, 14 Aug 2008 02:43:00 +0000 Hits: 14,403