Skip to content

关于5.10.x内核编译 #2

@jesty666

Description

@jesty666

大佬您好 我使用了您的kernel
我放进common/drivers/ 中进行编译 我在此makefile中 写了一行obj-m+=entry.o

最后成功编译出entry.ko文件
在手机中我使用insmod entry.ko 后
我使用user文件夹中的示例main.cpp 填上报名和so
执行后 得出的地址 是错误的 而且是一直变化的
我dmesg | gerp entry
得出 他pid一直是变化的
请问您 我上述编译过程是正确的吗 只需要编译一个enry.ko吗

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions