[U-Boot] [PATCH 1/2] board/qemu-mips: fix a typo in README

The 'Limitations & comments' section refers to the '-m mips' switch which is not valid. The '-m' switch can be used for setting the virtual RAM size:
$qemu-system-mips --help | grep '^-m ' -m megs set virtual RAM size to megs MB [default=128] $
The correct switch for specifying the machine type is '-M'. Fix the text to refer to that.
Signed-off-by: Gabor Juhos juhosg@openwrt.org Cc: Daniel Schwierzeck daniel.schwierzeck@googlemail.com Cc: Vlad Lungu vlad.lungu@windriver.com --- board/qemu-mips/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/qemu-mips/README b/board/qemu-mips/README index 9fd97e1..b2c2b54 100644 --- a/board/qemu-mips/README +++ b/board/qemu-mips/README @@ -6,7 +6,7 @@ http://www.nongnu.org/qemu/
Limitations & comments ---------------------- -Supports the "-m mips" configuration of qemu: serial,NE2000,IDE. +Supports the "-M mips" configuration of qemu: serial,NE2000,IDE. Support is big endian only for now (or at least this is what I tested). Derived from au1x00 with a lot of things cut out.

Using the example command from the README file does not work as expected. qemu shows a text similar to the one below and it hangs.
$ qemu-system-mips -L . -nographic Could not open option rom 'pxe-pcnet.rom': No such file or directory qemu-system-mips: pci_add_option_rom: failed to find romfile "vgabios-cirrus.bin" qemu: terminating on signal 15 from pid 19726
This happens because qemu emulates a Malta board by default if the machine type is not defined explicitely on the command line.
For a working test, the '-M mips' switch is required:
$ qemu-system-mips -M mips -L . -nographic Could not open option rom 'vgabios.bin': No such file or directory
U-Boot 2013.01-rc2-00132-g1e8e648-dirty (Jan 08 2013 - 09:06:42)
Board: Qemu -M mips CPU: 24Kf proc_id=0x19300 DRAM: 128 MiB ## Unknown flash on Bank 1 - Size = 0x00000000 = 0 MB Flash: 0 Bytes *** Warning - bad CRC, using default environment
In: serial Out: serial Err: serial Net: NE2000 Hit any key to stop autoboot: 0 qemu-mips #
Signed-off-by: Gabor Juhos juhosg@openwrt.org Cc: Daniel Schwierzeck daniel.schwierzeck@googlemail.com Cc: Vlad Lungu vlad.lungu@windriver.com --- board/qemu-mips/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/qemu-mips/README b/board/qemu-mips/README index b2c2b54..ec58ce4 100644 --- a/board/qemu-mips/README +++ b/board/qemu-mips/README @@ -23,7 +23,7 @@ I) Example usage:
# ln -s u-boot.bin mips_bios.bin start it: -qemu-system-mips -L . /dev/null -nographic +qemu-system-mips -M mips -L . /dev/null -nographic
or

2013/1/8 Gabor Juhos juhosg@openwrt.org:
Using the example command from the README file does not work as expected. qemu shows a text similar to the one below and it hangs.
$ qemu-system-mips -L . -nographic Could not open option rom 'pxe-pcnet.rom': No such file or directory qemu-system-mips: pci_add_option_rom: failed to find romfile "vgabios-cirrus.bin" qemu: terminating on signal 15 from pid 19726
This happens because qemu emulates a Malta board by default if the machine type is not defined explicitely on the command line.
For a working test, the '-M mips' switch is required:
$ qemu-system-mips -M mips -L . -nographic Could not open option rom 'vgabios.bin': No such file or directory U-Boot 2013.01-rc2-00132-g1e8e648-dirty (Jan 08 2013 - 09:06:42) Board: Qemu -M mips CPU: 24Kf proc_id=0x19300 DRAM: 128 MiB ## Unknown flash on Bank 1 - Size = 0x00000000 = 0 MB Flash: 0 Bytes *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: NE2000 Hit any key to stop autoboot: 0 qemu-mips #
Signed-off-by: Gabor Juhos juhosg@openwrt.org Cc: Daniel Schwierzeck daniel.schwierzeck@googlemail.com Cc: Vlad Lungu vlad.lungu@windriver.com
board/qemu-mips/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
applied to u-boot-mips/next, thanks

2013/1/8 Gabor Juhos juhosg@openwrt.org:
The 'Limitations & comments' section refers to the '-m mips' switch which is not valid. The '-m' switch can be used for setting the virtual RAM size:
$qemu-system-mips --help | grep '^-m ' -m megs set virtual RAM size to megs MB [default=128] $
The correct switch for specifying the machine type is '-M'. Fix the text to refer to that.
Signed-off-by: Gabor Juhos juhosg@openwrt.org Cc: Daniel Schwierzeck daniel.schwierzeck@googlemail.com Cc: Vlad Lungu vlad.lungu@windriver.com
board/qemu-mips/README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
applied to u-boot-mips/next, thanks
participants (2)
-
Daniel Schwierzeck
-
Gabor Juhos