嵌入式爱好者

查看: 14191|回复: 1

[Linux] 怎么关掉开机的服务、应用,还我一个干净的启动系统

[复制链接]

20

主题

34

帖子

101

积分

扫一扫,手机访问本帖
发表于 2021-3-22 18:46:40 | 显示全部楼层 |阅读模式
GPIO_DSP1的程序,运行没有问题。我修改了GPIO_DSP1的程序,添加了另外一个GPIO的控制,比如载板上引出的GPIO5_1,GPIO5_4等,运行的时候就出问题了,如下图

  1. root@ok5718-idk:/mnt/nfs/OK5718-SDK-V1.0# ./dsp_gpio.sh
  2. cp: can't stat '/lib/firmware/cp': No such file or directory
  3. [  775.037922] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
  4. [  775.043830] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
  5. [  775.052291] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
  6. [  775.072302] omap_hwmod: mmu1_dsp1: _wait_target_disable failed
  7. [  775.085298] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
  8. [  775.095781] remoteproc remoteproc2: stopped remote processor 40800000.dsp
  9. [  775.103644] remoteproc remoteproc2: releasing 40800000.dsp
  10. [  775.109694] omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@99000000
  11. [  775.124015] remoteproc remoteproc2: 40800000.dsp is available
  12. [  775.137879] remoteproc remoteproc2: powering up 40800000.dsp
  13. [  775.149939] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 4364400
  14. [  775.167554] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
  15. [  775.173455] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
  16. [  775.179421] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
  17. [  775.199967] ------------[ cut here ]------------
  18. [  775.204628] WARNING: CPU: 0 PID: 1187 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x36c
  19. [  775.214062] 44000000.ocp:L3 Custom Error: MASTER DSP1_MDMA TARGET L4_PER1_P3 (Read): Data Access in User mode during Functional access
  20. [  775.226197] Modules linked in: bc_example(O) sha512_generic sha512_arm sha256_generic sha1_generic sha1_arm_neon sha1_arm md5 cbc xfrm_user xfrm4_tunnel ipcomp xfrm_ipcomp esp4 ah4 af_key xfrm_algo rfcomm pru_rproc pruss_intc wlan btusb btrtl btbcm btintel xhci_plat_hcd xhci_hcd pruss rpmsg_proto dwc3 udc_core rpmsg_rpc bluetooth snd_soc_**_card snd_soc_**_card_utils pwm_fan snd_soc_omap_hdmi_audio pvrsrvkm(O) omap_aes_driver pruss_soc_bus omap_sham c_can_platform c_can can_dev omap_wdt ahci_platform libahci_platform libahci libata scsi_mod ti_vip ti_vpe ti_sc ti_csc ti_vpdma dwc3_omap extcon_core w1_therm gpio_pisosr ti_cal spidev gt911 rtc_rx8010 ov5640_mipi omap_des snd_soc_wm8960 ov5640 omap_hdq des_generic wire crypto_engine omap_remoteproc virtio_rpmsg_bus rpmsg_core remoteproc sch_fq_codel xr_usb_serial_common usbcore usb_common uio_module_drv(O) uio gdbserverproxy(O) cryptodev(O) cmemk(O)
  21. [  775.307305] CPU: 0 PID: 1187 Comm: kworker/0:1 Tainted: G        W  O    4.9.41 #4
  22. [  775.314904] Hardware name: Generic DRA72X (Flattened Device Tree)
  23. [  775.321028] Workqueue: events request_firmware_work_func
  24. [  775.326366] Backtrace:
  25. [  775.328838] [<c020b2d8>] (dump_backtrace) from [<c020b594>] (show_stack+0x18/0x1c)
  26. [  775.336441]  r7:00000009 r6:600f0193 r5:00000000 r4:c10229d0
  27. [  775.342127] [<c020b57c>] (show_stack) from [<c04ace60>] (dump_stack+0x8c/0xa0)
  28. [  775.349383] [<c04acdd4>] (dump_stack) from [<c022e4b8>] (__warn+0xec/0x104)
  29. [  775.356373]  r7:00000009 r6:c0bcd950 r5:00000000 r4:ee1cd898
  30. [  775.362058] [<c022e3cc>] (__warn) from [<c022e510>] (warn_slowpath_fmt+0x40/0x48)
  31. [  775.369573]  r9:00000006 r8:ef1da510 r7:c0bcdc44 r6:00000002 r5:c0bcd87c r4:c0bcd920
  32. [  775.377352] [<c022e4d4>] (warn_slowpath_fmt) from [<c04dcd10>] (l3_interrupt_handler+0x25c/0x36c)
  33. [  775.386260]  r3:ef1da380 r2:c0bcd920
  34. [  775.389848]  r4:80080003
  35. [  775.392395] [<c04dcab4>] (l3_interrupt_handler) from [<c027fd20>] (__handle_irq_event_percpu+0xb4/0x138)
  36. [  775.401917]  r10:c101a4af r9:ef1cf200 r8:00000017 r7:ee1cd9bc r6:00000000 r5:ef1cf200
  37. [  775.409777]  r4:ef1da880
  38. [  775.412322] [<c027fc6c>] (__handle_irq_event_percpu) from [<c027fdc8>] (handle_irq_event_percpu+0x24/0x60)
  39. [  775.422017]  r10:ef25fa10 r9:ee1cc000 r8:ef006000 r7:00000000 r6:c1008c34 r5:ef1cf200
  40. [  775.429877]  r4:ef1cf200
  41. [  775.432423] [<c027fda4>] (handle_irq_event_percpu) from [<c027fe44>] (handle_irq_event+0x40/0x64)
  42. [  775.441330]  r5:ef1cf260 r4:ef1cf200
  43. [  775.444924] [<c027fe04>] (handle_irq_event) from [<c02834f0>] (handle_fasteoi_irq+0xc0/0x190)
  44. [  775.453483]  r7:00000000 r6:c1008c34 r5:ef1cf260 r4:ef1cf200
  45. [  775.459169] [<c0283430>] (handle_fasteoi_irq) from [<c027ef48>] (generic_handle_irq+0x2c/0x3c)
复制代码
我判断可能是系统占用了这些资源,怎么能把系统开机的哪些应用关闭呢,包括qt的?
回复

使用道具 举报

0

主题

236

帖子

752

积分

A40i/T3/T507/T527通行证i.MX6Q通行证i.MX6UL通行证i.MX8MM通行证RK3568通行证RK3399通行证LS1028A通行证LS1012A通行证LS1043A\46A通行证TCU通行证FDU产品通行证FCU1401通行证FCU1301通行证FCU11xx通行证FCU1201通行证FCU2301/FCU2302通行证FCU2401通行证5G转接卡通行证AM5718通行证Hi3519A通信证AM335x通行证i.MX RT通行证XX18通行证AM62x资料下载

发表于 2021-3-23 08:46:57 | 显示全部楼层
服务自启动相关目录/lib/systemd/system
服务应用:/etc/init.d
qt桌面:将/etc/init.d/matrix-gui-2.0 文件删除或着重命名
但是我觉得您的问题是内核使用的引脚冲突了,和服务以及应用没有关系;您最后对比一下芯片手册,查看设备树的配置,对应的引脚是否复用为gpio的功能。
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-4-20 12:05

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表