首頁 收藏 QQ群
 網(wǎng)站導(dǎo)航

ZNDS智能電視網(wǎng) 推薦當(dāng)貝市場

TV應(yīng)用下載 / 資源分享區(qū)

軟件下載 | 游戲 | 討論 | 電視計算器

綜合交流 / 評測 / 活動區(qū)

交流區(qū) | 測硬件 | 網(wǎng)站活動 | Z幣中心

新手入門 / 進階 / 社區(qū)互助

新手 | 你問我答 | 免費刷機救磚 | ROM固件

查看: 26417|回復(fù): 6
上一主題 下一主題
[分享]

康佳LED37R5200PDF電視精簡升級 晨星Mstar與mstar-bin-tool使用指南

[復(fù)制鏈接]
跳轉(zhuǎn)到指定樓層
樓主
發(fā)表于 2024-2-26 10:25 | 只看該作者 |只看大圖 回帖獎勵 |倒序瀏覽 |閱讀模式 | 來自上海
為了提升康佳LED37R5200PDF電視的性能和用戶體驗,許多用戶選擇進行系統(tǒng)的精簡和升級。在這一過程中,晨星Mstar芯片及其配套工具mstar-bin-tool發(fā)揮著重要作用。通過使用這些工具,用戶可以便捷地對電視系統(tǒng)進行定制和優(yōu)化,去除冗余功能,提高系統(tǒng)響應(yīng)速度,甚至添加一些新功能。

1、配 置:

電視型號:LED37R5200PDF,6a800c
升級包版本:v1.0.15
主芯片:Mstar, Cortex A9
雖然電視比較舊,但原理相通。

2、先解包MstarUpgrade.bin:

先下載解包工具mstar-bin-tool
命令:
unpack.py MstarUpgrade.bin

python unpack.py MstarUpgrade.bin

  1. C:\tmp\mstar-bin-tool-master>python unpack.py MstarUpgrade.bin
  2. [i] Analizing header ...
  3. [i] Saving header script to unpacked\~header_script ...
  4. [i] Parsing script ...
  5. [i] Partition: recovery Offset: 4000    Size 5d0fec (5.82 MB) -> unpacked\recovery.img
  6. [i] Partition: boot     Offset: a04000  Size 3834a2 (3.51 MB) -> unpacked\boot.img
  7. [i] Partition: system   Offset: e04000  Size 6400000 (100.0 MB) append to unpacked\system.img
  8. [i] Partition: system   Offset: 7204000 Size 6400000 (100.0 MB) append to unpacked\system.img
  9. [i] Partition: system   Offset: d604000 Size 6400000 (100.0 MB) append to unpacked\system.img
  10. [i] Partition: system   Offset: 13a04000        Size 6400000 (100.0 MB) append to unpacked\system.img
  11. [i] Partition: userdata Offset: 19e04000        Size 3aa082 (3.66 MB) -> unpacked\userdata.lzo
  12. [i]     Unpacking LZO (Please be patient) unpacked\userdata.lzo -> unpacked\userdata.img
  13. [i] Partition: cache    Offset: 1a1b4000        Size 13467b (1.2 MB) -> unpacked\cache.lzo
  14. [i]     Unpacking LZO (Please be patient) unpacked\cache.lzo -> unpacked\cache.img
  15. [i] Partition: tvservice        Offset: 1a2f4000        Size 5000000 (80.0 MB) -> unpacked\tvservice.img
  16. [i] Partition: tvcustomer       Offset: 1f2f4000        Size 1000000 (16.0 MB) -> unpacked\tvcustomer.img
  17. [i] Partition: tvdatabase       Offset: 202f4000        Size 800000 (8.0 MB) -> unpacked\tvdatabase.img
  18. [i] Partition: customercfg      Offset: 20af4000        Size 800000 (8.0 MB) -> unpacked\customercfg.img
  19. [i] Parsing setenv MIU0_GROUP_SELMIU -> 0000:0000:0000:0000
  20. [i] Parsing setenv MIU1_GROUP_SELMIU -> 4E00:0000:0000:0100
  21. [i] Parsing setenv MS_MEM -> LX_MEM=0x9600000 EMAC_MEM=0x100000 DRAM_LEN=0x20000000 LX_MEM2=0x50E00000,0xD900000 LX_MEM3=0xB0000000,0x0000000
  22. [i] Parsing setenv ROOT -> root=/dev/ram rw rootwait
  23. [i] Parsing setenv bootargs -> console=ttyS0,115200 androidboot.console=ttyS0 $(ROOT) init=/init $(MS_MEM)
  24. [i] Parsing setenv MstarUpgrade_complete -> 1
  25. [i] Parsing setenv upgrade_mode -> 0
  26. [i] Parsing setenv db_table -> 0
  27. [i] Parsing setenv verify -> n
  28. [i] Parsing setenv filesize -> 3834a2
  29. [i] Parsing setenv bootcmd -> mmc read.p 0x45000000 boot 0x400000\; bootm 0x45000000
  30. [i] Parsing setenv MstarUpgrade_complete -> 1
