Gaosiy
July 12, 2021, 9:21am
1
Hi,
I try to build a External Kernel Modules on Jetson Xavier.
I find a document at here:
https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/kernel_custom.html#
It seems easy to make a .ko file, but when I try to build it , I got
I have no idea about how to deal with it, I think the doucument is not easy to understand to a new bird.
Can anyone help me?
Yan
Gaosiy
July 12, 2021, 11:20am
2
Hi,
Finally I can build something follow the guide, but it seems build all kernel rather than one module, should I build all kernel when I want to build only one kernel ?
Gaosiy
July 12, 2021, 12:24pm
3
Hi,
Finally I write a Makefile to build single module .
KERNELDIR := /lib/modules/4.9.201-tegra/build
CURRENT_PATH := $(shell pwd)
obj-m := chrdev.o
default:
$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) modules
clean:
$(MAKE) -C $(KERNELDIR) M=$(CURRENT_PATH) clean
I will test it.
kayccc
July 12, 2021, 11:39pm
4
Glad to know issue resolved!
system
Closed
September 10, 2021, 11:40pm
5
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.