]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/ppc/pegasos2: Add /chosen/stdin node with VOF
authorBALATON Zoltan <balaton@eik.bme.hu>
Fri, 24 Oct 2025 23:31:13 +0000 (01:31 +0200)
committerHarsh Prateek Bora <harshpb@linux.ibm.com>
Thu, 30 Oct 2025 08:10:38 +0000 (13:40 +0530)
Some very old Linux kernels fail to start if /chosen/stdin is not
found so add it to the device tree when using VOF.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Link: https://lore.kernel.org/r/642ef77674d08ba466e7a2beb4858ab1e67776ae.1761346145.git.balaton@eik.bme.hu
Message-ID: <642ef77674d08ba466e7a2beb4858ab1e67776ae.1761346145.git.balaton@eik.bme.hu>

hw/ppc/pegasos2.c

index 3c02c53c3aab18cea0e494840972af4b935f4fdc..3a498edd168ba24fcc81aec23e026229c85b85a5 100644 (file)
@@ -561,6 +561,7 @@ static void pegasos_machine_reset(MachineState *machine, ResetType type)
     qemu_fdt_setprop(fdt, "/chosen", "qemu,boot-kernel", d, sizeof(d));
 
     vof_build_dt(fdt, pm->vof);
+    vof_client_open_store(fdt, pm->vof, "/chosen", "stdin", "/failsafe");
     vof_client_open_store(fdt, pm->vof, "/chosen", "stdout", "/failsafe");
 
     /* Set machine->fdt for 'dumpdtb' QMP/HMP command */