Settings | Sign in | Sign up

There are currently 2 posts.

Luckfox RV1103开发板修改设备树的方法

Floor 6 巨大八爪鱼 3/14/25 11:07

内核模块Makefile文件:

KDIR := /home/oct1158/Documents/Code/C/kernel_for_modules
CROSS_COMPILE := /home/oct1158/Documents/Code/C/luckfox-pico/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-

obj-m := test.o

build:
    $(MAKE) -C $(KDIR) M=$(shell pwd) modules ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE)

clean:
    $(MAKE) -C $(KDIR) M=$(shell pwd) clean

 

巨大八爪鱼 6/26/25 15:46
可以用最新的arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-linux-gnueabihf编译器。
CROSS_COMPILE := /home/oct1158/Downloads/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.