機頂盒里的韌體有個關鍵檔案被我改名了,現在無限重啟中。TTL可以輸出但是不能輸入,無法使用按鍵中斷uboot,只能插入U盤運行里面的腳本檔案。研究了好幾天,發現很多io命令都是修改檔案內容的,不知道怎么修改檔案名。
>>1 help
? - alias for 'help'
ac - set a new config to the bootargs
add_autotest- add_autotest - Perform autotest
add_hsl - add_hsl - autotest with hsl
base - print or set address offset
bdinfo - print Board Info structure
bin2nand- bin2nand usbport withsparedata?1:0 binname partition_name - read binary files and restore it to nand
>> help bin2nand
bin2nand - bin2nand usbport withsparedata?1:0 binname partition_name - read binary files and restore it to nand
Usage:
bin2nand command: bin2nand usbport withsparedata?1:0 binname partition_name
bininfo - bininfo -print parameter information of each partition and environment
boot - boot default, i.e., run 'bootcmd'
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
bootvideo- bootvideo - Display Logo_Video
checkfile- check file exist in u disk,and set the partition.
chpart - change active partition
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
costar - do oad update from the specified file that is in oad partition
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
dmx_init- dmx_init - initialize the demux setting
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
dynpart - dynamically calculate partition table based on <mtd-def>/'dynparts' and BBT (it is better to set the last partition size to SIZE_REMAINING)
ebist - PHY loopback test
echo - echo args to console
editenv - edit environment variable
edump - EMAC Register settings dump
eloopback- Long loopback test
env - environment handling commands
epd - emac power down
estart - EMAC start
exit - exit script
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
>> help fatwrite
fatwrite - fatwrite - write binary file to a dos filesystem
Usage:
fatwrite <interface> <dev[:part]> <addr> <filename> [bytes]
- load binary file 'filename' from 'dev' on 'interface'
to address 'addr' from 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:
hdmi - hdmi -
help - print command description/usage
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
loadb - load binary file over serial line (kermit mode)
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)
mscompress7- Compress or decompress lzma files
msg - print string - msg [string]
mstar - update kernal & root file system automatically by script file
mtdparts- define flash/nand partitions
mtest - simple RAM read/write test
mversion- show changelist - mversion
mw - memory write (fill)
nand - NAND sub-system
>>1 nand
nand - NAND sub-system
Usage:
nand info - show available NAND devices
nand device [dev] - show or set current device
nand read - addr off|partition size
nand write - addr off|partition size
read/write 'size' bytes starting at offset 'off'
to/from memory address 'addr', skipping bad blocks.
nand erase[.spread] [clean] off size - erase 'size' bytes from offset 'off'
With '.spread', erase enough for given file size, otherwise,
'size' includes skipped bad blocks.
nand erase.part [clean] partition - erase entire mtd partition'
nand erase.chip [clean] - erase entire chip'
nand bad - show bad blocks
nand dump[.oob] off - dump page
nand scrub off size | scrub.part partition | scrub.chip
really clean NAND erasing bad blocks (UNSAFE)
nand markbad off [...] - mark bad block(s) at offset (UNSAFE)
nand biterr off - make a bit error at offset (UNSAFE)nand dd nand2usb/usb2nand [usb port num] - db
nandbin - nandbin usbport withsparedata?1:0 oobsize dumpC/T?1:0 bin_name partition_name - read out the contents of nand and store it to usb disk
nandbin2- nandbin2 - read out ubi partition and environment parameter at once and store it to usb disk
nandbinall- nandbinall usbport withsparedata?1:0 oobsize dumpC/T?1:0- read out the whole contents of nand and store it to usb disk
nandclk - nandclk - tune nand clock
nandinfo- nandinfo - show nand info
nboot - nboot - boot from NAND device
ncisbl - write cis, bootloader and uboot or only CIS for ROM boot
ncishash- write cis and hash[0-2] for Secure ROM boot
net_miu - set miu setting on software upgrade
nm - memory modify (constant address)
nsbootblk- Show how many block count sboot is
nuttxProtect- nuttx Protect - Protect nuttx
oad - oad - Software Upgrade(OAD)
oad_get_size- oad_get_size - Get the file size from OAD download
oaddvbc - oad - Software Upgrade(OAD)
osd_create- osd_create - create osd layer
osd_destroy- osd_destroy - destroy osd layer
osd_flush- osd_flush - flush canvas to screen
ostar - ostar - update softwave system automatically via oad
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
recovery_wipe_partition- do recovery wipe data or cache.
refreshcis- Rewrite cis for first factory boot
reset - Perform RESET of the CPU
riu - riu - riu command
rsv - rsv - Set reserved block as bad or good
run - run commands in an environment variable
sar - sar Command:
saveenv - save environment variables to persistent storage
setenv - set environment variables
showtb - Show register command table. - showtb [stage]
> showtb 0
No. CmdName Stage
1 refreshcis STAGE_MSINIT
2 initDbgLevel STAGE_MSINIT
3 dbtable_init STAGE_MSINIT
4 updatemiureg STAGE_MSINIT
showvar - print local hushshell variables
sleep - delay execution for some time
source - run script from memory
spi2usb - Read data from spi to usb
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
tuner_demodtype- tuner_demodtype - set frontend type
tuner_init- tuner_init - frondend initialization
tuner_tune- tuner_tune - tune RF to check lock or not
ubi - ubi commands
ubi2nand- ubi2nand - read ubi partition file and restore it to nand
ubibin - ubibin - read out ubi partition and store it to usb disk
ubifsfilesize- get file size in UBIFS volume
ubifsload- load file from an UBIFS filesystem
ubifsls - list files in a directory
ubifsmount- mount UBIFS volume
u
uj5u.com熱心網友回復:
1、直接用uboot中的命令修改,這種辦法好像行不通2、把韌體讀取到U盤,然后在PC上修改,再刷到機頂盒里。但是不知道用什么工具修改bin檔案
>> mtdparts
device nand0 <edb64M-nand>, # parts = 5
#: name size offset mask_flags
0: MBOOT 0x00260000 0x00180000 0
1: MBOOTBAK 0x00260000 0x003e0000 0
2: UBILD 0x00200000 0x00640000 0
3: UBI 0x07600000 0x00840000 0
4: NA 0x001c0000 0x07e40000 0
active partition: nand0,0 - (MBOOT) 0x00260000 @ 0x00180000
defaults:
mtdids : nand0=edb64M-nand
mtdparts: mtdparts=nand:0x40000(NPT),0x40000(KL_BP),0x500000(KL),0x7500000(UBI)
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/103226.html
標籤:系統維護與使用區