復(fù)制代碼

3、解包后的文件:

康佳LED37R5200PDF電視精簡升級 晨星Mstar與mstar-bin-tool使用指南

4、頭部腳本(header_script):

里面有升級的配置文件和一系列的mmc命令
自動讀取、執(zhí)行這些命令完成升級
(命令、原理在另一文章中說明 )

  1. mmc slc 0 1
  2. mmc rmgpt
  3. mmc create misc 0x00080000
  4. mmc create recovery 0x00A00000
  5. mmc create boot 0x00400000
  6. mmc create system 0x019000000
  7. mmc create userdata 0x32000000
  8. mmc create cache 0x12C00000
  9. mmc create tvservice 0x05000000
  10. mmc create tvcustomer 0x01000000
  11. mmc create tvdatabase 0x00800000
  12. mmc create customercfg 0x00800000
  13. filepartload 50000000 MstarUpgrade.bin 4000 5d0fec
  14. mmc erase.p recovery
  15. mmc write.p 50000000 recovery 5d0fec 1
  16. filepartload 50000000 MstarUpgrade.bin a04000 3834a2
  17. mmc erase.p boot
  18. mmc write.p 50000000 boot 3834a2 1
  19. mmc erase.p system
  20. filepartload 50000000 MstarUpgrade.bin e04000 6400000
  21. mmc write.p.continue 50000000 system 0 6400000 1
  22. filepartload 50000000 MstarUpgrade.bin 7204000 6400000
  23. mmc write.p.continue 50000000 system 32000 6400000 1
  24. filepartload 50000000 MstarUpgrade.bin d604000 6400000
  25. mmc write.p.continue 50000000 system 64000 6400000 1
  26. filepartload 50000000 MstarUpgrade.bin 13a04000 6400000
  27. mmc write.p.continue 50000000 system 96000 6400000 1
  28. filepartload 50000000 MstarUpgrade.bin 19e04000 3aa082
  29. mmc erase.p userdata
  30. mmc unlzo 50000000 3aa082 userdata 1
  31. filepartload 50000000 MstarUpgrade.bin 1a1b4000 13467b
  32. mmc erase.p cache
  33. mmc unlzo 50000000 13467b cache 1
  34. filepartload 50000000 MstarUpgrade.bin 1a2f4000 5000000
  35. mmc erase.p tvservice
  36. mmc write.p 50000000 tvservice 5000000 1
  37. filepartload 50000000 MstarUpgrade.bin 1f2f4000 1000000
  38. mmc erase.p tvcustomer
  39. mmc write.p 50000000 tvcustomer 1000000 1
  40. filepartload 50000000 MstarUpgrade.bin 202f4000 800000
  41. mmc erase.p tvdatabase
  42. mmc write.p 50000000 tvdatabase 800000 1
  43. filepartload 50000000 MstarUpgrade.bin 20af4000 800000
  44. mmc erase.p customercfg
  45. mmc write.p 50000000 customercfg 800000 1
  46. setenv MIU0_GROUP_SELMIU 0000:0000:0000:0000
  47. setenv MIU1_GROUP_SELMIU 4E00:0000:0000:0100
  48. setenv MS_MEM LX_MEM=0x9600000 EMAC_MEM=0x100000 DRAM_LEN=0x20000000 LX_MEM2=0x50E00000,0xD900000 LX_MEM3=0xB0000000,0x0000000
  49. setenv ROOT root=/dev/ram rw rootwait
  50. setenv bootargs console=ttyS0,115200 androidboot.console=ttyS0 $(ROOT) init=/init $(MS_MEM)
  51. setenv MstarUpgrade_complete 1
  52. setenv upgrade_mode 0
  53. setenv db_table 0
  54. setenv verify n
  55. saveenv
  56. setenv filesize 3834a2
  57. setenv bootcmd mmc read.p 0x45000000 boot 0x400000\; bootm 0x45000000
  58. printenv
  59. setenv MstarUpgrade_complete 1
  60. saveenv
  61. printenv
  62. % <-this is end of file symbol
復(fù)制代碼

