How to enable mlb and test mlb is ok?

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

How to enable mlb and test mlb is ok?

1,870 Views
mingmingyuan
Contributor III

board:samabasd

system:linux 3.0.35

Now I want to use mlb, can you guide me that how to enable mlb and test it?

Labels (2)
0 Kudos
7 Replies

1,041 Views
mingmingyuan
Contributor III

dear fsl:

I have modify code, but can't find

"/dev/sync"
"/dev/ctrl"
"/dev/async"
/dev/isoc"

I have add log for debug this problem, I found that mbl150 driver's probe funtion not run.

Platform-mxc_mlb.c (arch\arm\plat-mxc\devices)20952015-6-5

should registor a device for mbl, I add log in this funtion, result is registor function not run.

Can you guide me? thanks

0 Kudos

1,041 Views
igorpadykov
NXP Employee
NXP Employee

Hi mingming

one can try mxc_mlb_test in

Index of /buildsources/i/imx-test/imx-test-3.0.35-4.0.0

also check sect.33.2 MLB Driver attached Linux Manual.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,041 Views
mingmingyuan
Contributor III

dear fsl:

I have modify code, but can't find

"/dev/sync"
"/dev/ctrl"
"/dev/async"
/dev/isoc"

I have add log for debug this problem, I found that mbl150 driver's probe funtion not run.

Platform-mxc_mlb.c (arch\arm\plat-mxc\devices)20952015-6-5

should registor a device for mbl, I add log in this funtion, result is registor function not run.

Can you guide me? thanks

0 Kudos

1,041 Views
igorpadykov
NXP Employee
NXP Employee

you can check that linux generated MLB150 kernel module,

by default, MLB150 is compiled as module mxc_mlb150.ko.

So in console:

  1. Install module.
    insmod mxc_mlb150.ko
  2. Run test program. The –f parameter depends on the clock speed you selected in configuration tab.

./mxc_mlb150_test.out –b –f 256 –t ctrl

0 Kudos

1,041 Views
mingmingyuan
Contributor III

dear sir:

1,only insmod ko file,this function can‘t work.

we should add below code to board file

// yuanmm_mlb begin
imx6q_add_mlb150(&mx6_sabreauto_mlb150_data);
// yuanmm_mlb end

2,/dev/ctrl now can creat, but test is failed, output infomation as below than stop here

root@freescale /unit_tests$ ./mxc_mlb150_test.out  -b -f 256 -t ctrl

MLB device version: 0x03030003

MLB device address: 0xc0

=======================

ctrl tx/rx test start

Set fps to 256

0 Kudos

1,041 Views
mingmingyuan
Contributor III

dear sir:

1,only insmod ko file,this function can‘t work.

we should add below code to board file

// yuanmm_mlb begin
imx6q_add_mlb150(&mx6_sabreauto_mlb150_data);
// yuanmm_mlb end

2,/dev/ctrl now can creat, but test is failed, output infomation as below than stop here

root@freescale /unit_tests$ ./mxc_mlb150_test.out  -b -f 256 -t ctrl

MLB device version: 0x03030003

MLB device address: 0xc0

=======================

ctrl tx/rx test start

Set fps to 256

0 Kudos

1,041 Views
mingmingyuan
Contributor III

Hi fsl:

     any update?

thanks

0 Kudos