L2 Switch driver module

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

L2 Switch driver module

1,209 Views
erickang
Contributor II

Dear All,

I want to make the driver module with the configured driver into kernel.

The driver is L2 Switch driver of MX287, <LTIB>/rpm/BUILD/linux/drivers/net/fec_switch.c.

 

First of all, I made the L2 Switch driver.

With this module, I'll test (insert + remove) * X times.

For example,

1) insert l2_switch.ko

2) rmmod l2_switch.ko

3) insert l2_switch.ko

4) rmmod l2_switch.ko

 

When I re-insert the module, the Error was occurred like the attached log file.

mx287_kmw_l2.switch_test_02.2_re-insmod.log

 

Could you tell me what's the problem?

 

For your more understanding, I'll attached the below files.

- Kernel

  . arch/arm/mach-mx28/mx28evk_pins.c

  . arch/arm/mach-mx28/device.c (device.c_mach-mx28)

  . arch/arm/plat-mxs/include/mach/device.h

  . arch/arm/plat-mxs/device.c (device.c_plat-mxs)

- Driver

  . mx287_fec_switch.c

 

Best Regards,

Eric.

Original Attachment has been moved to: device.c_plat-mxs.zip

Original Attachment has been moved to: device.h.zip

Original Attachment has been moved to: mx287_fec_switch.c.zip

Original Attachment has been moved to: device.c_mach-mx28.zip

Original Attachment has been moved to: mx28evk_pins.c.zip

Labels (2)
0 Kudos
1 Reply

695 Views
erickang
Contributor II

I missed the log file for this issue.

So I attached the log file in this page.

mx287_kmw_l2.switch_test_02.2_re-insmod.log

0 Kudos