1 |
Achim Gottinger wrote: |
2 |
|
3 |
> "Bruce A. Locke" wrote: |
4 |
> |
5 |
>> Hello... |
6 |
>> |
7 |
>> I did my first non-vmware (aka on real hardware) install of Gentoo and was |
8 |
>> wondering about the following: |
9 |
>> |
10 |
>> - If DMA is going to be on by default in the kernel would it be possible to |
11 |
>> include hdparm on the cd image so people with harddrives, etc that have |
12 |
>> issues with DMA can turn it off after the cd boots? I had to create a 10mb |
13 |
>> partition and untar the hdparm package because the HD would freak out with |
14 |
>> DMA turned on under lightload. (Yes I know, old cheap harddrive) |
15 |
> |
16 |
> |
17 |
> Ok hdparam will be there. |
18 |
|
19 |
You could let the user enable/disable it before booting, like this: |
20 |
|
21 |
grep no_dma /proc/cmdline>/dev/null || enable_dma() |
22 |
|
23 |
or the opposite |
24 |
|
25 |
grep no_dma /proc/cmdline >/dev/null && disable_dma() |
26 |
|
27 |
Some more advanced syntax could be added too, such as no_dma=hda,hdb but |
28 |
that's problably overdoing it. Shouldn't there be a kernel option for |
29 |
this in the first place anyway? |
30 |
|
31 |
-- |
32 |
Morgan Christiansson |