Mercurial > hg > aboriginal
annotate sources/patches/linux-pmacorder.patch @ 979:88b354c0eee1
Tweak mercurial repo entry and add link to current snapshot.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 16 Feb 2010 06:57:14 -0600 |
parents | 63d5c2aef8ef |
children | cc716bec3527 |
rev | line source |
---|---|
978
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 Work around a QEMU bug by reordering the drivers in the Linux kernel. |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 See http://lists.gnu.org/archive/html/qemu-devel/2010-02/msg00892.html |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 QEMU's -hda and -hdb options initialize drives on a power mac IDE controller, |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 and its -hdc and -hdd options initialize drives on a cmd646 controller. (They |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 do this because they expect hdc to be a CDROM and DMA for those doesn't |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 work right on the pmac controller, so they added a second controller.) |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 A non-modular Linux kernel always initialies the cmd646 driver before the |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 pmac driver, and thus the disks on the cmd646 become /dev/hda and /dev/hdb, |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 and the pmac ones become /dev/hdc and /dev/hdd. Thus -hda initializes hdc, |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 and so on, working differently than every other qemu target and confusing our |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 generic boot script. |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 The real fix is in QEMU (making their command line arguments match up |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
17 with what the Linux will name the drives), but they won't do it. The Linux |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
18 kernel's behavior hasn't changed in 10 years, but here's a patch to do |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 so, to work around the QEMU bug. |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
20 |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 diff --git a/drivers/ide/Makefile b/drivers/ide/Makefile |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 index 81df925..d9318a1 100644 |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 --- a/drivers/ide/Makefile |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 +++ b/drivers/ide/Makefile |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
25 @@ -39,6 +39,7 @@ obj-$(CONFIG_BLK_DEV_ALI15X3) += alim15x3.o |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
26 obj-$(CONFIG_BLK_DEV_AMD74XX) += amd74xx.o |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
27 obj-$(CONFIG_BLK_DEV_ATIIXP) += atiixp.o |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
28 obj-$(CONFIG_BLK_DEV_CELLEB) += scc_pata.o |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
29 +obj-$(CONFIG_BLK_DEV_IDE_PMAC) += pmac.o |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
30 obj-$(CONFIG_BLK_DEV_CMD64X) += cmd64x.o |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
31 obj-$(CONFIG_BLK_DEV_CS5520) += cs5520.o |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
32 obj-$(CONFIG_BLK_DEV_CS5530) += cs5530.o |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
33 @@ -76,8 +77,6 @@ obj-$(CONFIG_IDEPCI_PCIBUS_ORDER) += ide-scan-pci.o |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
34 |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
35 obj-$(CONFIG_BLK_DEV_CMD640) += cmd640.o |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
36 |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
37 -obj-$(CONFIG_BLK_DEV_IDE_PMAC) += pmac.o |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
38 - |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
39 obj-$(CONFIG_IDE_H8300) += ide-h8300.o |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
40 |
63d5c2aef8ef
Make qemu-system-powerpc work with more than 2 disks.
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
41 obj-$(CONFIG_IDE_GENERIC) += ide-generic.o |