qemu-system-ppc broken ?
Just to let you know it seems the ppc target it broken as of r5643:
$ qemu-system-ppc -M prep -serial stdio -k fr -vnc :8 -hda generated- ppc-gcc4/haiku.image -cdrom generated-ppc-gcc4/haiku-boot-cd-ppc.iso /home/revol/devel/qemu/trunk/tcg/tcg.c:1356: tcg fatal error Abandon
(image isn't bootable yet but at least it didn't crash lots of revs before)
I'm on debian stable on x86.
François.
I used:
$ ./configure --target-list=i386-softmmu,ppc-softmmu WARNING: "gcc" looks like gcc 4.x Looking for gcc 3.x Found "gcc-3.3" Install prefix /usr/local BIOS directory /usr/local/share/qemu binary directory /usr/local/bin Manual directory /usr/local/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /home/revol/devel/qemu/trunk C compiler gcc-3.3 Host C compiler gcc ARCH_CFLAGS -m32 make make install install host CPU i386 host big endian no target list i386-softmmu ppc-softmmu gprof enabled no sparse enabled no profiler no static build no -Werror enabled no SDL support yes SDL static link yes curses support yes mingw32 support no Audio drivers oss Extra audio cards Mixer emulation no VNC TLS support no kqemu support yes brlapi support no Documentation no NPTL support yes vde support no AIO support yes KVM support no
Quoted 7 lines · François Revol
Just to let you know it seems the ppc target it broken as of r5643:
$ qemu-system-ppc -M prep -serial stdio -k fr -vnc :8 -hda generated- ppc-gcc4/haiku.image -cdrom generated-ppc-gcc4/haiku-boot-cd-ppc.iso /home/revol/devel/qemu/trunk/tcg/tcg.c:1356: tcg fatal error Abandon
Quoted 7 lines
(image isn't bootable yet but at least it didn't crash lots of revs before)
I'm on debian stable on x86.
From what I see, it has been broken in revision 5493. It seems that the
i386 TCG backend is not able to alloc/free a temp variable. The problem also occurs when in single step mode, when only *2* temp variables are allocated. The x86-64 TCG backend is not affected.
The quick and dirty patch below is able to workaround the problem.
Any one has an idea what happens?
target-ppc/translate.c +11 -21
@@ -2588,52 +2588,42 @@ GEN_HANDLER(lq, 0x38, 0xFF, 0xFF, 0x00000000, PPC_64BX)#define GEN_ST (width, opc, type) \ GEN_HANDLER(st##width, opc, 0xFF, 0xFF, 0x00000000, type) \ { \ - TCGv EA = tcg_temp_new(TCG_TYPE_TL); \ - gen_addr_imm_index(EA, ctx, 0); \ - gen_qemu_st##width(cpu_gpr[rS(ctx->opcode)], EA, ctx->mem_idx); \ - tcg_temp_free(EA); \ + gen_addr_imm_index(cpu_T[0], ctx, 0); \ + gen_qemu_st##width(cpu_gpr[rS(ctx->opcode)], cpu_T[0], ctx->mem_idx); \ }#define GEN_STU (width, opc, type) \ GEN_HANDLER(st##width##u, opc, 0xFF, 0xFF, 0x00000000, type) \ { \ - TCGv EA; \ if (unlikely(rA(ctx->opcode) == 0)) { \ GEN_EXCP_INVAL(ctx); \ return; \ } \ - EA = tcg_temp_new(TCG_TYPE_TL); \ if (type == PPC_64B) \ - gen_addr_imm_index(EA, ctx, 0x03); \ + gen_addr_imm_index(cpu_T[0], ctx, 0x03); \ else \ - gen_addr_imm_index(EA, ctx, 0); \ - gen_qemu_st##width(cpu_gpr[rS(ctx->opcode)], EA, ctx->mem_idx); \ - tcg_gen_mov_tl(cpu_gpr[rA(ctx->opcode)], EA); \ - tcg_temp_free(EA); \ + gen_addr_imm_index(cpu_T[0], ctx, 0); \ + gen_qemu_st##width(cpu_gpr[rS(ctx->opcode)], cpu_T[0], ctx->mem_idx); \ + tcg_gen_mov_tl(cpu_gpr[rA(ctx->opcode)], cpu_T[0]); \ }#define GEN_STUX (width, opc2, opc3, type) \ GEN_HANDLER(st##width##ux, 0x1F, opc2, opc3, 0x00000001, type) \ { \ - TCGv EA; \ if (unlikely(rA(ctx->opcode) == 0)) { \ GEN_EXCP_INVAL(ctx); \ return; \ } \ - EA = tcg_temp_new(TCG_TYPE_TL); \ - gen_addr_reg_index(EA, ctx); \ - gen_qemu_st##width(cpu_gpr[rS(ctx->opcode)], EA, ctx->mem_idx); \ - tcg_gen_mov_tl(cpu_gpr[rA(ctx->opcode)], EA); \ - tcg_temp_free(EA); \ + gen_addr_reg_index(cpu_T[0], ctx); \ + gen_qemu_st##width(cpu_gpr[rS(ctx->opcode)], cpu_T[0], ctx->mem_idx); \ + tcg_gen_mov_tl(cpu_gpr[rA(ctx->opcode)], cpu_T[0]); \ }#define GEN_STX (width, opc2, opc3, type) \ GEN_HANDLER(st##width##x, 0x1F, opc2, opc3, 0x00000001, type) \ { \ - TCGv EA = tcg_temp_new(TCG_TYPE_TL); \ - gen_addr_reg_index(EA, ctx); \ - gen_qemu_st##width(cpu_gpr[rS(ctx->opcode)], EA, ctx->mem_idx); \ - tcg_temp_free(EA); \ + gen_addr_reg_index(cpu_T[0], ctx); \ + gen_qemu_st##width(cpu_gpr[rS(ctx->opcode)], cpu_T[0], ctx->mem_idx); \ }#define GEN_STS (width, op, type) \
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 11 lines
Quoted 1 line
Just to let you know it seems the ppc target it broken as of r5643:
From what I see, it has been broken in revision 5493. It seems that the
i386 TCG backend is not able to alloc/free a temp variable. The problem
also occurs when in single step mode, when only *2* temp variables are
allocated. The x86-64 TCG backend is not affected.The quick and dirty patch below is able to workaround the problem.
Indeed, I can confirm it "works" again now. :)
Though I still can't seem to get OpenHackware to read the CD:
ERROR: ATAPI TEST_UNIT_READY : status 50 != 0x40
But that's another story.
Quoted 1 line
Any one has an idea what happens?
Can't help you there, sorry.
François.
[Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Quoted 2 lines
Though I still can't seem to get OpenHackware to read the CD:
ERROR: ATAPITEST_UNIT_READY: status 50 !=0x40
Replying to myself, it seems this works around the issue, at least it goes further.
I suppose OpenHackware only compares instead of checking the ready bit...
Btw, it seems the OH website is gone.
http://perso.magic.fr/l_indien just gives a 403...
For the time being archive.org can be used to dig the sources though:
http://web.archive.org/web/%2a/perso.magic.fr/l_indien/OpenHackWare/%2a
François.
ide.c +1 -1
@@ -1088,7 +1088,7 @@static void ide_atapi_cmd_ok (IDEState *s) { s->error =0 ; - s->status =READY_STAT |SEEK_STAT ; + s->status =READY_STAT /*| SEEK_STAT*/ ; s->nsector = (s->nsector & ~7) | ATAPI_INT_REASON_IO |
ATAPI_INT_REASON_CD;
ide_set_irq(s);}
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Quoted 7 lines
Quoted 2 lines
Though I still can't seem to get OpenHackware to read the CD:
ERROR: ATAPITEST_UNIT_READY: status 50 !=0x40Replying to myself, it seems this works around the issue, at least it goes further.
I suppose OpenHackware only compares instead of checking the ready bit...
It seems I'm not the only one:
http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/6937d731e3d4d4a8
I could try to fix the code in OH but I likely don't have the toolchain required to rebuild it.
François.
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Quoted 9 lines
Quoted 8 lines
Quoted 2 lines
Though I still can't seem to get OpenHackware to read the CD:
ERROR: ATAPITEST_UNIT_READY: status 50 !=0x40Replying to myself, it seems this works around the issue, at least it
goes further.
I suppose OpenHackware only compares instead of checking the ready bit...
Quoted 7 lines
It seems I'm not the only one:
http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/6937d731e3d4d4a8Quoted 1 line
I could try to fix the code in OH but I likely don't have the toolchain
required to rebuild it.
Ok...
The attached patch makes OpenHackware happy again.
At least qemu-system-ppc can now start debian iso, and mine as well (though I had to remove the chrp script as OH only checks the CRC on it instead of interpreting...)
So now I can debug the bootloader at least.
Just posting it in case someone really urgently needs ppc back, as it's ugly.
OpenHackware should be fixed instead, but it seems the binary in svn has been updated after the last sources I found (archive.org has a mirror of the dead website):
r3309 | j_mayer | 2007-10-01 08:44:33 +0200 (lun, 01 oct 2007) | 2 lines
Quickly hack PowerPC BIOS able to boot on CDROM again.
...
r1354 | bellard | 2005-04-07 01:06:54 +0200 (jeu, 07 avr 2005) | 2 lines
Open Hack'Ware version 0.4.1
Seems the last update was already about ATAPI... Anyone has the latest source used ?
I could at least fix it to check for bits on errors...
Of course it'd be much better to switch to a real OF instead... but I don't have the time for that, couldn't find usable OpenBIOS images, and it sees CoreBoot v2 and v3 don't support ppc yet.
François.
ide.c +8 -7
@@ -835,7 +835,7 @@int64_t sector_num;int ret, n; - s->status =READY_STAT |SEEK_STAT ; + s->status =READY_STAT |0 /*SEEK_STAT*/ ; s->error =0 ;/* not needed by IDE spec, but needed by Windows */ sector_num =ide_get_sector (s); n = s->nsector;
@@ -940,7 +940,7 @@/* end of transfer ? */ if (s->nsector ==0 ) { - s->status =READY_STAT |SEEK_STAT ; + s->status =READY_STAT |0 /*SEEK_STAT*/ ;ide_set_irq (s); eot: bm->status &= ~BM_STATUS_DMAING ;
@@ -1088,7 +1088,7 @@static void ide_atapi_cmd_ok (IDEState *s) { s->error =0 ; - s->status =READY_STAT |SEEK_STAT ; + s->status =READY_STAT |0 /*SEEK_STAT*/ ; s->nsector = (s->nsector & ~7 ) |ATAPI_INT_REASON_IO |ATAPI_INT_REASON_CD ;ide_set_irq (s); }
@@ -1100,6 +1100,7 @@#endif s->error = sense_key <<4 ; s->status =READY_STAT |ERR_STAT ; + s->status =DRQ_STAT ; s->nsector = (s->nsector & ~7 ) |ATAPI_INT_REASON_IO |ATAPI_INT_REASON_CD ; s->sense_key = sense_key; s->asc = asc;
@@ -1202,7 +1203,7 @@if (s->packet_transfer_size <=0 ) {/* end of transfer */ ide_transfer_stop (s); - s->status =READY_STAT |SEEK_STAT ; + s->status =READY_STAT |0 /*SEEK_STAT*/ ; s->nsector = (s->nsector & ~7 ) |ATAPI_INT_REASON_IO |ATAPI_INT_REASON_CD ;ide_set_irq (s);#ifdef DEBUG_IDE_ATAPI
@@ -1280,10 +1281,10 @@ s->io_buffer_index =0 ;if (s->atapi_dma) { - s->status =READY_STAT |SEEK_STAT |DRQ_STAT ; + s->status =READY_STAT |0 /*SEEK_STAT*/ |DRQ_STAT ;ide_dma_start (s, ide_atapi_cmd_read_dma_cb); }else { - s->status =READY_STAT |SEEK_STAT ; + s->status =READY_STAT |0 /*SEEK_STAT*/ ;ide_atapi_cmd_reply_end (s); } }
@@ -1298,7 +1299,7 @@ s->io_buffer_index = sector_size; s->cd_sector_size = sector_size; - s->status =READY_STAT |SEEK_STAT ; + s->status =READY_STAT |0 /*SEEK_STAT*/ ;ide_atapi_cmd_reply_end (s); }
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Quoted 11 lines
The attached patch makes OpenHackware happy again.
At least qemu-system-ppc can now start debian iso, and mine as well (though I had to remove the chrp script as OH only checks the CRC on it
instead of interpreting...)So now I can debug the bootloader at least.
Just posting it in case someone really urgently needs ppc back, as it's
ugly.
Btw, it works for mac99 and g3bw targets, prep seems still broken.
François.
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
In reply to François RevolAm 09.11.2008 um 23:07 schrieb François Revol:
Quoted 9 lines
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
Though I still can't seem to get OpenHackware to read the CD:
ERROR: ATAPITEST_UNIT_READY: status 50 !=0x40I suppose OpenHackware only compares instead of checking the ready bit...
The attached patch makes OpenHackware happy again.
At least qemu-system-ppc can now start debian iso, and mine as well
[...]
Quoted 2 lines
OpenHackware should be fixed instead, but it seems the binary in svn has been updated after the last sources I found
[...]
Quoted 3 lines
Seems the last update was already about ATAPI... Anyone has the latest source used ?
I could at least fix it to check for bits on errors...
Rene Rebe recently posted some diff against qemu's OHW diff, but it appeared to be whitespace-damaged.
Quoted 3 lines
Of course it'd be much better to switch to a real OF instead... but I don't have the time for that, couldn't find usable OpenBIOS images,
I once tried to get OpenBIOS working but failed, Laurent appeared to get some further - any update on that?
Quoted 1 line
and it see[m]s CoreBoot v2 and v3 don't support ppc yet.
I believe CoreBoot is unrelated to ppc, it replaces the x86 BIOS. It does allow to use OpenBIOS (Open Firmware) as payload but not the other direction - Blue Swirl used some assembler wizardry to bootstrap the sparc OpenBIOS.
Andreas
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Quoted 6 lines
Quoted 2 lines
The attached patch makes OpenHackware happy again.
At least qemu-system-ppc can now start debian iso, and mine as well[...]
Quoted 3 lines
OpenHackware should be fixed instead, but it seems the binary in svn
has been updated after the last sources I found
Quoted 7 lines
[...]
Quoted 3 lines
Seems the last update was already about ATAPI... Anyone has the latest source used ?
I could at least fix it to check for bits on errors...Rene Rebe recently posted some diff against qemu's OHW diff, but it appeared to be whitespace-damaged.
Ohhh, I didn't even notice ohw.diff in pc-bios/ despite looking for one!
I'll try to dig that one on gmane.org.
I just hope it's easier to build than OpenBIOS...
Quoted 6 lines
Quoted 3 lines
Of course it'd be much better to switch to a real OF instead... but I don't have the time for that, couldn't find usable OpenBIOS images,
I once tried to get OpenBIOS working but failed, Laurent appeared to get some further - any update on that?
I tried building it for PPC yesterday, but I only had an powerpc-apple- haiku- gcc around, and it didn't like it... Even after pointing it to find our stdint.h and endian.h (WTF does it need OS headers to build a BIOS ???).
It seems to be doing nasty things with m4 macros on C headers, really ugly.
Quoted 7 lines
Quoted 1 line
and it see[m]s CoreBoot v2 and v3 don't support ppc yet.
I believe CoreBoot is unrelated to ppc, it replaces the x86 BIOS. It does allow to use OpenBIOS (Open Firmware) as payload but not the other direction - Blue Swirl used some assembler wizardry to bootstrap
the sparc OpenBIOS.
CoreBoot actually supports more arch than just x86:
http://www.coreboot.org/Supported_Chipsets_and_Devices
But only v1 seemed to have ppc support.
François.
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Am 10.11.2008 um 21:27 schrieb François Revol:
Quoted 10 lines
Quoted 6 lines
Quoted 3 lines
Of course it'd be much better to switch to a real OF instead... but I don't have the time for that, couldn't find usable OpenBIOS images,
I once tried to get OpenBIOS working but failed, Laurent appeared to get some further - any update on that?
I tried building it for PPC yesterday, but I only had an powerpc-apple- haiku- gcc around, and it didn't like it... Even after pointing it to find our
stdint.handendian.h
Try a Linux (cross-)compiler, I tried natively on Linux/ppc.
Quoted 2 lines
(WTF does it need OS headers to build a
BIOS ???).
It also builds a version you can execute from the shell.
Andreas
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Of course it'd be much better to switch to a real OF instead... but I don't have the time for that, couldn't find usable OpenBIOS images,
I once tried to get OpenBIOS working but failed, Laurent appeared to
get some further - any update on that?
Quoted 7 lines
Quoted 5 lines
I tried building it for PPC yesterday, but I only had an powerpc- apple-
haiku- gcc around, and it didn't like it... Even after pointing it to
find ourstdint.handendian.hTry a Linux (cross-)compiler, I tried natively on Linux/ppc.
I don't have a native linux ppc around... and I was too lazy to build yet another cross gcc
Quoted 4 lines
Quoted 2 lines
(WTF does it need OS headers to build a
BIOS ???).It also builds a version you can execute from the shell.
Hmm right, specifically for a "cross-ppc" named target, really logical :)
François.
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Cross-posted to OpenBIOS list.
Quoted 21 lines · François Revol
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines
Of course it'd be much better to switch to a real OF instead... but I don't have the time for that, couldn't find usable OpenBIOS images,
I once tried to get OpenBIOS working but failed, Laurent appeared to
get some further - any update on that?Quoted 7 lines
Quoted 5 lines
I tried building it for PPC yesterday, but I only had an powerpc- apple-
haiku- gcc around, and it didn't like it... Even after pointing it to
find ourstdint.handendian.hTry a Linux (cross-)compiler, I tried natively on Linux/ppc.
I don't have a native linux ppc around... and I was too lazy to build
yet another cross gcc
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
(WTF does it need OS headers to build a
BIOS ???).It also builds a version you can execute from the shell.
Hmm right, specifically for a "cross-ppc" named target, really logical
:)
I see, Unix version is incorrectly enabled. Should be easy to fix.
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Am 11.11.2008 um 18:31 schrieb Blue Swirl:
Quoted 11 lines
Quoted 9 lines
Quoted 5 lines
Quoted 3 lines
(WTF does it need OS headers to build a
BIOS ???).It also builds a version you can execute from the shell.
Hmm right, specifically for a "cross-ppc" named target, really logical :)
I see, Unix version is incorrectly enabled. Should be easy to fix.
Last time I checked, there was only the cross-ppc config files - before you remove the Unix version from the config, please derive a copy for native ppc.
Thanks,
Andreas
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
In reply to François RevolCrossposted to OpenBIOS and Coreboot lists.
Quoted 30 lines · François Revol
Quoted 6 lines
Quoted 2 lines
The attached patch makes OpenHackware happy again.
At least qemu-system-ppc can now start debian iso, and mine as well[...]
Quoted 3 lines
OpenHackware should be fixed instead, but it seems the binary in svn
has been updated after the last sources I foundQuoted 7 lines
[...]
Quoted 3 lines
Seems the last update was already about ATAPI... Anyone has the latest source used ?
I could at least fix it to check for bits on errors...Rene Rebe recently posted some diff against qemu's OHW diff, but it appeared to be whitespace-damaged.
Ohhh, I didn't even notice ohw.diff in pc-bios/ despite looking for
one!
I'll try to dig that one on gmane.org.I just hope it's easier to build than OpenBIOS...
Quoted 6 lines
Quoted 3 lines
Of course it'd be much better to switch to a real OF instead... but I don't have the time for that, couldn't find usable OpenBIOS images,
I once tried to get OpenBIOS working but failed, Laurent appeared to get some further - any update on that?
Quoted 6 lines
I tried building it for PPC yesterday, but I only had an powerpc-apple-
haiku- gcc around, and it didn't like it... Even after pointing it to find ourstdint.handendian.h(WTF does it need OS headers to build a BIOS ???).
It seems to be doing nasty things with m4 macros on C headers, really ugly.
The M4 macro nastiness seems to be limited to the asm files only and even then the macros are not used. It should be possible to remove the macros with little effort.
Maybe they are a leftover from something earlier?
Quoted 9 lines
Quoted 7 lines
Quoted 1 line
and it see[m]s CoreBoot v2 and v3 don't support ppc yet.
I believe CoreBoot is unrelated to ppc, it replaces the x86 BIOS. It does allow to use OpenBIOS (Open Firmware) as payload but not the other direction - Blue Swirl used some assembler wizardry to bootstrap
the sparc OpenBIOS.
Quoted 4 lines
CoreBoot actually supports more arch than just x86:
http://www.coreboot.org/Supported_Chipsets_and_DevicesBut only v1 seemed to have ppc support.
Perhaps PPC support can be revived?
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
In reply to Andreas FärberQuoted 22 lines · Andreas Färber
Am 09.11.2008 um 23:07 schrieb François Revol:
Quoted 9 lines
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
Though I still can't seem to get OpenHackware to read the CD:
ERROR: ATAPITEST_UNIT_READY: status 50 !=0x40I suppose OpenHackware only compares instead of checking the ready bit...
The attached patch makes OpenHackware happy again.
At least qemu-system-ppc can now start debian iso, and mine as well[...]
Quoted 2 lines
OpenHackware should be fixed instead, but it seems the binary in svn has been updated after the last sources I found
[...]
Quoted 3 lines
Seems the last update was already about ATAPI... Anyone has the latest source used ?
I could at least fix it to check for bits on errors...Rene Rebe recently posted some diff against qemu's OHW diff, but it appeared to be whitespace-damaged.
Quoted 6 lines
Quoted 3 lines
Of course it'd be much better to switch to a real OF instead... but I don't have the time for that, couldn't find usable OpenBIOS images,
I once tried to get OpenBIOS working but failed, Laurent appeared to get some further - any update on that?
No, I stopped working on this because I had no time.
In fact, if I remember correctly, OpenHW initializes PCI devices whereas OpenBIOS doesn't, I've started working on this but it is too much work form me. I had a working OpenBIOS, able to start a kernel (at some time), but stopping during boot.
If someone is interested (perhaps) I can find my patches and send them (privately).
Quoted 6 lines
Quoted 1 line
and it see[m]s CoreBoot v2 and v3 don't support ppc yet.
I believe CoreBoot is unrelated to ppc, it replaces the x86 BIOS. It does allow to use OpenBIOS (Open Firmware) as payload but not the other direction - Blue Swirl used some assembler wizardry to bootstrap the sparc OpenBIOS.
Regards,
Laurent
Signature · 3 lines
------------------ [email protected] ------------------ "Tout ce qui est impossible reste à accomplir" Jules Verne "Things are only impossible until they're not" Jean-Luc Picard
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Quoted 34 lines · Laurent Vivier
Quoted 22 lines · Andreas Färber
Am 09.11.2008 um 23:07 schrieb François Revol:
Quoted 9 lines
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
Though I still can't seem to get OpenHackware to read the CD:
ERROR: ATAPITEST_UNIT_READY: status 50 !=0x40I suppose OpenHackware only compares instead of checking the ready bit...
The attached patch makes OpenHackware happy again.
At least qemu-system-ppc can now start debian iso, and mine as well[...]
Quoted 2 lines
OpenHackware should be fixed instead, but it seems the binary in svn has been updated after the last sources I found
[...]
Quoted 3 lines
Seems the last update was already about ATAPI... Anyone has the latest source used ?
I could at least fix it to check for bits on errors...Rene Rebe recently posted some diff against qemu's OHW diff, but it appeared to be whitespace-damaged.
Quoted 6 lines
Quoted 3 lines
Of course it'd be much better to switch to a real OF instead... but I don't have the time for that, couldn't find usable OpenBIOS images,
I once tried to get OpenBIOS working but failed, Laurent appeared to get some further - any update on that?
No, I stopped working on this because I had no time.
Quoted 7 lines
In fact, if I remember correctly, OpenHW initializes PCI devices whereas OpenBIOS doesn't, I've started working on this but it is too much work form me. I had a working OpenBIOS, able to start a kernel (at some time), but stopping during boot.
If someone is interested (perhaps) I can find my patches and send them (privately).
I would be interested. I finally created a PowerPC cross compiler and I'd like to test OpenBIOS for PPC.
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Quoted 40 lines · Blue Swirl
Quoted 39 lines · Laurent Vivier
Quoted 22 lines · Andreas Färber
Am 09.11.2008 um 23:07 schrieb François Revol:
Quoted 9 lines
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines
Though I still can't seem to get OpenHackware to read the CD:
ERROR: ATAPITEST_UNIT_READY: status 50 !=0x40I suppose OpenHackware only compares instead of checking the ready bit...
The attached patch makes OpenHackware happy again.
At least qemu-system-ppc can now start debian iso, and mine as well[...]
Quoted 2 lines
OpenHackware should be fixed instead, but it seems the binary in svn has been updated after the last sources I found
[...]
Quoted 3 lines
Seems the last update was already about ATAPI... Anyone has the latest source used ?
I could at least fix it to check for bits on errors...Rene Rebe recently posted some diff against qemu's OHW diff, but it appeared to be whitespace-damaged.
Quoted 6 lines
Quoted 3 lines
Of course it'd be much better to switch to a real OF instead... but I don't have the time for that, couldn't find usable OpenBIOS images,
I once tried to get OpenBIOS working but failed, Laurent appeared to get some further - any update on that?
No, I stopped working on this because I had no time.
In fact, if I remember correctly, OpenHW initializes PCI devices whereas OpenBIOS doesn't, I've started working on this but it is too much work form me. I had a working OpenBIOS, able to start a kernel (at some time), but stopping during boot.
Quoted 5 lines
Quoted 2 lines
If someone is interested (perhaps) I can find my patches and send them (privately).
I would be interested. I finally created a PowerPC cross compiler and I'd like to test OpenBIOS for PPC.
Yes, Andreas had the same request.
For the moment I'm trying to re-create a cross-compiler to test and sort my patches.
Regards,
Laurent
-------------------- [email protected] --------------------
"Tout ce qui est impossible reste à accomplir" Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Quoted 67 lines · Laurent Vivier
Quoted 11 lines · Blue Swirl
Quoted 9 lines · Laurent Vivier
Quoted 6 lines · Andreas Färber
Am 09.11.2008 um 23:07 schrieb François Revol:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
Though I still can't seem to get OpenHackware to read the CD:
ERROR: ATAPITEST_UNIT_READY: status 50 !=0x40I suppose OpenHackware only compares instead of checking the
ready
Quoted 45 lines
Quoted 44 lines
Quoted 24 lines
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
bit...
The attached patch makes OpenHackware happy again.
At least qemu-system-ppc can now start debian iso, and mine as well[...]
Quoted 3 lines
OpenHackware should be fixed instead, but it seems the binary in svn has been updated after the last sources I found
[...]
Quoted 4 lines
Seems the last update was already about ATAPI... Anyone has the latest source used ?
I could at least fix it to check for bits on errors...Rene Rebe recently posted some diff against qemu's OHW diff, but it appeared to be whitespace-damaged.
Quoted 8 lines
Quoted 4 lines
Of course it'd be much better to switch to a real OF instead... but I don't have the time for that, couldn't find usable OpenBIOS images,
I once tried to get OpenBIOS working but failed, Laurent appeared to get some further - any update on that?
No, I stopped working on this because I had no time.
In fact, if I remember correctly, OpenHW initializes PCI devices whereas OpenBIOS doesn't, I've started working on this but it is too much work form me. I had a working OpenBIOS, able to start a kernel (at some time), but stopping during boot.
If someone is interested (perhaps) I can find my patches and send them (privately).
Quoted 7 lines
Quoted 3 lines
I would be interested. I finally created a PowerPC cross compiler and I'd like to test OpenBIOS for PPC.
Yes, Andreas had the same request.
For the moment I'm trying to re-create a cross-compiler to test and sort my
patches.
With the attached hack I'm able to boot debian-40r5-powerpc-businesscard.iso, though it hangs after:
Calling quiesce ...
returning from prom_init
The same happens with 0.8.2, so I think Qemu is in a way "correct". Now all I need to do is to find a nice OS that really can be installed. Any suggestions?
Delivered-To: [email protected]
Received: by 10.143.15.12 with SMTP id s12cs201979wfi;
Fri, 7 Nov 2008 00:25:19 -0800 (PST)
Received: by 10.151.142.16 with SMTP id u16mr3090496ybn.244.1226046317726;
Fri, 07 Nov 2008 00:25:17 -0800 (PST)
Return-Path: <[email protected]>
Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
by mx.google.com with ESMTP id 8si6442290gxk.91.2008.11.07.00.25.17;
Fri, 07 Nov 2008 00:25:17 -0800 (PST)
Received-SPF: pass (google.com: domain of [email protected] designates 199.232.76.165 as permitted sender) client-ip=199.232.76.165;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 199.232.76.165 as permitted sender) [email protected]
Received: from localhost ([127.0.0.1]:59872 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.43)
id 1KyMWn-0006wn-Uj
for [email protected]; Fri, 07 Nov 2008 03:17:13 -0500
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
id 1KyMVV-0006vR-7q
for [email protected]; Fri, 07 Nov 2008 03:15:53 -0500
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
id 1KyMVT-0006uw-O8
for [email protected]; Fri, 07 Nov 2008 03:15:52 -0500
Received: from [199.232.76.173] (port=44480 helo=monty-python.gnu.org)
by lists.gnu.org with esmtp (Exim 4.43) id 1KyMVT-0006ur-90
for [email protected]; Fri, 07 Nov 2008 03:15:51 -0500
Received: from mx20.gnu.org ([199.232.41.8]:9236)
by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.60) (envelope-from <[email protected]>) id 1KyMVT-0001cz-7U
for [email protected]; Fri, 07 Nov 2008 03:15:51 -0500
Received: from smtp2-g19.free.fr ([212.27.42.28])
by mx20.gnu.org with esmtp (Exim 4.60)
(envelope-from <[email protected]>) id 1KyMVS-0005Wg-9l
for [email protected]; Fri, 07 Nov 2008 03:15:50 -0500
Received: from smtp2-g19.free.fr (localhost.localdomain [127.0.0.1])
by smtp2-g19.free.fr (Postfix) with ESMTP id 3832612B6C9
for <[email protected]>; Fri, 7 Nov 2008 09:15:47 +0100 (CET)
Received: from laptop (vaf26-2-82-244-111-82.fbx.proxad.net [82.244.111.82])
by smtp2-g19.free.fr (Postfix) with ESMTP id E973A12B707
for <[email protected]>; Fri, 7 Nov 2008 09:15:46 +0100 (CET)In-Reply-To: <1784605671-BeMail@laptop>
To: [email protected]
Subject: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
X-Mailer: BeMail - Mail Daemon Replacement 3.0.0 Final
From: "=?windows-1252?q?Fran=E7ois?= Revol" <[email protected]>
Date: Fri, 07 Nov 2008 09:19:59 +0100 CET
Message-Id: <3383842040-BeMail@laptop>
Mime-Version: 1.0
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
seldom 2.4 (older, 4)
X-BeenThere: [email protected]
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: [email protected]
List-Id: qemu-devel.nongnu.org
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/qemu-devel>,
<mailto:[email protected]?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/qemu-devel>
List-Post: <mailto:[email protected]>
List-Help: <mailto:[email protected]?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/qemu-devel>,
<mailto:[email protected]?subject=subscribe>
Sender: [email protected]
Errors-To: [email protected]
Quoted 2 lines
Though I still can't seem to get OpenHackware to read the CD:
ERROR: ATAPI TEST=5FUNIT=5FREADY : status 50 !=3D0x40
Replying to myself, it seems this works around the issue, at least it goes further.
I suppose OpenHackware only compares instead of checking the ready bit...
Btw, it seems the OH website is gone.
http://perso.magic.fr/l=5Findien just gives a 403...
For the time being archive.org can be used to dig the sources though:
http://web.archive.org/web/%2a/perso.magic.fr/l=5Findien/OpenHackWare/%2a
Fran=E7ois.
hw/ide.c +4 -4
@@ -941,7 +941,7 @@/* end of transfer ? */ if (s->nsector ==0 ) { - s->status =READY_STAT |SEEK_STAT ; + s->status =READY_STAT /*| SEEK_STAT */ ;ide_set_irq (s); eot: bm->status &= ~BM_STATUS_DMAING ;
@@ -1089,7 +1089,7 @@static void ide_atapi_cmd_ok (IDEState *s) { s->error =0 ; - s->status =READY_STAT |SEEK_STAT ; + s->status =READY_STAT /*| SEEK_STAT*/ ; s->nsector = (s->nsector & ~7 ) |ATAPI_INT_REASON_IO |ATAPI_INT_REASON_CD ;ide_set_irq (s); }
@@ -1214,7 +1214,7 @@if (s->packet_transfer_size <=0 ) {/* end of transfer */ ide_transfer_stop (s); - s->status =READY_STAT |SEEK_STAT ; + s->status =READY_STAT /*| SEEK_STAT */ ; s->nsector = (s->nsector & ~7 ) |ATAPI_INT_REASON_IO |ATAPI_INT_REASON_CD ;ide_set_irq (s);#ifdef DEBUG_IDE_ATAPI
@@ -2236,7 +2236,7 @@case WIN_READ_NATIVE_MAX :ide_cmd_lba48_transform (s, lba48);ide_set_sector (s, s->nb_sectors -1 ); - s->status =READY_STAT |SEEK_STAT ; + s->status =READY_STAT /*| SEEK_STAT*/ ;ide_set_irq (s);break ;case WIN_CHECKPOWERMODE1 :
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Quoted 83 lines · Blue Swirl
Quoted 72 lines · Laurent Vivier
Quoted 11 lines · Blue Swirl
Quoted 8 lines · Laurent Vivier
Quoted 4 lines · Andreas Färber
Am 09.11.2008 um 23:07 schrieb François Revol:
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Though I still can't seem to get OpenHackware to read the CD:
ERROR: ATAPITEST_UNIT_READY: status 50 !=0x40I suppose OpenHackware only compares instead of checking the
ready
Quoted 48 lines
Quoted 48 lines
Quoted 28 lines
Quoted 8 lines
Quoted 4 lines
Quoted 3 lines
bit...
The attached patch makes OpenHackware happy again.
At least qemu-system-ppc can now start debian iso, and mine as well[...]
Quoted 4 lines
OpenHackware should be fixed instead, but it seems the binary in svn has been updated after the last sources I found
[...]
Quoted 5 lines
Seems the last update was already about ATAPI... Anyone has the latest source used ?
I could at least fix it to check for bits on errors...Rene Rebe recently posted some diff against qemu's OHW diff, but it appeared to be whitespace-damaged.
Quoted 9 lines
Quoted 5 lines
Of course it'd be much better to switch to a real OF instead... but I don't have the time for that, couldn't find usable OpenBIOS images,
I once tried to get OpenBIOS working but failed, Laurent appeared to get some further - any update on that?
No, I stopped working on this because I had no time.
In fact, if I remember correctly, OpenHW initializes PCI devices whereas OpenBIOS doesn't, I've started working on this but it is too much work form me. I had a working OpenBIOS, able to start a kernel (at some time), but stopping during boot.
If someone is interested (perhaps) I can find my patches and send them (privately).
Quoted 8 lines
Quoted 4 lines
I would be interested. I finally created a PowerPC cross compiler and I'd like to test OpenBIOS for PPC.
Yes, Andreas had the same request.
For the moment I'm trying to re-create a cross-compiler to test and sort my
patches.
Quoted 9 lines
With the attached hack I'm able to boot debian-40r5-powerpc-businesscard.iso, though it hangs after:
Calling quiesce ...
returning fromprom_initThe same happens with 0.8.2, so I think Qemu is in a way "correct". Now all I need to do is to find a nice OS that really can be installed. Any suggestions?
That's probably due:
Quoted 4 lines
Second, Linux 2.6
flatten_device_treestuff inarch/powerpc/kernel/prom_init.ccheck for a return value of 1, as I do not have the IEEE spec on my desk I assumed it means success, and with the change the flattened device tree is no longer empty, helping a great deal continuing to boot ...
As I reported and provided a patch for on 05/06/2008 06:00 PM. [Qemu-devel] [PATCH] fix PPC OpenHackWare for Linux 2.6
Yours,
Rene
Signature · 2 lines
René Rebe - ExactCODE GmbH - Europe, Germany, Berlin http://exactcode.de | http://t2-project.org | http://rene.rebe.name
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
Am 24.11.2008 um 09:34 schrieb René Rebe:
Quoted 13 lines
Quoted 9 lines · Blue Swirl
With the attached hack I'm able to boot debian-40r5-powerpc-businesscard.iso, though it hangs after:
Calling quiesce ...
returning fromprom_initThe same happens with 0.8.2, so I think Qemu is in a way "correct". Now all I need to do is to find a nice OS that really can be installed. Any suggestions?
That's probably due:
Quoted 1 line
Second, Linux 2.6
flatten_device_treestuff inarch/powerpc/kernel/
Quoted 8 lines
prom_init.cQuoted 1 line
check for a return value of 1, as I do not have the IEEE spec on
my desk
Quoted 2 lines
I assumed it means success, and with the change the flattened device tree is no longer empty, helping a great deal continuing to boot ...
As I reported and provided a patch for on 05/06/2008 06:00 PM. [Qemu-devel] [PATCH] fix PPC OpenHackWare for Linux 2.6
Your patch unfortunately seemed whitespace-damaged, it did not apply for me. If it contains further fixes, could you please resubmit it?
Regards,
Andreas
Re: [Qemu-devel] atapi on ppc issue (was Re: qemu-system-ppc broken ?)
In reply to Blue SwirlQuoted 8 lines · Blue Swirl
With the attached hack I'm able to boot debian-40r5-powerpc-businesscard.iso, though it hangs after:
Calling quiesce ...
returning fromprom_initThe same happens with 0.8.2, so I think Qemu is in a way "correct". Now all I need to do is to find a nice OS that really can be installed. Any suggestions?
I tried debian-31r8-powerpc-binary-1.iso. Even though it can't complete installation, it can go farther. It's available here.
http://riksun.riken.go.jp/pub/pub/Linux/debian/debian-cdimage/archive/3.1_r8/powerpc/iso-cd/
Don't forget to choose 2.4 kernel installation menu on the boot prompt, because 2.6 kernel seems to fail to boot. Rene's patch might solve it. The menu 'expert-2.4' worked for me.
It took half an hour to complete installation, but rebooting from HDD fails. Yaboot dumps something like configuration file and says 'Unable to load boot file'. Does anyone have suggestions to solve this problem?
I tried debian-31r8-powerpc-businesscard.iso, also. It requires ftp site to download packages for network installation. But there exists no site for debian-3x and installation fails.
I hope this report help works on ppc.
Regards,
Shin-ichiro KAWASAKI
Quoted 2 lines · Aurelien Jarno
Any one has an idea what happens?
It looks like the i386 runs out of registers for allocation due to too many global registers allocated by the ppc target.
Here is a quick and dirty fix that seems to solve the problem. This should be considered as temporary.
Laurent
cpu.h +5 -1
@@ -530,8 +530,12 @@* during translated code execution */ #if TARGET_LONG_BITS >HOST_LONG_BITS -target_ulong t0, t1, t2; +target_ulong t0, t1;#endif +/* XXX: this is a temporary workaround for i386. cf translate.c comment */ +#if (TARGET_LONG_BITS >HOST_LONG_BITS ) || defined(HOST_I386 ) +target_ulong t2; +#endif #if !defined(TARGET_PPC64 )/* temporary fixed-point registers * used to emulate 64 bits registers on 32 bits targets
translate.c +9 -0
@@ -97,8 +97,17 @@#else cpu_T[0 ] =tcg_global_reg_new (TCG_TYPE_TL ,TCG_AREG1 ,"T0" ); cpu_T[1 ] =tcg_global_reg_new (TCG_TYPE_TL ,TCG_AREG2 ,"T1" ); +#ifdef HOST_I386 +/* XXX: This is a temporary workaround for i386. +* On i386 qemu_st32 runs out of registers. +* The proper fix is to remove cpu_T. +*/ + cpu_T[2 ] =tcg_global_mem_new (TCG_TYPE_TL , +TCG_AREG0 , offsetof(CPUState , t2),"T2" ); +#else cpu_T[2 ] =tcg_global_reg_new (TCG_TYPE_TL ,TCG_AREG3 ,"T2" );#endif +#endif #if !defined(TARGET_PPC64 ) cpu_T64[0] = tcg_global_mem_new(TCG_TYPE_I64, TCG_AREG0, offsetof(CPUState, t0_64),
Aurelien Jarno
AppliedQuoted 10 lines · Laurent Desnogues
Quoted 2 lines · Aurelien Jarno
Any one has an idea what happens?
It looks like the i386 runs out of registers for allocation due to too many global registers allocated by the ppc target.
Here is a quick and dirty fix that seems to solve the problem. This should be considered as temporary.
Thanks, applied.
Quoted 44 lines
Laurent
Signed-off-by Laurent Desnogues <[email protected]>Index:
target-ppc/cpu.h
===================================================================cpu.h +5
-1@@ -530,8 +530,12 @@* during translated code execution */ #if TARGET_LONG_BITS >HOST_LONG_BITS -target_ulong t0, t1, t2; +target_ulong t0, t1;#endif +/* XXX: this is a temporary workaround for i386. cf translate.c comment */ +#if (TARGET_LONG_BITS >HOST_LONG_BITS ) || defined(HOST_I386 ) +target_ulong t2; +#endif #if !defined(TARGET_PPC64 )/* temporary fixed-point registers * used to emulate 64 bits registers on 32 bits targets Index:
target-ppc/translate.c
===================================================================translate.c +9
-0@@ -97,8 +97,17 @@#else cpu_T[0 ] =tcg_global_reg_new (TCG_TYPE_TL ,TCG_AREG1 ,"T0" ); cpu_T[1 ] =tcg_global_reg_new (TCG_TYPE_TL ,TCG_AREG2 ,"T1" ); +#ifdef HOST_I386 +/* XXX: This is a temporary workaround for i386. +* On i386 qemu_st32 runs out of registers. +* The proper fix is to remove cpu_T. +*/ + cpu_T[2 ] =tcg_global_mem_new (TCG_TYPE_TL , +TCG_AREG0 , offsetof(CPUState , t2),"T2" ); +#else cpu_T[2 ] =tcg_global_reg_new (TCG_TYPE_TL ,TCG_AREG3 ,"T2" );#endif +#endif #if !defined(TARGET_PPC64 ) cpu_T64[0] = tcg_global_mem_new(TCG_TYPE_I64, TCG_AREG0, offsetof(CPUState, t0_64),
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net