Commit ee0f47514ce64070b942125bf90bb93a48f112eb
1 parent
60659e3b
removed outdated info
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2130 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
18 additions
and
134 deletions
qemu-doc.texi
@@ -1115,9 +1115,8 @@ contained in @file{qemu-ifup} can be executed as root. You must verify | @@ -1115,9 +1115,8 @@ contained in @file{qemu-ifup} can be executed as root. You must verify | ||
1115 | that your host kernel supports the TAP network interfaces: the | 1115 | that your host kernel supports the TAP network interfaces: the |
1116 | device @file{/dev/net/tun} must be present. | 1116 | device @file{/dev/net/tun} must be present. |
1117 | 1117 | ||
1118 | -See @ref{direct_linux_boot} to have an example of network use with a | ||
1119 | -Linux distribution and @ref{sec_invocation} to have examples of | ||
1120 | -command lines using the TAP network interfaces. | 1118 | +See @ref{sec_invocation} to have examples of command lines using the |
1119 | +TAP network interfaces. | ||
1121 | 1120 | ||
1122 | @subsection Using the user mode network stack | 1121 | @subsection Using the user mode network stack |
1123 | 1122 | ||
@@ -1167,146 +1166,31 @@ basic example. | @@ -1167,146 +1166,31 @@ basic example. | ||
1167 | 1166 | ||
1168 | This section explains how to launch a Linux kernel inside QEMU without | 1167 | This section explains how to launch a Linux kernel inside QEMU without |
1169 | having to make a full bootable image. It is very useful for fast Linux | 1168 | having to make a full bootable image. It is very useful for fast Linux |
1170 | -kernel testing. The QEMU network configuration is also explained. | 1169 | +kernel testing. |
1171 | 1170 | ||
1172 | -@enumerate | ||
1173 | -@item | ||
1174 | -Download the archive @file{linux-test-xxx.tar.gz} containing a Linux | ||
1175 | -kernel and a disk image. | ||
1176 | - | ||
1177 | -@item Optional: If you want network support (for example to launch X11 examples), you | ||
1178 | -must copy the script @file{qemu-ifup} in @file{/etc} and configure | ||
1179 | -properly @code{sudo} so that the command @code{ifconfig} contained in | ||
1180 | -@file{qemu-ifup} can be executed as root. You must verify that your host | ||
1181 | -kernel supports the TUN/TAP network interfaces: the device | ||
1182 | -@file{/dev/net/tun} must be present. | ||
1183 | - | ||
1184 | -When network is enabled, there is a virtual network connection between | ||
1185 | -the host kernel and the emulated kernel. The emulated kernel is seen | ||
1186 | -from the host kernel at IP address 172.20.0.2 and the host kernel is | ||
1187 | -seen from the emulated kernel at IP address 172.20.0.1. | ||
1188 | - | ||
1189 | -@item Launch @code{qemu.sh}. You should have the following output: | ||
1190 | - | ||
1191 | -@smallexample | ||
1192 | -> ./qemu.sh | ||
1193 | -Connected to host network interface: tun0 | ||
1194 | -Linux version 2.4.21 (bellard@@voyager.localdomain) (gcc version 3.2.2 20030222 @/(Red Hat @/Linux 3.2.2-5)) #5 Tue Nov 11 18:18:53 CET 2003 | ||
1195 | -BIOS-provided physical RAM map: | ||
1196 | - BIOS-e801: 0000000000000000 - 000000000009f000 (usable) | ||
1197 | - BIOS-e801: 0000000000100000 - 0000000002000000 (usable) | ||
1198 | -32MB LOWMEM available. | ||
1199 | -On node 0 totalpages: 8192 | ||
1200 | -zone(0): 4096 pages. | ||
1201 | -zone(1): 4096 pages. | ||
1202 | -zone(2): 0 pages. | ||
1203 | -Kernel command line: root=/dev/hda sb=0x220,5,1,5 ide2=noprobe ide3=noprobe ide4=noprobe @/ide5=noprobe console=ttyS0 | ||
1204 | -ide_setup: ide2=noprobe | ||
1205 | -ide_setup: ide3=noprobe | ||
1206 | -ide_setup: ide4=noprobe | ||
1207 | -ide_setup: ide5=noprobe | ||
1208 | -Initializing CPU#0 | ||
1209 | -Detected 2399.621 MHz processor. | ||
1210 | -Console: colour EGA 80x25 | ||
1211 | -Calibrating delay loop... 4744.80 BogoMIPS | ||
1212 | -Memory: 28872k/32768k available (1210k kernel code, 3508k reserved, 266k data, 64k init, @/0k highmem) | ||
1213 | -Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) | ||
1214 | -Inode cache hash table entries: 2048 (order: 2, 16384 bytes) | ||
1215 | -Mount cache hash table entries: 512 (order: 0, 4096 bytes) | ||
1216 | -Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) | ||
1217 | -Page-cache hash table entries: 8192 (order: 3, 32768 bytes) | ||
1218 | -CPU: Intel Pentium Pro stepping 03 | ||
1219 | -Checking 'hlt' instruction... OK. | ||
1220 | -POSIX conformance testing by UNIFIX | ||
1221 | -Linux NET4.0 for Linux 2.4 | ||
1222 | -Based upon Swansea University Computer Society NET3.039 | ||
1223 | -Initializing RT netlink socket | ||
1224 | -apm: BIOS not found. | ||
1225 | -Starting kswapd | ||
1226 | -Journalled Block Device driver loaded | ||
1227 | -Detected PS/2 Mouse Port. | ||
1228 | -pty: 256 Unix98 ptys configured | ||
1229 | -Serial driver version 5.05c (2001-07-08) with no serial options enabled | ||
1230 | -ttyS00 at 0x03f8 (irq = 4) is a 16450 | ||
1231 | -ne.c:v1.10 9/23/94 Donald Becker (becker@@scyld.com) | ||
1232 | -Last modified Nov 1, 2000 by Paul Gortmaker | ||
1233 | -NE*000 ethercard probe at 0x300: 52 54 00 12 34 56 | ||
1234 | -eth0: NE2000 found at 0x300, using IRQ 9. | ||
1235 | -RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize | ||
1236 | -Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 | ||
1237 | -ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx | ||
1238 | -hda: QEMU HARDDISK, ATA DISK drive | ||
1239 | -ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 | ||
1240 | -hda: attached ide-disk driver. | ||
1241 | -hda: 20480 sectors (10 MB) w/256KiB Cache, CHS=20/16/63 | ||
1242 | -Partition check: | ||
1243 | - hda: | ||
1244 | -Soundblaster audio driver Copyright (C) by Hannu Savolainen 1993-1996 | ||
1245 | -NET4: Linux TCP/IP 1.0 for NET4.0 | ||
1246 | -IP Protocols: ICMP, UDP, TCP, IGMP | ||
1247 | -IP: routing cache hash table of 512 buckets, 4Kbytes | ||
1248 | -TCP: Hash tables configured (established 2048 bind 4096) | ||
1249 | -NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. | ||
1250 | -EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended | ||
1251 | -VFS: Mounted root (ext2 filesystem). | ||
1252 | -Freeing unused kernel memory: 64k freed | ||
1253 | - | ||
1254 | -Linux version 2.4.21 (bellard@@voyager.localdomain) (gcc version 3.2.2 20030222 @/(Red Hat @/Linux 3.2.2-5)) #5 Tue Nov 11 18:18:53 CET 2003 | ||
1255 | - | ||
1256 | -QEMU Linux test distribution (based on Redhat 9) | ||
1257 | - | ||
1258 | -Type 'exit' to halt the system | ||
1259 | - | ||
1260 | -sh-2.05b# | ||
1261 | -@end smallexample | ||
1262 | - | ||
1263 | -@item | ||
1264 | -Then you can play with the kernel inside the virtual serial console. You | ||
1265 | -can launch @code{ls} for example. Type @key{Ctrl-a h} to have an help | ||
1266 | -about the keys you can type inside the virtual serial console. In | ||
1267 | -particular, use @key{Ctrl-a x} to exit QEMU and use @key{Ctrl-a b} as | ||
1268 | -the Magic SysRq key. | ||
1269 | - | ||
1270 | -@item | ||
1271 | -If the network is enabled, launch the script @file{/etc/linuxrc} in the | ||
1272 | -emulator (don't forget the leading dot): | 1171 | +The syntax is: |
1273 | @example | 1172 | @example |
1274 | -. /etc/linuxrc | 1173 | +qemu -kernel arch/i386/boot/bzImage -hda root-2.4.20.img -append "root=/dev/hda" |
1275 | @end example | 1174 | @end example |
1276 | 1175 | ||
1277 | -Then enable X11 connections on your PC from the emulated Linux: | ||
1278 | -@example | ||
1279 | -xhost +172.20.0.2 | ||
1280 | -@end example | ||
1281 | - | ||
1282 | -You can now launch @file{xterm} or @file{xlogo} and verify that you have | ||
1283 | -a real Virtual Linux system ! | ||
1284 | - | ||
1285 | -@end enumerate | 1176 | +Use @option{-kernel} to provide the Linux kernel image and |
1177 | +@option{-append} to give the kernel command line arguments. The | ||
1178 | +@option{-initrd} option can be used to provide an INITRD image. | ||
1286 | 1179 | ||
1287 | -NOTES: | ||
1288 | -@enumerate | ||
1289 | -@item | ||
1290 | -A 2.5.74 kernel is also included in the archive. Just | ||
1291 | -replace the bzImage in qemu.sh to try it. | ||
1292 | - | ||
1293 | -@item | ||
1294 | -In order to exit cleanly from qemu, you can do a @emph{shutdown} inside | ||
1295 | -qemu. qemu will automatically exit when the Linux shutdown is done. | 1180 | +When using the direct Linux boot, a disk image for the first hard disk |
1181 | +@file{hda} is required because its boot sector is used to launch the | ||
1182 | +Linux kernel. | ||
1296 | 1183 | ||
1297 | -@item | ||
1298 | -You can boot slightly faster by disabling the probe of non present IDE | ||
1299 | -interfaces. To do so, add the following options on the kernel command | ||
1300 | -line: | 1184 | +If you do not need graphical output, you can disable it and redirect |
1185 | +the virtual serial port and the QEMU monitor to the console with the | ||
1186 | +@option{-nographic} option. The typical command line is: | ||
1301 | @example | 1187 | @example |
1302 | -ide1=noprobe ide2=noprobe ide3=noprobe ide4=noprobe ide5=noprobe | 1188 | +qemu -kernel arch/i386/boot/bzImage -hda root-2.4.20.img \ |
1189 | + -append "root=/dev/hda console=ttyS0" -nographic | ||
1303 | @end example | 1190 | @end example |
1304 | 1191 | ||
1305 | -@item | ||
1306 | -The example disk image is a modified version of the one made by Kevin | ||
1307 | -Lawton for the plex86 Project (@url{www.plex86.org}). | ||
1308 | - | ||
1309 | -@end enumerate | 1192 | +Use @key{Ctrl-a c} to switch between the serial console and the |
1193 | +monitor (@pxref{pcsys_keys}). | ||
1310 | 1194 | ||
1311 | @node pcsys_usb | 1195 | @node pcsys_usb |
1312 | @section USB emulation | 1196 | @section USB emulation |