Unable to run grub-mkrescue powerpc ISO in QEMU
Using "qemu-system-ppc -cdrom /tmp/grub2-ppc.iso -boot d -nographic" (-nographic just to capture output) I get
Quoted 7 lines
Quoted 7 lines
=============================================================
OpenBIOS 1.1 [Jul 30 2013 21:44] Configuration device id QEMU version 1 machine id 2
CPUs: 1
Memory: 128M
UUID: 00000000-0000-0000-0000-000000000000 CPU type PowerPC,750
Welcome to OpenBIOS v1.1 built on Jul 30 2013 21:44 Trying cd:,\\:tbxi...
call-method color!: exception -21 call-method color!: exception -21 call-method color!: exception -21 call-method color!: exception -21 call-method color!: exception -21 call-method color!: exception -21 call-method color!: exception -21 call-method color!: exception -21
Welcome to GRUB!
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
Using "qemu-system-ppc64 -M pseries -no-reboot
-cdrom /tmp/grub2-ppc.iso -boot d -serial file:/dev/stdout -serial null" it goes as far as booting from CD, displays Welcome to GRUB and crashes:
Quoted 7 lines
Quoted 7 lines
=============================================================
OpenBIOS 1.1 [Jul 30 2013 21:44] Configuration device id QEMU version 1 machine id 2
CPUs: 1
Memory: 128M
UUID: 00000000-0000-0000-0000-000000000000 CPU type PowerPC,750
bor@opensuse:~/src/linux> qemu-system-ppc64 -M pseries -no-reboot -cdrom /tmp/grub2-ppc.iso -boot d -serial file:/dev/stdout -serial null
Warning: default mac address being used, creating potential for address conflict
Warning: Disabling some instructions which are not emulated by TCG (0x0, 0x6)
SLOF ********************************************************************** QEMU Starting
Build Date = Apr 30 2013 14:04:00
FW Version = git-8cfdfc43f4c4c8c8
Press "s" to enter Open Firmware.
Populating /vdevice methods
Populating /vdevice/vty@71000000
Populating /vdevice/vty@71000001
Populating /vdevice/nvram@71000002
NVRAM: size=65536, fetch=200E, store=200F
Populating /vdevice/l-lan@71000003
Populating /vdevice/v-scsi@71000004
VSCSI: Initializing
VSCSI: Looking for devices
8200000000000000 CD-ROM : "QEMU QEMU CD-ROM 1.6."
Populating /pci@800000020000000
Adapters on 0800000020000000
00 0000 (D) : 1234 1111 qemu vga
00 0800 (D) : 106b 003f serial bus [ usb-ohci ]No NVRAM common partition, re-initializing...
Installing QEMU fb
Scan USB...
USB Keyboard
USB Mouse
No console specified using screen & keyboard
Welcome to Open Firmware
Copyright (c) 2004, 2011 IBM Corporation All rights reserved. This program and the accompanying materials are made available under the terms of the BSD License available at
http://www.opensource.org/licenses/bsd-license.php
Trying to load: from: cdrom ... Successfully loaded
( 700 ) Program Exception [ 0 ]
R0 .. R7 R8 .. R15 R16 .. R23 R24 .. R31 00000000000000b0 0000000000000000 0000000000000000 0000000000000000 0000000005d32d50 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000001 0000000000000000 0000000000000000 00000000001f4d30 0000000005d32f10 0000000000000000 00000000ffffffff 00000000001f4da0 0000000040022028 00000000001f4da0 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00000000001f4d30 000000000020f8f0 0000000000000000 0000000000000001 000000000020f8f0
CR / XER LR / CTR SRR0 / SRR1 DAR / DSISR
80022028 000000000016a5c8 0000000000169cd0 0000000000000000
0000000020000000 0000000000204230 0000000000082000 00000000
2 >
bor@opensuse:~/src/linux> qemu-system-ppc --version
QEMU emulator version 1.6.2, Copyright (c) 2003-2008 Fabrice Bellard bor@opensuse:~/src/linux>
Quoted 3 lines · Andrey Borzenkov
Using "qemu-system-ppc -cdrom
/tmp/grub2-ppc.iso-boot d -nographic" (-nographic just to capture output) I get
CNR with either upstream or phcoder/no-libgcc. Do you put anything in grub.cfg?
Quoted 119 lines
Quoted 7 lines
Quoted 7 lines
=============================================================
OpenBIOS 1.1 [Jul 30 2013 21:44] Configuration device id QEMU version 1 machine id 2
CPUs: 1
Memory: 128M
UUID: 00000000-0000-0000-0000-000000000000 CPU type PowerPC,750Welcome to OpenBIOS v1.1 built on Jul 30 2013 21:44 Trying cd:,\\:tbxi...
call-method color!: exception -21 call-method color!: exception -21 call-method color!: exception -21 call-method color!: exception -21 call-method color!: exception -21 call-method color!: exception -21 call-method color!: exception -21 call-method color!: exception -21
Welcome to GRUB!call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21
call-method block-size: exception -21Using "qemu-system-ppc64 -M pseries -no-reboot
-cdrom/tmp/grub2-ppc.iso-boot d -serial file:/dev/stdout -serial null" it goes as far as booting from CD, displays Welcome to GRUB and crashes:Quoted 7 lines
Quoted 7 lines
=============================================================
OpenBIOS 1.1 [Jul 30 2013 21:44] Configuration device id QEMU version 1 machine id 2
CPUs: 1
Memory: 128M
UUID: 00000000-0000-0000-0000-000000000000 CPU type PowerPC,750bor@opensuse:~/src/linux> qemu-system-ppc64 -M pseries -no-reboot -cdrom
/tmp/grub2-ppc.iso-boot d -serial file:/dev/stdout -serial null
Warning: default mac address being used, creating potential for address conflict
Warning: Disabling some instructions which are not emulated by TCG (0x0,0x6)SLOF ********************************************************************** QEMU Starting
Build Date = Apr 30 2013 14:04:00
FW Version = git-8cfdfc43f4c4c8c8
Press "s" to enter Open Firmware.Populating /vdevice methods
Populating /vdevice/vty@71000000
Populating /vdevice/vty@71000001
Populating /vdevice/nvram@71000002NVRAM: size=65536, fetch=200E, store=200F
Populating /vdevice/l-lan@71000003
Populating /vdevice/v-scsi@71000004
VSCSI: Initializing
VSCSI: Looking for devices
8200000000000000 CD-ROM : "QEMU QEMU CD-ROM 1.6."
Populating /pci@800000020000000
Adapters on 080000002000000000 0000 (D) : 1234 1111 qemu vga 00 0800 (D) : 106b 003f serial bus [ usb-ohci ]No NVRAM common partition, re-initializing...
Installing QEMU fb
Scan USB...
USB Keyboard
USB Mouse
No console specified using screen & keyboardWelcome to Open Firmware
Copyright (c) 2004, 2011 IBM Corporation All rights reserved. This program and the accompanying materials are made available under the terms of the BSD License available at
http://www.opensource.org/licenses/bsd-license.phpTrying to load: from: cdrom ... Successfully loaded
( 700 ) Program Exception [ 0 ]
R0 .. R7 R8 .. R15 R16 .. R23 R24 .. R31 00000000000000b0 0000000000000000 0000000000000000 0000000000000000 0000000005d32d50 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000001 0000000000000000 0000000000000000 00000000001f4d30 0000000005d32f10 0000000000000000 00000000ffffffff 00000000001f4da0 0000000040022028 00000000001f4da0 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00000000001f4d30 000000000020f8f0 0000000000000000 0000000000000001 000000000020f8f0CR / XER LR / CTR SRR0 / SRR1 DAR / DSISR
80022028000000000016a5c80000000000169cd00000000000000000
0000000020000000 0000000000204230 0000000000082000 000000002 >
bor@opensuse:~/src/linux> qemu-system-ppc --version
QEMU emulator version 1.6.2, Copyright (c) 2003-2008 Fabrice Bellard bor@opensuse:~/src/linux>_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel
В Sun, 06 Apr 2014 11:59:52 +0200
Vladimir 'φ-coder/phcoder' Serbinenko <[email protected]> пишет:
Quoted 6 lines · Andrey Borzenkov
Quoted 3 lines
Using "qemu-system-ppc -cdrom
/tmp/grub2-ppc.iso-boot d -nographic" (-nographic just to capture output) I getCNR with either upstream or phcoder/no-libgcc. Do you put anything in grub.cfg?
grub.cfg is empty. Not sure what exactly changed but using QEMU 2.0 + current no-libgcc tip + whatever was changed in build system I now get grub prompt but it fails to access devices. Looks like something is missing in OBP? Could you show your command line you use to start grub?
bor@opensuse:~> qemu-system-ppc -cdrom /tmp/grub2-ppc.iso -boot d -hda /datastore/kvm/btrfs/hda.img -nographic
Warning: default mac address being used, creating potential for address conflict
Quoted 7 lines
Quoted 7 lines
=============================================================
OpenBIOS 1.1 [Mar 10 2014 08:42] Configuration device id QEMU version 1 machine id 2
CPUs: 1
Memory: 128M
UUID: 00000000-0000-0000-0000-000000000000 CPU type PowerPC,750
Welcome to OpenBIOS v1.1 built on Mar 10 2014 08:42 Trying cd:,\\:tbxi...
call-method color!: exception -21
Quoted 1 line
Quoted 1 line
call-method color! failed with error ffffffdf
call-method color!: exception -21
Quoted 1 line
Quoted 1 line
call-method color! failed with error ffffffdf
call-method color!: exception -21
Quoted 1 line
Quoted 1 line
call-method color! failed with error ffffffdf
call-method color!: exception -21
Quoted 1 line
Quoted 1 line
call-method color! failed with error ffffffdf
call-method color!: exception -21
Quoted 1 line
Quoted 1 line
call-method color! failed with error ffffffdf
call-method color!: exception -21
Quoted 1 line
Quoted 1 line
call-method color! failed with error ffffffdf
call-method color!: exception -21
Quoted 1 line
Quoted 1 line
call-method color! failed with error ffffffdf
call-method color!: exception -21
Quoted 1 line
Quoted 1 line
call-method color! failed with error ffffffdf
Welcome to GRUB!
call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
GNU GRUB version 2.02~beta2
Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.
grub> insmod disk
call-mlshod block-size: exception -21 call-method block-size: exception -21 error ffffffdf
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
(ieee1275/ide0) call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
(ieee1275//pci@80000000/mac-io@3/ata-1@20000/disk@0) call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
(ieee1275/
/pci@80000000/mac-io@3/ata-2@21000/cdrom@0) call-method block-size: exception -21
Quoted 1 line
Quoted 1 line
call-method block-size failed with error ffffffdf
grub>