This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/AM6548: Not able to see remoteproc entry in /sys/class/remoteproc

Part Number: AM6548

Tool/software: Code Composer Studio

I am using my custom rootFS. Kernel and Device tree is from SDK 6.02. I have not made any changes in the kernel and Device tree. all The lodable modules are from TI SDK.

I tried loading the remoteproc and other pru_rproc driver . I am able to load them succesfully. but I can only see 1 remoteproc device in /sys/class/remoteproc.

below is the output of lsmod command

/sys/class/remoteproc # lsmod
Module                  Size  Used by    Tainted: G
dwc3                  262144  0
jailhouse             262144  0
cryptodev             262144  0
rpmsg_proto           262144  0
ti_k3_r5_remoteproc   262144  0
pru_rproc             262144  0
pruss                 262144  1 pru_rproc
irq_pruss_intc        262144  1 pru_rproc
rpmsg_kdrv_switch     262144  0
rpmsg_pru             262144  0
virtio_rpmsg_bus      262144  0
remoteproc            262144  3 rpmsg_proto,ti_k3_r5_remoteproc,pru_rproc
nf_log_ipv4           262144  1
nf_log_common         262144  1 nf_log_ipv4
xt_LOG                262144  1
xt_length             262144  2
ipt_REJECT            262144 10
nf_reject_ipv4        262144  1 ipt_REJECT
xt_conntrack          262144  1
xt_addrtype           262144  1
xt_mark               262144  2
iptable_filter        262144  1
xt_nat                262144  1
xt_tcpudp             262144 19
iptable_nat           262144  1
nf_nat_ipv4           262144  1 iptable_nat
nf_nat                262144  2 xt_nat,nf_nat_ipv4
nf_conntrack          262144  4 xt_conntrack,xt_nat,nf_nat_ipv4,nf_nat
nf_defrag_ipv6        262144  1 nf_conntrack
nf_defrag_ipv4        262144  1 nf_conntrack
libcrc32c             262144  2 nf_nat,nf_conntrack
ip_tables             262144  3 iptable_filter,iptable_nat
x_tables              262144 10 xt_LOG,xt_length,ipt_REJECT,xt_conntrack,xt_addrtype,xt_mark,iptable_filter,xt_nat,xt_tcpudp,ip_tables
ipv6                  589824 30 [permanent]
g_ether               262144  0
usb_f_rndis           262144  1 g_ether
u_ether               262144  2 g_ether,usb_f_rndis
libcomposite          262144  2 g_ether,usb_f_rndis
udc_core              262144  4 dwc3,usb_f_rndis,u_ether,libcomposite
ftdi_sio              262144  0
usbserial             262144  1 ftdi_sio
usbcore               327680  2 ftdi_sio,usbserial

Below is the content of /sys/class/remoteproc folder.

/sys/class/remoteproc # ls -la /sys/class/remoteproc/
drwxr-xr-x 2 root root 0 Dec 31 19:45 .
drwxr-xr-x 57 root root 0 Dec 31 19:00 ..
lrwxrwxrwx 1 root root 0 Dec 31 19:48 remoteproc0 -> ../../devices/platform/interconnect@100000/interconnect@100000:interconnect@28380000/interconnect@100000:interconnect@28380000:r5fss@41000000/41000000.r5f/remoteproc/remoteproc0

What can i do changes to get the other remoteproc entries in the /sys/class/remoteproc folder.

Thanks,

Sarfaraz

  • Hi Sarfarz,

    The customer rootfs you have should have all the firmwares that are loaded on to various remoteprocs.

    Just check the /lib/firmware folder in the default sdk rootfs. All the firmware that boot the remotecores
    are present there. If you do not have those firmwares then you will not see the remotecores in the sysfs.

    Recommend you to use the /lib/firmware as is and try.

    Hope you can resolve this issue.

    Best Regards,
    Keerthy

  • Yes I have the /lib/firmware folder from TI SDK. but how to load the firmware as for firmware loading I need /sys interface?

    Can you tell me the process to load firmware without /sys entry.

    The entry for remoteproc0 came after loading the remoteproc driver manually, but other entries did'nt come at the /sys/ location. All the firmwares are present in same folder like TI SDK. No change in BSP except /etc folder content

    TIA.

    Sarfaraz

  • Is there any logic in /etc folder that loads these firmwares at the boot time as I am using my own custom /etc folder and loading the modules manually after booting .

  • Sarfaraz,

    Share your complete boot log starting from SPL/U-boot all the way to Linux prompt.
    I can analyze better.

    - Keerthy

  • I debugged the missing folder structure in the /sys interface. The issue was that module pruss_soc_bus.ko was not loaded. after loading this module I was able to get the folder structure for all the PRU and RTU in /sys/class/remoteproc folder.

    Thanks, for the help.

    Thanks,

    Sarfaraz