Closed dahai2626 closed 5 years ago
I unpacked a sharp tv BIN file. I want to update systimg.img add root. How do I modify config file for it? ~header_script
setenv limite_upgrade allow
mmc slc 0 1 mmc rmgpt mmc create misc 0x00080000 mmc create factory 0x0C800000 mmc create recovery 0x01900000 mmc create boot 0x01400000 mmc create optee 0x00600000 mmc create armfw 0x00010000 mmc create RTPM 0x00040000 mmc create dtb 0x00100000 mmc create tvservice 0x0A000000 mmc create tvconfig 0x05000000 mmc create tvdatabase 0x00F00000 mmc create tvcustomer 0x05000000 mmc create system 0x51400000 mmc create cache 0x40000000 mmc create userdata 0x2E0000000
mmc erase.p factory filepartload 0x20200000 $(UpgradeImage) 0x4000 0xaffab mmc unlzo 0x20200000 0xAFFAB factory 1 filepartload 0x20200000 $(UpgradeImage) 0xb4000 0x3a9b7 mmc unlzo.cont 0x20200000 0x3A9B7 factory 1
filepartload 0x20200000 $(UpgradeImage) 0xef000 0x13800 mmc write.boot 1 0x20200000 0 0x13800 filepartload 0x20200000 $(UpgradeImage) 0x103000 0x1bac00 mmc write.p 0x20200000 MBOOT 0x1BAC00
filepartload 0x20200000 $(UpgradeImage) 0x2be000 0x11f1b09 mmc erase.p misc mmc erase.p recovery mmc write.p 0x20200000 recovery 0x11F1B09 1 setenv recoverycmd mmc read.p 0x23000000 dtb 0x00100000\; mmc read.p 0x24D00000 recovery 0x01900000\; bootm 0x24D00000 saveenv
filepartload 0x20200000 $(UpgradeImage) 0x14b0000 0xe15d43 mmc erase.p boot mmc write.p 0x20200000 boot 0xE15D43 1 setenv bootcmd mmc read.p 0x23000000 dtb 0x00100000\; mmc read.p 0x24D00000 boot 0x01400000\; bootm 0x24D00000 saveenv
filepartload 0x20200000 $(UpgradeImage) 0x22c6000 0x18ded0 mmc erase.p optee mmc write.p 0x20200000 optee 0x18DED0
filepartload 0x20200000 $(UpgradeImage) 0x2454000 0xa270 mmc erase.p armfw mmc write.p 0x20200000 armfw 0xA270
filepartload 0x20200000 $(UpgradeImage) 0x245f000 0x10000 mmc erase.p RTPM mmc write.p 0x20200000 RTPM 0x10000 1
filepartload 0x20200000 $(UpgradeImage) 0x246f000 0xc7e mmc erase.p dtb mmc write.p 0x20200000 dtb 0xC7E 1
filepartload 0x20200000 $(UpgradeImage) 0x2470000 0x1dcc6db mmc erase.p tvservice mmc unlzo 0x20200000 0x1DCC6DB tvservice 1
filepartload 0x20200000 $(UpgradeImage) 0x423d000 0x330109 mmc erase.p tvconfig mmc unlzo 0x20200000 0x330109 tvconfig 1
filepartload 0x20200000 $(UpgradeImage) 0x456e000 0xf00000 mmc erase.p tvdatabase mmc write.p 0x20200000 tvdatabase 0xF00000 1
filepartload 0x20200000 $(UpgradeImage) 0x546e000 0x2aefc9 mmc erase.p tvcustomer mmc unlzo 0x20200000 0x2AEFC9 tvcustomer 1
mmc erase.p system filepartload 0x20200000 $(UpgradeImage) 0x571d000 0x4a945ed mmc unlzo 0x20200000 0x4A945ED system 1 filepartload 0x20200000 $(UpgradeImage) 0xa1b2000 0x7948904 mmc unlzo.cont 0x20200000 0x7948904 system 1 filepartload 0x20200000 $(UpgradeImage) 0x11afb000 0x6c11d37 mmc unlzo.cont 0x20200000 0x6C11D37 system 1 filepartload 0x20200000 $(UpgradeImage) 0x1870d000 0x6220fa6 mmc unlzo.cont 0x20200000 0x6220FA6 system 1 filepartload 0x20200000 $(UpgradeImage) 0x1e92e000 0x542b03c mmc unlzo.cont 0x20200000 0x542B03C system 1 filepartload 0x20200000 $(UpgradeImage) 0x23d5a000 0x565993d mmc unlzo.cont 0x20200000 0x565993D system 1 filepartload 0x20200000 $(UpgradeImage) 0x293b4000 0x5afadd2 mmc unlzo.cont 0x20200000 0x5AFADD2 system 1 filepartload 0x20200000 $(UpgradeImage) 0x2eeaf000 0x29b3027 mmc unlzo.cont 0x20200000 0x29B3027 system 1 filepartload 0x20200000 $(UpgradeImage) 0x31863000 0x75336 mmc unlzo.cont 0x20200000 0x75336 system 1
filepartload 0x20200000 $(UpgradeImage) 0x318d9000 0x4b07a2 mmc erase.p cache mmc unlzo 0x20200000 0x4B07A2 cache 1
filepartload 0x20200000 $(UpgradeImage) 0x31d8a000 0x35f0182 mmc erase.p userdata mmc unlzo 0x20200000 0x35F0182 userdata 1
setenv power_key 0x1C setenv ir_header_code0 0x00 setenv ir_header_code1 0xdf setenv bootargs console saveenv setenv bootargs console=ttyS0,115200 androidboot.console=ttyS0 root=/dev/ram rw rootwait init=/init CORE_DUMP_PATH=/data/core_dump.%%p.gz KDebug=1 delaylogo=true androidboot.selinux=permissive security=selinux SDIO_CONFIG=1 tee_mode=optee str_ignore_wakelock loglevel=0 setenv bootlogo_gopidx 2 setenv bootlogo_buffer E_MMAP_ID_BOOTLOGO_BUFFER setenv first_upgrade_factory 0 setenv str_crc 2 setenv music 0 setenv db_table 0 setenv verify n setenv WDT_ENABLE 1 setenv WDT_TUMEOUT 20 setenv sync_mmap 1 saveenv setenv CtvUpgrade_complete 1 setenv sync_mmap 1 setenv db_table 0 setenv u16CurPWMvalue N setenv first_setup 1 setenv pre_modelname setenv video_service IQIYI setenv factory_burningmode 0 setenv dc_poweroff 0 saveenv printenv mmc erase.boot 2 % <- this is end of script symbol
bin file:https://cs.sharp.cn/cloud/public.php?service=files&t=8079a72c16417430e739219d1e4510d0&download add SuperSU.apk system.img:https://drive.google.com/open?id=1FVBFW4abR8KnOnbneQ1F9S5iUcV080l7
Thank you !
I unpacked a sharp tv BIN file. I want to update systimg.img add root. How do I modify config file for it? ~header_script
-------------USB Upgrade Bin Info----------------
Device : cv6a648_base
Build PATH : /home/niu_lj/fxc648
Build TIME : 2017-12-27 17:44:09
setenv limite_upgrade allow
File Partition: set_partition
mmc slc 0 1 mmc rmgpt mmc create misc 0x00080000 mmc create factory 0x0C800000 mmc create recovery 0x01900000 mmc create boot 0x01400000 mmc create optee 0x00600000 mmc create armfw 0x00010000 mmc create RTPM 0x00040000 mmc create dtb 0x00100000 mmc create tvservice 0x0A000000 mmc create tvconfig 0x05000000 mmc create tvdatabase 0x00F00000 mmc create tvcustomer 0x05000000 mmc create system 0x51400000 mmc create cache 0x40000000 mmc create userdata 0x2E0000000
File Partition: factory
mmc erase.p factory filepartload 0x20200000 $(UpgradeImage) 0x4000 0xaffab mmc unlzo 0x20200000 0xAFFAB factory 1 filepartload 0x20200000 $(UpgradeImage) 0xb4000 0x3a9b7 mmc unlzo.cont 0x20200000 0x3A9B7 factory 1
File Partition: mboot
filepartload 0x20200000 $(UpgradeImage) 0xef000 0x13800 mmc write.boot 1 0x20200000 0 0x13800 filepartload 0x20200000 $(UpgradeImage) 0x103000 0x1bac00 mmc write.p 0x20200000 MBOOT 0x1BAC00
File Partition: recovery
filepartload 0x20200000 $(UpgradeImage) 0x2be000 0x11f1b09 mmc erase.p misc mmc erase.p recovery mmc write.p 0x20200000 recovery 0x11F1B09 1 setenv recoverycmd mmc read.p 0x23000000 dtb 0x00100000\; mmc read.p 0x24D00000 recovery 0x01900000\; bootm 0x24D00000 saveenv
File Partition: boot
filepartload 0x20200000 $(UpgradeImage) 0x14b0000 0xe15d43 mmc erase.p boot mmc write.p 0x20200000 boot 0xE15D43 1 setenv bootcmd mmc read.p 0x23000000 dtb 0x00100000\; mmc read.p 0x24D00000 boot 0x01400000\; bootm 0x24D00000 saveenv
File Partition: optee
filepartload 0x20200000 $(UpgradeImage) 0x22c6000 0x18ded0 mmc erase.p optee mmc write.p 0x20200000 optee 0x18DED0
File Partition: armfw
filepartload 0x20200000 $(UpgradeImage) 0x2454000 0xa270 mmc erase.p armfw mmc write.p 0x20200000 armfw 0xA270
File Partition: RT_PM
filepartload 0x20200000 $(UpgradeImage) 0x245f000 0x10000 mmc erase.p RTPM mmc write.p 0x20200000 RTPM 0x10000 1
File Partition: dtb
filepartload 0x20200000 $(UpgradeImage) 0x246f000 0xc7e mmc erase.p dtb mmc write.p 0x20200000 dtb 0xC7E 1
File Partition: tvservice
filepartload 0x20200000 $(UpgradeImage) 0x2470000 0x1dcc6db mmc erase.p tvservice mmc unlzo 0x20200000 0x1DCC6DB tvservice 1
File Partition: tvconfig
filepartload 0x20200000 $(UpgradeImage) 0x423d000 0x330109 mmc erase.p tvconfig mmc unlzo 0x20200000 0x330109 tvconfig 1
File Partition: tvdatabase
filepartload 0x20200000 $(UpgradeImage) 0x456e000 0xf00000 mmc erase.p tvdatabase mmc write.p 0x20200000 tvdatabase 0xF00000 1
File Partition: tvcustomer
filepartload 0x20200000 $(UpgradeImage) 0x546e000 0x2aefc9 mmc erase.p tvcustomer mmc unlzo 0x20200000 0x2AEFC9 tvcustomer 1
File Partition: system
mmc erase.p system filepartload 0x20200000 $(UpgradeImage) 0x571d000 0x4a945ed mmc unlzo 0x20200000 0x4A945ED system 1 filepartload 0x20200000 $(UpgradeImage) 0xa1b2000 0x7948904 mmc unlzo.cont 0x20200000 0x7948904 system 1 filepartload 0x20200000 $(UpgradeImage) 0x11afb000 0x6c11d37 mmc unlzo.cont 0x20200000 0x6C11D37 system 1 filepartload 0x20200000 $(UpgradeImage) 0x1870d000 0x6220fa6 mmc unlzo.cont 0x20200000 0x6220FA6 system 1 filepartload 0x20200000 $(UpgradeImage) 0x1e92e000 0x542b03c mmc unlzo.cont 0x20200000 0x542B03C system 1 filepartload 0x20200000 $(UpgradeImage) 0x23d5a000 0x565993d mmc unlzo.cont 0x20200000 0x565993D system 1 filepartload 0x20200000 $(UpgradeImage) 0x293b4000 0x5afadd2 mmc unlzo.cont 0x20200000 0x5AFADD2 system 1 filepartload 0x20200000 $(UpgradeImage) 0x2eeaf000 0x29b3027 mmc unlzo.cont 0x20200000 0x29B3027 system 1 filepartload 0x20200000 $(UpgradeImage) 0x31863000 0x75336 mmc unlzo.cont 0x20200000 0x75336 system 1
File Partition: cache
filepartload 0x20200000 $(UpgradeImage) 0x318d9000 0x4b07a2 mmc erase.p cache mmc unlzo 0x20200000 0x4B07A2 cache 1
File Partition: userdata
filepartload 0x20200000 $(UpgradeImage) 0x31d8a000 0x35f0182 mmc erase.p userdata mmc unlzo 0x20200000 0x35F0182 userdata 1
File Partition: set_config
setenv power_key 0x1C setenv ir_header_code0 0x00 setenv ir_header_code1 0xdf setenv bootargs console saveenv setenv bootargs console=ttyS0,115200 androidboot.console=ttyS0 root=/dev/ram rw rootwait init=/init CORE_DUMP_PATH=/data/core_dump.%%p.gz KDebug=1 delaylogo=true androidboot.selinux=permissive security=selinux SDIO_CONFIG=1 tee_mode=optee str_ignore_wakelock loglevel=0 setenv bootlogo_gopidx 2 setenv bootlogo_buffer E_MMAP_ID_BOOTLOGO_BUFFER setenv first_upgrade_factory 0 setenv str_crc 2 setenv music 0 setenv db_table 0 setenv verify n setenv WDT_ENABLE 1 setenv WDT_TUMEOUT 20 setenv sync_mmap 1 saveenv setenv CtvUpgrade_complete 1 setenv sync_mmap 1 setenv db_table 0 setenv u16CurPWMvalue N setenv first_setup 1 setenv pre_modelname setenv video_service IQIYI setenv factory_burningmode 0 setenv dc_poweroff 0 saveenv printenv mmc erase.boot 2 % <- this is end of script symbol
bin file:https://cs.sharp.cn/cloud/public.php?service=files&t=8079a72c16417430e739219d1e4510d0&download add SuperSU.apk system.img:https://drive.google.com/open?id=1FVBFW4abR8KnOnbneQ1F9S5iUcV080l7
Thank you !