09-03-2019 01:47 AM
Hi,
I followed ug1186 to implement libmetal baremetal firmware and libmetal linux application. Unfortunately, there was a ion dev error and got stuck in share memory demo. How can I fix it?
Here is my libmetal device tree
/{ reserved-memory { #address-cells = <2>; #size-cells = <2>; ranges; rproc_0_reserved: rproc@3ed000000 { no-map; reg = <0x0 0x3ed00000 0x0 0x4000000>; }; }; amba { /* Shared memory */ shm0: shm@0 { compatible = "shm_uio"; reg = <0x0 0x3ef00000 0x0 0x1000000>; }; shm1: shm@1 { compatible = "shm_uio"; reg = <0x0 0x3ff00000 0x0 0x1000000>; }; /* IPI device */ ipi_amp0: ipi@ff340000 { compatible = "ipi_uio"; reg = <0x0 0xff340000 0x0 0x1000>; interrupt-parent = <&gic>; interrupts = <0 29 4>; }; /* IPI device */ ipi_amp1: ipi@ff350000 { compatible = "ipi_uio"; reg = <0x0 0xff350000 0x0 0x1000>; interrupt-parent = <&gic>; interrupts = <0 30 4>; }; zynqmp-rpu { compatible = "xlnx,zynqmp-r5-remoteproc-1.0"; #address-cells = <2>; #size-cells = <2>; ranges; core_conf = "split"; r5_0: r5@0 { #address-cells = <2>; #size-cells = <2>; ranges; pnode-id = <0x7>; tcm_0_a: tcm_0@0 { reg = <0x0 0xFFE00000 0x0 0x10000>; pnode-id = <0xf>; }; tcm_0_b: tcm_0@1 { reg = <0x0 0xFFE20000 0x0 0x10000>; pnode-id = <0x10>; }; }; r5_1: r5@1 { #address-cells = <2>; #size-cells = <2>; ranges; pnode-id = <0x8>; tcm_1_a: tcm_0@0 { reg = <0x0 0xFFE90000 0x0 0x10000>; pnode-id = <0x11>; }; tcm_1_b: tcm_0@1 { reg = <0x0 0xFFEB0000 0x0 0x10000>; pnode-id = <0x12>; }; }; }; }; }; &ttc0 { compatible = "ttc0"; status = "okay"; }; &ttc1 { compatible = "ttc1"; status = "okay"; };
Thanks,
Sitting
09-05-2019 06:08 AM
After I set ion releated configurations in kernel, share memory demo worked well.
Thanks,
Sitting
09-05-2019 06:08 AM
After I set ion releated configurations in kernel, share memory demo worked well.
Thanks,
Sitting