ZNDS智能電視網 推薦當貝市場

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

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

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

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

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

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

樓主: cnhuangjq
上一主題 下一主題
[升級&刷機]

S40 air TTL 串口連接亂碼問題

[復制鏈接]
21#
 樓主| 發(fā)表于 2022-11-17 07:46 | 只看該作者 | 來自廣東
波特率還是應該設置為  115200, 其他的都更加不正常,
總結下:  我這款初步看可能應為型號早, 不支持強刷腳本, 所以home開機無法強刷。(好像看到一份文檔是 X43以后才有這功能)

當前問題是 ttl 也可以交互, 但輸入輸出的字符都亂套了。。。 (感覺要換個ttl 試試)
回復 支持 反對

使用道具 舉報

22#
 樓主| 發(fā)表于 2022-11-18 19:58 | 只看該作者 | 來自廣東
亂碼問題解決了,  換買了條 ch340芯片的usb ttl就不亂碼了  (前面是pl2303hx的芯片 usb ttl)
可惜的是, 事情終給我搞砸了,,

我把原廠bin的前面的命令在mstar# 下操作了一遍后, 電視不在亮燈了 (看來只能換主板了)

我沒理解問題在哪, 有懂的系統(tǒng)再給提示下 是那行命令搞死了 mboot ?
盡管操作中稍有提示錯誤, 我當時也忽略了 (我當時想著也就是mmc上有點問題, 總不至于mboot也不行行)

日志如下:

read GPIO FLASH_WP reTryCnt : 0, reReadCnt : 0
audio effect chip is not exist!

Changelist:     00112233
============= set bootargs ===============
Unknown command 'if_51OnRam_set' - try 'help'
Hit any key to stop autoboot:  0
<< MStar >>#
<< MStar >># usb start
(Re)start USB...
Check USB port[0]:
Host type:2
scanning bus for devices...
[USB] interface[0] conf:1 value 9:
Wait for hub reset....
checking hub ports...

[USB] interface[0] conf:1 value 8:
2 USB Device(s) found
       scanning bus for storage devices... bulk max packet size: ep 200 ep2 200
max lun:0
1 Storage Device(s) found
<< MStar >># usb
  usb2spi usb_bin_check usb usbboot
<< MStar >># usb
  usb2spi usb_bin_check usb usbboot
<< MStar >># hfjq
Unknown command 'hfjq' - try 'help'
<< MStar >># help
?       - alias for 'help'
SecureBootCmd- SecureBootCmd

SecureInit- Init security booting.

UpdateNuttx- upgrade nuttx.
ac      - set a new config to the bootargs

add_autotest- add_autotest   - Perform autotest

add_hsl - add_hsl   - autotest with hsl

add_moduletest- add_moduletest   - Perform moduletest

as3820_init- as3820_init   - init as3820

authenticate- authenticate the kernel image
authenticateAN- authenticate android's boot and recover image
backlight_board_on- backlight board on  - set backlight board on

base    - print or set address offset
bdinfo  - print Board Info structure
bin2emmc- bin2emmc - read bin file and restore it to emmc

boot    - boot default, i.e., run 'bootcmd'
bootNuttx- bootNuttx   - core1 run at Nuttx

bootargs_set- Set info exchange and set to boot args.
bootcheck- bootcheck   - Do boot check

bootd   - boot default, i.e., run 'bootcmd'
bootlogo- bootlogo   - Display Logo_Music

bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
check_board_type- check_board_type   -  check board type from GPIO.

checkfile- check file exist in u disk,and set the partition.
cleanallenv- cleanall environment variables to persistent storage
cmp     - memory compare
config2env- Set config to environment.
config_raw_io- Config the target device for raw I/O
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
custar  - do usb update from the specified file that is in usb.

dbg     - set debug message level. Default level is INFO
dbtable_init- dbtable_init   - let data  is ready (logo, music, panel, ursa).

dc      - delete the specific cofig that is in the bootargs

delay   - delay time, time unit is ms

destroy_logo- destroy_logo - Stop logo display

dhcp    - boot image via network using DHCP/TFTP protocol
dont_overwrite- This serial apis are for protecting the specific partitions are overwrited. ex: customer
This cmd is used to register which partition should not be overwrite

dont_overwrite_free- This serial apis are for protecting the specific partitions are overwrited. ex: customer
This cmd is used to free all registered partitions.

dont_overwrite_init- This serial apis are for protecting the specific partitions are overwrited. ex: customer
This cmd is used to init this function

draw_jpg- blt_jpg   - Blt JPG

draw_pixel- draw_pixel - draw a pixel with color

draw_progress- draw_string - draw string with color

draw_rect- draw_rect - draw rect with color

draw_string- draw_string - draw string with color

du      - du  - Disable UART

dumpSignature- dump the signature
ebist   - PHY loopback test
echo    - echo args to console
editenv - edit environment variable
edump   - EMAC Register settings dump
eloopback- Long loopback test
emmc    - eMMC sub system
emmcbin - emmcbin - dump emmc and restore it to fat usb disk

emmcbootbin- emmcbootbin - dump emmc boot partition and write it to fat usb disk

env     - environment handling commands
envload - envload   - reload the nand environment.

envload_factory- envload_factory   - reload the env from emmc

epd     - emac power down
estart  - EMAC start
ewavetest- EMAC wave test
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
ext4filesize- get file size from a Ext4 filesystem
ext4load- load binary file from a Ext4 filesystem
ext4ls  - list files in a directory (default /)
ext4partload- part load binary file from a Ext4 filesystem
ext4write- create a file in the root directory
factory_check_usb_files- factory mode to check usb files and do test

factory_init- factory_init   -  init factory partition table.

false   - do nothing, unsuccessfully
fatfilesize- fatfilesize - load binary file from a dos filesystem

fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fatpartload- fatpartload - load binary file from a dos filesystem

