小米盒子4S Pro网上资料比较少,只能自己拆机查看了
拆机发现板子非常简陋,板子连TF卡槽都取消了,主板上有一个未焊接的3脚焊盘位,应该就是TTL,接上测试可以进行调试,系统uboot可以进入,系统命令行操作是关闭的,无法进入,不过能进入Uboot感觉还是可以玩玩的,说不定可以USB启动外部系统
TTL接口,如果没有启动信息可能是TX,RX标反了,反接一下即可
SM1:BL:511f6b:81ca2f;壮举:B0F971B0:20292020;POC:F;RCY:0;电磁兼容:0;阅读:0;0.0;0.0;CHK:0;
bl2_stage_init 0x01
bl2_stage_init 0x81
硬件 ID:0x0000 - PWM ID 0x01
bl2_stage_init 0xc1
bl2_stage_init 0x02
L0:0000000f
L1:00000700
L2:00008067
L3:15000020
S1:00000000
B2:20292020
编号:B1:B0F971B0
TE:514704
BL2 建成:13 年 38 月 54 日 10:2020:12。G92322A G<>CD - shuai.wu@xiaomi
板 ID = 0
将 cpu clk 设置为 24M
将 clk81 设置为 24M
使用 GP1_pll 作为 DSU clk。
DSU clk:1200 兆赫
CPU时钟: 1800 MHz
将 clk81 设置为 166.6M
eMMC 启动 [url=home.php?mod=space&uid=103582]@[/url] 0
SW8 小号
板 ID:0
从 eMMC 加载 FIP HDR DDR,SRC:0x00010200,des:0xfffd0000,尺寸:0x00004000,部件:0
固件解析完成
PIEI 准备完成
00000000
EMMC 交换机 1 正常
00000000
EMMC 交换机 2 正常
没有找到来自 eMMC 的 ddr boot_info
FastBoot数据验证
结果:255
Cfg 最大值:12,浓度:1。 板 ID:255。力回路 cfg
DDR4 探针
LPDDR4_PHY_V_0_1_21-建成 : 15:37:51, Mar 26 2020.G12A GF098346 - gongwei.chen@droid11-SZ
ddr clk 至 1320MHz
00000000
EMMC 交换机 0 正常
dmc_version 0001
检查物理场体结果
信息:初始化结束
信息:读取结束启用训练
信息:精细写入调平结束
信息:错误:训练失败!
1D 训练失败
Cfg 最大值:12,浓度:2。 板 ID:255。力回路 cfg
DDR4 探针
ddr clk 至 1320MHz
dmc_version 0001
检查物理场体结果
信息:初始化结束
信息:读取结束启用训练
信息:精细写入调平结束
信息:读取 dq 纠偏训练结束
信息:MPR 读取延迟中心优化结束
信息:写入结束均衡粗略延迟
INFO:写入延迟中心优化结束
INFO:读取延迟中心优化结束
信息:最大读取延迟训练结束
信息:培训已成功进行!
1D训练成功
检查物理场体结果
信息:初始化结束
信息:2D读取延迟结束电压中心优化
INFO : 2D 写入延迟结束 电压中心优化
信息:培训已成功进行!
soc_VRef_reg_value 0x 00000032 00000030 0000002b 0000002f 0000002d 0000002d 00000032 0000002f 0000002d 00000030 0000002e 00000030 0000002a 0000002f 00000031 0000002d 00000034 00000031 0000002f 0000002b 0000002e 0000002f 0000002e 00000030 0000002c 0000002c 00000032 00000031 0000002f 0000002a 00000032 0000002f dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0001
dram_vref_reg_value 0x 0000001a
2D训练成功
自动大小-- 65535DDR cs0 大小: 2048MB
DDR CS1 大小:0MB
DMC_DDR_CTRL: 0050002cDDR 大小: 2048MB
cs0 DataBus 测试通过
cs0 AddrBus 测试通过
非 SEC 加扰使用零键
已启用 DDR 加扰
100bdlr_step_size ps== 440
结果报告
启动次数 0启用 ddr reg 访问
00000000
EMMC 交换机 3 正常
BL2:rpmb 计数器:0x0000001c
00000000
EMMC 交换机 0 正常
从 eMMC 加载 FIP HDR,src:0x00010200,des:0x01700000,大小:0x00004000,部件:0
从 eMMC 加载 BL3X,来源:0x00078200,des:0x01768000,尺寸:0x0013aa00,部件:0
0.0;0.0;M3 CHK:0;cm4_sp_mode 0
[Image: g12a_v1.1.3395-4f61cc3 2020-09-21 11:08:04 shuai.wu@xiaomi]
OPS=0x03
ring efuse init
2b 0b 03 00 01 11 2a 00 00 11 31 36 41 34 56 50
[0.050490 Inits done]
secure task start!
high task start!
low task start!
boot bl31
NOTICE: BL31: v1.3(release):61f890e5e
NOTICE: BL31: Built : 15:09:20, Sep 16 2020
NOTICE: BL31: G12A secure boot!
NOTICE: BL31: BL33 decompress pass
INFO: BL3-2: ATOS-V2.4.4-30-g921539e #1 Fri Dec 6 01:21:23 2019 -0700 arm
INFO: BL3-2: Chip: SM1 Rev: B (2B:B - 0:2)
INFO: BL3-2: crypto engine DMA
INFO: BL3-2: secure time TEE
INFO: BL3-2: CONFIG_DEVICE_SECURE 0xb200000e
U-Boot 2015.01-g6223619 (Oct 19 2020 - 14:52:47), Build: jenkins-uboot_frozen_release-2
DRAM: 1 GiB
Relocation Offset is: 36d89000
mmu cfg end: 0x40000000
mmu cfg end: 0x40000000
register usb cfg[0][1] = 0000000037ea4890
gpio: pin GPIOAO_11 (gpio 11) value is 1
InUsbBurn
wait for phy ready count is 0
noSof
sof timeout, reset usb phy tuning
gpio: pin GPIOX_6 (gpio 86) value is 1
MMC: aml_priv->desc_buf = 0x0000000033d7a0c0
aml_priv->desc_buf = 0x0000000033d7c400
SDIO Port B: 0, SDIO Port C: 1
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, cmd->cmdarg=0x1aa, status=0x1ff2800
emmc/sd response timeout, cmd55, cmd->cmdarg=0x0, status=0x1ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 40000000
[set_emmc_calc_fixed_adj][875]find fixed adj_delay=20
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
AML 日志:R2048 检查通过!
Amlogic multi-dtb 工具
检测到单个 dtb
启动 DTS,缓冲区 = 0000000001000000,dt_addr=0000000001000000
get_partition_from_dts() 92: ret 0
Amlogic multi-dtb 工具
检测到单个 dtb
零件数:17
00:徽标 0000000000800000 1
01:恢复0000000001800000 1
02: 其他 0000000000800000 1
03: DTBO 0000000000800000 1
04: cri_data 0000000000800000 2
05: 参数 0000000001000000 2
06:启动0000000001000000 1
设置 has_boot_slot = 0
07: 呼吸道合胞病毒 0000000001000000 1
08:元数据0000000001000000 1
09: VBMETA 0000000000200000 1
10: 三通 0000000002000000 1
11:factorydata 0000000000a00000 2
12:供应商0000000020000000 1
13:系统0000000040000000 1
14:产品0000000002000000 1
15:缓存 0000000020000000 2
16: 数据 ffffffffff 4
init_part() 297: PART_TYPE_AML
eMMC/TSD分区表已检查正常!
crc32_s:0x1577dad == 存储 crc_pattern:0x1577dad!!!
crc32_s:0xee152b83 == 存储crc_pattern:0xee152b83!!!
crc32_s:0x79f50f07 == 存储crc_pattern:0x79f50f07!!!
MMC 环境偏移量:0x27400000
AML 日志:内部 SYS 错误!
reboot_mode=cold_boot
amlkey_init() 进来!
[EFUSE_MSG]keynum 为 4
VPU:驱动程序版本:v20190313
VPU:检测芯片类型:11
vpu:clk_level默认值:7(666667000Hz),最大值:7(666667000Hz)
VPU:DTS 中的 clk_level:7
虚拟专用设备:vpu_power_on
虚拟专用风扇:set_vpu_clk
vpu:设置 clk:666667000Hz,回读:666666667Hz(0x100)
VPU:完成set_vpu_clk
虚拟专用设备:vpu_module_init_config
VPP:vpp_init
VPP:VPP OSD2矩阵RGB2YUV..............
hdr_func 4、hdr_process_select 0x1
GPIO:引脚 GPIOH_7 (GPIO 38) 值为 1
CVBS:CPUID:0x2b
CVBS:查找performance_pal配置
AML 日志:内部 SYS 错误!
PLL 传感器平均值: 0x1f9b, u_efuse: 0x2b
温度1: 36
DDR TToonel 平均: 0x1f9c, u_efuse: 0x53
温度2: 37
设备冷却完成
hpd_state=0
do_hpd_detect:HDMIMODE=2160p60Hz
do_hpd_detect:colorattribute=420,8bit
将环境保存到 aml-storage...
MMC 环境偏移量:0x27400000
正在写入 MMC(1)...做
无灌电流,回退至720p60Hz[4]
HDR 模式为 0
DV 模式为 ver:0 len:0
HDR10+ 模式为 0
读取 HDMICHECKSUM 0x00000000,ColorAttribute 420,8 位
读取 HDMIMODE 2160p60Hz、ColorSpace <NULL>、COLORDEPTH <NULL>
do_get_parse_edid:autoMode = false,manualMode=97
isYuv4KSink: false, maxTMDSRate=150
do_get_parse_edid:非 yuv4k 下沉器:inColorSpace:HDMI_COLOR_FORMAT_RGB
do_get_parse_edid:默认 inColorDepth:HDMI_COLOR_DEPTH_24B
电视是一样的,初始模式是:576cvbs attr:420,8bit
dolby_status 0
dolby_status 0
dolby_vision_process:没有电视和DV禁用
将环境保存到 aml-storage...
MMC 环境偏移量:0x27400000
正在写入 MMC(1)...做
[OSD]从 dts 加载 fb addr:/meson-fb
[OSD]从 dts 加载 fb addr:/fb
[OSD]设置initrd_high:0x7f800000
[OSD]fb_addr标志:0x7f800000
[OSD]从 dts 加载 fb addr:/meson-fb
[OSD]从 dts 加载 fb addr:/fb
[OSD]fb_addr标志:0x7f800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]帆布初始化
[画布]addr=0x7f800000 width=3840, height=2160
[OSD]osd_hw.free_dst_data:0,719,0,575
[OSD]osd1_update_disp_freescale_enable
VPP: vpp_matrix_update: 2
cvbs_performance_enhancement
cvbs_config_hdmipll_g12a
cvbs_set_vid2_clk
dolby_status 0
dolby_status 0
hdr_packet
VPP:hdr_policy = 0
vpp:接收 hdr_info.hdr_sup_eotf_smpte_st_2084 = 0
s_version:U-Boot 2015.01-g6223619
按 Enter 或空格键或 Ctrl+C 键停止自动启动 -- : 0
共相 0x3,TX-DLY 0,时钟 40000000
共相 0x3,TX-DLY 0,时钟 40000000
共相 0x3,TX-DLY 0,时钟 400000
emmc/sd response timeout, cmd8, cmd->cmdarg=0x1aa, status=0x1ff2800
emmc/sd response timeout, cmd55, cmd->cmdarg=0x0, status=0x1ff2800
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 40000000
[set_emmc_calc_fixed_adj][875]find fixed adj_delay=20
init_part() 297: PART_TYPE_AML
[mmc_init] mmc init success
switch to partitions #0, OK
mmc1(part 0) is current device
do_factorydata_read:204 Can't find out assm_mn from factorydata.
factorydata - Access the factorydata from Xiaomi Partition
Usage:
factorydata argv:
dump
read keyname
write keyname value
erase keyname
do_factorydata_read:204 Can't find out loglevel from factorydata.
factorydata - Access the factorydata from Xiaomi Partition
Usage:
factorydata argv:
dump
read keyname
write keyname value
erase keyname
do_factorydata_read:204 Can't find out console_enable from factorydata.
factorydata - Access the factorydata from Xiaomi Partition
Usage:
factorydata argv:
dump
read keyname
write keyname value
erase keyname
Command: bcb uboot-command
Start read misc partition datas!
BCB hasn't any datas,exit!
do_monitor_bt_cmdline
USB0: USB3.0 XHCI init start
Register 3000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 3 USB Device(s) found
udev->descriptor.idVendor:0xbda udev->descriptor.idProduct:0xc820
enumerate rtk usb dev OK usb_port:1
bt_cmdline: start to download fw
bt_cmdline: fw downloaded
rtk_set_wake_polarity, polarity=0
hci_set_scan_enable
no recovery mod!
rc scan end
[imgread]szTimeStamp[2020102104463406]
[imgread]secureKernelImgSz=0x91d800
aml log : R~2048 check pass!
aml log : R2048 check pass!
aml log : R2048 check pass!
avb2: 0
ee_gate_off ...
avb2: 0
## Booting Android Image at 0x01080000 ...
Kernel command line: androidboot.dtbo_idx=0 buildvariant=user
[store]Is good fdt check header, no need decrypt!
load dtb from 0x1000000 ......
Amlogic multi-dtb tool
Single dtb detected
Loading Kernel Image(COMP_NONE) ... OK
kernel loaded at 0x01080000, end = 0x01989000
libfdt fdt_getprop(): FDT_ERR_NOTFOUND
Loading Device Tree to 0000000009fea000, end 0000000009fffbbc ... OK
fdt_fixup_memory_banks, reg:0000000000000000
Starting kernel ...
uboot time: 10220517 us
[ 0.000000@0] Linux version 4.9.113-g0ba0888-dirty (jenkins@c5-mitv-bsp-build07.bj) (gcc version 6.3.1 20170109 (Linaro GCC 6.3-2017.02) ) #1 SMP PREEMPT Wed Oct 21 04:30:00 CST 2020
[ 0.000000@0] Reserved memory: regions without no-map are not yet supported
[ 0.000000@0] Kernel command line: init=/init console=ttyS0,115200 no_console_suspend earlyprintk=aml-uart,0xff803000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 hdr_policy=0 hdr_priority= reboot_mode_android=normal logo=osd0,loaded,0x3d800000 vout=576cvbs,enable hdmitx=,420,8bit hdmimode=2160p60hz hdmichecksum=0x00000000 dolby_vision_on=0 frac_rate_policy=1 hdmi_read_edid=1 cvbsmode=576cvbs osd_reverse=0 video_reverse=0 irq_check_en=0 androidboot.firstboot=0 jtag=disable androidboot.hardware=amlogic androidboot.bootloader=U-Boot 2015.01-g6223619 androidboot.build.expect.baseband=N/A androidboot.reboot_mode=cold_boot androidboot.platform_id=216 androidboot.mi.cpu=Cortex-A55 androidboot.mi.gpu=Mali-G31 androidboot.model_name=m23m_00_3f androidboot.provider=amlogic androidboot.serialno=30699800000001836 androidboot.mac=6c:0d:c4:0f:6e:0a quiet root=/dev/mmcblk0p18 ro rootwait skip_initramfs androidboot.selinux=enforcing otg_device=0 androidboot.dtbo_idx=0 build
[ 0.455892@0] vout: error: invalid vinfo1. current vmode is not supported
[ 0.457064@0] vout: error: invalid vinfo1. current vmode is not supported
[ 0.602556@1] meson_cpufreq_init:don't find the node <dynamic_gp1_clk>
[ 0.606573@1] ff803000.serial: clock gate not found
[ 0.747851@1] di_get_vpu_clkb: get clk vpu error.
[ 0.749132@1] get fclk_div5 err
[ 0.750031@1] vdin_drv_probe: vdin cannot get msr clk !!!
[ 0.755758@1] get fclk_div5 err
[ 0.758555@1] vdin_drv_probe: vdin cannot get msr clk !!!
[ 0.768861@1] pixel_probe: vpp probe func error!
[ 0.810889@0] cectx ff80023c.aocec: 未找到 'port_num'
[ 0.810936@0] CECTX FF80023C.AOCEC: 无 HDMIX regs
[ 0.815271@0] CECTX FF80023C.AOCEC: NO HHI REGS
[ 0.821827@0] cectx ff80023c.aocec: wakeup_reason:0x0
[ 0.857197@0] request_irq 错误 ret=-22
[ 0.857258@0] dev_pm_set_wake_irq失败: -22
[ 0.861218@0] page_trace_module_init,创建 sysfs 失败
[ 0.866034@0] defendkey ff630218.defendkey: 预留内存不足!
[ 1.089421@0] asoc-aml-card auge_sound:控制 2:0:0:I2SIn CLK:0 已存在
[ 1.091526@0] snd_tdm ff660000.audiobus:tdm@1:ASoC:无法添加 I2SIn CLK:-16
[ 1.098990@0] aml_dai_tdm_probe,添加 SND TDM 控件失败
[ 1.104626@0] asoc-aml-card auge_sound:控制 2:0:0:I2SIn CLK:0 已存在
[ 1.112379@0] snd_tdm ff660000.audiobus:tdm@2:ASoC:无法添加 I2SIn CLK:-16
[ 1.119799@0] aml_dai_tdm_probe,添加 SND TDM 控件失败
[ 1.[ 1.590270@3] EXT4-fs (mmcblk0p18):由于功能不兼容,无法作为 ext3 挂载
[ 1.623333@3] usb 1-1:不支持的设备
[ 1.623707@3] usb 1-1:不支持的设备
[ 1.626047@3] usb 1-1:不支持的设备
[ 1.878156@2] 初始化:waitid 失败:没有子进程
[ 1.878230@2] 初始化: get_model_name: 模型名称 -> m23m_00_3f
[ 1.883446@2] init: get_model_property_ini : INI 加载文件错误,使用默认文件
[ 2.055145@3] ueventd: /vendor/ueventd.rc: 110: /sys/ 行必须有 5 个条目
[ 3.626765@3]Amlogic A/V 流端口初始化
[ 4.418508@3] android.hardware.health@2.0-impl: wakealarm_init: timerfd_create失败
[ 12.760974@2] init:启动完成 !!
[ 12.761842@2] inyt:无法创建:文件存在
[ 13.976602@2] rtk_btusb: reset_controller
[ 15.619288@0] rtk_btusb: btchr_ioctl:失败,Cmd:1074021809
[ 21.074753@2] init:ctl.stop 没有这样的服务“bdupdate”
[ 21.078214@3] init:ctl.stop 没有这样的服务“sensord”