This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CC3351:校准器:校准器无法在 OTP 中读取和写入 MAC

Guru**** 2874030 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/1636650/cc3351-calibrator-calibrator-can-not-read-and-write-mac-in-otp

器件型号: CC3351

我使用校准器在 OTP 中设置并获取 MAC、但失败。

驱动程序版本为 1.7.2.239、固件版本为 1.7.11.323。

以下为日志

 

Log-ti.txt 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Shi:

    我已将其分配给一位硬件专家来提供支持。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Dylan、感谢您的支持、软件专家 更适合支持此问题。 您能帮我们指定一位 软件专家吗?  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Shi、

    请尝试对“get_efuse"命令“命令使用以下语法:

    校准器 wlan0 cc33xx_plt get_efuse -mac_addr -wifi6_disable -rollback_protection_enable -country_code_restriction -country_code -vendor_key -vendor_key_usage

    例如、如果要读取在电子保险丝中设置的 MAC 地址:

    校准器 wlan0 plt POWER_MODE 开启

    校准器 wlan0 cc33xx_plt get_efuse -mac_addr

    只有在电子保险丝中已设置了某些内容时、get_efuse 命令才有效。 这意味着如果您没有在电子保险丝中设置 MAC 地址、get_efuse 命令将返回错误。 默认情况下、在电子保险丝中未设置 MAC 地址。

    要设置电子保险丝、应使用以下语法:

    此致、

    Jonathan  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Jonathan

    它 在 OTP 中包含 Mac、我使用“calibrator wlan0 cc33xx_plt get_efuse -mac_addr“。 这是测试日志。

    root@smm-m2d ~ # ip link show
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    2: bsh_dbus0: <NOARP,UP,LOWER_UP> mtu 253 qdisc pfifo_fast state UNKNOWN qlen 400
        link/[281]
    3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
        link/ether 4e:f5:b7:a2:37:3c brd ff:ff:ff:ff:ff:ff
    5: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
        link/ether 10:20:30:40:50:60 brd ff:ff:ff:ff:ff:ff
    root@smm-m2d ~ #
    root@smm-m2d ~ # calibrator  wlan0 plt power_mode on
    [   53.863655] wlcore: testmode cmd set plt mode
    [   53.868058] wlcore: PLT start
    [   53.871044] wlcore: cmd roles enabled: bitmap before: 0, ret=0
    [   53.877058] wlcore: cmd role enable, role type 16, addr = ff:ff:ff:ff:ff:ff
    [   53.884922] wlcore: CMD# 17, len=20
    [   53.888434] wlcore: complete role_id = 2
    [   53.894699] wlcore: CMD# 19, len=80
    [   53.898211] wlcore: cmd role start PLT. Role ID number: 2
    [   53.904889] wlcore: CMD# 32, len=16
    [   53.908395] wlcore: Success to send CMD_PLT_ENABLE
    [   53.913236] wlcore: PLT init Role Start succeed!, PLT roleID is: 2
    root@smm-m2d ~ # calibrator --debug wlan0 cc33xx_plt get_efuse -mac_addr
    [   65.248908] wlcore: testmode cmd test
    [   65.252782] wlcore: cmd test
    [   65.256247] wlcore: Response len 72, allocated buffer len 80
    [   65.262044] wlcore: CMD# 31, len=80
    [   65.265553] wlcore: testmode cmd: radio status=-24995
    -- Debug: Received Message:
    --------------------------   BEGIN NETLINK MESSAGE ---------------------------
      [NETLINK HEADER] 16 octets
        .nlmsg_len = 116
        .type = 21 <0x15>
        .flags = 0 <>
        .seq = 66
        .port = -1665138454
      [GENERIC NETLINK HEADER] 4 octets
        .cmd = 45
        .version = 1
        .unused = 0
      [PAYLOAD] 96 octets
        08 00 01 00 00 00 00 00 58 00 45 00 54 00 03 00 ........X.E.T...
        5c 5c 5c 5c 1f 00 50 00 1f 00 0e 00 d8 b7 60 45 \\\\..P.......`E
        ef ef ef ef ef ef ef ef ef ef ef ef ef ef ef ef ................
        ef ef ef ef ef ef ef 00 08 00 00 ef ef ef ef ef ................
        ef ef ef ef ef ef ef ef ef ef ef ef ef ef ef ef ................
        ef ef ef ef ef ef ef ef ef ef ef ef ef ef ef ef ................
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    ERROR: Invalid command
    -- Debug: Received Message:
    --------------------------   BEGIN NETLINK MESSAGE ---------------------------
      [NETLINK HEADER] 16 octets
        .nlmsg_len = 36
        .type = 2 <ERROR>
        .flags = 256 <ROOT>
        .seq = 66
        .port = -1665138454
      [ERRORMSG] 20 octets
        .error = 0 "No error information"
      [ORIGINAL MESSAGE] 16 octets
        .nlmsg_len = 16
        .type = 21 <0x15>
        .flags = 5 <REQUEST,ACK>
        .seq = 66
        .port = -1665138454
    ---------------------------  END NETLINK MESSAGE   ---------------------------
    root@smm-m2d ~ # calibrator wlan0 cc33xx_plt get_efuse -mac_addr
    [   71.772272] wlcore: testmode cmd test
    [   71.775979] wlcore: cmd test
    [   71.779455] wlcore: Response len 72, allocated buffer len 80
    [   71.785265] wlcore: CMD# 31, len=80
    [   71.788773] wlcore: testmode cmd: radio status=0
    ERROR: Invalid command

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Shi、

    为了使用 OTP 校准器命令、客户必须使用特定的固件。 此固件可在 tools/OTP_programming 文件夹中找到、并且需要临时安装到目标的/lib/firmware/ti-connectivity 文件夹。 该固件只能用于 OTP 编程目的。

    使用 get_efuse 或 set_efuse 命令时、正常固件不会返回错误。

    更改 OTP 编程固件并重试。

    驱动程序版本文档中记录了此信息:

     

    此致、

    Jonathan