fatwrite- fatwrite - write binary file to a dos filesystem

filelist- Dump the file list.

filelisttest- This command is only for file list test

filepartload- load part of a file to RAM
force_overwrite- This serial apis are for force write and re-create partitions.
This cmd is used to register which partition should force overwrite

force_overwrite_init- This serial apis are for force write and re-create partitions.
This cmd is used to register which partition should force overwrite

get_mboot_config- get mboot config from binary coverted from mboot_config.ini
get_mmap- get memory info from supernova's mmap
go      - start application at address 'addr'
gpio    - GPIO Command:
help    - print command description/usage
i2c     - I2C sub-system
if_boot_to_pm- if boot to PM

iminfo  - print header information for application image
imxtract- extract a part of a multi-image
initDbgLevel- Initial varaible 'dbgLevel'
init_raw_io- init raw_io module
itest   - return true/false on integer compare
kernelProtect- kernelProtect  - Protect kernel

kernelProtectBist- kernelProtectBist  - Protect kernel bist

led     - See led commands
led_local- set the LED brightness locally
load_nuttx_config-   - load nuttx_config.bin from storage

loadb   - load binary file over serial line (kermit mode)
loadenv - loadenv   - load env for nand

loads   - load S-Record file over serial line
loadspi - load data from SPI
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
m2e     - Restore the address and len to env from supernova's mmap

macaddr - setup EMAC MAC addr
mbup    - mboot upgrade

md      - memory display
memtest - Get the performance of memory
mm      - memory modify (auto-incrementing address)
mmc     - MMC sub system
mmcinfo - display MMC info
mmcreg  - mmcreg show ext-csd
mscompress7- Compress or decompress lzma files
msg     - print string - msg [string]

mstar   - update kernal & root file system automatically by script file
mtest   - simple RAM read/write test
mversion- show changelist - mversion

mw      - memory write (fill)
nm      - memory modify (constant address)
nuttxProtect- nuttx Protect  - Protect nuttx

osd_create- osd_create - create osd layer

osd_destroy- osd_destroy - destroy osd layer

osd_flush- osd_flush - flush canvas to screen

ota_zip_check- do OTA zip package check.

panel_init- panel_init  - init panel by panel.ini

panel_post_init- backligth on  - backlight on

panel_pre_init- panel_pre_init  - init panel by panel.ini

ping    - send ICMP ECHO_REQUEST to network host
pm51    - pm51 command: pm51 [option]

pmProtect- runtime pm Protect  - Protect runtime PM

pm_power_test- PM DC on/Off power test

pop_raw_io_config- pop raw_io last config
printenv- print environment variables
push_raw_io_config- push raw_io current config
raw_io_status- get raw_io status
raw_read- Read the raw datas that store in the target device
Yo have to execute 'config_raw_io' before using this cmd

raw_write- Write the raw datas that store in the target deviceYo have to execute 'config_raw_io' before using this cmd

readNuttx- readNuttx   - read Nuttx to malloc buffer

recovery_wipe_partition- do recovery wipe data or cache.

reset   - Perform RESET of the CPU
riu     - riu  - riu command

rsa     - rsa cacluate

run     - run commands in an environment variable
run_usb_script- do usb script from usb.

runtime_pm- if boot to PM

sar     - sar Command:
saveenv - save environment variables to persistent storage
send_msg2PM- send message to RT_PM

setenv  - set environment variables
sha256  - The sha256 cacluate

showtb  - Show register command table.    -  showtb [stage]

showvar - print local hushshell variables
sleep   - delay execution for some time
source  - run script from memory
spi2usb - Read data from spi to usb
stest   - test IO performance on continue mode or interleave mode]

store_nuttx_config-    - save nuttx_config.bin to storage

store_secure_info- store secure info

sync_mmap- Sync the some id's address and len to env and bootargs from supernova's mmap

test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
true    - do nothing, successfully
udstar  - Execute the script file that is stored in usb disk

updatemiureg- Call driver to update miu setting
usb     - USB sub-system
usb2spi - write data from usb to spi
usb_bin_check- do usb bin document check.

usbboot - boot from USB device
ustar   - ustar   - update kernal & root file system automatically by script file

verify_sha256- This command is only for verification

version - print monitor, compiler and linker version
<< MStar >># mmc slc 0 1
eMMC: SLC mode size: 0, reliable write: 1, has been set
<< MStar >># mmc rmgpt
** Find MBOOT **
** Find MPOOL **
** Find factory1 **
** Find factory2 **
******** skip factory partition ********
******** skip factory partition ********
<< MStar >># factory_init factory1 0x02000000
<< MStar >># factory_init factory2 0x02000000
<< MStar >># mmc create misc 0x00800000
Need write new driver description table!
Add new partition misc success!
<< MStar >># mmc create recovery 0x00800000
Add new partition recovery success!
<< MStar >># mmc create boot 0x00400000   
Add new partition boot success!
<< MStar >># mmc create RTPM 0x40000   
Add new partition RTPM success!
<< MStar >># mmc create system 0x20000000  
Add new partition system success!
<< MStar >># mmc create fastplay 0x20000000
Add new partition fastplay success!
<< MStar >># mmc create cache 0x20000000   
Add new partition cache success!
<< MStar >># mmc create tvservice 0x03C00000
Add new partition tvservice success!
<< MStar >># mmc create tvconfilg 0x020000000
Add new partition tvconfilg success!
<< MStar >># mmc create tvdatabase 0x00800000
Add new partition tvdatabase success!
<< MStar >># mmc create tvcustomer 0x01000000
Add new partition tvcustomer success!
<< MStar >># mmc create userdata variable 0x16520000 0x33700000 0x65200000
Add new partition userdata success!
<< MStar >># mmc erase.p MPOOL
MMC erase: dev # 0, user area part, block # 10240, count 4096 (unit: sector)...
4096 blocks erase: OK
<< MStar >># cleanallenv
Writing to MMC(0)... done
<< MStar >># mm erase.p recovery
mm - memory modify (auto-incrementing address)

