Skip to contentSkip to conversation

icss-emac-lld: how is /dev/uio_pruss_mem created?

DISCUSSION Daniel Gorsulowski 2 participants 3 messages Oct 17, 2018 – Oct 18, 2018

lore
Share & tools
lore
#0 lore raw

Hello!

I have baked the recipes icss-emac-lld and icss-emac-lld-test. When I now start the resulting binary /usr/bin/icss_emacMainTest_am335x.out, I get a segmentation fault when opening /dev/uio_pruss_mem. This node does not exist. How do I create this node, or for which recipe are there dependencies, so that this node is created automatically?

PS: My .dts has been patched with the recipes-kernel/linux/files/ti33x/am335x-pru-uio.dtsi. Is there anything else to do?

Kind regards,
Daniel Gorsulowski

#1 lore raw

Hi Daniel,

In order to get /dev/uio_pruss_mem, we need to use am335x-icev2-pru-excl-uio.dtb as the default dtb. Details can be found from PSDK documentation:

http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Industrial_Protocols_PRU-ICSS.html#linux-user-space-drivers-and-application
"On the filesystem under /boot directory, link am335x-icev2-pru-excl-uio.dtb as the default dtb to support PRUSS Ethernet ports, i.e., am335x-icev2-prueth.dtb."

Thanks,
Hongmei

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Gorsulowski
Sent: Wednesday, October 17, 2018 8:43 AM
To: [email protected]
Subject: [EXTERNAL] [meta-ti] icss-emac-lld: how is /dev/uio_pruss_mem created?

Hello!

I have baked the recipes icss-emac-lld and icss-emac-lld-test. When I now start the resulting binary /usr/bin/icss_emacMainTest_am335x.out, I get a segmentation fault when opening /dev/uio_pruss_mem. This node does not exist.
How do I create this node, or for which recipe are there dependencies, so that this node is created automatically?

PS: My .dts has been patched with the recipes-kernel/linux/files/ti33x/am335x-pru-uio.dtsi. Is there anything else to do?

Kind regards,
Daniel Gorsulowski

Signature · 4 lines
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw

Hi Hongmei,

thanks! Your clue let me find my mistake. I added the missing

&pruss_soc_bus {
	status = "okay";
};

to my .dts and now it works!

Kind regards,
Daniel

Quoted 32 lines · Hongmei

Hi Daniel,

In order to get /dev/uio_pruss_mem, we need to use am335x-icev2-pru-excl-uio.dtb as the default dtb. Details can be found from PSDK documentation:

http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Industrial_Protocols_PRU-ICSS.html#linux-user-space-drivers-and-application
"On the filesystem under /boot directory, link am335x-icev2-pru-excl-uio.dtb as the default dtb to support PRUSS Ethernet ports, i.e., am335x-icev2-prueth.dtb."

Thanks,
Hongmei

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Daniel Gorsulowski
Sent: Wednesday, October 17, 2018 8:43 AM
To: [email protected]
Subject: [EXTERNAL] [meta-ti] icss-emac-lld: how is /dev/uio_pruss_mem created?

Hello!

I have baked the recipes icss-emac-lld and icss-emac-lld-test. When I now start the resulting binary /usr/bin/icss_emacMainTest_am335x.out, I get a segmentation fault when opening /dev/uio_pruss_mem. This node does not exist.
How do I create this node, or for which recipe are there dependencies, so that this node is created automatically?

PS: My .dts has been patched with the recipes-kernel/linux/files/ti33x/am335x-pru-uio.dtsi. Is there anything else to do?

Kind regards,
Daniel Gorsulowski