353 |
|
|
354 |
@end enumerate |
@end enumerate |
355 |
|
|
356 |
|
@section Invocation |
357 |
|
|
358 |
|
@example |
359 |
|
usage: vl [options] bzImage [kernel parameters...] |
360 |
|
@end example |
361 |
|
|
362 |
|
@file{bzImage} is a Linux kernel image. |
363 |
|
|
364 |
|
General options: |
365 |
|
@table @option |
366 |
|
@item -initrd file |
367 |
|
Use 'file' as initial ram disk. |
368 |
|
|
369 |
|
@item -hda file |
370 |
|
@item -hdb file |
371 |
|
Use 'file' as hard disk 0 or 1 image. The disk images are simply raw |
372 |
|
images of the hard disk. You can create them with the command: |
373 |
|
@example |
374 |
|
dd if=/dev/zero of=myimage bs=1024 count=mysize |
375 |
|
@end example |
376 |
|
where @var{myimage} is the image filename and @var{mysize} is its size |
377 |
|
in kilobytes. |
378 |
|
|
379 |
|
@item -m megs |
380 |
|
Set virtual RAM size to @var{megs} megabytes. |
381 |
|
|
382 |
|
@item -n script |
383 |
|
Set network init script [default=/etc/vl-ifup]. This script is |
384 |
|
launched to configure the host network interface (usually tun0) |
385 |
|
corresponding to the virtual NE2000 card. |
386 |
|
@end table |
387 |
|
|
388 |
|
Debug options: |
389 |
|
@table @option |
390 |
|
@item -s |
391 |
|
Wait gdb connection to port 1234. |
392 |
|
@item -p port |
393 |
|
Change gdb connection port. |
394 |
|
@item -d |
395 |
|
Output log in /tmp/vl.log |
396 |
|
@end table |
397 |
|
|
398 |
|
During emulation, use @key{C-a h} to get terminal commands: |
399 |
|
|
400 |
|
@table @key |
401 |
|
@item C-a h |
402 |
|
Print this help |
403 |
|
@item C-a x |
404 |
|
Exit emulatior |
405 |
|
@item C-a b |
406 |
|
Send break (magic sysrq) |
407 |
|
@item C-a C-a |
408 |
|
Send C-a |
409 |
|
@end table |
410 |
|
|
411 |
@section Kernel Compilation |
@section Kernel Compilation |
412 |
|
|
413 |
You can use any Linux kernel within QEMU provided it is mapped at |
You can use any Linux kernel within QEMU provided it is mapped at |
472 |
@item |
@item |
473 |
CMOS memory |
CMOS memory |
474 |
@item |
@item |
475 |
|
Dumb VGA (to print the @code{Uncompressing Linux} message) |
476 |
|
@item |
477 |
Serial port (port=0x3f8, irq=4) |
Serial port (port=0x3f8, irq=4) |
478 |
@item |
@item |
479 |
NE2000 network adapter (port=0x300, irq=9) |
NE2000 network adapter (port=0x300, irq=9) |
480 |
@item |
@item |
481 |
Dumb VGA (to print the @code{Uncompressing Linux} message) |
IDE disk interface (port=0x1f0, irq=14) |
482 |
@end itemize |
@end itemize |
483 |
|
|
484 |
@section GDB usage |
@section GDB usage |