Usage:
mm [.b, .w, .l] address
<< MStar >># mmc erase.p recovery
MMC erase: dev # 0, user area part, block # 161792, count 16384 (unit: sector)...
16384 blocks erase: OK
<< MStar >># mmc erase.p misc   
MMC erase: dev # 0, user area part, block # 145408, count 16384 (unit: sector)...
16384 blocks erase: OK
<< MStar >># filepartload 20400000 LetvUpgrade.bin 4000 5d4790
<< MStar >>#
<< MStar >># mmc write.p 20400000 recovery 5d4790 1
11940 blocks written: OK
<< MStar >># filepartload 204v LetvUpgrade_complete 1
filepartload - load part of a file to RAM

Usage:
filepartload <addr> <filename> [bytes]
    - load file 'filename' to address 'addr'

<< MStar >># filepartload 20400000 LetvUpgrade.bin 4000 5d4790
<< MStar >># mmc write.p 20400000 recovery 5d4790 1
Unknown command 'mmc' - try 'help'
<< MStar >># filepartload 20400000 LetvUpgrade.bin 5d9000 220
<< MStar >># store_secure_info recoverySign 20400000
MPOOL size : 0x200000
MPOOL size : 0x200000
10 blocks written: OK
10 blocks written: OK
<< MStar >># mmc erase.p boot
MMC erase: dev # 0, user area part, block # 178176, count 8192 (unit: sector)...
8192 blocks erase: OK
<< MStar >># filepartload 20400000 LetvUpgrade.bin 5da000 3e3300
<< MStar >># mmc write.p 20400000 boot 3e3300 1
7962 blocks written: OK
<< MStar >># filepartload 20400000 LetvUpgrade.bin 9be000 220
<< MStar >># store_secure_info bootSign 20400000
MPOOL size : 0x200000
MPOOL size : 0x200000
10 blocks written: OK
10 blocks written: OK
<< MStar >># mmc erase.p system
MMC erase: dev # 0, user area part, block # 186880, count 1048576 (unit: sector)...
1048576 blocks erase: OK
<< MStar >># filepartload 20400000 LetvUpgrade.bin 9bf000 db2ac3b
<< MStar >># mmc unlzo 20400000 db2ac3b system 1
   Uncompressing ...
LZO: uncompress, out-of-mem or overwrite error -1
<< MStar >># filepartload 20400000 LetvUpgrade.bin e4ea000 74e942a
<< MStar >># mmc unlzo.cont 20400000 74e942a system 1
   Uncompressing ...
LZO: uncompress, out-of-mem or overwrite error -1
<< MStar >># mmc erase.p fastplay
MMC erase: dev # 0, user area part, block # 1235456, count 1048576 (unit: sector)...
1048576 blocks erase: OK
<< MStar >># filepartload 20400000 LetvUpgrade.bin 159d4000 132d3
<< MStar >># mmc unlzo 20400000 132d3 fastplay 1
   Uncompressing ...
LZO: uncompress, out-of-mem or overwrite error -1
<< MStar >># mmc erase.p cache
MMC erase: dev # 0, user area part, block # 2284032, count 1048576 (unit: sector)...
1048576 blocks erase: OK
<< MStar >># filepartload 20400000 LetvUpgrade.bin 159e8000 1331c
<< MStar >># mmc unlzo 20400000 1331c cache 1
   Uncompressing ...
