qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Installing Debian PPC HOWTO
@ 2005-10-20 20:46 Vesselin Peev
  2005-10-20 21:15 ` Mike Kronenberg
  0 siblings, 1 reply; 6+ messages in thread
From: Vesselin Peev @ 2005-10-20 20:46 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]

Hello list,

(Special thanks to Martin from http://www.olifantasia.com, without whose valuable resources /stepping stones/, provided at his site, I would have dropped the matter.)

I've written a HOWTO on how to install from scratch Debian Sarge PPC on QEMU, accompanied with a suitable (with Debian patches) 2.4 kernel with DHCP networking and Ext3 journalling enabled, so the OS would be convenient for serious usage. Martin asked me to make a HOWTO, and a recent mailing list post ("Looking for Debian PPC image") as well as a lack of information on the QEMU user forum and the rest of the Net indicates that it should be useful to others.

Find it here: http://www.overselfresearch.com/kb/qemu.html

There is one thing missing, please help complete it -- local X configuration in step 7. I have tried several combinations, e.g. using fbdev in X, enabling Cirrus framebuffer support in the kernel configuration under "Console Drivers", and "vga=ask video=cirrusfb" kernel boot options, but a black screen when booting the emulated PReP machine is all. I know from Jocelyn Mayer's website that he has managed to run it successfully with the framebuffer, which prompted my attempts at that, but there are no other details on his site (I have tried contacting him a week ago, hopefully he reads the list).

Hope this helps and thanks in advance for your consideration. Awaiting feedback,
Vesko

[-- Attachment #2: Type: text/html, Size: 2363 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Installing Debian PPC HOWTO
  2005-10-20 20:46 [Qemu-devel] Installing Debian PPC HOWTO Vesselin Peev
@ 2005-10-20 21:15 ` Mike Kronenberg
  2005-10-21  4:32   ` [Qemu-devel] Installing Mandrake (or rpm based distro) PPC on Qemu HOW-TO (was RE: DEBIAN PPC HOWTO) djame
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mike Kronenberg @ 2005-10-20 21:15 UTC (permalink / raw)
  To: qemu-devel

This is very helpful indeed!
There where a lot of questions lately about ppc emulation. Could you 
post the resulting image to http://free.oszoo.org ? So people have a 
easy solution to test ppc emulation? I think hetz would also be happy to 
have this howto in his qemu forum at: http://qemu.dad-answers.com/

Txs
Mike

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] Installing Mandrake (or rpm based distro) PPC on Qemu HOW-TO (was RE: DEBIAN PPC HOWTO)
  2005-10-20 21:15 ` Mike Kronenberg
@ 2005-10-21  4:32   ` djame
  2005-10-21 11:19   ` [Qemu-devel] Re: Installing Debian PPC HOWTO Stefano Marinelli
  2005-10-25  7:20   ` [Qemu-devel] " Vesselin Peev
  2 siblings, 0 replies; 6+ messages in thread
From: djame @ 2005-10-21  4:32 UTC (permalink / raw)
  To: qemu-devel

I've made a similar how to [In french], posted in fr.comp.os.unix.mac 
last week,
If anyone wants to translate it, no problem.....

***************************************
si vous avez des problemes pour booter linux PPC avec qemu PPC
sachez que
1) contrairement au monde x86, il n'y pas de modules de virtualisation 
et donc je crois, mais je n'en suis pas sur, qu'il execute du code ppc 
sous emulation ppc (donc un peu lent)
2) que sur le site de qemu ils donnent un lien pour installer une 
distrib minimale de linux et qu'a` partir du shema de partition fourni 
(prep) j'ai pu installer sur une image disque ma vieille distrib 
linuxppc2K avec un kernel 2.4 (le kernel prep fourni avec l'image de la 
distrib minimale fournie)

