首页 > 解决方案 > 无法在虚拟地址处处理内核分页请求 - 树莓派 3b+

问题描述

我编写了一个简单的内核模块,每当我尝试打开、读取或写入模块时,都会产生分段错误。open、read 和 write 函数什么都不做,只是打印一条消息。我进行了搜索,但找不到解决方案。请帮忙。下面是尝试写入时的 dmesg 输出。

Platform : Raspberry Pi 3b+ , Raspbian 4.19.58-v7+


There is no issue with the code since i have executed it on my Ubuntu PC and it works perfectly fine.

dmesg 截图

标签: linux-kernelraspberry-pilinux-device-driverraspbian

解决方案


推荐阅读