LZO: uncompress, out-of-mem or overwrite error -1
<< MStar >># filepartload 20400000 LetvUpgrade.bin 159fc000 3c00000
<< MStar >># mmc erase.p tvservice
MMC erase: dev # 0, user area part, block # 3332608, count 122880 (unit: sector)...
122880 blocks erase: OK
<< MStar >># mmc write.p 20400000 tvservice 3c00000 1
122880 blocks written: OK
<< MStar >># filepartload 20400000 LetvUpgrade.bin 195fc000 2000000
<< MStar >># mmc erase.p tvconfig
** Bad Signature on 0:17: expected 0x5840, got 0x0000
ERR:invalid parameter, please check partiton name!
<< MStar >># mmc write.p 20400000 tvconfig 2000000 1
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
** Bad Signature on 0:17: expected 0x5840, got 0x0000
ERR:Please check the blk# or partiton name!
<< MStar >># filepartload 20400000 LetvUpgrade.bin 1b5fc000 220
<< MStar >># store_secure_info teeSign 20400000
MPOOL size : 0x200000
MPOOL size : 0x200000
10 blocks written: OK
10 blocks written: OK
<< MStar >># filepartload 20400000 LetvUpgrade.bin 1b5fd000 770
<< MStar >># store_nuttx_config NuttxConfig 20400000
MPOOL size : 0x200000
128 blocks written: OK
128 blocks written: OK
<< MStar >># filepartload 20400000 LetvUpgrade.bin 1b5fe000 800000
<< MStar >># mmc erase.p tvdatabase
MMC erase: dev # 0, user area part, block # 4504064, count 16384 (unit: sector)...
16384 blocks erase: OK
<< MStar >># mmc write.p 20400000 tvdatabase 800000 1
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
Writing to MMC(0)... done
16384 blocks written: OK
<< MStar >># filepartload 20400000 LetvUpgrade.bin 1bdfe000 1000000
<< MStar >># mmc erase.p tvcustomer
MMC erase: dev # 0, user area part, block # 4520448, count 32768 (unit: sector)...
32768 blocks erase: OK
<< MStar >># mmc write.p 20400000 tvcustomer 1000000 1
32768 blocks written: OK
<< MStar >># mmc erase.p userdata
ERR:invalid parameter, please check partiton name!
<< MStar >># filepartload 20400000 LetvUpgrade.bin 1cdfe000 12c3710
<< MStar >># mmc unlzo 20400000 12c3710 userdata 1
ERR: The partition unlzo write has been done!
<< MStar >># filepartload 20400000 LetvUpgrade.bin 1e0c2000 38493ae
<< MStar >># mmc unlzo 20400000 38493ae userdata 1
ERR: The partition unlzo write has been done!
<< MStar >># filepartload 20400000 LetvUpgrade.bin 2190c000 4388b
<< MStar >># mmc unlzo 20400000 4388b userdata 1
ERR: The partition unlzo write has been done!
<< MStar >># filepartload 20400000 LetvUpgrade.bin 21950000 10000
<< MStar >># mmc erase.p RTPM
MMC erase: dev # 0, user area part, block # 186368, count 512 (unit: sector)...
512 blocks erase: OK
<< MStar >># mmc write.p 20400000 RTPM 10000 1
128 blocks written: OK
<< MStar >># filepartload 20400000 LetvUpgrade.bin 21960000 12800
<< MStar >># mmc write.boot 1 20400000 0 12800
148 blocks written: OK
<< MStar >># filepartload 20400000 LetvUpgrade.bin 21973000 172e00
<< MStar >># mmc write.p 20400000 MBOOT 172e00
2967 blocks written: OK
<< MStar >># setenv filesize 3e3300
<< MStar >># setenv LOAD_KERNEL mmc read.p 0x25000000 boot 0x00400000\; authenticateAN 0x25000000
<< MStar >># setenv filesize 3e3300
<< MStar >># setenv BOOT_KERNEL bootm 0x25000000
<< MStar >># setenv recoverycmd mmc read.p 0x25000000 recovery 0x00800000\; authenticateAN 0x25000000\; bootm 0x25000000
<< MStar >># setenv MIU0_GROUP_SELMIU 1140:0018:1416:33C0
<< MStar >>#
<< MStar >># setenv MIU1_GROUP_SELMIU AE0E:0100:0A21:0000
<< MStar >># setenv MIU0_GROUP_PRIORITY 3:0:1:2
<< MStar >>#
<< MStar >># setenv MIU1_GROUP_PRIORITY 3:1:0:2
<< MStar >># setenv MS_MEM LX_MEM=0x11900000 EMAC_MEM=0x100000 DRAM_LEN=0x40000000 LX_MEM2=0x3FF00000,0x00000000 LX_MEM3=0xB1400000,0xEA00000
<< MStar >># setenv KERNEL_PROTECT DRAM_SIZE1=0x40000000 DRAM_SIZE2=0x40000000
<< MStar >># setenv ROOT root=/dev/ram rw rootwait
<< MStar >># setenv bootargs console=ttyS0,115200 androidboot.console=ttyS0 $(ROOT) init=/init $(MS_MEM) CORE_DUMP_PATH=/data/Logs/Log.0/core_dump.%%p.gz KDebug=1 delaylogo=true
<< MStar >># setenv bootlogo_gopidx 3
<< MStar >># setenv bootlogo_buffer E_MMAP_ID_DIP_10M_2
<< MStar >># setenv str_crc 2
<< MStar >># setenv power_key 0x0A
<< MStar >># setenv ir_header_code0 0x4C
<< MStar >># setenv ir_header_code1 0x65
<< MStar >>#
<< MStar >># setenv factory_poweron_mode secondary
<< MStar >>#
<< MStar >># setenv db_table 0
<< MStar >># setenv verify n
<< MStar >># setenv bootcmd $(LOAD_KERNEL)\; $(LOAD_NUTTX)\; $(BOOT_NUTTX)\; $(BOOT_KERNEL)
<< MStar >>#
<< MStar >># saveenv
Saving Environment to MMC...
Writing to MMC(0)... done
<< MStar >># setenv LetvUpgrade_complete 1
<< MStar >># setenv IsCheckUSB disable
<< MStar >># setenv factory_mode 0
<< MStar >># setenv ResetAfterUpgrade 1
<< MStar >>#
<< MStar >># setenv ForcePowerOn 1
<< MStar >>#
<< MStar >># setenv db_table 0
<< MStar >># saveenv
Saving Environment to MMC...
Writing to MMC(0)... done
<< MStar >># printenv
BOOT_KERNEL=bootm 0x25000000
ForcePowerOn=1
IsCheckUSB=disable
KERNEL_PROTECT=DRAM_SIZE1=0x40000000 DRAM_SIZE2=0x40000000
LOAD_KERNEL=mmc read.p 0x25000000 boot 0x00400000; authenticateAN 0x25000000
LetvUpgrade_complete=1
MIU0_GROUP_PRIORITY=3:0:1:2
MIU0_GROUP_SELMIU=1140:0018:1416:33C0
MIU1_GROUP_PRIORITY=3:1:0:2
MIU1_GROUP_SELMIU=AE0E:0100:0A21:0000
MS_MEM=LX_MEM=0x11900000 EMAC_MEM=0x100000 DRAM_LEN=0x40000000 LX_MEM2=0x3FF00000,0x00000000 LX_MEM3=0xB1400000,0xEA00000
ROOT=root=/dev/ram rw rootwait
ResetAfterUpgrade=1
bootargs=console=ttyS0,115200 androidboot.console=ttyS0 $(ROOT) init=/init $(MS_MEM) CORE_DUMP_PATH=/data/Logs/Log.0/core_dump.%%p.gz KDebug=1 delaylogo=true
bootcmd=$(LOAD_KERNEL); $(LOAD_NUTTX); $(BOOT_NUTTX); $(BOOT_KERNEL)
bootlogo_buffer=E_MMAP_ID_DIP_10M_2
bootlogo_gopidx=3
db_table=0
factory_mode=0
factory_poweron_mode=secondary
filesize=3e3300
ir_header_code0=0x4C
ir_header_code1=0x65
mboot_default_env=1
power_key=0x0A
recoverycmd=mmc read.p 0x25000000 recovery 0x00800000; authenticateAN 0x25000000; bootm 0x25000000
str_crc=2
upgrade_factorydb=TRUE
verify=n

