3568上加载AR0234M
-
请问,使用5.10版本的驱动程序,但是加载失败了,可能是什么原因呀?

使用的驱动源码:veye_mvcam_c.txt
veye_mvcam_h.txt -
@lin 系统启动后不需要手动insmod,系统会自动根据device tree去查找和加载对应的驱动。
而且看你的提示已经成功probe到了。 -
@veye_xumm 但是拓扑图中没有识别到相机,而且这个打印信息里的后两个是什么原因呀?
-
@lin 后面两个应该是驱动中某个函数出错了。你可以看一下完整的dmesg信息就知道了。 不知道你有没有改我们的驱动的.c的源码,一般来说是没有必要改的。
-
@veye_xumm 没有修改过源码,输出的dmesg信息是这样的,1.txt ,如何确定错误原因呀?
-
@lin
看你的错误提示信息,是mvcam_probe函数中,大约调用到一个strcmp字符串拷贝的地方,访问了0地址。
你需要跟踪一下代码。虽然你没有改动我们相机驱动,但是你用的kernel是跟我们的不同,这个是可能导致此问题的原因。[11017.375364] mvcam 2-003b: mvcam_enum_controls success [11017.376245] mvcam 2-003b: mvcam_write [11017.376266] mvcam 2-003b: media_entity_pads_init [11017.376317] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [11017.385246] Mem abort info: [11017.388077] ESR = 0x96000005 [11017.391244] EC = 0x25: DABT (current EL), IL = 32 bits [11017.397026] Bluetooth: hci0: Frame reassembly failed (-84) [11017.402739] SET = 0, FnV = 0 [11017.405938] EA = 0, S1PTW = 0 [11017.409127] Data abort info: [11017.412067] ISV = 0, ISS = 0x00000005 [11017.415950] CM = 0, WnR = 0 [11017.418993] user pgtable: 4k pages, 39-bit VAs, pgdp=000000001cdb8000 [11017.425477] [0000000000000000] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000 [11017.434253] Internal error: Oops: 96000005 [#1] SMP [11017.439145] Modules linked in: veye_mvcam(O+) [11017.443547] CPU: 0 PID: 87401 Comm: insmod Tainted: G O 5.10.160 #2 [11017.451121] Hardware name: Forlinx OK3568-C Board (DT) [11017.456272] pstate: 40400009 (nZcv daif +PAN -UAO -TCO BTYPE=--) [11017.462318] pc : __pi_strcmp+0x18/0x154 [11017.466203] lr : mvcam_probe+0xaf4/0xc08 [veye_mvcam] [11017.471261] sp : ffffffc0132eb800 [11017.474584] x29: ffffffc0132eb800 x28: ffffff801163a470 [11017.479914] x27: 0000000000000008 x26: ffffffc001233610 [11017.485245] x25: ffffffc001233520 x24: ffffff800340b420 [11017.490572] x23: 0000000000000000 x22: ffffff800340b400 [11017.495900] x21: ffffffc001232b90 x20: ffffff800340b420 [11017.501229] x19: ffffff801163a080 x18: 0000000000000020 -
@veye_xumm 我修改了一下设备树,但是拓扑图中还是没有相机节点,可能是什么原因?

-
@lin 应该还是设备树配置的问题。
-
This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login