mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-09-07 18:35:44 +02:00
Add a new driver npu-ax3386-gpl, default compile as module. The default generated modules are: - vha.ko - img_mem.ko - vha_info.ko Signed-off-by: Mingzheng Xing <xingmingzheng@iscas.ac.cn>
18 lines
396 B
Plaintext
18 lines
396 B
Plaintext
1. How to build
|
|
|
|
make -C /lib/modules/$(uname -r)/build M=/path/to/dmabuf_exporter modules
|
|
|
|
2. Carveout example
|
|
|
|
sudo insmod dmabuf_exporter_carveout.ko carveout_base=0x38000000 carveout_size=0x8000000
|
|
|
|
3. Coherent example
|
|
|
|
sudo insmod dmabuf_exporter_coherent.ko
|
|
|
|
3. Non-Coherent example
|
|
|
|
sudo insmod dmabuf_exporter_noncoherent.ko cache_type=3
|
|
|
|
cache_type: 1-cached, 2-uncached, 3-writecombine
|