Environment size: 1158/65532 bytes
<< MStar >>#
BOOT_KERNEL=bootm 0x25000000
ForcePowerOn=1
IsCheckUSB=disable
KERNEL_PROTECT=DRAM_SIZE1=0x40000000 DRAM_SIZE2=0x40000000
LOAD_KERNEL=mmc read.p 0x25000000 boot 0x00400000; authenticateAN 0x25000000
LetvUpgrade_complete=1
MIU0_GROUP_PRIORITY=3:0:1:2
MIU0_GROUP_SELMIU=1140:0018:1416:33C0
MIU1_GROUP_PRIORITY=3:1:0:2
MIU1_GROUP_SELMIU=AE0E:0100:0A21:0000
MS_MEM=LX_MEM=0x11900000 EMAC_MEM=0x100000 DRAM_LEN=0x40000000 LX_MEM2=0x3FF00000,0x00000000 LX_MEM3=0xB1400000,0xEA00000
ROOT=root=/dev/ram rw rootwait
ResetAfterUpgrade=1
bootargs=console=ttyS0,115200 androidboot.console=ttyS0 $(ROOT) init=/init $(MS_MEM) CORE_DUMP_PATH=/data/Logs/Log.0/core_dump.%%p.gz KDebug=1 delaylogo=true
bootcmd=$(LOAD_KERNEL); $(LOAD_NUTTX); $(BOOT_NUTTX); $(BOOT_KERNEL)
bootlogo_buffer=E_MMAP_ID_DIP_10M_2
bootlogo_gopidx=3
db_table=0
factory_mode=0
factory_poweron_mode=secondary
filesize=3e3300
ir_header_code0=0x4C
ir_header_code1=0x65
mboot_default_env=1
power_key=0x0A
recoverycmd=mmc read.p 0x25000000 recovery 0x00800000; authenticateAN 0x25000000; bootm 0x25000000
str_crc=2
upgrade_factorydb=TRUE
verify=n

Environment size: 1158/65532 bytes
<< MStar >>#
BOOT_KERNEL=bootm 0x25000000
ForcePowerOn=1
IsCheckUSB=disable
KERNEL_PROTECT=DRAM_SIZE1=0x40000000 DRAM_SIZE2=0x40000000
LOAD_KERNEL=mmc read.p 0x25000000 boot 0x00400000; authenticateAN 0x25000000
LetvUpgrade_complete=1
MIU0_GROUP_PRIORITY=3:0:1:2
MIU0_GROUP_SELMIU=1140:0018:1416:33C0
MIU1_GROUP_PRIORITY=3:1:0:2
MIU1_GROUP_SELMIU=AE0E:0100:0A21:0000
MS_MEM=LX_MEM=0x11900000 EMAC_MEM=0x100000 DRAM_LEN=0x40000000 LX_MEM2=0x3FF00000,0x00000000 LX_MEM3=0xB1400000,0xEA00000
ROOT=root=/dev/ram rw rootwait
ResetAfterUpgrade=1
bootargs=console=ttyS0,115200 androidboot.console=ttyS0 $(ROOT) init=/init $(MS_MEM) CORE_DUMP_PATH=/data/Logs/Log.0/core_dump.%%p.gz KDebug=1 delaylogo=true
bootcmd=$(LOAD_KERNEL); $(LOAD_NUTTX); $(BOOT_NUTTX); $(BOOT_KERNEL)
bootlogo_buffer=E_MMAP_ID_DIP_10M_2
bootlogo_gopidx=3
db_table=0
factory_mode=0
factory_poweron_mode=secondary
filesize=3e3300
ir_header_code0=0x4C
ir_header_code1=0x65
mboot_default_env=1
power_key=0x0A
recoverycmd=mmc read.p 0x25000000 recovery 0x00800000; authenticateAN 0x25000000; bootm 0x25000000
str_crc=2
upgrade_factorydb=TRUE
verify=n

Environment size: 1158/65532 bytes
<< MStar >>#
BOOT_KERNEL=bootm 0x25000000
ForcePowerOn=1
IsCheckUSB=disable
KERNEL_PROTECT=DRAM_SIZE1=0x40000000 DRAM_SIZE2=0x40000000
LOAD_KERNEL=mmc read.p 0x25000000 boot 0x00400000; authenticateAN 0x25000000
LetvUpgrade_complete=1
MIU0_GROUP_PRIORITY=3:0:1:2
MIU0_GROUP_SELMIU=1140:0018:1416:33C0
MIU1_GROUP_PRIORITY=3:1:0:2
MIU1_GROUP_SELMIU=AE0E:0100:0A21:0000
MS_MEM=LX_MEM=0x11900000 EMAC_MEM=0x100000 DRAM_LEN=0x40000000 LX_MEM2=0x3FF00000,0x00000000 LX_MEM3=0xB1400000,0xEA00000
ROOT=root=/dev/ram rw rootwait
ResetAfterUpgrade=1
bootargs=console=ttyS0,115200 androidboot.console=ttyS0 $(ROOT) init=/init $(MS_MEM) CORE_DUMP_PATH=/data/Logs/Log.0/core_dump.%%p.gz KDebug=1 delaylogo=true
bootcmd=$(LOAD_KERNEL); $(LOAD_NUTTX); $(BOOT_NUTTX); $(BOOT_KERNEL)
bootlogo_buffer=E_MMAP_ID_DIP_10M_2
bootlogo_gopidx=3
db_table=0
factory_mode=0
factory_poweron_mode=secondary
filesize=3e3300
ir_header_code0=0x4C
ir_header_code1=0x65
mboot_default_env=1
power_key=0x0A
recoverycmd=mmc read.p 0x25000000 recovery 0x00800000; authenticateAN 0x25000000; bootm 0x25000000
str_crc=2
upgrade_factorydb=TRUE
verify=n