en fait c relativement facile a` faire mais il faut etre me'ticuleux
etape
1) re'cupe'rer la distrib minimale a` partir de qemu.org
2) recupe'rer le kernel
3) re'cupe'rer une distrib ppc
4) cre'er une grosse image disque (qemu-image create disk.img 2G par 
exemple)
5) la mounter via (commande sous linux)
losetup /dev/loop0 ./disk.img
en suite fdisk /dev/loop0
creer une partition primaire format PREP de 8 meg
la rendre bootable
creer ensuite vos partitions linux
genre une seconde hda2
une secondaire hda5 (le swap)
et la root hda6 (plus celles que vous voulez ensuite)
(pour coller au kernel PREP de'ja fourni)
ensuite ecrire la table de partition

-> mission 1 copier le kernel (ici KernelPREP) sur la partition hda1 
virtuelle
faites fdisk -ul /dev/loop0
et la` normalement vous avez c,a qui apparait
Disque /dev/loop0: 2147 Mo, 2147483648 octets
255 te^tes, 63 secteurs/piste, 261 cylindres, total 4194304 secteurs
Unite's = secteurs de 1 * 512 = 512 octets

Pe'riphe'rique Amorce De'but Fin Blocs Id Syste`me
/dev/loop0p1 63 144584 72261 41 PPC PReP Boot
/dev/loop0p2 144585 4192964 2024190 5 Extended
/dev/loop0p5 144648 915704 385528+ 83 Linux
/dev/loop0p6 915768 4192964 1638598+ 83 Linux

je vous conseille de sauvegarder kekpart vous allez avoir besoin des index
maintenant on demonte /dev/loop0 (pas oblige' mais bon)
losetup -d /dev/loop0
ensuite on "monte" la partition de boot PREP
losetup -o $((512*63)) /dev/loop1 ./disk.img
maintenant on copie le kernel
dd if=KernelPREP of=/dev/loop1 bs=512
ok
(faites attention si vous avez une taille de partition de boot < la 
taille du kernel vous allez e'craser le de'but de la pre'cedente et la` 
faudra tout recommencer
on la demonte
losetup -d /dev/loop1
mainteant on formate la racine
losetup -o $((512*915768)) /dev/loop2 ./disk.img
mkfs /dev/loop2
ok
mkdir /mnt/New_Linuxppc
mount /dev/loop2 /mnt/New_Linuxppc
ok
on assume que vous avez une distrib a` base de rpm (ca doit etre pareil 
sur les deb) type mandrake ou yellowdog
mkdir /mnt/my_distrib
losetup /dev/loop3 ./My_distrib.iso
mount -t iso9660 /dev/loop3 /mnt/my_distrib
et la` moi je l'ai joue' super bourrin
j'avais de'ja l'image disque de ma vieille distrib installe'e donc j'ai 
fait un bete tar.gz de la racine que j'ai de'tare' au bon endroit et 
j'ai modifie' 2/3 fichiers de config a` la main (genre le fstab pour 
changer le dev de la racine), et je les ai modifie' de la racine en 
montant la nouvelle partition
ou bien dans la se'rie je suis encore plus bourrin
rpm --ivh --force --root=/mnt/New_Linuxppc /mnt/my_distrib/my_rpms/*

( --root <repertoire>
Utiliser le systeme "enracine" dans <repertoire> pour toutes les 
operations. Notez que cela signifie que la base de donnees sera lue ou 
modifiee dans <repertoire> et que chacun des scripts pre et post seront 
lances apres un chroot() vers <repertoire>. )

voire 100 fois pire avec l'option --badrelocs --relocate 
/=/mnt/New_Linuxppc
bref, y a 1000 moyens de copier le contenu des rpms (y compris avec 
rpmcpio) dans la partition virtuelle /mnt/New_Linuxppc
mais la premiere option me semble etre la meilleur)
ensuite vous de'montez tout
et vous lancez par

qemu-system-ppc -M prep -kernel KernelPREP disk.img -localtime -k fr -m 256


aye'..........

apre's pour le net et tout, y a une tre's bonne faq j'ai pas encore 
essaye' pour ma part

vous trouvez la distrib de de'part sur

http://free.oszoo.org/ftp/images/linux-ppc-20040716.tar.bz2
(20meg compresse's et 500 de'compre'sse's)
et vous pouvez de'ja vous amusez a` la lancer (c vraiment minimal de 
chez minimal)

Dites moi comment ca a marche' (du moins si vous avez essaye')


Cordialement,

Djame'
ps : contactez moi sur djame point seddah

chez


free



point

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] Re: Installing Debian PPC HOWTO
  2005-10-20 21:15 ` Mike Kronenberg
  2005-10-21  4:32   ` [Qemu-devel] Installing Mandrake (or rpm based distro) PPC on Qemu HOW-TO (was RE: DEBIAN PPC HOWTO) djame
@ 2005-10-21 11:19   ` Stefano Marinelli
  2005-10-25  7:20   ` [Qemu-devel] " Vesselin Peev
  2 siblings, 0 replies; 6+ messages in thread
From: Stefano Marinelli @ 2005-10-21 11:19 UTC (permalink / raw)
  To: qemu-devel

On Thu, 20 Oct 2005 23:15:11 +0200, Mike Kronenberg wrote:
> There where a lot of questions lately about ppc emulation. Could you 
> post the resulting image to http://free.oszoo.org ? So people have a 

Please, submit this image. I've had some troubles producing a PPC image
and the little time I have doesn't allow me to try again.

Thank you!
Stefano

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Installing Debian PPC HOWTO
  2005-10-20 21:15 ` Mike Kronenberg
  2005-10-21  4:32   ` [Qemu-devel] Installing Mandrake (or rpm based distro) PPC on Qemu HOW-TO (was RE: DEBIAN PPC HOWTO) djame
  2005-10-21 11:19   ` [Qemu-devel] Re: Installing Debian PPC HOWTO Stefano Marinelli
@ 2005-10-25  7:20   ` Vesselin Peev
  2005-10-25 11:05     ` [Qemu-devel] " Stefano Marinelli
  2 siblings, 1 reply; 6+ messages in thread
From: Vesselin Peev @ 2005-10-25  7:20 UTC (permalink / raw)
  To: qemu-devel

Hello,

"Mike Kronenberg" <mike.kronenberg@kberg.ch> wrote:

> This is very helpful indeed!
> There where a lot of questions lately about ppc emulation. Could you post
> the resulting image to http://free.oszoo.org ? So people have a easy
> solution to test ppc emulation? I think hetz would also be happy to have
> this howto in his qemu forum at: http://qemu.dad-answers.com/

Thanks. I posted the location on Hetz's forum, the feedback is indeed 
positive. I added some more explanations to the document. Took the time to 
make a clean image, done from scratch after you and Stefano Marinelli 
requested it (see below), since my image had a lot of other, unnecessary 
stuff added to it. The new one is approx. 1 GB in size in compressed qcow 
format, approx. 2 GB uncompressed, partition 16GB. The "Desktop machine" 
package set has been installed beside the base system, including GNOME and 
KDE, and all software is completely up-to-date, though from the "stable" 
distribution (most likely that is what most people want to use, I think). 
Local X is there but disabled from running automatically.

"Stefano Marinelli" <marinell@cs.unibo.it> wrote:

>Please, submit this image. I've had some troubles producing a PPC image
>and the little time I have doesn't allow me to try again.

My part for now has been done for now (the oszoo.org server got the full 
file; ready for review). I trust you will find the image fit for use.

Best regards,
Vesselin. 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Qemu-devel] Re: Installing Debian PPC HOWTO
  2005-10-25  7:20   ` [Qemu-devel] " Vesselin Peev
@ 2005-10-25 11:05     ` Stefano Marinelli
  0 siblings, 0 replies; 6+ messages in thread
From: Stefano Marinelli @ 2005-10-25 11:05 UTC (permalink / raw)
  To: qemu-devel

On Tue, 25 Oct 2005 10:20:07 +0300, Vesselin Peev wrote:
> My part for now has been done for now (the oszoo.org server got the full 
> file; ready for review). I trust you will find the image fit for use.

The file is here. In a few hours the oszoo.org page will be updated.
I've received also a CentOS image, will be online soon,too.

Thank you guys! :-)

Stefano

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-10-25 11:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-20 20:46 [Qemu-devel] Installing Debian PPC HOWTO Vesselin Peev
2005-10-20 21:15 ` Mike Kronenberg
2005-10-21  4:32   ` [Qemu-devel] Installing Mandrake (or rpm based distro) PPC on Qemu HOW-TO (was RE: DEBIAN PPC HOWTO) djame
2005-10-21 11:19   ` [Qemu-devel] Re: Installing Debian PPC HOWTO Stefano Marinelli
2005-10-25  7:20   ` [Qemu-devel] " Vesselin Peev
2005-10-25 11:05     ` [Qemu-devel] " Stefano Marinelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).