Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    驱动模块编译报错Error: selected processor does not support `isb ' in ARM mode

    V Series
    2
    2
    1500
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dql2016 LV 4 last edited by

      我想把这个编译成模块https://v853.docs.aw-ol.com/soft/dev_gpio/
      写了Makefile文件

      CROSS_COMPILE := arm-openwrt-linux-
      CC := $(CROSS_COMPILE)gcc
      LD := $(CROSS_COMPILE)ld
      KERNELDIR := /home/allwinner/tina-v853/kernel/linux-4.9
      CURRENT_PATH := $(shell pwd)
      ARCH := arm
      
      obj-m := led.o
      
      build: kernel_modules
      
      kernel_modules:
      	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules ARCH=$(ARCH)
      
      clean:
      	$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean
      

      但是编译报错了

      allwinner@allwinner-VirtualBox:~/nfsroot$ make
      make -C /home/allwinner/tina-v853/kernel/linux-4.9 M=/home/allwinner/nfsroot modules ARCH=arm
      make[1]: Entering directory '/home/allwinner/tina-v853/kernel/linux-4.9'
        CC [M]  /home/allwinner/nfsroot/led.o
      /tmp/ccvV4lGB.s: Assembler messages:
      /tmp/ccvV4lGB.s:105: Error: selected processor does not support `isb ' in ARM mode
      /tmp/ccvV4lGB.s:118: Error: selected processor does not support `isb ' in ARM mode
      make[2]: *** [scripts/Makefile.build:341: /home/allwinner/nfsroot/led.o] Error 1
      make[1]: *** [Makefile:1617: _module_/home/allwinner/nfsroot] Error 2
      make[1]: Leaving directory '/home/allwinner/tina-v853/kernel/linux-4.9'
      make: *** [Makefile:13: kernel_modules] Error 2
      
      
      1 Reply Last reply Reply Quote Share 1
      • YuzukiTsuru
        柚木 鉉 LV 9 last edited by

        感觉CFLAGS缺失了

        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策