Environment size: 1158/65532 bytes
<< MStar >>#
BOOT_KERNEL=bootm 0x25000000
ForcePowerOn=1
IsCheckUSB=disable
KERNEL_PROTECT=DRAM_SIZE1=0x40000000 DRAM_SIZE2=0x40000000
LOAD_KERNEL=mmc read.p 0x25000000 boot 0x00400000; authenticateAN 0x25000000
LetvUpgrade_complete=1
MIU0_GROUP_PRIORITY=3:0:1:2
MIU0_GROUP_SELMIU=1140:0018:1416:33C0
MIU1_GROUP_PRIORITY=3:1:0:2
MIU1_GROUP_SELMIU=AE0E:0100:0A21:0000
MS_MEM=LX_MEM=0x11900000 EMAC_MEM=0x100000 DRAM_LEN=0x40000000 LX_MEM2=0x3FF00000,0x00000000 LX_MEM3=0xB1400000,0xEA00000
ROOT=root=/dev/ram rw rootwait
ResetAfterUpgrade=1
bootargs=console=ttyS0,115200 androidboot.console=ttyS0 $(ROOT) init=/init $(MS_MEM) CORE_DUMP_PATH=/data/Logs/Log.0/core_dump.%%p.gz KDebug=1 delaylogo=true
bootcmd=$(LOAD_KERNEL); $(LOAD_NUTTX); $(BOOT_NUTTX); $(BOOT_KERNEL)
bootlogo_buffer=E_MMAP_ID_DIP_10M_2
bootlogo_gopidx=3
db_table=0
factory_mode=0
factory_poweron_mode=secondary
filesize=3e3300
ir_header_code0=0x4C
ir_header_code1=0x65
mboot_default_env=1
power_key=0x0A
recoverycmd=mmc read.p 0x25000000 recovery 0x00800000; authenticateAN 0x25000000; bootm 0x25000000
str_crc=2
upgrade_factorydb=TRUE
verify=n

Environment size: 1158/65532 bytes
<< MStar >># boot
Unknown command '$(LOAD_KERNEL)' - try 'help'
Unknown command '$(LOAD_NUTTX)' - try 'help'
Unknown command '$(BOOT_NUTTX)' - try 'help'
Unknown command '$(BOOT_KERNEL)' - try 'help'
<< MStar >># help
?       - alias for 'help'
SecureBootCmd- SecureBootCmd

SecureInit- Init security booting.

UpdateNuttx- upgrade nuttx.
ac      - set a new config to the bootargs

add_autotest- add_autotest   - Perform autotest

add_hsl - add_hsl   - autotest with hsl

add_moduletest- add_moduletest   - Perform moduletest

as3820_init- as3820_init   - init as3820

authenticate- authenticate the kernel image
authenticateAN- authenticate android's boot and recover image
backlight_board_on- backlight board on  - set backlight board on

base    - print or set address offset
bdinfo  - print Board Info structure
bin2emmc- bin2emmc - read bin file and restore it to emmc

boot    - boot default, i.e., run 'bootcmd'
bootNuttx- bootNuttx   - core1 run at Nuttx

bootargs_set- Set info exchange and set to boot args.
bootcheck- bootcheck   - Do boot check

bootd   - boot default, i.e., run 'bootcmd'
bootlogo- bootlogo   - Display Logo_Music

bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
check_board_type- check_board_type   -  check board type from GPIO.

checkfile- check file exist in u disk,and set the partition.
cleanallenv- cleanall environment variables to persistent storage
cmp     - memory compare
config2env- Set config to environment.
config_raw_io- Config the target device for raw I/O
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
custar  - do usb update from the specified file that is in usb.

dbg     - set debug message level. Default level is INFO
dbtable_init- dbtable_init   - let data  is ready (logo, music, panel, ursa).

dc      - delete the specific cofig that is in the bootargs

delay   - delay time, time unit is ms

destroy_logo- destroy_logo - Stop logo display

dhcp    - boot image via network using DHCP/TFTP protocol
dont_overwrite- This serial apis are for protecting the specific partitions are overwrited. ex: customer
This cmd is used to register which partition should not be overwrite

dont_overwrite_free- This serial apis are for protecting the specific partitions are overwrited. ex: customer
This cmd is used to free all registered partitions.

dont_overwrite_init- This serial apis are for protecting the specific partitions are overwrited. ex: customer
This cmd is used to init this function

draw_jpg- blt_jpg   - Blt JPG

draw_pixel- draw_pixel - draw a pixel with color

draw_progress- draw_string - draw string with color

draw_rect- draw_rect - draw rect with color

draw_string- draw_string - draw string with color

du      - du  - Disable UART

dumpSignature- dump the signature
ebist   - PHY loopback test
echo    - echo args to console
editenv - edit environment variable
edump   - EMAC Register settings dump
eloopback- Long loopback test
emmc    - eMMC sub system
emmcbin - emmcbin - dump emmc and restore it to fat usb disk

emmcbootbin- emmcbootbin - dump emmc boot partition and write it to fat usb disk

env     - environment handling commands
envload - envload   - reload the nand environment.

envload_factory- envload_factory   - reload the env from emmc

epd     - emac power down
estart  - EMAC start
ewavetest- EMAC wave test
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
ext4filesize- get file size from a Ext4 filesystem
ext4load- load binary file from a Ext4 filesystem
ext4ls  - list files in a directory (default /)
ext4partload- part load binary file from a Ext4 filesystem
ext4write- create a file in the root directory
factory_check_usb_files- factory mode to check usb files and do test

factory_init- factory_init   -  init factory partition table.

