IMX6sx serial number and MAC address programming ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IMX6sx serial number and MAC address programming ?

跳至解决方案
1,979 次查看
robinsingh
Contributor III

Hi All,

we are making a product based on imx6sx and i have to implement serial number and Ethernet mac address programming for manufacturing.

I have a few questions, can somebody help me with answer or some pointers:

1) Does the IMX6sx chipset come with a pre-programmed serial number ? or do i have to program it ?

I did not find anything for writing the serial number, so i guess it will be pre-programmed. is my understanding correct?

      For reading I found the below function in u-boot at: arch/arm/cpu/armv7/mx6/soc.c

                void get_board_serial(struct tag_serialnr *serialnr); 

     its reading the serial number and then appending it to the cmdline args for passing to kernel.

     is this the only step required for reading or do i have to do any thing extra ? 

  

2) Ethernet MAC address programming: I have a partition on my target /device [ size 8MB] 

    =  /dev/block/mmcblk3p7,   As per  the Android user guide it says " To store MAC address files",

       shall i use this for saving Ethernet MAC address or it is for wifi MAC address  only

       do i need to fuse the ethernet MAC address ? which  approach  is better ?

3) I saw a file in /dev/block/mmcblk3p7 partition "/device/wifi/softmac"  ,

    can i create a similar file for the Ethernet MAC address and read from it ?

Thanks in advance

Robin

标签 (2)
0 项奖励
回复
1 解答
1,250 次查看
igorpadykov
NXP Employee
NXP Employee

Hi robin

1. yes i.MX6SX comes with a preprogrammed serial number, one can look at

Unique ID  Table 5-9. Fusemap Descriptions i.MX6SX Reference Manual (rev.0  2/2015)

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6SXRM.pdf

Mac address can be programmed to fuses MAC1,2_ADDR.

2.3. android saves in partitions some vendor data like wifi MAC, seems Ethernet

MAC address also can be saved. For details one can post this on

Developer Support | Android Developers

Best regards

igor

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

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

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,250 次查看
BiyongSUN
NXP Employee
NXP Employee

The drivers/char/fsl_otp.c populate node in /sys/fsl_otp as attribute

MAC0 and MAC1 are already there.

The serial number you need to add by yourself.

Untitled.png

0 项奖励
回复
1,251 次查看
igorpadykov
NXP Employee
NXP Employee

Hi robin

1. yes i.MX6SX comes with a preprogrammed serial number, one can look at

Unique ID  Table 5-9. Fusemap Descriptions i.MX6SX Reference Manual (rev.0  2/2015)

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6SXRM.pdf

Mac address can be programmed to fuses MAC1,2_ADDR.

2.3. android saves in partitions some vendor data like wifi MAC, seems Ethernet

MAC address also can be saved. For details one can post this on

Developer Support | Android Developers

Best regards

igor

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

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

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

0 项奖励
回复