5、這里主要對system.img進行修改、優(yōu)化:

方法一:
用ROM助手打開system.img:
ROM編輯 - APK精簡
這里列舉出了系統(tǒng)內(nèi)的所有app
勾選需要刪除的

康佳LED37R5200PDF電視精簡升級 晨星Mstar與mstar-bin-tool使用指南

6、編輯權(quán)限:
1、在此可以修改文件或文件夾屬性
2、添加新的文件或文件夾
此時可以將root用到的su(system/bin), superuser.apk(system/app)等文件放入相應(yīng)的位置

康佳LED37R5200PDF電視精簡升級 晨星Mstar與mstar-bin-tool使用指南

點擊“開始封裝” :
自動產(chǎn)生一個新的system.img

康佳LED37R5200PDF電視精簡升級 晨星Mstar與mstar-bin-tool使用指南

如果是增加app時需要注意system分區(qū)的剩余空間,不能超出:

康佳LED37R5200PDF電視精簡升級 晨星Mstar與mstar-bin-tool使用指南

方法二:
在linux系統(tǒng)(如ubuntu)中掛載后修改
命令:sudo mount -rw -t ext4 system.img sys
  1. biren@ubuntu:~/downloads/new$ mkdir -p sys
  2. biren@ubuntu:~/downloads/new$ sudo mount -rw -t ext4 system.img sys
復(fù)制代碼

查看system.img內(nèi)容:

  1. biren@ubuntu:~/downloads/new/sys$ ll
  2. total 60
  3. drwxr-xr-x 13 root  root  4096 Jan  1  1970 ./
  4. drwxrwxr-x  4 biren biren 4096 Jun  9 20:41 ../
  5. drwxr-xr-x  2 root  root  4096 Dec 16  2012 app/
  6. drwxr-xr-x  2 root   2000 4096 Dec 16  2012 bin/
  7. -rw-r--r--  1 root  root  1979 Dec 16  2012 build.prop
  8. drwxr-xr-x  9 root  root  4096 Dec 16  2012 etc/
  9. drwxr-xr-x  2 root  root  4096 Dec 16  2012 fonts/
  10. drwxr-xr-x  2 root  root  4096 Dec 16  2012 framework/
  11. drwxr-xr-x  8 root  root  8192 Dec 16  2012 lib/
  12. drwxr-xr-x  3 root  root  4096 Dec 16  2012 media/
  13. drwxr-xr-x  3 root  root  4096 Dec 16  2012 tts/
  14. drwxr-xr-x  8 root  root  4096 Dec 16  2012 usr/
  15. drwxr-xr-x  3 root   2000 4096 Dec 16  2012 vendor/
  16. drwxr-xr-x  2 root   2000 4096 Dec 16  2012 xbin/
復(fù)制代碼

修改。。。。。。
退出掛載:

biren@ubuntu:~/downloads/new$ sudo umount sys

用新的system.img替換MstarUpgrade.bin中原來的位置:
查看頭腳本(Header_script):
知道system.img在MstarUpgrade.bin的位置從e04000(含)到19e04000(不含)

康佳LED37R5200PDF電視精簡升級 晨星Mstar與mstar-bin-tool使用指南

用WinHex分別打開新的system.img及原MstarUpgrade.bin :
復(fù)制system.img所有二進制數(shù)據(jù):

康佳LED37R5200PDF電視精簡升級 晨星Mstar與mstar-bin-tool使用指南

光標定位到MstarUpgrade.bin的e04000地址處
編輯 - 剪貼板數(shù)據(jù) - 寫入

康佳LED37R5200PDF電視精簡升級 晨星Mstar與mstar-bin-tool使用指南

康佳LED37R5200PDF電視精簡升級 晨星Mstar與mstar-bin-tool使用指南

保存數(shù)據(jù)。

更新到電視:
將MstarUpgrade.bin存入小于8G的U盤(fat32)根目錄內(nèi)
按住控制器上的開關(guān)機鍵不放
打開電視上的電源
等電源指示燈一閃一閃表示正在寫入數(shù)據(jù)
。。。
寫完后自動重啟。



相關(guān)閱讀:
小米電視機如何進入開發(fā)者模式 小米盒子怎么打開adb模式
電視屏幕局部發(fā)黑是什么原因 2024電視屏幕故障怎么修
利用MediaPlayer在IPTV機頂盒上播放RTSP協(xié)議視頻的方法與技巧
點讀筆電視投屏怎么弄 《易讀寶點讀TV版》點讀筆專用程序



