Features/PC System Flash: Difference between revisions
(Created page with 'This is a proposal for a simple flash emulation on QEMU/KVM. =Command line interface= To enable saving of the flash contents, a -flash a command line parameter would be added. …') |
No edit summary |
||
(16 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
PC System Flash emulation was added for QEMU in pc-1.1. | |||
=Flash Hardware= | |||
Uses CFI flash support in hw/pflash_cfi01.c. | |||
=Command line interface= | =Command line interface= | ||
Usage of -bios and -pflash parameters as of pc-1.1: | |||
== | {| class='wikitable' border=1 | ||
! KVM enabled !! -pflash used !! -bios used !! Result | |||
|- | |||
|rowspan=3 | <Center>No</Center> | |||
| <Center>Yes</Center> || <Center>-</Center> | |||
| -pflash parameter will be loaded as flash image just below 4GB. | |||
'bios.bin' and -bios parameter will be ''ignored''. | |||
|- | |||
| <Center>No</Center> || <Center>No</Center> | |||
| 'bios.bin' will be used to create a read-only pflash drive. | |||
A flash device is available, but it is read-only. | |||
|- | |||
| <Center>No</Center> || <Center>Yes</Center> | |||
| -bios parameter will be used to create a read-only pflash drive. | |||
A flash device is available, but it is read-only. | |||
|- | |||
|rowspan=3 | <Center>Yes</Center> | |||
|| <Center>Yes</Center> || <Center>-</Center> | |||
| An error message condition: | |||
PC system firmware (pflash) not available | |||
|- | |||
< | || <Center>No</Center> || <Center>No</Center> | ||
| 'bios.bin' will be loaded as rom image. | |||
</ | |||
< | |||
</ | |||
No system flash is available. | |||
|- | |||
| <Center>No</Center> || <Center>Yes</Center> | |||
< | | -bios parameter filename will be loaded as rom image. | ||
</ | |||
< | |||
</ | |||
No system flash is available. | |||
|} | |||
== | ==pflash drives== | ||
The flash image can be any drive image format supported by QEMU. | |||
There are two ways to add the pflash drive when launching qemu-system-i386 or qemu-system-x86_64: | |||
# Use the -pflash parameter | |||
# Use the -drive parameter with if=pflash | |||
[[Category:Completed feature pages]] | |||
Latest revision as of 15:39, 11 October 2016
PC System Flash emulation was added for QEMU in pc-1.1.
Flash Hardware
Uses CFI flash support in hw/pflash_cfi01.c.
Command line interface
Usage of -bios and -pflash parameters as of pc-1.1:
KVM enabled | -pflash used | -bios used | Result |
---|---|---|---|
-pflash parameter will be loaded as flash image just below 4GB.
'bios.bin' and -bios parameter will be ignored. | |||
'bios.bin' will be used to create a read-only pflash drive.
A flash device is available, but it is read-only. | |||
-bios parameter will be used to create a read-only pflash drive.
A flash device is available, but it is read-only. | |||
An error message condition:
PC system firmware (pflash) not available | |||
'bios.bin' will be loaded as rom image.
No system flash is available. | |||
-bios parameter filename will be loaded as rom image.
No system flash is available. |
pflash drives
The flash image can be any drive image format supported by QEMU.
There are two ways to add the pflash drive when launching qemu-system-i386 or qemu-system-x86_64:
- Use the -pflash parameter
- Use the -drive parameter with if=pflash