1 |
On Fri, Jan 21, 2011 at 11:40 AM, <meino.cramer@×××.de> wrote: |
2 |
<SNIP> |
3 |
> Hi Mark, |
4 |
> |
5 |
<SNIP> |
6 |
> I thought (which implies "I dont know for sure"), that the BIOS do |
7 |
> enable/disable certain features, the kernels reads that settings and |
8 |
> act accordingly -- but definitely this is not true for all settings. |
9 |
> |
10 |
|
11 |
Certainly true for some hardware, like clocks, etc. |
12 |
|
13 |
For disk controllers AFAIK the goal is to give the boot loader a |
14 |
chance to boot. After that it doesn't, in general, matter what the |
15 |
BIOS did. |
16 |
|
17 |
For instance, modern SATA controllers use DMA. BIOS and older |
18 |
operating systems like DOS didn't know much, if anything, about DMA, |
19 |
so BIOS leaves that turned off. The kernel turns that on. |
20 |
|
21 |
> Does the contents of a harddisk differ when written with AHCI |
22 |
> compared to a disk which is written with IDE? |
23 |
> |
24 |
|
25 |
TTBOMK no. Other things like file system type, etc., change what's on |
26 |
the disk, but the disk store so many bytes/sector and that's just the |
27 |
way it works. |
28 |
|
29 |
|
30 |
> If NO _AND_ only the kernel sets the AHCI- odr IDE-protocol, then |
31 |
> the harddisk should be readable in either case. |
32 |
> |
33 |
|
34 |
Certainly, which is why you could build this system using AHCI and |
35 |
then move it to some other system and read the disk using DOS. |
36 |
(Assuming DOS could understand the file system like FAT, etc.) |
37 |
|
38 |
> If the BIOS _and_ the kernel settings are defining, how to talk |
39 |
> to the disk, then it may happen, that there is only the "sound of silence" |
40 |
> between kernel and hardware if before the BIOS set up the SATA-chips |
41 |
> differently to what the kernel wants to talk. |
42 |
> |
43 |
|
44 |
BIOS sets up the system hardware so the boot loader can get the kernel |
45 |
image off the disk. The kernel is read into memory using these |
46 |
settings. At that point there aren't any more disk reads for a while. |
47 |
The kernel executes and starts resetting the hardware through driver |
48 |
loads, etc. This is why one controller could be set to use a SATA |
49 |
Drive by itself or RAID. |
50 |
|
51 |
> But again, these are only thougts drifting in the dark. |
52 |
> |
53 |
> I tried to shed some more light (for getting greater shadows ;) ) |
54 |
> by posting my question here... ;) 8) |
55 |
> |
56 |
> May be I should do some more stupid things??? ;) |
57 |
> |
58 |
|
59 |
Ain't no such thing a stupid question. Only thing to do when |
60 |
experimenting is ensure you aren't risking data you care about. I |
61 |
would do these experiments on a new clean system. I would not do them |
62 |
on a system that has stuff I care about unless I had known good |
63 |
backups. |
64 |
|
65 |
> Thanks again for your help and your words, Mark! |
66 |
> Have a nice weekend! |
67 |
> Best regards, |
68 |
> mcc |
69 |
> |
70 |
|
71 |
You too sir! |
72 |
|
73 |
Cheers, |
74 |
Mark |