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.

Linux/AM5708: DSP OpenCL monitor fails to start

Part Number: AM5708

Tool/software: Linux

Now, "dra7-dsp1-fw.xe66.dspdce-fw"  can start DSP1 success.But "dra7-dsp1-fw.xe66.opencl-monitor" can't start DSP1.

loginfo:

ln -s /lib/firmware/dra7-dsp1-fw.xe66.dspdce-fw /lib/firmware/dra7-dsp1-fw.xe6(success) :

root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# echo 40800000.dsp>bind   
[ 6016.281929] omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@99000000
[ 6016.290963] remoteproc remoteproc2: 40800000.dsp is available
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# [ 6016.322551] remoteproc remoteproc2: powering up 40800000.dsp
[ 6016.328258] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 894096
[ 6016.345710] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[ 6016.351605] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[ 6016.357577] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
[ 6016.442989] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 6016.448539] remoteproc remoteproc2: registered virtio0 (type 7)
[ 6016.466521] remoteproc remoteproc2: remote processor 40800000.dsp is now up
[ 6016.475214] virtio_rpmsg_bus virtio0: creating channel rpmsg-client-sample addr 0x36
[ 6016.485402] virtio_rpmsg_bus virtio0: creating channel rpmsg-client-sample addr 0x37
[ 6016.502124] virtio_rpmsg_bus virtio0: creating channel rpmsg-rpc addr 0x65
[ 6016.527847] rpmsg_rpc virtio0.rpmsg-rpc.-1.101: probing service rpmsg-dce-dsp with src 1024 dst 101
[ 6016.544718] rpmsg_rpc virtio0.rpmsg-rpc.-1.101: published functions = 9

root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# [ 6027.368799] omap_hwmod: mmu1_dsp1: _wait_target_disable failed
[ 6027.382779] omap_hwmod: mmu0_dsp1: _wait_target_disable failed

root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# 
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc#

ln -s /lib/firmware/dra7-dsp1-fw.xe66.opencl-monitor-fw /lib/firmware/dra7-dsp1-fw.xe6 (faild):

