5377 views|3 replies

244

Posts

0

Resources
The OP
 

The helper2416 development board driver failed to create a device node [Copy link]

I would like to ask the moderator, for the helper2416 development board, the driver fails to create a device node by calling class_create. Is it because the root file system does not support the udev file system? Thank you. After loading the driver, I create the device node myself and the driver can work normally. I use the 2.6 kernel (HELPER2416-KERNEL2.6.21-V100.tar) recompiled by myself and the root-qtopia.img image provided by jyx.

This post is from Embedded System

Latest reply

We use mdev, which will also automatically create nodes. Sorry for the late reply, I haven't been to the forum often recently...  Details Published on 2019-4-23 15:30

554

Posts

0

Resources
2
 
We use mdev, which will also automatically create nodes. Sorry for the late reply, I haven't been to the forum often recently...
This post is from Embedded System
 
Personal signatureMy dreams will go on...
http://www.jyxtec.com
 

244

Posts

0

Resources
3
 
Thanks for the reply, I continued debugging and found that class_create returned successfully, but device_create(first_drv_class, NULL, MKDEV(first_drv_major, 0), NULL, "xxx"); This sentence is wrong. It said that the kernel pointer pointed to a null pointer. Specifically: Unable to handle kernel paging request at virtual address 335e3220 Backtrace: [] (vsnprintf+0x0/0x544) from [] (device_create+0x78/0xb4) I recompiled the kernel, burned the kernel and rootfiles, but it's still the same. Please help me, thank you.
This post is from Embedded System

Comments

Sorry, I found the reason. You need to use this interface to create a device: class_device_create(first_drv_class, NULL, MKDEV(first_drv_major, 0), NULL, "xxx"); Since the new interface can be compiled but cannot be used, I am a little confused...  Details Published on 2019-4-28 18:49
 
 
 

244

Posts

0

Resources
4
 
muxb posted on 2019-4-28 18:40 Thank you for your reply, I continued debugging and found that class_create returned successfully, but device_create(first_drv_class, NULL, MKDEV ...
Sorry, I found the reason. You need to use this interface to create a device: class_device_create(first_drv_class, NULL, MKDEV(first_drv_major, 0), NULL, "xxx"); Since the new interface can be compiled but cannot be used, I am a little confused...
This post is from Embedded System
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list