I.mx280 增加通訊模塊驅動

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I.mx280 增加通訊模塊驅動

792 Views
remy
Contributor I

目前開發的gateway 是用I.mx280的方案

1) 目前增加了一個通訊模塊是透過usb 接口接到gateway主板上

2) 為了支持模塊的驅動,在 kernel 會需要增加 char device 及 幾個 dynamic module  (ko)
3) 為了控制 模塊及驅動, 在 userspace 會增加 application 去操作 kernel 的驅動及 char device
目前我們透過 manuconfig 於kernel 增加了 dynamic module  (ko),以下是需要請教/協助的部份

1) 在SDK何處更改rcS,以便能讓系統起來時,能insmod kernel module
  * SDK 修改rcS init 的程序
2) 在SDK 那個何處適合加 mknod,以建立 userspace 在 /dev/ 下能對建立的char device 做操作
  * SDK 創建 character device 的程序 
3) 由於是透過 usb 介面的模塊,在SDK的何處,可以增加一個 udev 及 hotplug的 rule, 以便模塊add 或 remove時,能於userspace 做相對應的操作
  * SDK 拔插 usb 時的控制程序  
謝謝
Labels (1)
0 Kudos
4 Replies

690 Views
remy
Contributor I

Hi NXP,

We are working on a gateway with I.mx280 solution.

1) We try to add a communication module via USB interface.

2) In order to install the driver, Kernel needs to add cher device & dynamic module (ko).

3) In order to control the module and its driver, has to add an application at userspace for operating kernel driver & cher device.

Currently, we add dynamic module (ko) in kernel through menuconfig option, but below questions need your support.

a.) Where can modify SDK’s rcS? *We need to know process to modify “SDK rcS init”? (we need “insmod kernel module” when system is boot up)

b.) Where can we add mknod in SDK? *We need to know process to create “character device”? (We want to operate cher device we created in userspace under /dev/.)

c.) where can we add “udev & hotplug rule” in SDK? *We need to know control process of “USB plugged/unplugged”? (in order to has corresponding action in userspace when add/remove.)

Thank you.

0 Kudos

690 Views
jimmychan
NXP TechSupport
NXP TechSupport

which SDK are you using?

0 Kudos

690 Views
remy
Contributor I

Should be the latest one. 

Or any way that I can get precise version for you? if it's necessary?

thanks

0 Kudos

690 Views
jimmychan
NXP TechSupport
NXP TechSupport

We have different version of BSP. So I don't know which one you are using.

i.MX Software | NXP 

0 Kudos