本帖最后由 cgl4134 于 2019-12-24 00:13 编辑
更新一下... 自己刚开始折腾机顶盒,好多地方都搞不太懂.. 正在学习中..
这个uboot 跟刷机包有关系,换了个潜龙的线刷包,就可以进uboot了,,
不过现在uboot好像让我搞坏了, uboot模式下, usb_update system 会失败..
欢迎其他小白交流学习
----------------------------------------------------------------------------------------
某鱼上购买了个机顶盒,想把之前从其他机顶盒中拷贝出来的system.img刷进去,第一种思路是想用ttl进入uboot模式,然后 usb_update system system.img 刷入,但是发现进不了Uboot模式..
加电后狂按回车键,机顶盒依然后启动到桌面..
下面是putty的日志,麻烦大神给分析一下..
如果有其他思路,也请大神指点一下
GXL:BL1:9ac50e:bb16dc;FEAT:ADFC318C:0
OC:3;RCY:0;EMMC:0;READ:0;0.0;CHK:0;
TE: 157451
BL2 Built : 18:58:24, Oct 25 2016.
gxl gc9db010 - xiaobo.gu@droid05
set vcck to 1080 mv
set vddee to 1050 mv
Board ID = 2, adc=153
CPU clk: 1200MHz
2layers board, use ddr_set[0]
DDR chl: Rank0+1 @ 720MHz - FAIL
DDR chl: Rank0 @ 720MHz - PASS
DQS-corr enabled
DDR scramble enabled
Rank0: 1024MB(auto)-2T-11
DataBus test pass!
AddrBus test pass!
-s
Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000
Load bl30 from eMMC, src: 0x00010200, des: 0x01100000, size: 0x00007400
Load bl301 from eMMC, src: 0x00018200, des: 0x01200000, size: 0x00002000
Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019400
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x000a6200
NOTICE: BL3-1: v1.0(debug):959fdf0
NOTICE: BL3-1: Built : 15:01:44, Dec 29 2016
aml log : bl31 normal boot !
[Image: gxl_v1.1.3086-872dec0 2016-09-21 21:56:30 xiaobo.gu@droid05]
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: 0 0 3 c c 0 4f b3 80 a0 0 c4 not ES chip
efuse init ops = c4
efuse init hdcp = c, cf9=7
[0.484739 Inits done]
secuINFOr:e t a sBkL 3s-t1a:r tI!ni
tializing ruhnitgihm et assekvices
WARNING: No OPTEE provided by BL2 boot loader
ERROR: Error initializing runtime service opteed_fast
INFO: BL3-1: Preparing for EL3 exit to normal world
INFO: BL3-1: Next image address = 0x1000000
INFO: BL3-1: Next image spsr = 0x3c9
U-Boot 2015.01-svn125577 (Mar 18 2017 - 21:47:22)
DRAM: 1 GiB
Relocation Offset is: 36ecf000
gpio: pin GPIODV_24 (gpio 43) value is 0
gpio: pin GPIOAO_3 (gpio 103) value is 1
mwm 0xc8837004:[0x aa203] with [0x ea203] ok
mwm 0xc883700c:[0x 3e3b744] with [0x 3e3b764] ok
mwm 0xc8837010:[0x c0101] with [0x c8101] ok
mwm 0xc8837010:[0x c8101] with [0x 128101] ok
register usb cfg[0][1] = 0000000037f63db0
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: clk_level = 7
vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300)
boot_device_flag : 1
Nand PHY Ver:1.01.001.0006 (c) 2013 Amlogic Inc.
init bus_cycle=6, bus_timing=7, system=5.0ns
reset failed
get_chip_type and ret:fffffffe
get_chip_type and ret:fffffffe
chip detect failed and ret:fffffffe
nandphy_init failed and ret=0xfffffff1
MMC: aml_priv->desc_buf = 0x0000000033ebfdb0
aml_priv->desc_buf = 0x0000000033ec20d0
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
[mmc_startup] mmc refix success
[mmc_init] mmc init success
overide_emmc_partition_table: overide cache
[mmc_get_partition_table] skip partition cache.
mmc read lba=0x12000, blocks=0x2
mmc read lba=0x12002, blocks=0x2
mmc_read_partition_tbl: mmc read partition OK!
eMMC/TSD partition table have been checked OK!
mmc env offset: 0x27400000
In: serial
Out: serial
Err: serial
board id is : 2
hpd_state=1
[720p50hz] is invalid for cvbs.
set hdmitx VIC = 19
config HPLL = 2972
HPLL: 0xc000027b
config HPLL done
j = 2 vid_clk_div = 1
hdmitx phy setting done
hdmitx: set enc for VIC: 19
enc_vpu_bridge_reset[1189]
rx version is 2.0 div=10
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
read emmc dtb
dwmac.c9410000
Error: dwmac.c9410000 address not set.
wipe_data=successful
wipe_cache=successful
upgrade_step=2
reboot_mode=cold_boot
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
[OSD]ERR: 24 bit/pixel mode, but BMP has 16 bit/pixel
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[BL31]: tee size: 0
amlkey_issecure() 138: ret 1
amlkey_size() 162: ret 1
[KM]Error:f[key_unify_read]L301:key[mac] not programed yet
[KM]Error:f[do_sec_keyunify]L682:mac key read fail
don't use random mac produce in uboot
IR init done!
gpio: pin GPIOH_6 (gpio 55) value is 1
Hit any key to stop autoboot: 0
(Re)start USB...
USB0: USB3.0 XHCI init start
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
reading s905_autoscript
1270 bytes read in 28 ms (43.9 KiB/s)
## Executing script at 01020000
reading kernel.img
14163968 bytes read in 7290 ms (1.9 MiB/s)
reading uInitrd
4594240 bytes read in 2394 ms (1.8 MiB/s)
reading uEnv.ini
286 bytes read in 22 ms (12.7 KiB/s)
reading dtb.img
39697 bytes read in 43 ms (901.4 KiB/s)
Bad Linux ARM64 Image magic!
** Bad device usb 1 **
** Bad device usb 1 **
** Bad device usb 2 **
** Bad device usb 3 **
card out
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
emmc/sd response timeout, cmd1, status=0x1ff2800
ee_gate_off ...
## Booting Android Image at 0x01080000 ...
reloc_addr =33f44bc0
copy done
Single dtb detected
load dtb from 0x1000000 ......
Uncompressing Kernel Image ... OK
kernel loaded at 0x01080000, end = 0x02033200
Loading Ramdisk to 33c36000, end 33ebca14 ... OK
Loading Device Tree to 000000001fff3000, end 000000001ffffb10 ... OK
Starting kernel ...
uboot time: 14958164 us
EMMC:0;READ:0;0.0;CHK:0;
TE: 157961
BL2 Built : 18:58:24, Oct 25 2016.
gxl gc9db010 - xiaobo.gu@droid05
set vcck to 1080 mv
set vddee to 1050 mv
Board ID = 2, adc=154
CPU clk: 1200MHz
2layers board, use ddr_set[0]
DDR chl: Rank0+1 @ 720MHz - FAIL
DDR chl: Rank0 @ 720MHz - PASS
DQS-corr enabled
DDR scramble enabled
Rank0: 1024MB(auto)-2T-11
DataBus test pass!
AddrBus test pass!
-s
Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000
Load bl30 from eMMC, src: 0x00010200, des: 0x01100000, size: 0x00007400
Load bl301 from eMMC, src: 0x00018200, des: 0x01200000, size: 0x00002000
Load bl31 from eMMC, src: 0x0001c200, des: 0x10100000, size: 0x00019400
Load bl33 from eMMC, src: 0x00038200, des: 0x01000000, size: 0x000a6200
NOTICE: BL3-1: v1.0(debug):959fdf0
NOTICE: BL3-1: Built : 15:01:44, Dec 29 2016
aml log : bl31 normal boot !
[Image: gxl_v1.1.3086-872dec0 2016-09-21 21:56:30 xiaobo.gu@droid05]
bl30: check_permit, count is 1
bl30: check_permit: ok!
chipid: 0 0 3 c c 0 4f b3 80 a0 0 c4 not ES chip
efuse init ops = c4
efuse init hdcp = c, cf9=7
[0.485185 Inits done]
INFsOe:c u r e BtLa3s-k1 :s tIanritt!ia
lizing runtimhei gshe rvices
WARNING: No OPTEE provided by BL2 boot loader
ERROR: Error initializing runtime service opteed_fast
INFO: BL3-1: Preparing for EL3 exit to normal world
INFO: BL3-1: Next image address = 0x1000000
INFO: BL3-1: Next image spsr = 0x3c9
U-Boot 2015.01-svn125577 (Mar 18 2017 - 21:47:22)
DRAM: 1 GiB
Relocation Offset is: 36ecf000
gpio: pin GPIODV_24 (gpio 43) value is 0
gpio: pin GPIOAO_3 (gpio 103) value is 1
mwm 0xc8837004:[0x aa203] with [0x ea203] ok
mwm 0xc883700c:[0x 3e3b744] with [0x 3e3b764] ok
mwm 0xc8837010:[0x c0101] with [0x c8101] ok
mwm 0xc8837010:[0x c8101] with [0x 128101] ok
register usb cfg[0][1] = 0000000037f63db0
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: clk_level = 7
vpu: set clk: 666667000Hz, readback: 666660000Hz(0x300)
boot_device_flag : 1
Nand PHY Ver:1.01.001.0006 (c) 2013 Amlogic Inc.
init bus_cycle=6, bus_timing=7, system=5.0ns
reset failed
get_chip_type and ret:fffffffe
get_chip_type and ret:fffffffe
chip detect failed and ret:fffffffe
nandphy_init failed and ret=0xfffffff1
MMC: aml_priv->desc_buf = 0x0000000033ebfdb0
aml_priv->desc_buf = 0x0000000033ec20d0
SDIO Port B: 0, SDIO Port C: 1
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
[mmc_startup] mmc refix success
[mmc_init] mmc init success
overide_emmc_partition_table: overide cache
[mmc_get_partition_table] skip partition cache.
mmc read lba=0x12000, blocks=0x2
mmc read lba=0x12002, blocks=0x2
mmc_read_partition_tbl: mmc read partition OK!
eMMC/TSD partition table have been checked OK!
mmc env offset: 0x27400000
In: serial
Out: serial
Err: serial
board id is : 2
hpd_state=1
[720p50hz] is invalid for cvbs.
set hdmitx VIC = 19
config HPLL = 2972
HPLL: 0xc000027b
config HPLL done
j = 2 vid_clk_div = 1
hdmitx phy setting done
hdmitx: set enc for VIC: 19
enc_vpu_bridge_reset[1189]
rx version is 2.0 div=10
[store]To run cmd[emmc dtb_read 0x1000000 0x40000]
read emmc dtb
dwmac.c9410000
Error: dwmac.c9410000 address not set.
wipe_data=successful
wipe_cache=successful
upgrade_step=2
reboot_mode=cold_boot
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=5760, height=2160
[OSD]ERR: 24 bit/pixel mode, but BMP has 16 bit/pixel
amlkey_init() enter!
[EFUSE_MSG]keynum is 4
[BL31]: tee size: 0
amlkey_issecure() 138: ret 1
amlkey_size() 162: ret 1
[KM]Error:f[key_unify_read]L301:key[mac] not programed yet
[KM]Error:f[do_sec_keyunify]L682:mac key read fail
don't use random mac produce in uboot
IR init done!
gpio: pin GPIOH_6 (gpio 55) value is 1
Hit any key to stop autoboot: 0
(Re)start USB...
USB0: USB3.0 XHCI init start
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
** Bad device usb 0 **
** Bad device usb 1 **
** Bad device usb 2 **
** Bad device usb 3 **
card out
emmc/sd response timeout, cmd8, status=0x1ff2800
emmc/sd response timeout, cmd55, status=0x1ff2800
emmc/sd response timeout, cmd1, status=0x1ff2800
ee_gate_off ...
## Booting Android Image at 0x01080000 ...
reloc_addr =33f44bc0
copy done
Single dtb detected
load dtb from 0x1000000 ......
Uncompressing Kernel Image ... OK
kernel loaded at 0x01080000, end = 0x02033200
Loading Ramdisk to 33c36000, end 33ebca14 ... OK
Loading Device Tree to 000000001fff3000, end 000000001ffff3a1 ... OK
Starting kernel ...
uboot time: 4222676 us
[ 0.000000@0] Initializing cgroup subsys cpu
[ 0.000000@0] Initializing cgroup subsys cpuacct
[ 0.000000@0] Linux version 3.14.29-svn125577 (chenshouhui@ubuntu) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) ) #1 SMP PREEMPT Sat Mar 18 22:16:52 HKT 2017
[ 0.000000@0] CPU: armv71 Processor [410fd034] revision 4
[ 0.000000@0] bootconsole [earlycon0] enabled
INFO: HDCP22 key read fail!
INFO: p1d 0
INFO: pd1 0
root@M201s_S905L:/ #