false   - do nothing, unsuccessfully
fatfilesize- fatfilesize - load binary file from a dos filesystem

fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fatpartload- fatpartload - load binary file from a dos filesystem

fatwrite- fatwrite - write binary file to a dos filesystem

filelist- Dump the file list.

filelisttest- This command is only for file list test

filepartload- load part of a file to RAM
force_overwrite- This serial apis are for force write and re-create partitions.
This cmd is used to register which partition should force overwrite

force_overwrite_init- This serial apis are for force write and re-create partitions.
This cmd is used to register which partition should force overwrite

get_mboot_config- get mboot config from binary coverted from mboot_config.ini
get_mmap- get memory info from supernova's mmap
go      - start application at address 'addr'
gpio    - GPIO Command:
help    - print command description/usage
i2c     - I2C sub-system
if_boot_to_pm- if boot to PM

iminfo  - print header information for application image
imxtract- extract a part of a multi-image
initDbgLevel- Initial varaible 'dbgLevel'
init_raw_io- init raw_io module
itest   - return true/false on integer compare
kernelProtect- kernelProtect  - Protect kernel

kernelProtectBist- kernelProtectBist  - Protect kernel bist

led     - See led commands
led_local- set the LED brightness locally
load_nuttx_config-   - load nuttx_config.bin from storage

loadb   - load binary file over serial line (kermit mode)
loadenv - loadenv   - load env for nand

loads   - load S-Record file over serial line
loadspi - load data from SPI
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
m2e     - Restore the address and len to env from supernova's mmap

macaddr - setup EMAC MAC addr
mbup    - mboot upgrade

md      - memory display
memtest - Get the performance of memory
mm      - memory modify (auto-incrementing address)
mmc     - MMC sub system
mmcinfo - display MMC info
mmcreg  - mmcreg show ext-csd
mscompress7- Compress or decompress lzma files
msg     - print string - msg [string]

mstar   - update kernal & root file system automatically by script file
mtest   - simple RAM read/write test
mversion- show changelist - mversion

mw      - memory write (fill)
nm      - memory modify (constant address)
nuttxProtect- nuttx Protect  - Protect nuttx

osd_create- osd_create - create osd layer

osd_destroy- osd_destroy - destroy osd layer

osd_flush- osd_flush - flush canvas to screen

ota_zip_check- do OTA zip package check.

panel_init- panel_init  - init panel by panel.ini

panel_post_init- backligth on  - backlight on

panel_pre_init- panel_pre_init  - init panel by panel.ini

ping    - send ICMP ECHO_REQUEST to network host
pm51    - pm51 command: pm51 [option]

pmProtect- runtime pm Protect  - Protect runtime PM

pm_power_test- PM DC on/Off power test

pop_raw_io_config- pop raw_io last config
printenv- print environment variables
push_raw_io_config- push raw_io current config
raw_io_status- get raw_io status
raw_read- Read the raw datas that store in the target device
Yo have to execute 'config_raw_io' before using this cmd

raw_write- Write the raw datas that store in the target deviceYo have to execute 'config_raw_io' before using this cmd

readNuttx- readNuttx   - read Nuttx to malloc buffer

recovery_wipe_partition- do recovery wipe data or cache.

reset   - Perform RESET of the CPU
riu     - riu  - riu command

rsa     - rsa cacluate

run     - run commands in an environment variable
run_usb_script- do usb script from usb.

runtime_pm- if boot to PM

sar     - sar Command:
saveenv - save environment variables to persistent storage
send_msg2PM- send message to RT_PM

setenv  - set environment variables
sha256  - The sha256 cacluate

showtb  - Show register command table.    -  showtb [stage]

showvar - print local hushshell variables
sleep   - delay execution for some time
source  - run script from memory
spi2usb - Read data from spi to usb
stest   - test IO performance on continue mode or interleave mode]

store_nuttx_config-    - save nuttx_config.bin to storage

store_secure_info- store secure info

sync_mmap- Sync the some id's address and len to env and bootargs from supernova's mmap

test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
true    - do nothing, successfully
udstar  - Execute the script file that is stored in usb disk

updatemiureg- Call driver to update miu setting
usb     - USB sub-system
usb2spi - write data from usb to spi
usb_bin_check- do usb bin document check.

usbboot - boot from USB device
ustar   - ustar   - update kernal & root file system automatically by script file

verify_sha256- This command is only for verification

version - print monitor, compiler and linker version
<< MStar >># boot
Unknown command '$(LOAD_KERNEL)' - try 'help'
Unknown command '$(LOAD_NUTTX)' - try 'help'
Unknown command '$(BOOT_NUTTX)' - try 'help'
Unknown command '$(BOOT_KERNEL)' - try 'help'
<< MStar >>#
回復 支持 反對

使用道具 舉報

23#
 樓主| 發(fā)表于 2022-11-18 20:03 | 只看該作者 | 來自廣東
換了個ch340的usb ttl 后, 亂碼問題OK了。。

但我把原廠bin文件的里面的命令輸入了一遍后, 電視徹底不亮 (真要換板了)

但我沒理解是哪條命令搞死了mboot  (我理解這個類似與bios的引導部分, 應該咋都不會搞壞)
似乎命令中也沒哪個與這個相關, 有懂的請執(zhí)教下

