MediaTek_Reference_for_WiFi_Driver_Efu_Buffermode

更新时间:2023-05-21 19:41:40 阅读: 评论:0

Document Revision History
Table of Contents
如何教育好孩子
Document Revision History (2)
Table of Contents (3)
1Introduction (4)
2Compile option & Related Commands (5)
3Common Ca (6)
4Efu/Buffermode QA (7)
1 Introduction
This document mainly describes how to configure WIFI chip with correct Efu and Buffermode parameters. (Some commands and common cas are introduced as example, which can be configured differently according to the actual situation)
Efu is the hardware that restore wifi parameters for RT309x ,RT339x and RT539x chip. The store
process could be implemented with two methods: one is to burn parameters to the Efu directly , which is obviously costly and unpractical as the Efu’s burn time limit; and the other method is to read from buffer, for which the parameter is transferred from RT30xxEEPROM.bin. This method is called “buffermode”. In condition that ur want to configure wifi parameter bad on the debugging result, if he/she choos Efu method, the configuration will be stored to hardware immediately after t, and if the “buffermode”method is chon, he/she will have to load the configuration to RT30xxEEPROM.bin and store the bin binary to the flash so as to make sure the correct configuration still exists after system reboot.
2 Compile option & Related Commands
Compile option in WiFi driver: RTMP_EFUSE_SUPPORT
Compile option configured in SDK menuconfig:
revid
1) TCSUPPORT_MTD_ENCHANCEMENT
2) TCSUPPORT_RESERVEAREA_BLOCK            support block 1, 2, 3, 4
heavy的比较级
Related Commands
a. iwpriv ra0 t efuFreeNumber=1
This command will calculate the number of the efu’s block. Tips: the number of writing effu will be limited, one efu has 45 blocks and there’re 16 bytes in each block. Every block can be write form 0 to 1 and for cas write from 1 to 0 will call another block, which means attention when writing effu.
b. iwpriv ra0 t efuDump=1
dump all contents in efu
c. iwpriv ra0 t efuLoadFromBin=/filepath
Transfer binary file(locates in /filepath) into efu
d. iwpriv ra0 t efuBufferModeWriteBack=1
Transfer buffer content into etc/RT30xxEEPROM.bin
e.iwpriv ra0 e2p 2=0103
jar of love什么意思Set EEPROM content 0x0002 with 0x0103
英汉互译f.iwpriv ra0 e2p 0
Read EEPROM content 0x0000
除此之外英文g.tcapi t WLan_Common EfuBufferMode 0/1
Set mode with efu(0) or buffermode(1), tips:  the tting will not effect after reboot until tcapi save. You can check current mode with “tcapi get WLan_Common EfuBufferMode”, 0 means effu and 1 means buffermode
Restore /etc/RT30xxEEPROM.bin into flash. Tips: the tting will not take effect until “tcapi commit WLan”
3 Common Ca
Generally,  the SDK relea t Buffer mode as default value and will illustrate if t efu. Y ou can also check current mode with “tcapi get WLan_Common EfuBufferMode”.  The following cas are targeted to buffer mode:
Ca1:Ca 1:efu is  empty and none wifi parameters yet, and want to restore keys into flash and take effect after system reboot.
Step1: power on, the CPE will load the default “etc/RT30xxEEPROM.bin” into memory since no wifi paramets found in flash yet.
Step2: RD can u ATE command to debug WiFi parameters in production test,  in that ca you can input value into buffer  using QAtool.  Remember to execute “brctl delif br0 ra0” and “ated –bbr0 –ira0 -u” to make the QAtool work fluently.
Step3: U “iwpriv ra0 t efuBufferModeWriteBack=1”to load the test pass parameters into “/etc/RT30xxEEPROM.bin”after production test
握紧
Step4:“tcapi t WLan_Common WriteBinT oFlash 1”and “tcapi commit WLan”to store /etc/RT30xxEEPROM.bin into rerve area of the flash.
Step5: System reboot, and the CPE will find binary file in flash and transmit it into /etc/RT30xxEEPROM.bin, then driver will load /etc/RT30xxEEPROM.bin since the tting is buffer mode. Eventually, the bin file stored in flash last time will take effect.
Ca2: CPE status: efu is empty and none wifi paramets stored in flash. Hope to restore debugging paramets into effu and u the wifi parameters in efu
take it to the head
Step1:Continue with step3 in Ca1: iwpriv ra0 t
efuLoadFromBin=/etc/RT30xxEEPROM.bin
Step2: tcapi t WLan_Common EfuBufferMode 0,tcapi save, system reboot
Ca3:CPE status: efu has been written while still want to debug and store wifi parameters again.上海达内
Step1:tcapi t WLan_Common EfuBufferMode 0,tcapi save,reboot
Step2: Write efu with e2p command
Ca 4: CPE status: efu has been written and none wifi driver in flash. Hope to debug and store wifi parameters into flash.
Step1:tcapi t WLan_Common EfuBufferMode 1,tcapi save, reboot
Step2: None wifi parameters found in flash and using default configuration of
attnRT30xxEEPRPOM.bin.
Step3:Continue with step2,step3,step4 in Ca 1

本文发布于:2023-05-21 19:41:40,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/90/117462.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:教育   英汉   好孩子   互译
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图