Table of Contents
CFE
CFE (Common Firmware Environment) is a bootloader exclusively for Broadcom chips.
Overview
CFE is a bootloader developed by Broadcom for its chips.
Features:
- Exclusive to Broadcom chips
- Closed source
- Serial console command operation
- Supports network boot
- Common in some Netgear and ASUS models
Supported Devices
Common Brands
| Brand | Representative Models |
|---|---|
| Netgear | R7000, R6400, R6220, R7800, WNDR3700 |
| ASUS | RT-AC66U, RT-N66U, RT-AC87U |
| Linksys | WRT1900ACS, WRT1200AC |
| Buffalo | Some models |
Broadcom Chip Features
- BCM47xx: 802.11n era
- BCM53xx: 802.11ac era
- BCM675xx: WiFi 6 era
- BCM6756/BCM6765: WiFi 7 era
Entering CFE
Via Serial
- Connect TTL serial (115200 baud)
- Power off the router
- Hold C + Enter or Space bar
- Power on the router
- Wait until the CFE> prompt appears
Via Network
Some models support entering via Wake-on-LAN:
- telnet 192.168.1.1
- Enter username and password
- Enter command to enter CFE mode
CFE Commands
Common Commands
# View help help # View system info show devices show chips # View environment variables show env # Set environment variables setenv nvram key value commit
Boot Commands
# Boot from Flash boot # Boot from TFTP network flash -ctheader : flash0 boot
TFTP Boot
# Set IP setenv ipaddr 192.168.1.1 setenv netmask 255.255.255.0 setenv gatewayip 192.168.1.254 # TFTP load firmware flash -ctheader 192.168.1.100:firmware.chk flash0
NVRAM Operations
# View NVRAM nvram show # Set NVRAM nvram set lan_ipaddr=192.168.1.1 nvram commit # Clear NVRAM nvram erase reboot
TFTP Flash Firmware
Preparation
- Install TFTP server
- Place .chk firmware in TFTP directory
- Use ethernet cable to directly connect to router LAN port
- Set computer IP to 192.168.1.x
Flashing Steps
# At CFE> prompt # Set boot parameters setenv ipaddr 192.168.1.1 setenv netmask 255.255.255.0 setenv gatewayip 192.168.1.254 setenv serverip 192.168.1.100 # Flash firmware flash -ctheader 192.168.1.100:firmware.chk flash0 # Reboot reboot
Notes
- Use .chk file (not .bin)
- Wait for flashing to complete, do not power off
- Flashing takes about 3-5 minutes
NVRAM Repair
NVRAM Corruption Symptoms
- Cannot save settings
- Settings reset after reboot
- WiFi name/password lost
Repair Method
# In CFE nvram erase reboot # Or in Web recovery mode # Factory reset
NVRAM Backup
# Via Telnet/SSH telnet 192.168.1.1 # Username: admin # Password: admin # Backup NVRAM dd if=/dev/mtd/0 of=/tmp/nvram.bin # Export via SCP/SFTP
CFE vs Other Bootloaders
| Feature | CFE | U-Boot | Breed |
| βββ | ββ | βββ | ββ- |
| Compatible chips | Broadcom | Generic | Specific models |
| Open source | β | β | β |
| Web interface | β | β | β |
| Command style | Special | Standard | Simplified |
Common Issues
Cannot Enter CFE
- Confirm serial parameters are correct (115200 8N1)
- Try different key combinations (C/Enter/Space)
- Serial tool may need to be opened first
TFTP Flash Failed
- Confirm using .chk file
- Check network connection
- Confirm TFTP server is reachable
- Try a different TFTP client
NVRAM Lost
- CFE NVRAM is different from others
- Factory reset and reconfigure
- Some models need to reset region code
CFE Command Not Recognized
Different CFE versions have slightly different commands:
- Enter help to view available commands
- Some commands require uppercase
- Refer to the corresponding model's tutorial
Netgear Specific Tools
nmrpflash
Netgear recommends using nmrpflash for flashing:
# Linux/macOS sudo nmrpflash -i eth0 -f firmware.chk 192.168.1.1 # Windows nmrpflash.exe -i Ethernet -f firmware.chk 192.168.1.1
Web Recovery Mode
- Power off the router
- Hold Restore Factory Settings button
- Insert power cable
- Wait for all lights to light up simultaneously
- Access 192.168.1.1