Add bootloader support for CR660x and TR60x series routers

Add bootloader support for CR660x and TR60x series routers
Changes Made
Enhanced install_bl.py
Added support for CR6006, CR6008, CR6009, TR608, TR609 devices in the breed bootloader installation
Implemented device-specific bootloader file selection:
CR660x/TR60x series → pb-boot-cr660x.img
Existing devices (R3G, R3P, RM2100, RA71) → breed_r3g_eng.bin (unchanged)
Updated device compatibility validation to include the new models
Maintained full backward compatibility with existing functionality
Updated Documentation
Added TR608 and TR609 to the supported devices list in README.md
Enhanced bootloader installation documentation with specific file mappings
Added installation command reference and usage examples
Updated both Chinese and English documentation sections
Technical Implementation
The implementation follows the specified requirements:

Uses the correct MTD write command format: mtd write /tmp/pb-boot-cr660x.img Bootloader
Leverages the existing pb-boot-cr660x.img file (172KB u-boot legacy image)
Maintains the same installation workflow: python3 install_bl.py breed
Device Support Matrix
Device Series	Bootloader File	Status
R3G, R3P, RM2100, RA71	breed_r3g_eng.bin	 Existing
CR6606, CR6608, CR6609	pb-boot-cr660x.img	 New
TR608, TR609	pb-boot-cr660x.img	 New
This enhancement expands bootloader support to 5 additional router models while maintaining compatibility with all existing functionality.
pull/116/head
longzheng268 1 month ago committed by GitHub
commit 901b256726
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -67,6 +67,10 @@
- **CR6008** (mi-router-cr6608) - 小米企业路由器 CR6608
- **CR6009** (mi-router-cr6609) - 小米企业路由器 CR6609
#### TR系列
- **TR608** - 小米路由器 TR608
- **TR609** - 小米路由器 TR609
#### 其他型号
- **P01** - 小米随身路由器
- **D01** - 小米路由器 HD
@ -384,8 +388,9 @@ Select language [1-English, 2-中文, 3-Русский]:
- 支持Web界面固件刷写
- 不怕刷坏(变砖保护)
- **支持型号**:
- R3G: `breed_r3g_eng.bin`
- 其他型号需要对应的Breed固件
- R3G, R3P, RM2100, RA71: `breed_r3g_eng.bin`
- CR6606, CR6608, CR6609, TR608, TR609: `pb-boot-cr660x.img`
- **安装命令**: `python3 install_bl.py breed`
#### 8. 测试功能
开发和调试用途的测试功能。
@ -698,7 +703,7 @@ git push origin feature/new-feature
- **Permanent SSH access** with customizable credentials
- **Full firmware backup** and selective partition backup
- **Custom firmware installation** including OpenWrt support
- **Bootloader replacement** (Breed support)
- **Bootloader replacement** (Breed support for R3G/R3P/RM2100/RA71/CR660x/TR60x series)
- **Multi-language support** (EN/RU/ZH language packs with Chinese menu interface)
- **Advanced features** like password change, log reading, feature unlocking

@ -26,9 +26,12 @@ fn_remote = '/tmp/bootloader.bin'
fn_local = None
if bl_name == 'breed':
if dn != 'R3G' and dn != 'R3P' and dn != 'RM2100':
if dn != 'R3G' and dn != 'R3P' and dn != 'RM2100' and dn != 'RA71' and dn != 'CR6006' and dn != 'CR6008' and dn != 'CR6009' and dn != 'TR609' and dn !='TR608':
die("Breed bootloader cannot be installed on this device!")
fn_local = fn_dir + 'breed_r3g_eng.bin'
if dn in ['CR6006', 'CR6008', 'CR6009', 'TR609', 'TR608']:
fn_local = fn_dir + 'pb-boot-cr660x.img'
else:
fn_local = fn_dir + 'breed_r3g_eng.bin'
if bl_name == 'uboot':
fn_local = fn_dir + 'uboot_{}.bin'.format(gw.device_name)

Loading…
Cancel
Save