[6271] Use ESCC for PowerMac serial
Revision: 6271
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6271 Author: blueswir1 Date: 2009-01-12 17:40:23 +0000 (Mon, 12 Jan 2009)
Log Message:
-----------
Use ESCC for PowerMac serial
Modified Paths:
--------------
trunk/Makefile.target
trunk/hw/macio.c
trunk/hw/ppc_chrp.c
trunk/hw/ppc_mac.h
trunk/hw/ppc_oldworld.c
Modified: trunk/Makefile.target
===================================================================
Makefile.target +1 -1
@@ -646,7 +646,7 @@ OBJS+= pckbd.o ps2.o serial.o i8259.o i8254.o fdc.o m48t59.o mc146818rtc.o OBJS+= prep_pci.o ppc_prep.o # Mac shared devices -OBJS+= macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o +OBJS+= macio.o cuda.o adb.o mac_nvram.o mac_dbdma.o escc.o # OldWorld PowerMac OBJS+= heathrow_pic.o grackle_pci.o ppc_oldworld.o # NewWorld PowerMac
Modified: trunk/hw/macio.c
===================================================================
hw/macio.c +8 -1
@@ -25,6 +25,7 @@#include "hw.h" #include "ppc_mac.h" #include "pci.h" +#include "escc.h" typedef struct macio_state_t macio_state_t ;struct macio_state_t {
@@ -32,6 +33,7 @@int pic_mem_index;int dbdma_mem_index;int cuda_mem_index; +int escc_mem_index;void *nvram;int nb_ide;int ide_mem_index[4 ];
@@ -59,6 +61,10 @@cpu_register_physical_memory (addr +0x08000 ,0x1000 , macio_state->dbdma_mem_index); } +if (macio_state->escc_mem_index >=0 ) { +cpu_register_physical_memory (addr +0x13000 ,ESCC_SIZE <<4 , + macio_state->escc_mem_index); + }if (macio_state->cuda_mem_index >=0 ) {cpu_register_physical_memory (addr +0x16000 ,0x2000 , macio_state->cuda_mem_index);
@@ -75,7 +81,7 @@void macio_init (PCIBus *bus,int device_id,int is_oldworld,int pic_mem_index,int dbdma_mem_index,int cuda_mem_index,void *nvram, -int nb_ide,int *ide_mem_index) +int nb_ide,int *ide_mem_index,int escc_mem_index) {PCIDevice *d;macio_state_t *macio_state;
@@ -89,6 +95,7 @@ macio_state->pic_mem_index = pic_mem_index; macio_state->dbdma_mem_index = dbdma_mem_index; macio_state->cuda_mem_index = cuda_mem_index; + macio_state->escc_mem_index = escc_mem_index; macio_state->nvram = nvram;if (nb_ide >4 ) nb_ide =4 ;
Modified: trunk/hw/ppc_chrp.c
===================================================================
hw/ppc_chrp.c +5 -4
@@ -31,6 +31,7 @@#include "net.h" #include "sysemu.h" #include "boards.h" +#include "escc.h" #define MAX_IDE_BUS 2
@@ -80,7 +81,7 @@m48t59_t *m48t59;int vga_bios_size, bios_size;qemu_irq *dummy_irq; -int pic_mem_index, dbdma_mem_index, cuda_mem_index; +int pic_mem_index, dbdma_mem_index, cuda_mem_index, escc_mem_index;int ide_mem_index[2 ];int ppc_boot_device;int index;
@@ -262,8 +263,8 @@/* XXX: suppress that */ dummy_irq =i8259_init (NULL ); -/* XXX: use Mac Serial port */ -serial_init (0x3f8 , dummy_irq[4 ],115200 , serial_hds[0 ]); + escc_mem_index =escc_init (0x80013000 , dummy_irq[4 ], serial_hds[0 ], + serial_hds[1 ],ESCC_CLOCK ,4 );for (i =0 ; i < nb_nics; i++) {if (!nd_table[i].model) nd_table[i].model ="ne2k_pci" ;
@@ -295,7 +296,7 @@dbdma_init (&dbdma_mem_index);macio_init (pci_bus,0x0022 ,0 , pic_mem_index, dbdma_mem_index, - cuda_mem_index,NULL ,2 , ide_mem_index); + cuda_mem_index,NULL ,2 , ide_mem_index, escc_mem_index);if (usb_enabled) {usb_ohci_init_pci (pci_bus,3 ,-1 );
Modified: trunk/hw/ppc_mac.h
===================================================================
hw/ppc_mac.h +3 -1
@@ -37,6 +37,8 @@#define KERNEL_LOAD_ADDR 0x01000000#define INITRD_LOAD_ADDR 0x01800000 +#define ESCC_CLOCK 3686400 +/* DBDMA */ void dbdma_init (int *dbdma_mem_index);
@@ -46,7 +48,7 @@/* MacIO */ void macio_init (PCIBus *bus,int device_id,int is_oldworld,int pic_mem_index,int dbdma_mem_index,int cuda_mem_index,void *nvram, -int nb_ide,int *ide_mem_index); +int nb_ide,int *ide_mem_index,int escc_mem_index);/* NewWorld PowerMac IDE */ int pmac_ide_init (BlockDriverState **hd_table,qemu_irq irq);
Modified: trunk/hw/ppc_oldworld.c
===================================================================
hw/ppc_oldworld.c +5 -4
@@ -33,6 +33,7 @@#include "pci.h" #include "boards.h" #include "fw_cfg.h" +#include "escc.h" #define MAX_IDE_BUS 2#define VGA_BIOS_SIZE 65536
@@ -126,7 +127,7 @@int vga_bios_size, bios_size;qemu_irq *dummy_irq;int pic_mem_index, nvram_mem_index, dbdma_mem_index, cuda_mem_index; -int ide_mem_index[2 ]; +int escc_mem_index, ide_mem_index[2 ];int ppc_boot_device;BlockDriverState *hd[MAX_IDE_BUS *MAX_IDE_DEVS ];int index;
@@ -296,8 +297,8 @@/* XXX: suppress that */ dummy_irq =i8259_init (NULL ); -/* XXX: use Mac Serial port */ -serial_init (0x3f8 , dummy_irq[4 ],115200 , serial_hds[0 ]); + escc_mem_index =escc_init (0x80013000 , pic[0x10 ], serial_hds[0 ], + serial_hds[1 ],ESCC_CLOCK ,4 );for (i =0 ; i < nb_nics; i++) {if (!nd_table[i].model)
@@ -350,7 +351,7 @@dbdma_init (&dbdma_mem_index);macio_init (pci_bus,0x0010 ,1 , pic_mem_index, dbdma_mem_index, - cuda_mem_index, nvr,2 , ide_mem_index); + cuda_mem_index, nvr,2 , ide_mem_index, escc_mem_index);if (usb_enabled) {usb_ohci_init_pci (pci_bus,3 ,-1 );
Quoted 9 lines · Blue Swirl
Revision: 6271
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6271 Author: blueswir1 Date: 2009-01-12 17:40:23 +0000 (Mon, 12 Jan 2009)Log Message:
-----------
Use ESCC for PowerMac serial
[snip]
Quoted 22 lines
Modified:
trunk/hw/ppc_oldworld.c
===================================================================hw/ppc_oldworld.c +2
-1@@ -33,6 +33,7 @@#include "pci.h" #include "boards.h" #include "fw_cfg.h" +#include "escc.h" #define MAX_IDE_BUS 2#define VGA_BIOS_SIZE 65536@@ -126,7 +127,7 @@int vga_bios_size, bios_size;qemu_irq *dummy_irq;int pic_mem_index, nvram_mem_index, dbdma_mem_index, cuda_mem_index; -int ide_mem_index[2 ]; +int escc_mem_index, ide_mem_index[2 ];int ppc_boot_device;BlockDriverState *hd[MAX_IDE_BUS *MAX_IDE_DEVS ];int index;
hw/ppc_oldworld.c line 301
Quoted 7 lines
hw/ppc_oldworld.c +2
-2@@ -296,8 +297,8 @@/* XXX: suppress that */ dummy_irq =i8259_init (NULL ); -/* XXX: use Mac Serial port */ -serial_init (0x3f8 , dummy_irq[4 ],115200 , serial_hds[0 ]); + escc_mem_index =escc_init (0x80013000 , pic[0x10 ], serial_hds[0 ], + serial_hds[1 ],ESCC_CLOCK ,4 );
I don't think this address is correct. Also this is later mapped by macio_init() later.
Also I have tried with the latest SVN of OpenBIOS (which includes the corresponding patches for ESCC), and the machine doesn't boot anymore. Using -serial stdio, I see
| >> ============================================================= | >> OpenBIOS 1.0RC1 [Jan 12 2009 19:28] | >> Configuration device id QEMU version 1 machine id 2 | >> CPUs: 1 | >> Memory: 144M | >> UUID: 00000000-0000-0000-0000-000000000000 | >> CPU type PowerPC,750 | >> Initializing PCI devices... | >> 0:0.0 - 1057:2 - /pci - | >> 0:1.0 - 1234:1111 - /pci/QEMU,VGA -
Then it hangs there.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 40 lines · Aurelien Jarno
Quoted 9 lines · Blue Swirl
Revision: 6271
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6271 Author: blueswir1 Date: 2009-01-12 17:40:23 +0000 (Mon, 12 Jan 2009)Log Message:
-----------
Use ESCC for PowerMac serial[snip]
Quoted 25 lines
Modified:
trunk/hw/ppc_oldworld.c
===================================================================hw/ppc_oldworld.c 2009-01-12 17:40:23 UTC (rev 6271) renamed from hw/ppc_oldworld.c 2009-01-12 17:38:28 UTC (rev 6270) +2
-1@@ -33,6 +33,7 @@ #include "pci.h" #include "boards.h" #include "fw_cfg.h" +#include "escc.h" #define MAX_IDE_BUS 2 #define VGA_BIOS_SIZE 65536@@ -126,7 +127,7 @@ int vga_bios_size, bios_size; qemu_irq *dummy_irq; int pic_mem_index, nvram_mem_index, dbdma_mem_index, cuda_mem_index; - int ide_mem_index[2]; + int escc_mem_index, ide_mem_index[2]; int ppc_boot_device; BlockDriverState *hd[MAX_IDE_BUS * MAX_IDE_DEVS]; int index;@@ -296,8 +297,8 @@ /* XXX: suppress that */ dummy_irq = i8259_init(NULL);
Quoted 8 lines
hw/ppc_oldworld.c 2009-01-12 17:40:23 UTC (rev 6271) line 301
Quoted 4 lines
hw/ppc_oldworld.c 2009-01-12 17:40:23 UTC (rev 6271) renamed from hw/ppc_oldworld.c 2009-01-12 17:38:28 UTC (rev 6270) +2
-2- /* XXX: use Mac Serial port */ - serial_init(0x3f8, dummy_irq[4], 115200, serial_hds[0]); + escc_mem_index = escc_init(0x80013000, pic[0x10], serial_hds[0], + serial_hds[1], ESCC_CLOCK, 4);I don't think this address is correct. Also this is later mapped by
macio_init()later.
It's there to enable some kind of serial console before PCI probing and device mapping has been done, the address is arbitrary.
Maybe the new mapping could remove the old one.
Quoted 15 lines
Also I have tried with the latest SVN of OpenBIOS (which includes the corresponding patches for ESCC), and the machine doesn't boot anymore. Using -serial stdio, I see
| >> ============================================================= | >> OpenBIOS 1.0RC1 [Jan 12 2009 19:28] | >> Configuration device id QEMU version 1 machine id 2 | >> CPUs: 1 | >> Memory: 144M | >> UUID: 00000000-0000-0000-0000-000000000000 | >> CPU type PowerPC,750 | >> Initializing PCI devices... | >> 0:0.0 - 1057:2 - /pci - | >> 0:1.0 - 1234:1111 - /pci/QEMU,VGA -
Quoted 1 line
Then it hangs there.
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
Quoted 47 lines · Blue Swirl
Quoted 46 lines · Aurelien Jarno
Quoted 9 lines · Blue Swirl
Revision: 6271
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6271 Author: blueswir1 Date: 2009-01-12 17:40:23 +0000 (Mon, 12 Jan 2009)Log Message:
-----------
Use ESCC for PowerMac serial[snip]
Quoted 29 lines
Modified:
trunk/hw/ppc_oldworld.c
===================================================================hw/ppc_oldworld.c 2009-01-12 17:40:23 UTC (rev 6271) renamed from hw/ppc_oldworld.c 2009-01-12 17:38:28 UTC (rev 6270) +4
-3@@ -33,6 +33,7 @@ #include "pci.h" #include "boards.h" #include "fw_cfg.h" +#include "escc.h" #define MAX_IDE_BUS 2 #define VGA_BIOS_SIZE 65536@@ -126,7 +127,7 @@ int vga_bios_size, bios_size; qemu_irq *dummy_irq; int pic_mem_index, nvram_mem_index, dbdma_mem_index, cuda_mem_index; - int ide_mem_index[2]; + int escc_mem_index, ide_mem_index[2]; int ppc_boot_device; BlockDriverState *hd[MAX_IDE_BUS * MAX_IDE_DEVS]; int index;@@ -296,8 +297,8 @@ /* XXX: suppress that */ dummy_irq = i8259_init(NULL); - /* XXX: use Mac Serial port */ - serial_init(0x3f8, dummy_irq[4], 115200, serial_hds[0]); + escc_mem_index = escc_init(0x80013000, pic[0x10], serial_hds[0], + serial_hds[1], ESCC_CLOCK, 4);
Quoted 7 lines
Quoted 2 lines
I don't think this address is correct. Also this is later mapped by
macio_init()later.It's there to enable some kind of serial console before PCI probing and device mapping has been done, the address is arbitrary.
Maybe the new mapping could remove the old one.
Ok, I see.
Quoted 15 lines
Quoted 15 lines
Also I have tried with the latest SVN of OpenBIOS (which includes the corresponding patches for ESCC), and the machine doesn't boot anymore. Using -serial stdio, I see
| >> ============================================================= | >> OpenBIOS 1.0RC1 [Jan 12 2009 19:28] | >> Configuration device id QEMU version 1 machine id 2 | >> CPUs: 1 | >> Memory: 144M | >> UUID: 00000000-0000-0000-0000-000000000000 | >> CPU type PowerPC,750 | >> Initializing PCI devices... | >> 0:0.0 - 1057:2 - /pci - | >> 0:1.0 - 1234:1111 - /pci/QEMU,VGA -
Quoted 5 lines
Quoted 1 line
Then it hangs there.
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 8 lines · Aurelien Jarno
Quoted 6 lines · Blue Swirl
Quoted 1 line · Aurelien Jarno
On Mon, Jan 12, 2009 at 05:40:24PM +0000, Blue Swirl wrote:
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
Quoted 7 lines
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
The PCI debugging is enabled by default on the native build, and disable on the cross-build. Disabling the PCI code fixes (or workarounds?) the problem.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 82 lines · Aurelien Jarno
Quoted 47 lines · Blue Swirl
Quoted 46 lines · Aurelien Jarno
Quoted 9 lines · Blue Swirl
Revision: 6271
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6271 Author: blueswir1 Date: 2009-01-12 17:40:23 +0000 (Mon, 12 Jan 2009)Log Message:
-----------
Use ESCC for PowerMac serial[snip]
Quoted 29 lines
Modified:
trunk/hw/ppc_oldworld.c
===================================================================hw/ppc_oldworld.c 2009-01-12 17:40:23 UTC (rev 6271) renamed from hw/ppc_oldworld.c 2009-01-12 17:38:28 UTC (rev 6270) +4
-3@@ -33,6 +33,7 @@ #include "pci.h" #include "boards.h" #include "fw_cfg.h" +#include "escc.h" #define MAX_IDE_BUS 2 #define VGA_BIOS_SIZE 65536@@ -126,7 +127,7 @@ int vga_bios_size, bios_size; qemu_irq *dummy_irq; int pic_mem_index, nvram_mem_index, dbdma_mem_index, cuda_mem_index; - int ide_mem_index[2]; + int escc_mem_index, ide_mem_index[2]; int ppc_boot_device; BlockDriverState *hd[MAX_IDE_BUS * MAX_IDE_DEVS]; int index;@@ -296,8 +297,8 @@ /* XXX: suppress that */ dummy_irq = i8259_init(NULL); - /* XXX: use Mac Serial port */ - serial_init(0x3f8, dummy_irq[4], 115200, serial_hds[0]); + escc_mem_index = escc_init(0x80013000, pic[0x10], serial_hds[0], + serial_hds[1], ESCC_CLOCK, 4);Quoted 7 lines
Quoted 2 lines
I don't think this address is correct. Also this is later mapped by
macio_init()later.It's there to enable some kind of serial console before PCI probing and device mapping has been done, the address is arbitrary.
Maybe the new mapping could remove the old one.
Ok, I see.
Quoted 15 lines
Quoted 15 lines
Also I have tried with the latest SVN of OpenBIOS (which includes the corresponding patches for ESCC), and the machine doesn't boot anymore. Using -serial stdio, I see
| >> ============================================================= | >> OpenBIOS 1.0RC1 [Jan 12 2009 19:28] | >> Configuration device id QEMU version 1 machine id 2 | >> CPUs: 1 | >> Memory: 144M | >> UUID: 00000000-0000-0000-0000-000000000000 | >> CPU type PowerPC,750 | >> Initializing PCI devices... | >> 0:0.0 - 1057:2 - /pci - | >> 0:1.0 - 1234:1111 - /pci/QEMU,VGA -Quoted 5 lines
Quoted 1 line
Then it hangs there.
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
Quoted 8 lines
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
Try r396 :-).
Actually, it looks like serial output during PCI probing breaks something.
Quoted 15 lines · Aurelien Jarno
Quoted 14 lines · Aurelien Jarno
Quoted 7 lines · Blue Swirl
Quoted 1 line · Aurelien Jarno
On Mon, Jan 12, 2009 at 05:40:24PM +0000, Blue Swirl wrote:
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
Quoted 7 lines
Quoted 2 lines
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
The PCI debugging is enabled by default on the native build, and disable
on the cross-build. Disabling the PCI code fixes (or workarounds?) the problem.
It looks like the address of the boot serial is bad, if I change it to 0x7f013000, PCI debug output works. Maybe something maps over the address at some point.
hw/ppc_chrp.c +1 -1
@@ -263,7 +263,7 @@/* XXX: suppress that */ dummy_irq =i8259_init (NULL ); - escc_mem_index =escc_init (0x80013000 , dummy_irq[4 ], serial_hds[0 ], + escc_mem_index =escc_init (0x7f013000 , dummy_irq[4 ], serial_hds[0 ], serial_hds[1 ],ESCC_CLOCK ,4 );for (i =0 ; i < nb_nics; i++) {if (!nd_table[i].model)
hw/ppc_oldworld.c +1 -1
@@ -297,7 +297,7 @@/* XXX: suppress that */ dummy_irq =i8259_init (NULL ); - escc_mem_index =escc_init (0x80013000 , pic[0x10 ], serial_hds[0 ], + escc_mem_index =escc_init (0x7f013000 , pic[0x10 ], serial_hds[0 ], serial_hds[1 ],ESCC_CLOCK ,4 );for (i =0 ; i < nb_nics; i++) {
arch/ppc/qemu/init.c +1 -1
@@ -148,7 +148,7 @@ isa_io_base = arch->io_base; -uart_init (0x80013000ULL ,CONFIG_SERIAL_SPEED ); +uart_init (0x7f013000ULL ,CONFIG_SERIAL_SPEED );printk ("\n" );printk ("=============================================================\n" );
Quoted 90 lines · Blue Swirl
Quoted 89 lines · Aurelien Jarno
Quoted 47 lines · Blue Swirl
Quoted 46 lines · Aurelien Jarno
Quoted 9 lines · Blue Swirl
Revision: 6271
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6271 Author: blueswir1 Date: 2009-01-12 17:40:23 +0000 (Mon, 12 Jan 2009)Log Message:
-----------
Use ESCC for PowerMac serial[snip]
Quoted 29 lines
Modified:
trunk/hw/ppc_oldworld.c
===================================================================hw/ppc_oldworld.c 2009-01-12 17:40:23 UTC (rev 6271) renamed from hw/ppc_oldworld.c 2009-01-12 17:38:28 UTC (rev 6270) +4
-3@@ -33,6 +33,7 @@ #include "pci.h" #include "boards.h" #include "fw_cfg.h" +#include "escc.h" #define MAX_IDE_BUS 2 #define VGA_BIOS_SIZE 65536@@ -126,7 +127,7 @@ int vga_bios_size, bios_size; qemu_irq *dummy_irq; int pic_mem_index, nvram_mem_index, dbdma_mem_index, cuda_mem_index; - int ide_mem_index[2]; + int escc_mem_index, ide_mem_index[2]; int ppc_boot_device; BlockDriverState *hd[MAX_IDE_BUS * MAX_IDE_DEVS]; int index;@@ -296,8 +297,8 @@ /* XXX: suppress that */ dummy_irq = i8259_init(NULL); - /* XXX: use Mac Serial port */ - serial_init(0x3f8, dummy_irq[4], 115200, serial_hds[0]); + escc_mem_index = escc_init(0x80013000, pic[0x10], serial_hds[0], + serial_hds[1], ESCC_CLOCK, 4);Quoted 7 lines
Quoted 2 lines
I don't think this address is correct. Also this is later mapped by
macio_init()later.It's there to enable some kind of serial console before PCI probing and device mapping has been done, the address is arbitrary.
Maybe the new mapping could remove the old one.
Ok, I see.
Quoted 15 lines
Quoted 15 lines
Also I have tried with the latest SVN of OpenBIOS (which includes the corresponding patches for ESCC), and the machine doesn't boot anymore. Using -serial stdio, I see
| >> ============================================================= | >> OpenBIOS 1.0RC1 [Jan 12 2009 19:28] | >> Configuration device id QEMU version 1 machine id 2 | >> CPUs: 1 | >> Memory: 144M | >> UUID: 00000000-0000-0000-0000-000000000000 | >> CPU type PowerPC,750 | >> Initializing PCI devices... | >> 0:0.0 - 1057:2 - /pci - | >> 0:1.0 - 1234:1111 - /pci/QEMU,VGA -Quoted 5 lines
Quoted 1 line
Then it hangs there.
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
Quoted 6 lines
Quoted 1 line
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
Try r396 :-).
Actually, it looks like serial output during PCI probing breaks something.
I confirm it works. Thanks.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 20 lines · Blue Swirl
Quoted 19 lines · Aurelien Jarno
Quoted 16 lines · Aurelien Jarno
Quoted 7 lines · Blue Swirl
Quoted 1 line · Aurelien Jarno
On Mon, Jan 12, 2009 at 05:40:24PM +0000, Blue Swirl wrote:
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
Quoted 7 lines
Quoted 3 lines
The PCI debugging is enabled by default on the native build, and disable
on the cross-build. Disabling the PCI code fixes (or workarounds?) the problem.It looks like the address of the boot serial is bad, if I change it to
0x7f013000, PCI debug output works. Maybe something maps over the address at some point.
It also works here.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 20 lines · Blue Swirl
Quoted 19 lines · Aurelien Jarno
Quoted 16 lines · Aurelien Jarno
Quoted 7 lines · Blue Swirl
Quoted 1 line · Aurelien Jarno
On Mon, Jan 12, 2009 at 05:40:24PM +0000, Blue Swirl wrote:
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
Quoted 7 lines
Quoted 3 lines
The PCI debugging is enabled by default on the native build, and disable
on the cross-build. Disabling the PCI code fixes (or workarounds?) the problem.It looks like the address of the boot serial is bad, if I change it to
0x7f013000, PCI debug output works. Maybe something maps over the address at some point.
0x80013000 is in the middle of the PCI space, so you are hitting another device, probably the VGA card. 0x7f013000 is unused but we have to limit the memory to 2032MiB
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 25 lines · Aurelien Jarno
Quoted 24 lines · Blue Swirl
Quoted 22 lines · Aurelien Jarno
Quoted 9 lines · Aurelien Jarno
Quoted 7 lines · Blue Swirl
Quoted 1 line · Aurelien Jarno
On Mon, Jan 12, 2009 at 05:40:24PM +0000, Blue Swirl wrote:
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
Quoted 7 lines
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
The PCI debugging is enabled by default on the native build, and disable
on the cross-build. Disabling the PCI code fixes (or workarounds?) the problem.
Quoted 8 lines
Quoted 3 lines
It looks like the address of the boot serial is bad, if I change it to
0x7f013000, PCI debug output works. Maybe something maps over the address at some point.
0x80013000is in the middle of the PCI space, so you are hitting another
device, probably the VGA card.0x7f013000is unused but we have to limit the memory to 2032MiB
How about some higher address then, like 0xef013000?
Quoted 31 lines · Blue Swirl
Quoted 30 lines · Aurelien Jarno
Quoted 27 lines · Blue Swirl
Quoted 15 lines · Aurelien Jarno
Quoted 14 lines · Aurelien Jarno
Quoted 7 lines · Blue Swirl
Quoted 1 line · Aurelien Jarno
On Mon, Jan 12, 2009 at 05:40:24PM +0000, Blue Swirl wrote:
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
Quoted 7 lines
Quoted 2 lines
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
The PCI debugging is enabled by default on the native build, and disable
on the cross-build. Disabling the PCI code fixes (or workarounds?) the problem.It looks like the address of the boot serial is bad, if I change it to
0x7f013000, PCI debug output works. Maybe something maps over the address at some point.
Quoted 6 lines
Quoted 3 lines
0x80013000is in the middle of the PCI space, so you are hitting another
device, probably the VGA card.0x7f013000is unused but we have to limit the memory to 2032MiBHow about some higher address then, like
0xef013000?
The PCI space uses 80000000-fdffffff. The ISA IO space uses fe000000-fe0200000. OpenBios uses 0xfff00000-0xffffffff. This leaves very few possibilities.
Alternatively we can map the whole MacIO device at a fixed location which also makes the location of the serial ports fixed. The G3 beige uses f3000000-f307ffff for the MacIO device.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 41 lines · Aurelien Jarno
Quoted 31 lines · Blue Swirl
Quoted 30 lines · Aurelien Jarno
Quoted 27 lines · Blue Swirl
Quoted 15 lines · Aurelien Jarno
Quoted 14 lines · Aurelien Jarno
Quoted 7 lines · Blue Swirl
Quoted 1 line · Aurelien Jarno
On Mon, Jan 12, 2009 at 05:40:24PM +0000, Blue Swirl wrote:
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
Quoted 7 lines
Quoted 2 lines
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
The PCI debugging is enabled by default on the native build, and disable
on the cross-build. Disabling the PCI code fixes (or workarounds?) the problem.It looks like the address of the boot serial is bad, if I change it to
0x7f013000, PCI debug output works. Maybe something maps over the address at some point.Quoted 6 lines
Quoted 3 lines
0x80013000is in the middle of the PCI space, so you are hitting another
device, probably the VGA card.0x7f013000is unused but we have to limit the memory to 2032MiBHow about some higher address then, like
0xef013000?
Quoted 7 lines
The PCI space uses 80000000-fdffffff. The ISA IO space uses
fe000000-fe0200000. OpenBios uses 0xfff00000-0xffffffff. This leaves very few possibilities.Alternatively we can map the whole MacIO device at a fixed location which also makes the location of the serial ports fixed. The G3 beige uses f3000000-f307ffff for the MacIO device.
I just wonder what this means for PCI mapping, will MacIO appear twice (like ESCC now)?
Quoted 25 lines · Aurelien Jarno
Quoted 24 lines · Blue Swirl
Quoted 22 lines · Aurelien Jarno
Quoted 9 lines · Aurelien Jarno
Quoted 7 lines · Blue Swirl
Quoted 1 line · Aurelien Jarno
On Mon, Jan 12, 2009 at 05:40:24PM +0000, Blue Swirl wrote:
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
Quoted 7 lines
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
The PCI debugging is enabled by default on the native build, and disable on the cross-build. Disabling the PCI code fixes (or workarounds?) the problem.
Quoted 7 lines
Quoted 3 lines
It looks like the address of the boot serial is bad, if I change it to
0x7f013000, PCI debug output works. Maybe something maps over the address at some point.
0x80013000is in the middle of the PCI space, so you are hitting another device, probably the VGA card.0x7f013000is unused but we have to limit the memory to 2032MiB
Maximum ram size of G3/beige is 768 MB:
http://apple-history.com/?page=gallery&model=g3
Laurent
-------------------- [email protected] --------------------
"Tout ce qui est impossible reste à accomplir" Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard
Quoted 46 lines · Blue Swirl
Quoted 45 lines · Aurelien Jarno
Quoted 31 lines · Blue Swirl
Quoted 30 lines · Aurelien Jarno
Quoted 27 lines · Blue Swirl
Quoted 15 lines · Aurelien Jarno
Quoted 14 lines · Aurelien Jarno
Quoted 7 lines · Blue Swirl
Quoted 1 line · Aurelien Jarno
On Mon, Jan 12, 2009 at 05:40:24PM +0000, Blue Swirl wrote:
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5 (CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
Quoted 7 lines
Quoted 2 lines
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
The PCI debugging is enabled by default on the native build, and disable
on the cross-build. Disabling the PCI code fixes (or workarounds?) the problem.It looks like the address of the boot serial is bad, if I change it to
0x7f013000, PCI debug output works. Maybe something maps over the address at some point.Quoted 6 lines
Quoted 3 lines
0x80013000is in the middle of the PCI space, so you are hitting another
device, probably the VGA card.0x7f013000is unused but we have to limit the memory to 2032MiBHow about some higher address then, like
0xef013000?The PCI space uses 80000000-fdffffff. The ISA IO space uses
fe000000-fe0200000. OpenBios uses 0xfff00000-0xffffffff. This leaves very few possibilities.
Quoted 6 lines
Quoted 3 lines
Alternatively we can map the whole MacIO device at a fixed location which also makes the location of the serial ports fixed. The G3 beige uses f3000000-f307ffff for the MacIO device.
I just wonder what this means for PCI mapping, will MacIO appear twice (like ESCC now)?
What I mean is to make QEMU assign the address f3000000 to the MacIO device like on the real machine. Then OpenBIOS should not modify this memory assignation while looping on the PCI devices. This way, the address of the serial port will be known (0xf3013020) and we can map the address of the serial port only once.
This may be difficult technically though.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 8 lines · Aurelien Jarno
Quoted 7 lines
Quoted 4 lines
[...]
0x80013000is in the middle of the PCI space, so you are hitting another device, probably the VGA card.0x7f013000is unused but we have to limit the memory to 2032MiBHow about some higher address then, like
0xef013000?
Quoted 7 lines
The PCI space uses 80000000-fdffffff. The ISA IO space uses fe000000-fe0200000. OpenBios uses 0xfff00000-0xffffffff. This leaves very few possibilities.
Alternatively we can map the whole MacIO device at a fixed location which also makes the location of the serial ports fixed. The G3 beige uses f3000000-f307ffff for the MacIO device.
According to the mac-io "reg" property of the beige device-tree this value seems hardcoded in the hardware, so perhaps Qemu can do the same thing ?
Laurent
-------------------- [email protected] --------------------
"Tout ce qui est impossible reste à accomplir" Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard
Quoted 44 lines · Laurent Vivier
Quoted 34 lines · Aurelien Jarno
Quoted 28 lines · Blue Swirl
Quoted 21 lines · Aurelien Jarno
Quoted 10 lines · Aurelien Jarno
Quoted 8 lines · Blue Swirl
Quoted 1 line · Aurelien Jarno
On Mon, Jan 12, 2009 at 05:40:24PM +0000, Blue Swirl wrote:
Strange, at least Debian 3.1 R8 (CD and direct -kernel), Debian 4.0 R5
(CD and direct -kernel), Debian 4.0 R6 and Gentoo 2008.0 act like before.Quoted 8 lines
I have the same problem with a CDROM, an hard disk, -kernel.
Quoted 2 lines
What kind of setup do you have? At least OpenBIOS config is not standard, you have enabled PCI debugging.
I have built OpenBIOS by hand, native build. This is the unmodified SVN.
Quoted 5 lines
The PCI debugging is enabled by default on the native build, and disable
on the cross-build. Disabling the PCI code fixes (or workarounds?) the
problem.Quoted 4 lines
It looks like the address of the boot serial is bad, if I change it to
0x7f013000, PCI debug output works. Maybe something maps over the address at some point.Quoted 5 lines
0x80013000is in the middle of the PCI space, so you are hitting another
device, probably the VGA card.0x7f013000is unused but we have to limit
the memory to 2032MiB
Quoted 4 lines
Maximum ram size of G3/beige is 768 MB:
Agreed, but a Linux kernel works perfectly with up to 2037MB(*) on the emulated version of the machine. I don't think it is really useful to limit the size of the memory to 768MB in QEMU.
Aurelien
(*) The PCI bus is mapped at 0x80000000. At the end of the RAM we load the video bios (video.x). BTW, I don't know if Mac OS uses that but Linux doesn't use it.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net