Skip to contentSkip to conversation

[6067] target-ppc: IBM PowerPC 440EP Bamboo reference board emulation

Qemu-devel Aurelien Jarno 2 participants 3 messages Dec 16, 2008 – Dec 17, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

Revision: 6067

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6067
Author:   aurel32
Date:     2008-12-16 10:44:14 +0000 (Tue, 16 Dec 2008)

Log Message:
-----------
target-ppc: IBM PowerPC 440EP Bamboo reference board emulation

Since most IO devices are integrated into the 440EP chip, "Bamboo support" mostly entails implementing the -kernel, -initrd, and -append options.

These options are implemented by loading the guest as if u-boot had done it, i.e. loading a flat device tree, updating it to hold initrd addresses, ram size, and command line, and passing the FDT address in r3.

Since we use it with KVM, we enable the virtio block driver and include hooks necessary for KVM support.

Modified Paths:
--------------
trunk/Makefile
trunk/Makefile.target
trunk/hw/boards.h
trunk/target-ppc/machine.c

Added Paths:
-----------

    trunk/hw/ppc440_bamboo.c
    trunk/pc-bios/bamboo.dts

Modified: trunk/Makefile
===================================================================

Makefile +1 -1
@@ -222,7 +222,7 @@
 ifdef INSTALL_BLOBS
 BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \
 video.x openbios-sparc32 openbios-sparc64 pxe-ne2k_pci.bin \
-pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin
+pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin bamboo.dtb
 else
 BLOBS=
 endif

Modified: trunk/Makefile.target
===================================================================

Makefile.target +1 -1
@@ -655,7 +655,7 @@
 OBJS+= unin_pci.o ppc_chrp.o
 # PowerPC 4xx boards
 OBJS+= pflash_cfi02.o ppc4xx_devs.o ppc4xx_pci.o ppc405_uc.o ppc405_boards.o
-OBJS+= ppc440.o
+OBJS+= ppc440.o ppc440_bamboo.o
 ifdef FDT_LIBS
 OBJS+= device_tree.o
 LIBS+= $(FDT_LIBS)

Modified: trunk/hw/boards.h
===================================================================

hw/boards.h +1 -0
@@ -38,6 +38,7 @@
 extern QEMUMachine heathrow_machine;
 extern QEMUMachine ref405ep_machine;
 extern QEMUMachine taihu_machine;
+extern QEMUMachine bamboo_machine;
 
 /* mips_r4k.c */
 extern QEMUMachine mips_machine;

Added: trunk/hw/ppc440_bamboo.c
===================================================================

hw/ppc440_bamboo.c +190 -0

190 lines not on this page · raw message

Added: trunk/pc-bios/bamboo.dts
===================================================================

pc-bios/bamboo.dts +234 -0

234 lines not on this page · raw message

Modified: trunk/target-ppc/machine.c
===================================================================

target-ppc/machine.c +1 -0
@@ -8,6 +8,7 @@
     qemu_register_machine(&prep_machine);
     qemu_register_machine(&ref405ep_machine);
     qemu_register_machine(&taihu_machine);
+    qemu_register_machine(&bamboo_machine);
 }
 
 void cpu_save(QEMUFile *f, void *opaque)
#1 lore raw

Makefile line 225

Quoted 10 lines · Aurelien Jarno

Modified: trunk/Makefile
===================================================================

Makefile +1 -1
@@ -222,7 +222,7 @@
 ifdef INSTALL_BLOBS
 BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \ video.x
 openbios-sparc32 openbios-sparc64 pxe-ne2k_pci.bin \
-pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin
+pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin bamboo.dtb

This chunk breaks install as no bamboo.dtb file has been added.

Is this meant to be the .dts file or is really the .dtb file missing ? (s standing for source and b for binary ?)

Signature · 1 line
Edouard Gomez
#2 lore raw
Quoted 13 lines · Edouard Gomez

Makefile line 225

Quoted 10 lines · Aurelien Jarno

Modified: trunk/Makefile
===================================================================

Makefile +1 -1
@@ -222,7 +222,7 @@
 ifdef INSTALL_BLOBS
 BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \ video.x
 openbios-sparc32 openbios-sparc64 pxe-ne2k_pci.bin \
-pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin
+pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin bamboo.dtb

This chunk breaks install as no bamboo.dtb file has been added.

Sorry that's a mistake. That should be fixed in r6070.

Quoted 3 lines

Is this meant to be the .dts file or is really the .dtb file missing ? (s standing for source and b for binary ?)

b for blob :)

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net