How to manually add the vf610_cm4_rproc.conf file in '/etc/modules-load.d/

I had build the open embedded image by editing the local.conf file and adding KERNEL_MODULE_AUTOLOAD += "vf610_cm4_rproc. But how can I manually add vf610_cm4_rproc.conf file in ‘/etc/modules-load.d/’ . The cat command used in that website shows an error “cat: can’t open ‘/etc/modules-load.d/vf610_cm4_rproc.conf’: No such file or diry”. How to solve this problem?

hi sreemadhav

the cat command is to show the output of a file on standard output. For creating files you should use
echo "the text you want to write" > filename , or you can use vi editor.

no, you have manually add the file to the /etc/modules-load.d/ folder

did you reboot, after creating the link with ln -s hello_world.elf freertos-rpmsg.elf

hi @jaski.tx

Okay. But while build the image using OpenEmbedded, vf610_cm4_rproc.conf seems to have created in the image. But here there is no such file. why is it so?

Hi @jaski.tx

After adding as per the command " echo vf610_cm4_rproc > vf610_cm4_rproc.conf " the cat command works and vf610_cm4_rproc file is created in /etc/modules-load.d/vf610_cm4_rproc.conf. Then I had done the following commands:

cd /lib/firmware/
ln -s hello_world.elf freertos-rpmsg.elf

which was completed. Then on typing the command dmesg|grep remoteproc nothing is happening. ie, it doesn’t shows any further results. Can you please explain why is it so?

Hi @jaski.tx

Yes I had rebooted after creating the link. Even after there is no response

It really should load the firmware at this point. What version of the BSP are you using exactly? Can you please provide the complete output of dmesg?

Hi @stefan.tx

