Anyone got qemu-system-ppc{,64} to boot anything?
[...]
Quoted 2 lines
So has _anyone_ got an example of qemu-system-ppc{,64} booting an OS that they can share with us?
qemu-system-ppc boots fine the lenny debian install CD:
http://gensho.acc.umu.se/debian-cd/5.0.1/powerpc/iso-cd/debian-501-powerpc-netinst.iso
(commit abc0754527e30acf278765f66d2157b6c75dc549)
command line:
./ppc-softmmu/qemu-system-ppc -L ./pc-bios/ -cdrom debian-501-powerpc-netinst.iso
OpenFirmware command:
boot cd:
Boot a debian, it makes you happy ;-)
BTW, I guess you doesn't the good openfirmware... try a make install.
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
Quoted 6 lines · Laurent Vivier
[...]
Quoted 2 lines
So has _anyone_ got an example of qemu-system-ppc{,64} booting an OS that they can share with us?
qemu-system-ppc boots fine the lenny debian install CD:
Quoted 7 lines
http://gensho.acc.umu.se/debian-cd/5.0.1/powerpc/iso-cd/debian-501-powerpc-netinst.iso
(commit
abc0754527e30acf278765f66d2157b6c75dc549)command line:
./ppc-softmmu/qemu-system-ppc -L ./pc-bios/ -cdrom debian-501-powerpc-netinst.iso
Excellent, and using the same technique I also managed to boot my own appliance. The problem, it turned out, was the serial console doesn't work, ie:
-append "console=ttyS0" -serial stdio
produces no output. I'm still looking into this issue.
Rich.
Signature · 4 lines
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
could qemu emulate some board like bamboo (without kvm) or MPC8544ds now? Thanks
Wang Baojun
Quoted 34 lines · Richard W.M. Jones
Quoted 6 lines · Laurent Vivier
[...]
Quoted 2 lines
So has _anyone_ got an example of qemu-system-ppc{,64} booting an OS that they can share with us?
qemu-system-ppc boots fine the lenny debian install CD:
Quoted 7 lines
http://gensho.acc.umu.se/debian-cd/5.0.1/powerpc/iso-cd/debian-501-powerpc-netinst.iso
(commit
abc0754527e30acf278765f66d2157b6c75dc549)command line:
./ppc-softmmu/qemu-system-ppc -L ./pc-bios/ -cdrom debian-501-powerpc-netinst.iso
Excellent, and using the same technique I also managed to boot my own appliance. The problem, it turned out, was the serial console doesn't work, ie:
-append "console=ttyS0" -serial stdio
produces no output. I'm still looking into this issue.
Rich.
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
Quoted 1 line · Baojun Wang
could qemu emulate some board like bamboo (without kvm) or MPC8544ds now? Thanks
Yes, if someone adds emulation for these devices: UIC, PLB, DMA, POB, EBC, IIC, ZMII. Maybe some are not needed in all cases.
Quoted 7 lines · Blue Swirl
Quoted 1 line · Baojun Wang
could qemu emulate some board like bamboo (without kvm) or MPC8544ds now?
Thanks
Yes, if someone adds emulation for these devices: UIC, PLB, DMA, POB, EBC, IIC, ZMII. Maybe some are not needed in all cases.
No, qemu still doesn't emulate Book E cores, such as the PowerPC 440 in a Bamboo board.
UIC is of course emulated, otherwise KVM guests on 440 wouldn't get very far. :) Enough 440 SoC devices are emulated to support Linux boot with a properly stripped device tree.
-Hollis
in hw/ppc440.c:
env = cpu_ppc_init("440EP");
if (!env && kvm_enabled()) {
/* XXX Since qemu doesn't yet emulate 440, we just say it's a 405.
* Since KVM doesn't use qemu's CPU emulation it seems to be working
* OK. */
env = cpu_ppc_init("405");
}
if (!env) {
fprintf(stderr, "Unable to initialize CPU!\n");
exit(1);
}also in hw/ppc.c:
I can find ppc40x_irq_init/e500_irq_init(used mpc8544ds), but there is no ppcbooke_irq_init? It seems hw/ppc405_uc.c is emulation for DCRs, PLB, DMA, GPIO, I2C.., but there is no hw/ppc44x_uc.c.
the qemu source I used is 0.10.5.
Also in ppc/translate_init.c, there lots of CONFIG_USER_ONLY, but I many of them are DEBUG or CACHE related SPR emulation, and since qemu doesn't emulate cache, I think it's OK.
Thanks,
Wang
Quoted 18 lines · Hollis Blanchard
Quoted 7 lines · Blue Swirl
Quoted 2 lines · Baojun Wang
could qemu emulate some board like bamboo (without kvm) or MPC8544ds now? Thanks
Yes, if someone adds emulation for these devices: UIC, PLB, DMA, POB, EBC, IIC, ZMII. Maybe some are not needed in all cases.
No, qemu still doesn't emulate Book E cores, such as the PowerPC 440 in a Bamboo board.
UIC is of course emulated, otherwise KVM guests on 440 wouldn't get very far. :) Enough 440 SoC devices are emulated to support Linux boot with a properly stripped device tree.
-Hollis