[meta-xilinx] QEMU and emulating NOR devices

Martin Townsend martin.townsend at xsilon.com
Wed Oct 15 08:04:12 PDT 2014


Hi,

I have QEMU working using the arm-generic-fdt-plnx machine.  I would like to add a NOR device so I added an entry in the device tree as far as I know this would be all I would need.

    ps7_axi_interconnect_0: amba at 0 {
        #address-cells = <1>;
        #size-cells = <1>;
        compatible = "xlnx,ps7-axi-interconnect-1.00.a", "simple-bus";
        ranges ;

        [...snip...]
     
        ps7_nor_0: p7-nor at e2000000 {
            compatible = "cfi-flash";
            bank-width = <0x1>;
            reg = <0xe2000000 0x2000000>;
            #address-cells = <0x1>;
            #size-cells = <0x1>;

            partition at 0 {
                label = "env";
                reg = <0x0 0x20000>;
            };
        };

I'm using the latest xilinx-master branch of the qemu git repository.

I'm starting qemu with the following settings:
"-M arm-generic-fdt-plnx -nographic -smp 1 -machine linux=on -serial mon:stdio" and pointing it at the dtb I create and the linux I've built.  I've checked the kernel config and MTD is there with all the supported CFI's.

But I don't see no flash device recognised during boot.  I've tried the examples in the zynq-linux and I can see the log entries for the flash device.

Do I need to add a NOR PFLASH virtual device to QEMU or should it create one while processing the DTB?


Any help appreciated,

Martin.





More information about the meta-xilinx mailing list