root@colibri-vf:~# dmesg

        
[ 0.000000] Booting Linux on physical CPU 0x0 
[ 0.000000] Linux version 4.4.14-v2.6b2+gefe965a (madhav@madhav-HP-15-Notebook-PC) (gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2) ) #1 Wed Jan 24 22:57:29 IST 2018 
[ 0.000000] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c5387d 
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache 
[ 0.000000] Machine model: Toradex Colibri VF61 on Colibri Evaluation Board 
[ 0.000000] cma: Reserved 16 MiB at 0x8ec00000 
[ 0.000000] Memory policy: Data cache writeback 
[ 0.000000] On node 0 totalpages: 65024 
[ 0.000000] free_area_init_node: node 0, pgdat 8087d76c, node_mem_map 8ea00000 
[ 0.000000] Normal zone: 508 pages used for memmap 
[ 0.000000] Normal zone: 0 pages reserved 
[ 0.000000] Normal zone: 65024 pages, LIFO batch:15 
[ 0.000000] CPU: All CPU(s) started in SVC mode. 
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 
[ 0.000000] pcpu-alloc: [0] 0 
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64516 
[ 0.000000] Kernel command line: clk_ignore_unused initcall_blacklist=sram_init ubi.mtd=ubi root=ubi0:rootfs rootfstype=ubifs ubi.fm_autoconvert=1 console=tty1 console=ttyLP0,115200n80 
[ 0.000000] blacklisting initcall sram_init 
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes) 
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) 
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) 
[ 0.000000] Memory: 232420K/260096K available (6071K kernel code, 216K rwdata, 2140K rodata, 232K init, 176K bss, 11292K reserved, 16384K cma-reserved) 
[ 0.000000] Virtual kernel memory layout: 
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) 
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) 
[ 0.000000] vmalloc : 0x90000000 - 0xff800000 (1784 MB) 
[ 0.000000] lowmem : 0x80000000 - 0x8fe00000 ( 254 MB) 
[ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB) 
[ 0.000000] .text : 0x80008000 - 0x8080d034 (8213 kB) 
[ 0.000000] .init : 0x8080e000 - 0x80848000 ( 232 kB) 
[ 0.000000] .data : 0x80848000 - 0x8087e240 ( 217 kB) 
[ 0.000000] .bss : 0x8087e240 - 0x808aa338 ( 177 kB) 
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 
[ 0.000000] NR_IRQS:16 nr_irqs:16 16 
[ 0.000000] L2C-310 erratum 769419 enabled 
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled 
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB 
[ 0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x06060000 
[ 0.000043] sched_clock: 64 bits at 166MHz, resolution 5ns, wraps every 4398046511102ns 
[ 0.000091] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x2674622ffc, max_idle_ns: 440795203810 ns 
[ 0.000962] Console: colour dummy device 80x30 
[ 0.002045] console [tty1] enabled 
[ 0.002106] Calibrating delay loop... 331.77 BogoMIPS (lpj=1658880) 
[ 0.060150] pid_max: default: 32768 minimum: 301 
[ 0.060364] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) 
[ 0.060428] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) 
[ 0.061681] CPU: Testing write buffer coherency: ok 
[ 0.062266] Setting up static identity map for 0x80008200 - 0x80008258 
[ 0.064288] devtmpfs: initialized 
[ 0.075466] VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1 
[ 0.076110] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns 
[ 0.077928] pinctrl core: initialized pinctrl subsystem 
[ 0.080021] NET: Registered protocol family 16 
[ 0.082844] DMA: preallocated 256 KiB pool for atomic coherent allocations 
[ 0.083732] initcall sram_init blacklisted 
[ 0.084248] cpuidle: using governor menu 
[ 0.104565] PM: CKE/RESET pulls available, enable Suspend-to-RAM 
[ 0.104666] vf610_suspend_init: ocram pool unavailable! 
[ 0.104720] vf610_pm_init: No DDR LPM support with suspend -19! 
[ 0.104819] hw-breakpoint: found 2 (+1 reserved) breakpoint and 1 watchpoint registers. 
[ 0.104902] hw-breakpoint: maximum watchpoint size is 4 bytes. 
[ 0.105587] vf610-pinctrl 40048000.iomuxc: initialized IMX pinctrl driver 
[ 0.128295] SCSI subsystem initialized 
[ 0.128881] usbcore: registered new interface driver usbfs 
[ 0.129050] usbcore: registered new interface driver hub 
[ 0.129251] usbcore: registered new device driver usb 
[ 0.130737] i2c i2c-0: IMX I2C adapter registered 
[ 0.130889] i2c i2c-0: using dma0chan0 (tx) and dma0chan1 (rx) for DMA transfers 
[ 0.131194] Linux video capture interface: v2.00 
[ 0.131391] pps_core: LinuxPPS API ver. 1 registered 
[ 0.131445] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti 
[ 0.131578] PTP clock support registered 
[ 0.132319] Advanced Linux Sound Architecture Driver Initialized. 
[ 0.134363] clocksource: Switched to clocksource arm_global_timer 
[ 0.152174] NET: Registered protocol family 2 
[ 0.153574] TCP established hash table entries: 2048 (order: 1, 8192 bytes) 
[ 0.153689] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) 
[ 0.153786] TCP: Hash tables configured (established 2048 bind 2048) 
[ 0.154033] UDP hash table entries: 256 (order: 0, 4096 bytes) 
[ 0.154114] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) 
[ 0.154496] NET: Registered protocol family 1 
[ 0.155055] RPC: Registered named UNIX socket transport module. 
[ 0.155122] RPC: Registered udp transport module. 
[ 0.155170] RPC: Registered tcp transport module. 
[ 0.155218] RPC: Registered tcp NFSv4.1 backchannel transport module. 
[ 0.156931] hw perfevents: enabled with armv7_cortex_a5 PMU driver, 3 counters available 
[ 0.158571] futex hash table entries: 256 (order: -1, 3072 bytes) 
[ 0.174104] NFS: Registering the id_resolver key type 
[ 0.174242] Key type id_resolver registered 
[ 0.174293] Key type id_legacy registered 
[ 0.174441] nfs4filelayout_init: NFSv4 File Layout Driver Registering... 
[ 0.175463] ntfs: driver 2.1.32 [Flags: R/W]. 
[ 0.176378] fuse init (API version 7.23) 
[ 0.180364] io scheduler noop registered 
[ 0.180437] io scheduler deadline registered 
[ 0.180782] io scheduler cfq registered (default) 
[ 0.188987] 40027000.serial: ttyLP0 at MMIO 0x40027000 (irq = 19, base_baud = 5210526) is a FSL_LPUART 
[ 0.726932] console [ttyLP0] enabled 
[ 0.731382] 40028000.serial: ttyLP1 at MMIO 0x40028000 (irq = 20, base_baud = 5210526) is a FSL_LPUART 
[ 0.741912] [drm] Initialized drm 1.1.0 20060810 
[ 0.753432] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). 
[ 0.760159] [drm] No driver support for vblank timestamp query. 
[ 0.803958] Console: switching to colour frame buffer device 80x30 
[ 0.830826] fsl-dcu 40058000.dcu: fb0: frame buffer device 
[ 0.844417] [drm] Initialized fsl-dcu-drm 1.0.0 20150213 on minor 0 
[ 0.871466] loop: module loaded 
[ 0.885768] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xdc 
[ 0.900594] nand: Macronix MX30LF4G28AB 
[ 0.912546] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 112 
[ 0.936702] Bad block table found at page 262080, version 0x01 
[ 0.951136] Bad block table found at page 262016, version 0x01 
[ 0.965514] nand_read_bbt: bad block at 0x0000013c0000 
[ 0.979152] 4 ofpart partitions found on MTD device vf610_nfc 
[ 0.993160] Creating 4 MTD partitions on "vf610_nfc": 
[ 1.006507] 0x000000000000-0x000000020000 : "vf-bcb" 
[ 1.020521] 0x000000020000-0x000000180000 : "u-boot" 
[ 1.034492] 0x000000180000-0x000000200000 : "u-boot-env" 
[ 1.048708] 0x000000200000-0x000020000000 : "ubi" 
[ 1.067998] +V3.3: supplied by 3.3V 
[ 1.080200] pps pps0: new PPS source ptp0 
[ 1.097790] libphy: fec_enet_mii_bus: probed 
[ 1.110785] fec 400d1000.ethernet eth0: registered PHC device 0 
[ 1.124873] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver 
[ 1.139551] usbcore: registered new interface driver usb-storage 
[ 1.153515] usbcore: registered new interface driver usbserial 
[ 1.166897] usbcore: registered new interface driver usbserial_generic 
[ 1.180709] usbserial: USB Serial support registered for generic 
[ 1.193992] usbcore: registered new interface driver ftdi_sio 
[ 1.206919] usbserial: USB Serial support registered for FTDI USB Serial Device 
[ 1.228424] usbcore: registered new interface driver pl2303 
[ 1.241340] usbserial: USB Serial support registered for pl2303 
[ 1.256812] 40034000.usb supply vbus not found, using dummy regulator 
[ 1.271836] mousedev: PS/2 mouse device common for all mice 
[ 1.286634] rtc-ds1307 0-0068: rtc core: registered m41t00 as rtc0 
[ 1.301384] snvs_rtc 400a7000.snvs:snvs-rtc-lp: rtc core: registered 400a7000.snvs:snvs- as rtc1 
[ 1.325293] i2c /dev entries driver 
[ 1.338689] imx2-wdt 4003e000.wdog: timeout 60 sec (nowayout=0) 
[ 1.352552] sdhci: Secure Digital Host Controller Interface driver 
[ 1.366674] sdhci: Copyright(c) Pierre Ossman 
[ 1.379082] sdhci-pltfm: SDHCI platform and OF driver helper 
[ 1.393902] /soc/aips-bus@40080000/esdhc@400b2000: voltage-ranges unspecified 
[ 1.409662] sdhci-esdhc-imx 400b2000.esdhc: Got CD GPIO 
[ 1.423752] sdhci-esdhc-imx 400b2000.esdhc: No vmmc regulator found 
[ 1.438620] sdhci-esdhc-imx 400b2000.esdhc: No vqmmc regulator found 
[ 1.484572] mmc0: SDHCI controller on 400b2000.esdhc [400b2000.esdhc] using ADMA 
[ 1.510505] hidraw: raw HID events driver (C) Jiri Kosina 
[ 1.524921] usbcore: registered new interface driver usbhid 
[ 1.539422] usbhid: USB HID core driver 
[ 1.605594] wm97xx-ts 0-0:wm9712-codec: detected a wm9712 codec 
[ 1.622916] input: wm97xx touchscreen as /devices/platform/sound/0-0:wm9712-codec/input/input0 
[ 1.651991] fsl-sai-ac97-dt-driver sound: wm9712-hifi <-> 40031000.sai mapping ok 
[ 1.681712] Netfilter messages via NETLINK v0.30. 
[ 1.695670] nfnl_acct: registering with nfnetlink. 
[ 1.709477] nf_conntrack version 0.5.0 (3887 buckets, 15548 max) 
[ 1.725512] nf_tables: (c) 2007-2009 Patrick McHardy 
[ 1.742052] ip_tables: (C) 2000-2006 Netfilter Core Team 
[ 1.757466] NET: Registered protocol family 10 
[ 1.772776] ip6_tables: (C) 2000-2006 Netfilter Core Team 
[ 1.787150] sit: IPv6 over IPv4 tunneling driver 
[ 1.801808] NET: Registered protocol family 17 
[ 1.815024] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. 
[ 1.845439] Bridge firewalling registered 
[ 1.858298] 8021q: 802.1Q VLAN Support v1.8 
[ 1.871361] Key type dns_resolver registered 
[ 1.884896] Registering SWP/SWPB emulation handler 
[ 1.899723] registered taskstats version 1 
[ 1.916422] 40034000.usb supply vbus not found, using dummy regulator 
[ 1.936580] ci_hdrc ci_hdrc.0: EHCI Host Controller 
[ 1.950197] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1 
[ 1.984412] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00 
[ 2.000026] hub 1-0:1.0: USB hub found 
[ 2.012259] hub 1-0:1.0: 1 port detected 
[ 2.025688] VCC_USB[1-4]: supplied by 5V 
[ 2.041488] ci_hdrc ci_hdrc.1: EHCI Host Controller 
[ 2.054113] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2 
[ 2.084434] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00 
[ 2.098982] hub 2-0:1.0: USB hub found 
[ 2.110356] hub 2-0:1.0: 1 port detected 
[ 2.123465] ubi0: default fastmap pool size: 200 
[ 2.135513] ubi0: default fastmap WL pool size: 100 
[ 2.147626] ubi0: attaching mtd3 
[ 2.351570] ubi0: attached by fastmap 
[ 2.362258] ubi0: fastmap pool size: 200 
[ 2.373033] ubi0: fastmap WL pool size: 100 
[ 2.397929] ubi0: attached mtd3 (name "ubi", size 510 MiB) 
[ 2.410026] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes 
[ 2.423499] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048 
[ 2.437020] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 
[ 2.450861] ubi0: good PEBs: 4075, bad PEBs: 5, corrupted PEBs: 0 
[ 2.463893] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128 
[ 2.484910] ubi0: max/mean erase counter: 8/5, WL threshold: 4096, image sequence number: 0 
[ 2.507532] ubi0: available PEBs: 0, total reserved PEBs: 4075, PEBs reserved for bad PEB handling: 75 
[ 2.531833] usb 2-1: new high-speed USB device number 2 using ci_hdrc 
[ 2.546313] ubi0: background thread "ubi_bgt0d" started, PID 58 
[ 2.562114] input: gpio-keys as /devices/platform/gpio-keys/input/input1 
[ 2.578538] rtc-ds1307 0-0068: setting system clock to 2000-01-01 01:53:35 UTC (946691615) 
[ 2.616560] clk: Not disabling unused clocks 
[ 2.629441] ALSA device list: 
[ 2.640806] #0: Colibri VF61 AC97 Audio 
[ 2.681379] UBIFS (ubi0:2): recovery needed 
[ 2.706450] hub 2-1:1.0: USB hub found 
[ 2.719241] hub 2-1:1.0: 4 ports detected 
[ 2.867642] UBIFS (ubi0:2): recovery deferred 
[ 2.880824] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs", R/O mode 
[ 2.906710] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes 
[ 2.934774] UBIFS (ubi0:2): FS size: 496984064 bytes (473 MiB, 3914 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs) 
[ 2.964004] UBIFS (ubi0:2): reserved for root: 0 bytes (0 KiB) 
[ 2.979262] UBIFS (ubi0:2): media format: w4/r0 (latest is w4/r0), UUID 89AEB2FF-6A4B-4364-AB20-D30112B67D94, small LPT model 
[ 3.009574] VFS: Mounted root (ubifs filesystem) readonly on device 0:14. 
[ 3.026380] devtmpfs: mounted 
[ 3.039403] Freeing unused kernel memory: 232K (8080e000 - 80848000) 
[ 3.227180] random: systemd urandom read with 53 bits of entropy available 
[ 3.256595] systemd[1]: systemd 226 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -E) 
[ 3.303746] systemd[1]: Detected architecture arm. 
[ 3.345903] systemd[1]: Set hostname to . 
[ 3.926713] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. 
[ 4.002345] systemd[1]: Listening on networkd rtnetlink socket. 
[ 4.035799] systemd[1]: Started Dispatch Password Requests to Console Directory Watch. 
[ 4.084933] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. 
[ 4.124641] systemd[1]: Reached target Swap. 
[ 4.154845] systemd[1]: Listening on udev Kernel Socket. 
[ 4.195621] systemd[1]: Created slice User and Session Slice. 
[ 4.234976] systemd[1]: Created slice System Slice. 
[ 4.264697] systemd[1]: Reached target Slices. 
[ 4.295101] systemd[1]: Created slice system-getty.slice. 
[ 4.334955] systemd[1]: Created slice system-serial\x2dgetty.slice. 
[ 4.374995] systemd[1]: Listening on udev Control Socket. 
[ 4.404896] systemd[1]: Listening on Journal Socket (/dev/log). 
[ 4.444987] systemd[1]: Started Forward Password Requests to Wall Directory Watch. 
[ 4.494616] systemd[1]: Reached target Paths. 
[ 4.524883] systemd[1]: Listening on Journal Socket. 
[ 4.561771] systemd[1]: Starting Load Kernel Modules... 
[ 4.601331] systemd[1]: Starting Journal Service... 
[ 4.629979] systemd[1]: Mounting Debug File System... 
[ 4.680276] systemd[1]: Mounting Temporary Directory... 
[ 4.748678] systemd[1]: Starting Create list of required static device nodes for the current kernel... 
[ 4.867557] systemd[1]: Starting (null)... 
[ 4.909199] systemd[1]: Starting File System Check on Root Device... 
[ 4.988121] systemd[1]: Starting Setup Virtual Console... 
[ 5.044001] systemd[1]: Mounted Debug File System. 
[ 5.095817] systemd[1]: Mounted Temporary Directory. 
[ 5.152011] systemd[1]: Started Journal Service. 
[ 5.632310] UBIFS (ubi0:2): completing deferred recovery 
[ 5.862828] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 98 
[ 5.891615] UBIFS (ubi0:2): deferred recovery completed 
[ 6.195541] systemd-journald[71]: Received request to flush runtime journal from PID 1 
[ 6.615089] random: nonblocking pool is initialized 
[ 9.069063] CAN device driver interface 
[ 9.775589] wm97xx-ts 0-0:wm9712-codec: No IRQ specified 
[ 12.192208] using random self ethernet address 
[ 12.204272] using random host ethernet address 
[ 12.736206] usb0: HOST MAC 00:14:2d:ff:ff:fe 
[ 12.775192] usb0: MAC 00:14:2d:ff:ff:ff 
[ 13.214571] fec 400d1000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ8041] (mii_bus:phy_addr=400d1000.etherne:00, irq=-1) 
[ 13.214776] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready 
[ 14.022604] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready 
[ 15.215037] fec 400d1000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx 
[ 15.223087] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready 
[ 15.485960] wm97xx-ts 0-0:wm9712-codec: No IRQ specified

I’m using LinuxImage2.6

Here attached the screen shot of message received on typing dmesg and dmesg|grep remoteproc

alt text

Your dmesg output looks ok.

Can you try manually loading vf610_cm4_rproc using modeprobe?

modeprobe vf610_cm4_rproc

Which 2.6 release are you using exactly? There are multiple versions…

Note that 2.6 only has been released as a Beta. We recommend to use our latest stable release (2.7) with bootaux as boot method.

hi @stefan.tx

I’m using BSP image v2.6. How can I update it to v2.6.1? Is 2.6.1 necessary to load the remoterproc for freertos

you should use bsp 2.7, as it is a stable release which is supported.

remoteproc is not well loaded. Try typing dmesg | grep proc and send the log as text.