Re: [Qemu-devel] hw/nand hw/onenand and read-only

2011-10-19 Thread Markus Armbruster
Peter Maydell writes: > On 19 October 2011 09:03, Markus Armbruster wrote: >> writes: >>> both device models already support running without a drive as well by >>> using a memory buffer instead so it would also be possible to make them >>> use a read-only drive in a way that initial NAND/OneNAN

Re: [Qemu-devel] hw/nand hw/onenand and read-only

2011-10-19 Thread Kevin Wolf
Am 19.10.2011 10:46, schrieb Peter Maydell: > On 19 October 2011 09:03, Markus Armbruster wrote: >> writes: >>> both device models already support running without a drive as well by >>> using a memory buffer instead so it would also be possible to make them >>> use a read-only drive in a way that

Re: [Qemu-devel] hw/nand hw/onenand and read-only

2011-10-19 Thread Peter Maydell
On 19 October 2011 09:03, Markus Armbruster wrote: > writes: >> both device models already support running without a drive as well by >> using a memory buffer instead so it would also be possible to make them >> use a read-only drive in a way that initial NAND/OneNAND contents would be >> read fr

Re: [Qemu-devel] hw/nand hw/onenand and read-only

2011-10-19 Thread Markus Armbruster
writes: > On 18.10.11 16:38 , "ext Markus Armbruster" wrote: > >>$ qemu-system-arm -drive if=none,file=tmp.qcow2,readonly,id=foo >>-device nand,drive=foo -kernel /dev/null >>qemu: hardware error: nand_device_init: Unsupported NAND block size. >>[...] >> >>Note that I didn't bother su

Re: [Qemu-devel] hw/nand hw/onenand and read-only

2011-10-18 Thread Juha.Riihimaki
On 18.10.11 16:38 , "ext Markus Armbruster" wrote: >$ qemu-system-arm -drive if=none,file=tmp.qcow2,readonly,id=foo >-device nand,drive=foo -kernel /dev/null >qemu: hardware error: nand_device_init: Unsupported NAND block size. >[...] > >Note that I didn't bother supplying a drive wit

Re: [Qemu-devel] hw/nand hw/onenand and read-only

2011-10-18 Thread Markus Armbruster
Peter Maydell writes: > On 18 October 2011 14:38, Markus Armbruster wrote: >> Yes, that way works: >> >>    $ qemu-system-arm -drive if=mtd,file=tmp.qcow2,readonly >>    qemu-system-arm: -drive if=mtd,file=tmp.qcow2,readonly: readonly not >> supported by this bus type >> >> But try this way: >>

Re: [Qemu-devel] hw/nand hw/onenand and read-only

2011-10-18 Thread Peter Maydell
On 18 October 2011 14:38, Markus Armbruster wrote: > Yes, that way works: > >    $ qemu-system-arm -drive if=mtd,file=tmp.qcow2,readonly >    qemu-system-arm: -drive if=mtd,file=tmp.qcow2,readonly: readonly not > supported by this bus type > > But try this way: > >    $ qemu-system-arm -drive if=

Re: [Qemu-devel] hw/nand hw/onenand and read-only

2011-10-18 Thread Markus Armbruster
writes: > On 18.10.11 11:23 , "ext Markus Armbruster" wrote: > >>These guys have been converted to qdev relatively recently. >> >>I wonder what happens when they use a drive defined with "-drive >>if=none,readonly". >> >>If that's not a valid configuration, we better reject read-only drives, >>l

Re: [Qemu-devel] hw/nand hw/onenand and read-only

2011-10-18 Thread Juha.Riihimaki
On 18.10.11 11:23 , "ext Markus Armbruster" wrote: >These guys have been converted to qdev relatively recently. > >I wonder what happens when they use a drive defined with "-drive >if=none,readonly". > >If that's not a valid configuration, we better reject read-only drives, >like ide_init_drive()