上一篇:求LED42F3700NF 物料號99012347刷機教程?
下一篇:kktv 32k變磚記
沙發(fā)
發(fā)表于 2024-2-26 10:29 | 只看該作者 | 來自廣東
來看看
回復(fù) 支持 反對

使用道具 舉報

板凳
發(fā)表于 2024-2-27 13:49 | 只看該作者 | 來自云南
大佬您好,我過年中手賤將家中電視kktvicon 32k(35022447 )恢復(fù)出廠設(shè)置中電源插頭脫出,導(dǎo)致三無黑屏,用ttl-usb讀打印口信息如下圖能用這個方法救嗎?不知emmc是否正常,
回復(fù) 支持 反對

使用道具 舉報

地板
發(fā)表于 2024-4-20 09:23 | 只看該作者 | 來自河南
前來學(xué)習(xí)一下子
回復(fù) 支持 反對

使用道具 舉報

5#
發(fā)表于 2024-4-20 09:24 | 只看該作者 | 來自河南
沒有自動簽名的什么工具嗎
回復(fù) 支持 反對

使用道具 舉報

6#
發(fā)表于 2024-6-7 16:24 | 只看該作者 | 來自福建
F:\BaiduNetdiskDownload\晨星解包mstar-tools-master\mstar-tools-master>python unpack.py MstarUpgrade_ANP.bin
[i] Analizing header ...
[i] Saving header script to unpacked\~header_script ...
[i] Parsing script ...
[i] Partition: boot     Offset: 0x4000  Size 0x1800000 (24.0 MB) -> unpacked\boot.img
[i] Partition: system   Offset: 0x1805000       Size 0x92D0944 (146.81 MB) -> unpacked\system_sparse.0
[i] Partition: system   Offset: 0xAAD6000       Size 0x94BB3A0 (148.73 MB) -> unpacked\system_sparse.1
[i] Partition: system   Offset: 0x13F92000      Size 0x960011C (150.0 MB) -> unpacked\system_sparse.2
[i] Partition: system   Offset: 0x1D593000      Size 0x94FF598 (149.0 MB) -> unpacked\system_sparse.3
[i] Partition: system   Offset: 0x26A93000      Size 0x8A615EC (138.38 MB) -> unpacked\system_sparse.4
[i] Partition: system   Offset: 0x2F4F5000      Size 0x865B250 (134.36 MB) -> unpacked\system_sparse.5
[i] Partition: system   Offset: 0x37B51000      Size 0x5AF12A4 (90.94 MB) -> unpacked\system_sparse.6
[i] Partition: vendor   Offset: 0x3D643000      Size 0x525F404 (82.37 MB) -> unpacked\vendor_sparse.0
[i] Partition: vbmeta   Offset: 0x428A3000      Size 0x20000 (128.0 KB) -> unpacked\vbmeta.img
[i] Partition: dtb      Offset: 0x428C4000      Size 0x100000 (1.0 MB) -> unpacked\dtb.img
[i] Partition: dtbo     Offset: 0x429C5000      Size 0x800000 (8.0 MB) -> unpacked\dtbo.img
[i] Partition: tvservice        Offset: 0x431C6000      Size 0x3600000 (54.0 MB) -> unpacked\tvservice.img
[i] Partition: tvconfig Offset: 0x467C7000      Size 0x1000000 (16.0 MB) -> unpacked\tvconfig.img
[i] Parsing setenv devicestate -> unlock
[i] Parsing setenv MstarUpgrade_complete -> 1
[i] Parsing setenv sync_mmap -> 1
[i] Parsing setenv db_table -> 0
[i] Sparse: converting system_sparse.* to system.img
Invalid sparse file format at unknown block FFFF at 40555
Invalid sparse file format at unknown block FFFF at 40556
Invalid sparse file format at unknown block FFFF at 40558
Invalid sparse file format at unknown block FFFF at 40559
Invalid sparse file format at unknown block FFFF at 40560
Invalid sparse file format at unknown block FFFF at 40561
Invalid sparse file format at unknown block FFFF at 40562
Invalid sparse file format at unknown block FFFF at 40564
Invalid sparse file format at unknown block FFFF at 40565
Invalid sparse file format at unknown block FFFF at 40566
Invalid sparse file format at unknown block FFFF at 40567
Invalid sparse file format at unknown block FFFF at 40568
Invalid sparse file format at unknown block FFFF at 40570
Invalid sparse file format at unknown block FFFF at 40571
Invalid sparse file format at unknown block FFFF at 40572
Invalid sparse file format at unknown block FFFF at 40573
Invalid sparse file format at unknown block FFFF at 40574
Invalid sparse file format at unknown block FFFF at 40576
Invalid sparse file format at unknown block FFFF at 40577
Invalid sparse file format at unknown block FFFF at 40578
Invalid sparse file format at unknown block FFFF at 40579
Invalid sparse file format at unknown block FFFF at 40580
Invalid sparse file format at unknown block FFFF at 40582
Invalid sparse file format at unknown block FFFF at 40583
Invalid sparse file format at unknown block FFFF at 40584
Invalid sparse file format at unknown block FFFF at 40585
Invalid sparse file format at unknown block FFFF at 40586
Invalid sparse file format at unknown block FFFF at 40588
Invalid sparse file format at unknown block FFFF at 40589
Invalid sparse file format at unknown block FFFF at 40590
Invalid sparse file format at unknown block FFFF at 40591
Invalid sparse file format at unknown block FFFF at 40592
Invalid sparse file format at unknown block FFFF at 40594
Invalid sparse file format at unknown block FFFF at 40595
Invalid sparse file format at unknown block FFFF at 40596
Invalid sparse file format at unknown block FFFF at 40597
Invalid sparse file format at unknown block FFFF at 40598
Invalid sparse file format at unknown block FFFF at 40600
Invalid sparse file format at unknown block FFFF at 40601
Invalid sparse file format at unknown block FFFF at 40602
Invalid sparse file format at unknown block FFFF at 40603
Invalid sparse file format at unknown block FFFF at 40604
Invalid sparse file format at unknown block FFFF at 40606
Invalid sparse file format at unknown block 0002 at 40607
Failed to read sparse file
[i] Sparse: converting vendor_sparse.* to vendor.img
Invalid sparse file format at unknown block FFFF at 6558
Invalid sparse file format at unknown block FFFF at 6560
Invalid sparse file format at unknown block FFFF at 6561
Invalid sparse file format at unknown block FFFF at 6562
Invalid sparse file format at unknown block FFFF at 6563
Invalid sparse file format at unknown block FFFF at 6564
Invalid sparse file format at unknown block FFFF at 6566
Invalid sparse file format at unknown block FFFF at 6567
Invalid sparse file format at unknown block FFFF at 6568
Invalid sparse file format at unknown block FFFF at 6569
Invalid sparse file format at unknown block FFFF at 6570
Invalid sparse file format at unknown block FFFF at 6572
Invalid sparse file format at unknown block FFFF at 6573
Invalid sparse file format at unknown block FFFF at 6574
Invalid sparse file format at unknown block FFFF at 6575
Invalid sparse file format at unknown block FFFF at 6576
Invalid sparse file format at unknown block FFFF at 6578
Invalid sparse file format at unknown block FFFF at 6579
Invalid sparse file format at unknown block FFFF at 6580
Invalid sparse file format at unknown block FFFF at 6581
Invalid sparse file format at unknown block FFFF at 6582
Invalid sparse file format at unknown block FFFF at 6584
Invalid sparse file format at unknown block FFFF at 6585
Invalid sparse file format at unknown block FFFF at 6586
Invalid sparse file format at unknown block FFFF at 6587
Invalid sparse file format at unknown block FFFF at 6588
Invalid sparse file format at unknown block FFFF at 6590
Invalid sparse file format at unknown block FFFF at 6591
Invalid sparse file format at unknown block FFFF at 6592
Invalid sparse file format at unknown block FFFF at 6593
Invalid sparse file format at unknown block FFFF at 6594
Invalid sparse file format at unknown block FFFF at 6596
Invalid sparse file format at unknown block FFFF at 6597
Invalid sparse file format at unknown block FFFF at 6598
Failed to read sparse file
[i] Done.
回復(fù) 支持 反對

使用道具 舉報

7#
發(fā)表于 2024-6-7 16:30 | 只看該作者 | 來自福建
我操作了,不能解包system.img和vendor.img,提示“Failed to read sparse file”
回復(fù) 支持 反對

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

Archiver|新帖|標簽|軟件|Sitemap|ZNDS智能電視網(wǎng) ( 蘇ICP備2023012627號 )

網(wǎng)絡(luò)信息服務(wù)信用承諾書 | 增值電信業(yè)務(wù)經(jīng)營許可證:蘇B2-20221768 丨 蘇公網(wǎng)安備 32011402011373號

GMT+8, 2024-11-7 14:42 , Processed in 0.068557 second(s), 14 queries , Redis On.

Powered by Discuz!

監(jiān)督舉報:report#znds.com (請將#替換為@)

© 2007-2024 ZNDS.Com

快速回復(fù) 返回頂部 返回列表