root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# 
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# echo 40800000.dsp>bind   
[  112.119972] remoteproc remoteproc2: powering up 40800000.dsp
[  112.125712] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 21891524
[  112.143370] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[  112.149266] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[  112.155217] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
[  112.185038] virtio_rpmsg_bus virtio0: rpmsg host is online
[  112.190567] ------------[ cut here ]------------
m[  112.190582] WARNING: CPU: 0 PID: 15 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x36c
[  112.190588] 44000000.ocp:L3 Custom Error: MASTER DSP1_MDMA TARGET DMM_P1 (Idle): Data Access in User mode during Functional access
[  112.190593] Modules linked in:
[  112.190601] CPU: 0 PID: 15 Comm: kworker/0:1 Not tainted 4.9.28 #95
[  112.190604] Hardware name: Generic DRA72X (Flattened Device Tree)
[  112.190616] Workqueue: events request_firmware_work_func
[  112.190620] Backtrace: 
[  112.190633] [<c020b35c>] (dump_backtrace) from [<c020b618>] (show_stack+0x18/0x1c)
[  112.190640]  r7:00000009 r6:60070193 r5:00000000 r4:c10226d0
[  112.190648] [<c020b600>] (show_stack) from [<c04df3c0>] (dump_stack+0x8c/0xa0)
[  112.190658] [<c04df334>] (dump_stack) from [<c022e190>] (__warn+0xec/0x104)
[  112.190663]  r7:00000009 r6:c0be9708 r5:00000000 r4:df5ed7f0
[  112.190669] [<c022e0a4>] (__warn) from [<c022e1e8>] (warn_slowpath_fmt+0x40/0x48)
[  112.190676]  r9:00000001 r8:df5c2510 r7:c0be99fc r6:00000000 r5:c0be9634 r4:c0be96d8
[  112.190684] [<c022e1ac>] (warn_slowpath_fmt) from [<c050f270>] (l3_interrupt_handler+0x25c/0x36c)
[  112.190688]  r3:df5c2380 r2:c0be96d8
[  112.190691]  r4:80080003
[  112.190700] [<c050f014>] (l3_interrupt_handler) from [<c027f798>] (__handle_irq_event_percpu+0xb4/0x138)
o[  112.190707]  r10:c101a57d r9:df5bec00 r8:00000017 r7:df5ed914 r6:00000000 r5:df5bec00
[  112.190710]  r4:df5c2880
[  112.190717] [<c027f6e4>] (__handle_irq_event_percpu) from [<c027f840>] (handle_irq_event_percpu+0x24/0x60)
[  112.190723]  r10:00008c00 r9:df5ec000 r8:df406000 r7:00000000 r6:c100918c r5:df5bec00
[  112.190726]  r4:df5bec00
[  112.190733] [<c027f81c>] (handle_irq_event_percpu) from [<c027f8bc>] (handle_irq_event+0x40/0x64)
[  112.190736]  r5:df5bec60 r4:df5bec00
[  112.190745] [<c027f87c>] (handle_irq_event) from [<c0282f50>] (handle_fasteoi_irq+0xc0/0x190)
[  112.190750]  r7:00000000 r6:c100918c r5:df5bec60 r4:df5bec00
[  112.190757] [<c0282e90>] (handle_fasteoi_irq) from [<c027e9c0>] (generic_handle_irq+0x2c/0x3c)
[  112.190763]  r7:00000000 r6:00000000 r5:00000017 r4:c0e61d88
[  112.190769] [<c027e994>] (generic_handle_irq) from [<c027ef48>] (__handle_domain_irq+0x64/0xbc)
[  112.190777] [<c027eee4>] (__handle_domain_irq) from [<c02014a0>] (gic_handle_irq+0x40/0x7c)
[  112.190783]  r9:df5ec000 r8:fa213000 r7:fa212000 r6:df5ed9d0 r5:fa21200c r4:c1003424
[  112.190789] [<c0201460>] (gic_handle_irq) from [<c020c138>] (__irq_svc+0x58/0x8c)
[  112.190792] Exception stack(0xdf5ed9d0 to 0xdf5eda18)
[  112.190797] d9c0:                                     00000000 00000000 00000001 60070013
[  112.190802] d9e0: c1065468 c107bed0 00000000 0000003e 00000000 00000191 00008c00 df5eda94
[  112.190807] da00: df5ed958 df5eda20 c05be48c c027d058 60070013 ffffffff
[  112.190814]  r9:df5ec000 r8:00000000 r7:df5eda04 r6:ffffffff r5:60070013 r4:c027d058
d[  112.190821] [<c027cd5c>] (console_unlock) from [<c027d660>] (vprintk_emit+0x2c0/0x480)
[  112.190827]  r10:00000000 r9:c105bf50 r8:c1017130 r7:00000006 r6:00000006 r5:00000000
[  112.190830]  r4:0000002e
[  112.190840] [<c027d3a0>] (vprintk_emit) from [<c063bc18>] (dev_vprintk_emit+0xa8/0x1d0)
[  112.190846]  r10:c0bf7afc r9:df5edbd4 r8:c0c096b0 r7:00000006 r6:df5edb08 r5:c949e438
[  112.190849]  r4:00000011
[  112.190858] [<c063bb70>] (dev_vprintk_emit) from [<c063bd68>] (dev_printk_emit+0x28/0x30)
[  112.190864]  r10:00000000 r9:d9040000 r8:024000c0 r7:c949e428 r6:00000100 r5:c956ad80
[  112.190867]  r4:00000001
[  112.190876] [<c063bd44>] (dev_printk_emit) from [<c063be1c>] (__dev_printk+0x54/0x94)
[  112.190879]  r3:c0c458c8 r2:c0c096b0
[  112.190887] [<c063bdc8>] (__dev_printk) from [<c063c0ec>] (_dev_info+0x40/0x48)
[  112.190897] [<c063c0b0>] (_dev_info) from [<c0816514>] (rpmsg_probe+0x2b8/0x41c)
[  112.190901]  r3:00000000 r2:00000000 r1:c0c45828
[  112.190912] [<c081625c>] (rpmsg_probe) from [<c0585b84>] (virtio_dev_probe+0x230/0x30c)
[  112.190918]  r10:00000001 r9:00000000 r8:ffffffff r7:c949e438 r6:c949e428 r5:00000000
[  112.190921]  r4:00000000
[  112.190930] [<c0585954>] (virtio_dev_probe) from [<c063f6e8>] (driver_probe_device+0x20c/0x2b8)
[  112.190936]  r10:00000000 r9:00000000 r8:0000000d r7:c104aa30 r6:00000000 r5:c949e438
[  112.190938]  r4:c10956e4
[  112.190946] [<c063f4dc>] (driver_probe_device) from [<c063f8f8>] (__device_attach_driver+0xa0/0xd4)
[  112.190952]  r9:00000000 r8:c10956c0 r7:00000001 r6:c949e438 r5:df5edd50 r4:c104aa30
[  112.190958] [<c063f858>] (__device_attach_driver) from [<c063d950>] (bus_for_each_drv+0x68/0x9c)
[  112.190963]  r7:00000001 r6:c063f858 r5:df5edd50 r4:00000000
[  112.190970] [<c063d8e8>] (bus_for_each_drv) from [<c063f3b8>] (__device_attach+0xb8/0x11c)
[  112.190974]  r6:c102823c r5:c949e46c r4:c949e438
[  112.190981] [<c063f300>] (__device_attach) from [<c063f978>] (device_initial_probe+0x14/0x18)
[  112.190986]  r7:00000000 r6:c102823c r5:c949e438 r4:c949e440
[  112.190993] [<c063f964>] (device_initial_probe) from [<c063e864>] (bus_probe_device+0x8c/0x94)
[  112.190999] [<c063e7d8>] (bus_probe_device) from [<c063ca1c>] (device_add+0x3fc/0x588)
[  112.191004]  r7:00000000 r6:c949e438 r5:c949e020 r4:c949e440
[  112.191009] [<c063c620>] (device_add) from [<c063cbc4>] (device_register+0x1c/0x20)
[  112.191015]  r10:c949e204 r9:c949e404 r8:c949e020 r7:c949e428 r6:c949e438 r5:c081082c
[  112.191018]  r4:c949e438
[  112.191025] [<c063cba8>] (device_register) from [<c0585790>] (register_virtio_device+0xb4/0xf4)
[  112.191028]  r5:c081082c r4:c949e428
[  112.191036] [<c05856dc>] (register_virtio_device) from [<c0810d84>] (rproc_add_virtio_dev+0x78/0xfc)
[  112.191041]  r7:c949e428 r6:00000007 r5:c949e020 r4:c949e400
[  112.191049] [<c0810d0c>] (rproc_add_virtio_dev) from [<c080e1bc>] (rproc_vdev_do_probe+0x18/0x1c)
[  112.191054]  r7:00000000 r6:c949e1b4 r5:c949e1ac r4:c949e000
[  112.191063] [<c080e1a4>] (rproc_vdev_do_probe) from [<c080fe68>] (__rproc_boot+0x4bc/0x5bc)
[  112.191073] [<c080f9ac>] (__rproc_boot) from [<c080ff94>] (rproc_auto_boot_callback+0x18/0x24)
[  112.191079]  r10:df5e5180 r9:00000000 r8:df8add00 r7:00000000 r6:df8aa5c0 r5:df5e5180
[  112.191081]  r4:caadab40
[  112.191092] [<c080ff7c>] (rproc_auto_boot_callback) from [<c0657580>] (request_firmware_work_func+0x44/0x6c)
[  112.191095]  r5:df5e5180 r4:caadae00
[  112.191104] [<c065753c>] (request_firmware_work_func) from [<c0244a9c>] (process_one_work+0x1dc/0x3f8)
[  112.191108]  r4:caadae00
[  112.191114] [<c02448c0>] (process_one_work) from [<c02456f4>] (worker_thread+0x58/0x574)
[  112.191120]  r10:df5e5180 r9:df5ec000 r8:df8aa5d8 r7:c1002d00 r6:00000008 r5:df5e5198
[  112.191122]  r4:df8aa5c0
[  112.191130] [<c024569c>] (worker_thread) from [<c024aa2c>] (kthread+0x100/0x118)
[  112.191136]  r10:00000000 r9:00000000 r8:c024569c r7:df5e5180 r6:df5ec000 r5:df5e1840
[  112.191138]  r4:00000000
[  112.191147] [<c024a92c>] (kthread) from [<c0207d48>] (ret_from_fork+0x14/0x2c)
[  112.191152]  r8:00000000 r7:00000000 r6:00000000 r5:c024a92c r4:df5e1840
[  112.191155] ---[ end trace e19c6be11ffea2be ]---
[  112.191168] omap-iommu 40d01000.mmu: iommu fault: da 0x26dc0300 flags 0x0
[  112.191174] remoteproc remoteproc2: crash detected in 40800000.dsp: type mmufault
[  112.191183] omap-iommu 40d01000.mmu: 40d01000.mmu: errs:0x00000002 da:0x26dc0300 pgd:0xc25609b4 *pgd:px00000000
[  112.864004] remoteproc remoteproc2: registered virtio0 (type 7)
[  112.869953] remoteproc remoteproc2: remote processor 40800000.dsp is now up
[  112.892268] remoteproc remoteproc2: handling crash #1 in 40800000.dsp
[  112.898748] remoteproc remoteproc2: recovering 40800000.dsp
[  112.928132] omap_hwmod: mmu1_dsp1: _wait_target_disable failed
[  112.941151] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[  112.947058] ------------[ cut here ]------------
[  112.951707] WARNING: CPU: 0 PID: 15 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x36c
[  112.960966] 44000000.ocp:L3 Standard Error: MASTER DSP1_MDMA TARGET PCIE1 (Read Link): At Address: 0x06DC0340 : Data Access in User mode during Functional access
[  112.975455] Modules linked in:
[  112.978532] CPU: 0 PID: 15 Comm: kworker/0:1 Tainted: G        W       4.9.28 #95
[  112.986045] Hardware name: Generic DRA72X (Flattened Device Tree)
[  112.992170] Workqueue: events rproc_crash_handler_work
[  112.997334] Backtrace: 
[  112.999805] [<c020b35c>] (dump_backtrace) from [<c020b618>] (show_stack+0x18/0x1c)
[  113.007409]  r7:00000009 r6:600b0193 r5:00000000 r4:c10226d0
[  113.013096] [<c020b600>] (show_stack) from [<c04df3c0>] (dump_stack+0x8c/0xa0)
[  113.020354] [<c04df334>] (dump_stack) from [<c022e190>] (__warn+0xec/0x104)
[  113.027346]  r7:00000009 r6:c0be9708 r5:00000000 r4:df5edb70
[  113.033031] [<c022e0a4>] (__warn) from [<c022e1e8>] (warn_slowpath_fmt+0x40/0x48)
[  113.040548]  r9:0000000c r8:df5c2510 r7:c0be99fc r6:00000004 r5:c0be9628 r4:c0be96d8
[  113.048327] [<c022e1ac>] (warn_slowpath_fmt) from [<c050f270>] (l3_interrupt_handler+0x25c/0x36c)
[  113.057236]  r3:df5c2380 r2:c0be96d8
[  113.060824]  r4:80080001
[  113.063373] [<c050f014>] (l3_interrupt_handler) from [<c027f798>] (__handle_irq_event_percpu+0xb4/0x138)
[  113.072894]  r10:c101a57d r9:df5bec00 r8:00000017 r7:df5edc94 r6:00000000 r5:df5bec00
[  113.080756]  r4:df5c2880
[  113.083302] [<c027f6e4>] (__handle_irq_event_percpu) from [<c027f840>] (handle_irq_event_percpu+0x24/0x60)
[  113.092998]  r10:00000fff r9:df5ec000 r8:df406000 r7:00000000 r6:c100918c r5:df5bec00
[  113.100858]  r4:df5bec00
[  113.103404] [<c027f81c>] (handle_irq_event_percpu) from [<c027f8bc>] (handle_irq_event+0x40/0x64)
[  113.112313]  r5:df5bec60 r4:df5bec00
[  113.115908] [<c027f87c>] (handle_irq_event) from [<c0282f50>] (handle_fasteoi_irq+0xc0/0x190)
[  113.124468]  r7:00000000 r6:c100918c r5:df5bec60 r4:df5bec00
[  113.130156] [<c0282e90>] (handle_fasteoi_irq) from [<c027e9c0>] (generic_handle_irq+0x2c/0x3c)
[  113.138805]  r7:00000000 r6:00000000 r5:00000017 r4:c0e61d88
[  113.144489] [<c027e994>] (generic_handle_irq) from [<c027ef48>] (__handle_domain_irq+0x64/0xbc)
[  113.153228] [<c027eee4>] (__handle_domain_irq) from [<c02014a0>] (gic_handle_irq+0x40/0x7c)
[  113.161615]  r9:df5ec000 r8:fa213000 r7:fa212000 r6:df5edd50 r5:fa21200c r4:c1003424
[  113.169392] [<c0201460>] (gic_handle_irq) from [<c020c138>] (__irq_svc+0x58/0x8c)
[  113.176905] Exception stack(0xdf5edd50 to 0xdf5edd98)
[  113.181977] dd40:                                     df64f874 600b0013 00000003 000000ce
[  113.190189] dd60: 00000000 00000004 df64f874 600b0013 fffffc00 c2563ffc 00000fff df5eddac
[  113.198400] dd80: df5eddb0 df5edda0 c0649834 c099a6b4 200b0013 ffffffff
[  113.205044]  r9:df5ec000 r8:fffffc00 r7:df5edd84 r6:ffffffff r5:200b0013 r4:c099a6b4
[  113.212831] [<c099a68c>] (_raw_spin_unlock_irqrestore) from [<c0649834>] (__pm_runtime_idle+0x74/0x88)
[  113.222185] [<c06497c0>] (__pm_runtime_idle) from [<c05d4b48>] (omap_iommu_detach+0x3c/0x48)
[  113.230658]  r7:00000000 r6:df716410 r5:df716428 r4:df716410
[  113.236346] [<c05d4b0c>] (omap_iommu_detach) from [<c05d5ce4>] (_omap_iommu_detach_dev+0x144/0x1ac)
[  113.245428]  r5:c2560000 r4:00000002
[  113.249022] [<c05d5ba0>] (_omap_iommu_detach_dev) from [<c05d5d78>] (omap_iommu_detach_dev+0x2c/0x38)
[  113.258282]  r10:df5e5180 r9:c949e020 r8:c949e1b4 r7:c949e1ac r6:df649c10 r5:ca7a8d14
[  113.266143]  r4:ca7a8d10
[  113.268690] [<c05d5d4c>] (omap_iommu_detach_dev) from [<c05d3254>] (iommu_detach_device+0x94/0xac)
[  113.277687]  r7:c949e1ac r6:ca7a8d14 r5:c949e000 r4:00000000
[  113.283375] [<c05d31c0>] (iommu_detach_device) from [<c0810054>] (rproc_shutdown+0xb4/0x154)
[  113.291849]  r7:c949e1ac r6:c949e204 r5:c949e000 r4:ca7a8d14
[  113.297537] [<c080ffa0>] (rproc_shutdown) from [<c0810220>] (rproc_trigger_recovery+0x4c/0x68)
[  113.306185]  r9:00000000 r8:df8add00 r7:00000000 r6:00000000 r5:c949e240 r4:c949e000
[  113.313967] [<c08101d4>] (rproc_trigger_recovery) from [<c08102b0>] (rproc_crash_handler_work+0x74/0x84)
[  113.323487]  r7:00000000 r6:c949e000 r5:c949e1b4 r4:c949e22c
[  113.329174] [<c081023c>] (rproc_crash_handler_work) from [<c0244a9c>] (process_one_work+0x1dc/0x3f8)
[  113.338346]  r7:00000000 r6:df8aa5c0 r5:df5e5180 r4:c949e22c
[  113.344031] [<c02448c0>] (process_one_work) from [<c02456f4>] (worker_thread+0x58/0x574)
[  113.352156]  r10:df5e5180 r9:df5ec000 r8:df8aa5d8 r7:c1002d00 r6:00000008 r5:df5e5198
[  113.360017]  r4:df8aa5c0
[  113.362564] [<c024569c>] (worker_thread) from [<c024aa2c>] (kthread+0x100/0x118)
[  113.369992]  r10:00000000 r9:00000000 r8:c024569c r7:df5e5180 r6:df5ec000 r5:df5e1840
[  113.377854]  r4:00000000
[  113.380401] [<c024a92c>] (kthread) from [<c0207d48>] (ret_from_fork+0x14/0x2c)
[  113.387655]  r8:00000000 r7:00000000 r6:00000000 r5:c024a92c r4:df5e1840
[  113.394383] ---[ end trace e19c6be11ffea2bf ]---
[  113.490927] remoteproc remoteproc2: stopped remote processor 40800000.dsp
[  113.497909] remoteproc remoteproc2: powering up 40800000.dsp
[  113.548026] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 21891524
[  113.563121] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[  113.569013] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[  113.574952] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
[  113.608072] virtio_rpmsg_bus virtio0: rpmsg host is online
[  113.613637] ------------[ cut here ]------------
[  113.613654] WARNING: CPU: 0 PID: 15 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x36c
[  113.613659] 44000000.ocp:L3 Custom Error: MASTER DSP1_MDMA TARGET DMM_P1 (Idle): Data Access in User mode during Functional access
[  113.613664] Modules linked in:
[  113.613673] CPU: 0 PID: 15 Comm: kworker/0:1 Tainted: G        W       4.9.28 #95
[  113.613676] Hardware name: Generic DRA72X (Flattened Device Tree)
[  113.613689] Workqueue: events rproc_crash_handler_work
[  113.613694] Backtrace: 
[  113.613706] [<c020b35c>] (dump_backtrace) from [<c020b618>] (show_stack+0x18/0x1c)
[  113.613713]  r7:00000009 r6:60070193 r5:00000000 r4:c10226d0
[  113.613722] [<c020b600>] (show_stack) from [<c04df3c0>] (dump_stack+0x8c/0xa0)
[  113.613731] [<c04df334>] (dump_stack) from [<c022e190>] (__warn+0xec/0x104)
[  113.613737]  r7:00000009 r6:c0be9708 r5:00000000 r4:df5ed6e0
[  113.613743] [<c022e0a4>] (__warn) from [<c022e1e8>] (warn_slowpath_fmt+0x40/0x48)
[  113.613749]  r9:00000001 r8:df5c2510 r7:c0be99fc r6:00000000 r5:c0be9634 r4:c0be96d8
[  113.613757] [<c022e1ac>] (warn_slowpath_fmt) from [<c050f270>] (l3_interrupt_handler+0x25c/0x36c)
[  113.613761]  r3:df5c2380 r2:c0be96d8
[  113.613764]  r4:80080003
[  113.613773] [<c050f014>] (l3_interrupt_handler) from [<c027f798>] (__handle_irq_event_percpu+0xb4/0x138)
[  113.613780]  r10:c101a57d r9:df5bec00 r8:00000017 r7:df5ed804 r6:00000000 r5:df5bec00
[  113.613783]  r4:df5c2880
[  113.613790] [<c027f6e4>] (__handle_irq_event_percpu) from [<c027f840>] (handle_irq_event_percpu+0x24/0x60)
[  113.613796]  r10:0000c3e0 r9:df5ec000 r8:df406000 r7:00000000 r6:c100918c r5:df5bec00
[  113.613799]  r4:df5bec00
[  113.613806] [<c027f81c>] (handle_irq_event_percpu) from [<c027f8bc>] (handle_irq_event+0x40/0x64)
[  113.613809]  r5:df5bec60 r4:df5bec00
[  113.613817] [<c027f87c>] (handle_irq_event) from [<c0282f50>] (handle_fasteoi_irq+0xc0/0x190)
[  113.613822]  r7:00000000 r6:c100918c r5:df5bec60 r4:df5bec00
[  113.613830] [<c0282e90>] (handle_fasteoi_irq) from [<c027e9c0>] (generic_handle_irq+0x2c/0x3c)
[  113.613835]  r7:00000000 r6:df5ed9d0 r5:00000017 r4:c0e61d88
[  113.613842] [<c027e994>] (generic_handle_irq) from [<c027ef48>] (__handle_domain_irq+0x64/0xbc)
[  113.613849] [<c027eee4>] (__handle_domain_irq) from [<c02014a0>] (gic_handle_irq+0x40/0x7c)
[  113.613855]  r9:df5ec000 r8:fa213000 r7:fa212000 r6:df5ed8c0 r5:fa21200c r4:c1003424
[  113.613862] [<c0201460>] (gic_handle_irq) from [<c020c138>] (__irq_svc+0x58/0x8c)
[  113.613865] Exception stack(0xdf5ed8c0 to 0xdf5ed908)
[  113.613872] d8c0: 00000000 c10592c0 00000000 00000000 00000202 00000013 df5ec000 00000000
[  113.613877] d8e0: df406000 df5ec000 0000c3e0 df5ed96c df5ed970 df5ed910 c0233168 c0232c88
[  113.613880] d900: 60070113 ffffffff
[  113.613886]  r9:df5ec000 r8:df406000 r7:df5ed8f4 r6:ffffffff r5:60070113 r4:c0232c88
[  113.613896] [<c0232bf4>] (__do_softirq) from [<c0233168>] (irq_exit+0xe0/0x148)
[  113.613902]  r10:0000c3e0 r9:df5ec000 r8:df406000 r7:00000000 r6:00000000 r5:00000013
[  113.613904]  r4:c0e61d88
[  113.613912] [<c0233088>] (irq_exit) from [<c027ef4c>] (__handle_domain_irq+0x68/0xbc)
[  113.613919] [<c027eee4>] (__handle_domain_irq) from [<c02014a0>] (gic_handle_irq+0x40/0x7c)
[  113.613925]  r9:df5ec000 r8:fa213000 r7:fa212000 r6:df5ed9d0 r5:fa21200c r4:c1003424
[  113.613931] [<c0201460>] (gic_handle_irq) from [<c020c138>] (__irq_svc+0x58/0x8c)
[  113.613934] Exception stack(0xdf5ed9d0 to 0xdf5eda18)
[  113.613938] d9c0:                                     00000000 00000000 00000001 60070013
[  113.613944] d9e0: c1068c48 c107bed0 00000000 0000003e 00000000 00000243 0000c3e0 df5eda94
[  113.613949] da00: df5ed958 df5eda20 c05be48c c027d058 60070013 ffffffff
[  113.613954]  r9:df5ec000 r8:00000000 r7:df5eda04 r6:ffffffff r5:60070013 r4:c027d058
[  113.613961] [<c027cd5c>] (console_unlock) from [<c027d660>] (vprintk_emit+0x2c0/0x480)
[  113.613967]  r10:00000000 r9:c105bf50 r8:c1017130 r7:00000006 r6:00000006 r5:00000000
[  113.613969]  r4:0000002e
[  113.613979] [<c027d3a0>] (vprintk_emit) from [<c063bc18>] (dev_vprintk_emit+0xa8/0x1d0)
[  113.613985]  r10:c0bf7afc r9:df5edbd4 r8:c0c096b0 r7:00000006 r6:df5edb08 r5:c949f438
[  113.613987]  r4:00000011
[  113.613997] [<c063bb70>] (dev_vprintk_emit) from [<c063bd68>] (dev_printk_emit+0x28/0x30)
[  113.614003]  r10:00000000 r9:d9040000 r8:024000c0 r7:c949f428 r6:00000100 r5:c9425480
[  113.614005]  r4:00000001
[  113.614014] [<c063bd44>] (dev_printk_emit) from [<c063be1c>] (__dev_printk+0x54/0x94)
[  113.614018]  r3:c0c458c8 r2:c0c096b0
[  113.614025] [<c063bdc8>] (__dev_printk) from [<c063c0ec>] (_dev_info+0x40/0x48)
[  113.614033] [<c063c0b0>] (_dev_info) from [<c0816514>] (rpmsg_probe+0x2b8/0x41c)
[  113.614038]  r3:00000000 r2:00000000 r1:c0c45828
[  113.614048] [<c081625c>] (rpmsg_probe) from [<c0585b84>] (virtio_dev_probe+0x230/0x30c)
[  113.614054]  r10:00000001 r9:00000000 r8:ffffffff r7:c949f438 r6:c949f428 r5:00000000
[  113.614057]  r4:00000000
[  113.614066] [<c0585954>] (virtio_dev_probe) from [<c063f6e8>] (driver_probe_device+0x20c/0x2b8)
[  113.614072]  r10:00000000 r9:00000000 r8:0000000e r7:c104aa30 r6:00000000 r5:c949f438
[  113.614074]  r4:c10956e4
[  113.614082] [<c063f4dc>] (driver_probe_device) from [<c063f8f8>] (__device_attach_driver+0xa0/0xd4)
[  113.614087]  r9:00000000 r8:c10956c0 r7:00000001 r6:c949f438 r5:df5edd50 r4:c104aa30
[  113.614095] [<c063f858>] (__device_attach_driver) from [<c063d950>] (bus_for_each_drv+0x68/0x9c)
[  113.614099]  r7:00000001 r6:c063f858 r5:df5edd50 r4:00000000
[  113.614106] [<c063d8e8>] (bus_for_each_drv) from [<c063f3b8>] (__device_attach+0xb8/0x11c)
[  113.614110]  r6:c102823c r5:c949f46c r4:c949f438
[  113.614117] [<c063f300>] (__device_attach) from [<c063f978>] (device_initial_probe+0x14/0x18)
[  113.614122]  r7:00000000 r6:c102823c r5:c949f438 r4:c949f440
[  113.614129] [<c063f964>] (device_initial_probe) from [<c063e864>] (bus_probe_device+0x8c/0x94)
[  113.614135] [<c063e7d8>] (bus_probe_device) from [<c063ca1c>] (device_add+0x3fc/0x588)
[  113.614139]  r7:00000000 r6:c949f438 r5:c949e020 r4:c949f440
[  113.614145] [<c063c620>] (device_add) from [<c063cbc4>] (device_register+0x1c/0x20)
[  113.614151]  r10:c949e204 r9:c949f404 r8:c949e020 r7:c949f428 r6:c949f438 r5:c081082c
[  113.614154]  r4:c949f438
[  113.614161] [<c063cba8>] (device_register) from [<c0585790>] (register_virtio_device+0xb4/0xf4)
[  113.614164]  r5:c081082c r4:c949f428
[  113.614172] [<c05856dc>] (register_virtio_device) from [<c0810d84>] (rproc_add_virtio_dev+0x78/0xfc)
[  113.614176]  r7:c949f428 r6:00000007 r5:c949e020 r4:c949f400
[  113.614184] [<c0810d0c>] (rproc_add_virtio_dev) from [<c080e1bc>] (rproc_vdev_do_probe+0x18/0x1c)
[  113.614189]  r7:00000000 r6:c949e1b4 r5:c949e1ac r4:c949e000
[  113.614197] [<c080e1a4>] (rproc_vdev_do_probe) from [<c080fe68>] (__rproc_boot+0x4bc/0x5bc)
[  113.614207] [<c080f9ac>] (__rproc_boot) from [<c0810230>] (rproc_trigger_recovery+0x5c/0x68)
[  113.614213]  r10:df5e5180 r9:00000000 r8:df8add00 r7:00000000 r6:00000000 r5:c949e240
[  113.614215]  r4:c949e000
[  113.614225] [<c08101d4>] (rproc_trigger_recovery) from [<c08102b0>] (rproc_crash_handler_work+0x74/0x84)
[  113.614230]  r7:00000000 r6:c949e000 r5:c949e1b4 r4:c949e22c
[  113.614239] [<c081023c>] (rproc_crash_handler_work) from [<c0244a9c>] (process_one_work+0x1dc/0x3f8)
[  113.614244]  r7:00000000 r6:df8aa5c0 r5:df5e5180 r4:c949e22c
[  113.614250] [<c02448c0>] (process_one_work) from [<c02456f4>] (worker_thread+0x58/0x574)
[  113.614255]  r10:df5e5180 r9:df5ec000 r8:df8aa5d8 r7:c1002d00 r6:00000008 r5:df5e5198
[  113.614257]  r4:df8aa5c0
[  113.614266] [<c024569c>] (worker_thread) from [<c024aa2c>] (kthread+0x100/0x118)
[  113.614271]  r10:00000000 r9:00000000 r8:c024569c r7:df5e5180 r6:df5ec000 r5:df5e1840
[  113.614274]  r4:00000000
[  113.614283] [<c024a92c>] (kthread) from [<c0207d48>] (ret_from_fork+0x14/0x2c)
[  113.614288]  r8:00000000 r7:00000000 r6:00000000 r5:c024a92c r4:df5e1840
[  113.614291] ---[ end trace e19c6be11ffea2c0 ]---
[  113.614304] omap-iommu 40d01000.mmu: iommu fault: da 0x26dc0300 flags 0x0
[  113.614310] remoteproc remoteproc2: crash detected in 40800000.dsp: type mmufault
[  113.614319] omap-iommu 40d01000.mmu: 40d01000.mmu: errs:0x00000002 da:0x26dc0300 pgd:0xc35949b4 *pgd:px00000000
[  114.371779] remoteproc remoteproc2: registered virtio0 (type 7)
[  114.377728] remoteproc remoteproc2: remote processor 40800000.dsp is now up
[  114.395385] virtio_rpmsg_bus virtio0: creating channel rpmsg-proto addr 0x3d

