In the doc sources, we have a few cross-reference targets with odd names "pcsys_005fxyz". These are the legacy of the semi-automated conversion of the old info docs to rST (the '005f' is because ASCII 0x5f is '_' and the old info link names had underscores in them). Remove the targets which nothing links to, and rename the two targets which are used to something a bit more descriptive. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20230421163642.1151904-1-peter.maydell@linaro.org Reviewed-by: Markus Armbruster <armbru@redhat.com>
		
			
				
	
	
		
			31 lines
		
	
	
		
			938 B
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			938 B
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
.. _direct_005flinux_005fboot:
 | 
						|
 | 
						|
Direct Linux Boot
 | 
						|
-----------------
 | 
						|
 | 
						|
This section explains how to launch a Linux kernel inside QEMU without
 | 
						|
having to make a full bootable image. It is very useful for fast Linux
 | 
						|
kernel testing.
 | 
						|
 | 
						|
The syntax is:
 | 
						|
 | 
						|
.. parsed-literal::
 | 
						|
 | 
						|
   |qemu_system| -kernel bzImage -hda rootdisk.img -append "root=/dev/hda"
 | 
						|
 | 
						|
Use ``-kernel`` to provide the Linux kernel image and ``-append`` to
 | 
						|
give the kernel command line arguments. The ``-initrd`` option can be
 | 
						|
used to provide an INITRD image.
 | 
						|
 | 
						|
If you do not need graphical output, you can disable it and redirect the
 | 
						|
virtual serial port and the QEMU monitor to the console with the
 | 
						|
``-nographic`` option. The typical command line is:
 | 
						|
 | 
						|
.. parsed-literal::
 | 
						|
 | 
						|
   |qemu_system| -kernel bzImage -hda rootdisk.img \
 | 
						|
                    -append "root=/dev/hda console=ttyS0" -nographic
 | 
						|
 | 
						|
Use Ctrl-a c to switch between the serial console and the monitor (see
 | 
						|
:ref:`GUI_keys`).
 |