命令序列:
mmc slc 0 1
mmc rmgpt
factory_init factory1 0x02000000
factory_init factory2 0x02000000
mmc create misc 0x00080000
mmc create recovery 0x00800000
mmc create boot 0x00400000
mmc create RTPM 0x40000
mmc create system 0x20000000
mmc create fastplay 0x20000000
mmc create cache 0x20000000
mmc create tvservice 0x03C00000
mmc create tvconfig 0x02000000
mmc create tvdatabase 0x00800000
mmc create tvcustomer 0x01000000
mmc create userdata variable 0x165200000 0x337000000 0x65200000
mmc erase.p MPOOL
cleanallenv
mmc erase.p recovery
mmc erase.p misc
filepartload 20400000 LetvUpgrade.bin 4000 5d4790
mmc write.p 20400000 recovery 5d4790 1
filepartload 20400000 LetvUpgrade.bin 5d9000 220
store_secure_info recoverySign 20400000
mmc erase.p boot
filepartload 20400000 LetvUpgrade.bin 5da000 3e3300
mmc write.p 20400000 boot 3e3300 1
filepartload 20400000 LetvUpgrade.bin 9be000 220
store_secure_info bootSign 20400000
mmc erase.p system
filepartload 20400000 LetvUpgrade.bin 9bf000 db2ac3b
mmc unlzo 20400000 db2ac3b system 1
filepartload 20400000 LetvUpgrade.bin e4ea000 74e942a
mmc unlzo.cont 20400000 74e942a system 1
mmc erase.p fastplay
filepartload 20400000 LetvUpgrade.bin 159d4000 132d3
mmc unlzo 20400000 132d3 fastplay 1
mmc erase.p cache
filepartload 20400000 LetvUpgrade.bin 159e8000 1331c
mmc unlzo 20400000 1331c cache 1
filepartload 20400000 LetvUpgrade.bin 159fc000 3c00000
mmc erase.p tvservice
mmc write.p 20400000 tvservice 3c00000 1
filepartload 20400000 LetvUpgrade.bin 195fc000 2000000
mmc erase.p tvconfig
mmc write.p 20400000 tvconfig 2000000 1
filepartload 20400000 LetvUpgrade.bin 1b5fc000 220
store_secure_info teeSign 20400000
filepartload 20400000 LetvUpgrade.bin 1b5fd000 770
store_nuttx_config NuttxConfig 20400000
filepartload 20400000 LetvUpgrade.bin 1b5fe000 800000
mmc erase.p tvdatabase
mmc write.p 20400000 tvdatabase 800000 1
filepartload 20400000 LetvUpgrade.bin 1bdfe000 1000000
mmc erase.p tvcustomer
mmc write.p 20400000 tvcustomer 1000000 1
mmc erase.p userdata
filepartload 20400000 LetvUpgrade.bin 1cdfe000 12c3710
mmc unlzo 20400000 12c3710 userdata 1
filepartload 20400000 LetvUpgrade.bin 1e0c2000 38493ae
mmc unlzo 20400000 38493ae userdata 1
filepartload 20400000 LetvUpgrade.bin 2190c000 4388b
mmc unlzo 20400000 4388b userdata 1
filepartload 20400000 LetvUpgrade.bin 21950000 10000
mmc erase.p RTPM
mmc write.p 20400000 RTPM 10000 1
filepartload 20400000 LetvUpgrade.bin 21960000 12800
mmc write.boot 1 20400000 0 12800
filepartload 20400000 LetvUpgrade.bin 21973000 172e00
mmc write.p 20400000 MBOOT 172e00
setenv filesize 3e3300
setenv LOAD_KERNEL mmc read.p 0x25000000 boot 0x00400000\; authenticateAN 0x25000000
setenv filesize 3e3300
setenv BOOT_KERNEL bootm 0x25000000
setenv recoverycmd mmc read.p 0x25000000 recovery 0x00800000\; authenticateAN 0x25000000\; bootm 0x25000000
setenv MIU0_GROUP_SELMIU 1140:0018:1416:33C0
setenv MIU1_GROUP_SELMIU AE0E:0100:0A21:0000
setenv MIU0_GROUP_PRIORITY 3:0:1:2
setenv MIU1_GROUP_PRIORITY 3:1:0:2
setenv MS_MEM LX_MEM=0x11900000 EMAC_MEM=0x100000 DRAM_LEN=0x40000000 LX_MEM2=0x3FF00000,0x00000000 LX_MEM3=0xB1400000,0xEA00000
setenv KERNEL_PROTECT DRAM_SIZE1=0x40000000 DRAM_SIZE2=0x40000000
setenv ROOT root=/dev/ram rw rootwait
setenv bootargs console=ttyS0,115200 androidboot.console=ttyS0 $(ROOT) init=/init $(MS_MEM) CORE_DUMP_PATH=/data/Logs/Log.0/core_dump.%%p.gz KDebug=1 delaylogo=true
setenv bootlogo_gopidx 3
setenv bootlogo_buffer E_MMAP_ID_DIP_10M_2
setenv str_crc 2
setenv power_key 0x0A
setenv ir_header_code0 0x4C
setenv ir_header_code1 0x65
setenv factory_poweron_mode secondary
setenv db_table 0
setenv verify n
setenv bootcmd $(LOAD_KERNEL)\; $(LOAD_NUTTX)\; $(BOOT_NUTTX)\; $(BOOT_KERNEL)
saveenv
setenv LetvUpgrade_complete 1
setenv IsCheckUSB disable
setenv factory_mode 0
setenv ResetAfterUpgrade 1
setenv ForcePowerOn 1
setenv db_table 0
saveenv
printenv


操作日志我附在頂樓。
回復 支持 反對

使用道具 舉報

24#
發(fā)表于 2023-4-8 12:04 來自ZNDS手機版 | 只看該作者 | 來自河南
cnhuangjq 發(fā)表于 2022-11-16 08:27
開機腳本文件可以分享一份給我不,  S40 air  918 芯片的

樓主那種方法連接的電視串口啊,我用usb3.0連接死活都不跑碼,我的是刷錯固件磚了,待機燈亮,開不了機
回復 支持 反對

使用道具 舉報

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

本版積分規(guī)則

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

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

GMT+8, 2024-12-22 13:11 , Processed in 0.070733 second(s), 11 queries , Redis On.

Powered by Discuz!

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

© 2007-2024 ZNDS.Com

快速回復 返回頂部 返回列表