root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# 

why "/dra7-dsp1-fw.xe66.opencl-monitor"  start DSP failed?????

  • Hi, 

    What version of Processor SDK release are you using? Does the issue happen with the prebuilt images in the SDK?

    Rex

  • sdk version : ti-processor-sdk-linux-rt-am57xx-evm-04.00.00.04

    cmem version : cmem-mod-4.14.01.00

    cpu : AM5708

    ram : 512M

    SDK images do not make errors during compilation.

  • You didn't answer my question. Does the issue happen when using prebuilt images from released ProcSDK?

    If you can, try the latest SDK 5.3. Also, using prebuilt images from the release SDK. Using images you built from SDK is not the same as prebuilt and you are adding variables. If prebuilt works, then it will be issue with the build process if there isn't any code change .

    Rex

  • No problems occur when using images prebuilt from the published ProcSDK.

  • I'll try using the 5.3 SDK。

  • I'll try using the 5.3 SDK

  • Ok. you have a working baseline now, which is the OpenCL example using prebuilt images. The issue seems to me is in your build process. Try to build cmem from high level, and replace the one in /lib/modules/4.x.xx.../extra/cmem.ko with the one you built and see if OpenCL still works. If it still works, then the way you built CMEM earlier, isn't right. You should see how it is done in high level CMEM build.

    If this resolves the issue, please click "Resolved".

    Rex

  • Ok, I'll try it out and I'll get back to you.

  • I have tried to use multiple versions of SDK, and all of them have the above problems.However, after I checked the documents, I found that the memory of hardware configuration in many documents is more than 1024M, and the RAM size of our hardware configuration is 512M.

    Meanwhile, I found that the memory configuration file path in the VISION SDK was "/vision_sdk//build//mem_segment_definition_.xs", but I did not find similar memory configuration file and memory configuration in the processing-sdk.

    My guess is that this problem may be related to memory configuration, as our other 1-gigabyte AM5708 development board doesn't have this problem.So could you please tell us the method of 512M memory configuration in the processor-sdk or the recommended 512M memory configuration?

  • I have tried to use multiple versions of SDK, and all of them have the above problems.However, after I checked the documents, I found that the memory of hardware configuration in many documents is more than 1024M, and the RAM size of our hardware configuration is 512M.

    Meanwhile, I found that the memory configuration file path in the VISION SDK was "/vision_sdk//build//mem_segment_definition_.xs", but I did not find similar memory configuration file and memory configuration in the processing-sdk.

    My guess is that this problem may be related to memory configuration, as our other 1-gigabyte AM5708 development board doesn't have this problem.So could you please tell us the method of 512M memory configuration in the processor-sdk or the recommended 512M memory configuration?

  • Hi, 

    I checked internally and OpenCL is expected to run on 1GB memory and has hard coded address at 0xa000 0000.

    Please see details in the following thread and the patch which is based on an older PSDK.

    https://e2e.ti.com/support/processors/f/791/p/550653/2047673?tisearch=e2e-sitesearch&keymatch=OpenCL%2520512MB#2047673

    Rex

  • This is the patch based on PSDK 5.3. OpenCL release. Please apply the patch and do a yocto build for updated OpenCL.

    For Yocto build, please follow instruction in 

    http://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Overview_Building_the_SDK.html

    Patch for 512MB   

        - Assuming CMEM start from 0x9000_0000

        - If CMA pools for DSP1/2 also change from default values in DTS,

          please also update PHYS_MEM_IPC_VRING in the resource table.

     

    diff --git a/monitor/platforms/am57x/Platform.xdc b/monitor/platforms/am57x/Platform.xdc

    index e2b4c33..98339c7 100644

    --- a/monitor/platforms/am57x/Platform.xdc

    +++ b/monitor/platforms/am57x/Platform.xdc

    @@ -68,7 +68,7 @@ config ti.platforms.generic.Platform.Instance CPU =

     

           /* Non-cached DDR: 0xA000_0000 - 0xA100_0000 (MAR granularity) */

           [ "DDR3_NC",   { name: "DDR3_NC",

    -                          base: 0xA0000000,

    +                          base: 0x90000000,

                               len:  0x00020000,

                               space: "code/data",

                               access: "RWX", } ],

    @@ -77,13 +77,13 @@ config ti.platforms.generic.Platform.Instance CPU =

     

           /* Stack for ocl_service_omp task - 0x10000 for each core */

           [ "DDR3_STACK", { name: "DDR3_STACK",

    -                          base: 0xA1780000,

    +                          base: 0x91780000,

                               len:  0x00020000,

                               space: "data",

                               access: "RWX", } ],

     

           [ "DDR3_HEAP", { name: "DDR3_HEAP",

    -                          base: 0xA1800000,

    +                          base: 0x91800000,

                               len:  0x00800000,

                               space: "code/data",

                               access: "RWX", } ],

    diff --git a/monitor/src/custom_rsc_table_vayu_dsp.h b/monitor/src/custom_rsc_table_vayu_dsp.h

    index 898026c..abc737c 100644

    --- a/monitor/src/custom_rsc_table_vayu_dsp.h

    +++ b/monitor/src/custom_rsc_table_vayu_dsp.h

    @@ -119,9 +119,9 @@

    // CMEM buffers mapped by MMU to PHYS_MEM_IOBUFS

    // If DSP_MEM_IOBUFS is modified, corresponding changes must be made

    // to  DDR3_NC, DDR3_STACK and DDR3_HEAP in am57x/Platform.xdc

    -#define PHYS_MEM_IOBUFS         0xA0000000

    +#define PHYS_MEM_IOBUFS         0x90000000

    #define DSP_MEM_IOBUFS          PHYS_MEM_IOBUFS

    -#define DSP_MEM_IOBUFS_SIZE     (SZ_1M * 512)

    +#define DSP_MEM_IOBUFS_SIZE     (SZ_1M * 256)

     

     // Must be marked non-cached by monitor

    #define DSP_MEM_IPC_VRING       0xFFF00000

    Rex

  • I encountered the following problems in the compilation process. How can I solve them?

    [root@MSO:build]# 
    [root@MSO:build]# 
    [root@MSO:build]# . conf/setenv 
    [root@MSO:build]# MACHINE=am57xx-evm bitbake opencl
    Loading cache: 100% |#########################################################################################################################################################################| Time: 0:00:01
    Loaded 3236 entries from dependency cache.
    NOTE: Resolving any missing task queue dependencies
    
    Build Configuration:
    BB_VERSION = "1.32.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "Ubuntu-14.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am57xx-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2017.05"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard"
    TARGET_FPU = "hard"
    meta-processor-sdk = "HEAD:3d2f620a6a98b1b6abb1103d7dc986921436ed19"
    meta-arago-distro 
    meta-arago-extras = "HEAD:b727bf8fce8e9cb5a6b5d5b48c45f0088e67eb53"
    meta-browser = "HEAD:880a7bd1d3b9a1b2003f5b0620350f03158bbd43"
    meta-qt5 = "HEAD:3601fd2c5306ac6d5d0d536e0be8cbb90da9b4c1"
    meta-networking 
    meta-ruby 
    meta-python 
    meta-oe 
    meta-gnome = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
    meta-ti = "HEAD:41d6fdc0fe5ea6054616cfccda13baac3ff33791"
    meta-linaro-toolchain 
    meta-optee = "HEAD:d84874bad834657dd04ea69c35a74dd9dbd535b8"
    meta = "HEAD:ddf907ca95a19f54785079b4396935273b3747f6"
    
    Initialising tasks: 100% |####################################################################################################################################################################| Time: 0:00:01
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    ERROR: external-linaro-toolchain-2016.11-r0.arago35.tisdk0 do_install: Function failed: do_install (log file is located at /root/psdk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2016.11-r0.arago35.tisdk0/temp/log.do_install.29918)
    ERROR: Logfile of failure stored in: /root/psdk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2016.11-r0.arago35.tisdk0/temp/log.do_install.29918
    Log data follows:
    | DEBUG: Executing shell function do_install
    | cp: cannot stat ‘/root/factory/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/libc/usr/share/*’: No such file or directory
    | WARNING: /root/psdk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2016.11-r0.arago35.tisdk0/temp/run.do_install.29918:1 exit 1 from 'cp -a /root/factory/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/libc/usr/share/* /root/psdk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2016.11-r0.arago35.tisdk0/image/usr/share'
    | ERROR: Function failed: do_install (log file is located at /root/psdk/tisdk/build/arago-tmp-external-linaro-toolchain/work/armv7ahf-neon-linux-gnueabi/external-linaro-toolchain/2016.11-r0.arago35.tisdk0/temp/log.do_install.29918)
    ERROR: Task (/root/psdk/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb:do_install) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 162 tasks of which 161 didn't need to be rerun and 1 failed.
    
    Summary: 1 task failed:
    /root/psdk/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb:do_install
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.
    [root@MSO:build]# \
    > ^C
    [root@MSO:build]# 
    [root@MSO:build]# 
    [root@MSO:build]# 
    [root@MSO:build]#
    [root@MSO:build]# 
    [root@MSO:build]# echo $PATH
    /root/psdk/tisdk/sources/meta-browser/scripts:/root/psdk/tisdk/sources/oe-core/scripts:/root/psdk/tisdk/sources/bitbake/bin:/root/psdk/tisdk/sources/meta-browser/scripts:/root/psdk/tisdk/sources/oe-core/scripts:/root/psdk/tisdk/sources/bitbake/bin:/root/psdk/tisdk/sources/meta-browser/scripts:/root/psdk/tisdk/sources/oe-core/scripts:/root/psdk/tisdk/sources/bitbake/bin:/root/psdk/cross_compile/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/root/factory/linux-devkit/sysroots/x86_64-arago-linux/usr/bin
    [root@MSO:build]# 
    [root@MSO:build]# 
    [root@MSO:build]# 
    [root@MSO:build]# echo ~/.
    ./                    .bashrc               .dbus/                .lesshst              .pki/                 .subversion/          .viminfo              .xsession-errors.old  
    ../                   .cache/               .dmrc                 .local/               .profile              .swt/                 .wgetrc               
    .aptitude/            .compiz/              .gconf/               .minirc.dfl           .python-history       .ti/                  .Xauthority           
    .bash_history         .config/              .ICEauthority         .oracle_jre_usage/    .ssh/                 .vim/                 .xsession-errors      
    [root@MSO:build]# echo ~/.bashrc 
    /root/.bashrc
    [root@MSO:build]# cat ~/.bashrc 
    # ~/.bashrc: executed by bash(1) for non-login shells.
    # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
    # for examples
    
    # If not running interactively, don't do anything
    [ -z "$PS1" ] && return
    
    # don't put duplicate lines in the history. See bash(1) for more options
    # ... or force ignoredups and ignorespace
    HISTCONTROL=ignoredups:ignorespace
    
    # append to the history file, don't overwrite it
    shopt -s histappend
    
    # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
    HISTSIZE=1000
    HISTFILESIZE=2000
    
    # check the window size after each command and, if necessary,
    # update the values of LINES and COLUMNS.
    shopt -s checkwinsize
    
    # make less more friendly for non-text input files, see lesspipe(1)
    [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
    
    # set variable identifying the chroot you work in (used in the prompt below)
    if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
        debian_chroot=$(cat /etc/debian_chroot)
    fi
    
    # set a fancy prompt (non-color, unless we know we "want" color)
    case "$TERM" in
        xterm-color) color_prompt=yes;;
    esac
    
    # uncomment for a colored prompt, if the terminal has the capability; turned
    # off by default to not distract the user: the focus in a terminal window
    # should be on the output of commands, not on the prompt
    #force_color_prompt=yes
    
    if [ -n "$force_color_prompt" ]; then
        if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
    	# We have color support; assume it's compliant with Ecma-48
    	# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
    	# a case would tend to support setf rather than setaf.)
    	color_prompt=yes
        else
    	color_prompt=
        fi
    fi
    
    if [ "$color_prompt" = yes ]; then
        PS1='[${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]]\$ '
    else
        PS1='[${debian_chroot:+($debian_chroot)}\u@\h:\W]\$ '
    fi
    unset color_prompt force_color_prompt
    
    # If this is an xterm set the title to user@host:dir
    case "$TERM" in
    xterm*|rxvt*)
        PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
        ;;
    *)
        ;;
    esac
    
    # enable color support of ls and also add handy aliases
    if [ -x /usr/bin/dircolors ]; then
        test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
        alias ls='ls --color=auto'
        #alias dir='dir --color=auto'
        #alias vdir='vdir --color=auto'
    
        alias grep='grep --color=auto'
        alias fgrep='fgrep --color=auto'
        alias egrep='egrep --color=auto'
    fi
    
    # some more ls aliases
    alias ll='ls -alF'
    alias la='ls -A'
    alias l='ls -CF'
    
    # Alias definitions.
    # You may want to put all your additions into a separate file like
    # ~/.bash_aliases, instead of adding them here directly.
    # See /usr/share/doc/bash-doc/examples in the bash-doc package.
    
    if [ -f ~/.bash_aliases ]; then
        . ~/.bash_aliases
    fi
    
    # enable programmable completion features (you don't need to enable
    # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
    # sources /etc/bash.bashrc).
    #if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
    #    . /etc/bash_completion
    #fi
    #export PATH=$PATH:/home/mso/ti-processor-sdk-linux-rt-am57xx-evm-03.03.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin
    #export PATH=$PATH:/home/mso/ti-processor-sdk-linux-rt-am57xx-evm-04.00.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin
    #export PATH=$PATH:/home/mso/ti-processor-sdk-linux-rt-am57xx-evm-03.03.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin
    export PATH=/root/psdk/cross_compile/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf:$PATH
    export PATH=$PATH:/root/factory/linux-devkit/sysroots/x86_64-arago-linux/usr/bin
    #export PATH=$PATH:/root/fuc*_dsp/linux-devkit/sysroots/x86_64-arago-linux/usr/bin
    export TOOLCHAIN_PATH_ARMV7=/root/psdk/cross_compile/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf
    export TOOLCHAIN_PATH_ARMV8=/root/psdk/cross_compile/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu
    
    
    #export http_proxy='http://127.0.0.1:8123/'
    #export https_proxy='https://127.0.0.1:8123/'
    #export ftp_proxy='http://127.0.0.1:8123/'
    #export ALL_PROXY='socks://127.0.0.1:8123/'
    #export all_proxy='socks://127.0.0.1:8123/'
    #export no_proxy='example.com'
    #export GIT_PROXY_COMMAND="oe-git-proxy"
    #export NO_PROXY=$no_proxy
    
    [root@MSO:build]# 
    
  • Gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.tx comes from the following link:

    releases.linaro.org/.../gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf.tar.xz

  •   I made some errors while executing the "MACHINE=am57xx-evm bitbake arago-base-tisdk-image" command.

      By analyzing the log, I found that the link of some files failed and the corresponding file could not be searched on the previous path of the link.The link "downloads.yoctoproject.org/.../git2_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.gz", for example, git2_git.ti.com.ti-linux-kernel.ti-linux-kernel.git.tar.gz this file no.How can I solve this problem?Or can you compile a DSP binary file of 512M? I will directly copy the DSP binary file you compiled.

    def base_do_fetch(d):
    
        src_uri = (d.getVar('SRC_URI', True) or "").split()
        if len(src_uri) == 0:
            return
    
        try:
            fetcher = bb.fetch2.Fetch(src_uri, d)
            fetcher.download()
        except bb.fetch2.BBFetchException as e:
            bb.fatal(str(e))
    
    base_do_fetch(d)
    
    

  • Please open a new thread for Yocto build. The Yocto build issue is not related to this thread subject. For new OpenCL issue, please also open a new one.

    For quick answer of your build issue, please read the section "using the snapshot of source package in PSDK".

    Rex

  • ok,thank you very mutch.