Skip to content

Commit 6eec1fd

Browse files
Merge pull request #112 from divadiow/tr6260
add TR6260 support
2 parents 55d2912 + 8d6ec04 commit 6eec1fd

File tree

9 files changed

+1508
-6
lines changed

9 files changed

+1508
-6
lines changed

BK7231Flasher/BK7231Flasher.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
44
<PropertyGroup>
@@ -75,6 +75,7 @@
7575
<Compile Include="Misc\BKFlashList.cs" />
7676
<Compile Include="Flashers\RTLZ2Flasher.cs" />
7777
<Compile Include="Flashers\BL602Flasher.cs" />
78+
<Compile Include="Flashers\TR6260Flasher.cs" />
7879
<Compile Include="Utils\CH341DEV.cs" />
7980
<Compile Include="Helpers\Colors.cs" />
8081
<Compile Include="Misc\ConfigBase.cs" />
@@ -209,6 +210,8 @@
209210
<EmbeddedResource Include="Floaders\BL602Floader.bin" />
210211
<EmbeddedResource Include="Floaders\BL602_Boot.bin" />
211212
<EmbeddedResource Include="Floaders\BL602_Dts.bin" />
213+
<EmbeddedResource Include="Floaders\TR6260_Boot.bin" />
214+
<EmbeddedResource Include="Floaders\TR6260_Partition.bin" />
212215
<EmbeddedResource Include="Floaders\BL702Floader.bin" />
213216
<EmbeddedResource Include="Floaders\ECR6600_Stub_Custom.bin" />
214217
<EmbeddedResource Include="Floaders\LN882H_RamCode.bin" />

BK7231Flasher/CommandLineRunner.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ static bool UsesSectorIndex(BKType chipType)
414414
case BKType.LN8825:
415415
case BKType.BL602:
416416
case BKType.BL702:
417+
case BKType.TR6260:
417418
return true;
418419
default:
419420
return false;
@@ -599,6 +600,8 @@ static BaseFlasher CreateFlasher(BKType chipType, CancellationToken ct)
599600
case BKType.BL602:
600601
case BKType.BL702:
601602
return new BL602Flasher(ct);
603+
case BKType.TR6260:
604+
return new TR6260Flasher(ct);
602605
case BKType.BekenSPI:
603606
return new SPIFlasher_Beken(ct);
604607
case BKType.GenericSPI:

0 commit comments

Comments
 (0)