赞助论坛
  • 1879阅读
  • 0回复

关于蓝星机顶盒 OTA用户检测结果以及跳转程序的部分 [复制链接]

楼层直达
chj1  
级别: 中级会员
发帖
255
精华
0
金币
650
威望
13
贡献
10
好评
22
注册
2009-10-25
楼主    chj1 发表于: 2021-12-17 16:25:14 
今天整理了一下蓝星机顶盒,关于OTC用户检测结果以及跳转程序地址位置的段落部分。该部分地址位于00050000,现在分享给大家本人能力有限,希望大家共同努力,看看能不能修改出通用的程序。
#barcode check.check barcode 0x8F 0x50000..#usb check.check usb flash_upgrade.bin...#ota check.setenv ota_flag 1.check ota 0x50000 0xA2 0xA3.echo \(ota f lag is $ota_flag\)..#load app.If test $ota_flag -eq 1;then..if loadimg 2 lzma 0x88 0x100000 0x81500000 0x80008000;then...echo Load maincode to 0x80008000...setenv ota_flag 1..elif loadimg 2 lzma 0x87 0x50000 0x81500000 0x80008000;then...echo Load Ota to 0x80008000...setenv ota_flag 2..elif loadimg 2 lzma 0x8D 0x50000 0x81500000 0x80008000;then...echoLoad Ota backup to 0x80008000...setenv ota_flag 3..else...setenv ota_flag 4..fi.elif test $ota_flag -eq 2;then..if loadimg 2 lzma 0x87 0x50000 0x81500000 0x80008000;then...echo Load Ota to 0x80008000...setenv ota_flag 2..elif loadimg 2 lzma 0x8D 0x50000 0x81500000 0x80008000;then...echo Load Ota backup to 0x80008000...setenv ota_flag 3..elif loadimg 2 lzma 0x88 0x100000 0x81500000 0x80008000;then...echo Load maincode to 0x80008000...setenv ota_flag 1..else...setenv ota_flag  4..fi.elif test $ota_flag -eq 3;then..if loadimg 2 lzma 0x8D 0x50000 0x81500000 0x80008000;then.  ..echo Load Ota backup to 0x80008000...setenv ota_flag 3..elif loadimg 2 lzma 0x87 0x50000 0x81500000 0x80008000;then...echo Load Ota to 0x80008000...setenv ota _flag 2..elif loadimg 2 lzma 0x88 0x100000 0x81500000 0x80008000;then...echo Load maincode to 0x80008000...setenv ota_flag 1..else...setenv ota_flag 4..fi.fi..if test $ota_flag -eq 1;then..#????avcpu????..setenv av_cpu_addr 0x83e10000..if loadimg 2 lzma 0x FD 0x100000 0x81500000 $av_cpu_addr; then...echo \(avcpu size is $imgsize\)...cpu 1 release $av_  cpu_addr..else...echo av cpu decompress fail , force jump to ota...if loadimg 2 lzma 0x87 0x50000 0x81500000 0x80008000;then....  echo Load Ota to 0x80008000....setenv ota_flag 2...elif loadimg 2 lzma 0x8D 0x50000 0x81500000 0x80008000;then....echo Load Ota backup to 0x80008000....setenv ota_flag 3...else....setenv ota_flag 4...fi..fi.fi..#????????.if test $ota_flag -eq 4;then..echo no app can be run.else..go 0x80008000.