`下面介绍在芯灵思A83T 开发板上进行串口诊断的方法,首先需要准备USB TTL串口诊断线,笔者使用的PL2303芯片USB转串口线,首先插上USB转串口线在电脑上安装好驱动,然后连接USB TTL串口线的USB端到电脑,按Win+PauseBreak打开硬件管理器,查看安装好的驱动的COM号,打开终端管理器(笔者使用Putty),在终端管理器输入设备管理器里面的查看的COM号,在波特率位置填写115200,如下图所示
接着将USB TTL串口线的RX TX GND线端分别连接芯灵思A83T开发板的DEBUG UART区域的TX RX GND,如下图
然后给开发板上电并在终端管理器界面按打开,会看到如下终端诊断打印信息
输入lsmod可以查看加载的模块驱动
终端诊断信息如下
- xxxxx~@@^ xxxxxx`x~|~xxx^xxx^``xx|x~p~`^x^^@~x▒ ▒▒▒|▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒> ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒>▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒~▒▒ ▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒<▒▒▒▒▒▒▒▒▒▒> ▒▒▒▒▒▒▒▒▒▒▒▒▒▒|▒▒▒▒▒▒▒▒~▒▒▒▒▒`▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒~▒ ▒▒▒▒▒▒▒▒▒▒`▒▒▒▒▒▒▒▒▒▒`▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒~▒▒▒▒▒▒▒▒▒▒▒▒`▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒▒`▒▒▒▒▒▒▒>▒▒`▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒`▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ >▒▒~▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒x▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒▒▒`▒▒ ▒▒▒▒▒▒▒▒▒▒`▒▒▒▒▒▒▒▒▒▒>▒▒▒`▒>`▒▒▒▒▒`▒▒▒▒▒▒▒▒▒▒▒▒`▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒>▒▒▒▒▒
- HELL O! BOOT0 is starting!
- boot0 version : 4.0.0
- rtc[1] value = 0x00010000
- rtc[2] value = 0x00020000
- rtc[3] value = 0x00030000
- DRAM DRIVE INFO: V1.1
- DRAM Type =3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
- DRAM normal_mode value: 00000001
- DRAM CLK =600 MHZ
- r***_send_initseq: r*** clk 400Khz -> 3Mhz
- PMU: AXP81X
- ddr voltage = 1500 mv
- ID CHECK VERSION: V0.2
- using ic A83T
- using axp AXP813
- DRAM zq value: 00003bfb
- dram size =1024
- card boot number = 2
- card no is 2
- sdcard 2 line count 4
- [mmc]: mmc driver ver 2015-04-13 16:05:39
- [mmc]: ***Try SD card 2***
- [mmc]: mmc 2 cmd 8 err 00000100
- [mmc]: mmc 2 cmd 8 err 00000100
- [mmc]: mmc 2 send if cond failed
- [mmc]: mmc 2 cmd 55 err 00000100
- [mmc]: mmc 2 cmd 55 err 00000100
- [mmc]: mmc 2 send app cmd failed
- [mmc]: ***Try MMC card 2***
- [mmc]: MMC ver 4.41
- [mmc]: SD/MMC Card: 4bit, capacity: 7632MB
- [mmc]: vendor: Man 00110100 Snr 0310183f
- [mmc]: product: MMC08
- [mmc]: revision: 4.7
- [emc]: ***SD/MMC 2 init OK!!!***
- sdcard 2 init ok
- The size of uboot is 000d4000.
- sum=5e6b5019
- src_sum=5e6b5019
- set_mmc_para,sdly 50M 0
- set_mmc_para,sdly 25M 0
- Succeed in loading uboot from sdmmc flash.
- Ready to disable icache.
- Jump to secend Boot.
- [ 0.405]
- U-Boot 2011.09-rc1-00001-gc2c332a (Jun 11 2015 - 15:18:40) Allwinner Technology
- [ 0.414]version: 2.1.0
- normal mode
- [ 0.491]pmbus: normal or secure os
- ready
- [ 0.495]PMU: AXP81X
- [ 0.498]PMU: AXP81X found
- bat_vol=181, ratio=100
- [ 0.503]PMU: dcdc2 900
- [ 0.506]PMU: pll1 1008 Mhz
- AXI0=336 Mhz,PLL_PERIPH =1200 Mhz AHB1=200 Mhz, APB1=100 Mhz
- set power on vol to default
- dcdc1_vol = 3300, onoff=1
- dcdc2_vol = 900, onoff=1
- dcdc3_vol = 900, onoff=1
- dcdc4_vol = 900, onoff=1
- dcdc6_vol = 900, onoff=1
- aldo1_vol = 1800, onoff=0
- aldo2_vol = 1800, onoff=1
- aldo3_vol = 3000, onoff=1
- eldo2_vol = 1800, onoff=0
- dldo2_vol = 4200, onoff=0
- dldo4_vol = 2800, onoff=0
- fldo2_vol = 900, onoff=1
- dldo1_vol = 2800, onoff=0
- find power_sply to end
- supply=dcdc1
- axp=axp81x, supply=dcdc1, vol=3300
- reg addr=0x1c20b04, value=0xd, pmu_vol=3300
- supply=dcdc1
- axp=axp81x, supply=dcdc1, vol=3300
- reg addr=0x1c20b08, value=0xd, pmu_vol=3300
- supply=aldo1
- axp=axp81x, supply=aldo1, vol=1800
- reg addr=0x1c20b0c, value=0x0, pmu_vol=1800
- supply=dcdc1
- axp=axp81x, supply=dcdc1, vol=3300
- reg addr=0x1c20b10, value=0xd, pmu_vol=3300
- supply=dcdc1
- axp=axp81x, supply=dcdc1, vol=3300
- reg"addr=0x1c20b14, value=0xd, pmu_vol=3300
- supply=dcdc1
- axp=axp81x, supply=dcdc1, vol=3300
- reg addr=0x1c20b18, value=0xd, pmu_vol=3300
- supply=dcdc1
- axp=axp81x, supply=dcdc1, vol=3300
- reg addr=0x1c20b1c, value=0xd, pmu_vol=3300
- supply=aldo3
- axp=axp81x, supply=aldo3, vol=3000
- reg addr=0x1f02f00, value=0xa, pmu_vol=3000
- config gpio bias voltage finish
- vbus exist
- no battery, limit to dc
- ac100 reg 0x00 = 0x101
- ac100 reg 0xd0 = 0x0
- ac100 reg 0xd1 = 0x0
- fel key old mode
- run key detect
- no key found
- no key input
- dram_para_set start
- dram_para_set end
- [ 1.226]DRAM: 1 GiB
- relocation Offset is: 35af9000
- gic: normal or no secure os mode
- script config pll_de to 504 Mhz
- Not Found clk pll_video1 in script
- Not Found clk pll_video in script
- enable power vcc-hdmi-18, ret=0
- DRV_DISP_Init end
- [ 1.387]fetch script data boot_disp.output_disp fail
- [ 1.392]fetch script data boot_disp.output_type fail
- [ 1.397]fetch script data boot_disp.output_mode fail
- [ 1.402]fetch script data boot_disp.auto_hpd fail
- [ 1.407]lcd0_para.lcd_used=1
- disp0 device type(1) enable
- disp 0, clk: pll(396000000),clk(396000000),dclk(66000000) dsi_rate(396000000)
- clk real:pll(396000000),clk(0),dclk(0) dsi_rate(0)
- unable to find regulator vcc-lcd from [pmu1_regu] or [pmu2_regu]
- enable power vcc-lcd, ret=-1
- enable power vcc-lvds-18, ret=0
- enable power vcc-pd, ret=0
- workmode = 0
- MMC: 2
- [ 1.440][mmc]: mmc driver ver 2015-04-13 14:50:00
- [ 1.445][mmc]: get sdc_phy_wipe fail.
- [ 1.449][mmc]: get sdc0 sdc_erase fail.
- [ 1.453][mmc]: get sdc_2xmode fail used = 0
- [ 1.458][mmc]: get sdc_ddrmode fail used = 0
- [ 1.462][mmc]: get sdc_f_max fail,use default 50000000Hz
- [ 1.468][mmc]: get card_line ok, card_line = 4
- [ 1.472][mmc]: get sdc_ex_dly_used fail,use default
- [ 1.477][mmc]: SUNXI SD/MMC: 2
- [ 1.491][mmc]: *Try SD card 2*
- [ 1.495][mmc]: mmc 2 cmd 8 err 100
- [ 1.500][mmc]: mmc send if cond failed
- [ 1.504][mmc]: mmc 2 cmd 55 err 100
- [ 1.509][mmc]: send app cmd failed
- [ 1.512][mmc]: *Try MMC card 2*
- [ 1.632][mmc]: CID 0x1101004d 0x4d433038 0x47031018 0x3fb8cd41
- [ 1.637][mmc]: MMC ver 4.41
- [ 1.640][mmc]: mmc clk 50000000
- [ 1.644][mmc]: SD/MMC Card: 4bit, capacity: 7632MB
- [ 1.649][mmc]: boot0 capacity: 2000KB,boot1 capacity: 2000KB
- [ 1.654][mmc]: ***SD/MMC 2 init OK!!!***
- [ 1.659][mmc]: erase_grp_size:0x400WrBlk * 0x200 = 0x80000 Byte
- [ 1.665][mmc]: secure_feature 0x15
- [ 1.669][mmc]: secure_removal_type 0x0
- [ 1.673]sunxi flash init ok
- the secure storage map is empty
- no item name key_burned_flag in the map
- sunxi secure storage has no flag
- [ 1.687]u*** burn from boot
- delay time 0
- [ 1.758]u*** prepare ok
- [ 2.560]timer occur
- [ 2.562]overtime
- [ 2.597]do_burn_from_boot u*** : no u*** exist
- limit to dc
- In: serial
- Out: serial
- Err: serial
- --------fastboot partitions--------
- -total partitions:11-
- -name- -start- -size-
- bootloader : 1000000 1000000
- env : 2000000 1000000
- coot : 3000000 1000000
- system : 4000000 60000000
- misc : 64000000 1000000
- recovery : 65000000 2000000
- cache : 67000000 30000000
- metadata : 97000000 1000000
- private : 98000000 1000000
- alog : 99000000 5000000
- UDISK : 9e000000 0
- -----------------------------------
- base bootcmd=run setargs_nand boot_normal
- bootcmd set setargs_mmc
- key 0
- recovery key high 10, low 8
- cant find fstbt value
- misc partition found
- to be run cmd=run setargs_mmc boot_normal
- ** Unable to use sunxi_flash 8:0 for fatload **
- load file(sn.txt) error
- serial is: 00000000000000000000
- mount part name bootloader
- cqnt open script.bin, maybe it is not exist
- WORK_MODE_BOOT
- board_status_probe
- [ 2.709]power trigger
- bat_exist=0
- [ 2.713]no battery exist
- sunxi_bmp_logo_display
- [ 2.749]fetch script data boot_disp.output_disp fail
- [ 2.754]screen_id =0, screen_width =1024, screen_height =600
- [ 2.759]frame buffer address 46400000
- [ 2.763]Hit any key to stop autoboot: 0
- read boot or recovery all
- [ 3.374]sunxi flash read :offset 3000000, 14460231 bytes OK
- [ 3.386]ready to boot
- [ 3.388][mmc]: mmc exit start
- [ 3.405][mmc]: mmc 2 cmd 8 err 100
- [ 3.411][mmc]: mmc send if cond failed
- [ 3.415][mmc]: mmc 2 cmd 55 err 100
- [ 3.420][mmc]: send app cmd failed
- [ 3.497][mmc]: get sdc_phy_wipe fail.
- [ 3.500][mmc]: get sdc0 sdc_erase fail.
- [ 3.504][mmc]: get sdc_2xmode fail used = 0
- [ 3.509][mmc]: get sdc_ddrmode fail used = 0
- [ 3.514][mmc]: get sdc_f_max fail,use default 50000000Hz
- [ 3.519][mmc]: get card_line ok, card_line = 4
- [ 3.524][mmc]: get sdc_ex_dly_used fail,use default
- [ 3.529][mmc]: mmc 2 exit ok
- [ 3.532]
- Starting kernel ...
- [sun8i_fixup]: From boot, get meminfo:
- Start: 0x40000000
- Size: 1024MB
- ion_carveout reserve: 96m 128m
- ion_reserve_common: ion reserve: [0x78000000, 0x80000000]!
- ion_cma reserve: 120m 176m 512m
- ion_reserve_common: ion reserve: [0x75000000, 0x80000000]!
- ------sun8i_smp_init_ops----37-----
- [ 0.250089] CPU4: failed to boot: -22
- [ 0.290058] CPU5: f!iled to boot: -22
- [ 0.330059] CPU6: failed to boot: -22
- [ 0.370063] CPU7: failed to boot: -22
- <6[ 0.787357] config_pmux_para: script_parser_fetch err.
- [ 0.787861] add_sys_pwr_dm: axp81x_aldo2 ldo already alwayson.
- [ 0.788188] add_sys_pws_dm: axp81x_aldo2 ldo already alwayson.
- [ 0.788300] add_sys_pwr_dm: axp81x_aldo2 ldo already alwayson.
- [ 0.991635] sunxikbd_script_init: key para not found, used default para.
- [ 1.804217] sunxi_oops: heming add OOPS_INFO_ADDR = -20
- [ 1.843071] audio-hub audio-hub: Failed to add route External MainMic->MainMi c Bias
- [ 1.867886] init: property_opt_for_mem: start!
- [ 1.873111] init: property_opt_for_mem: ro.sf.lcd_density not set, disable ad aptive memory function!
- [ 1.987428] init: /dev/hw_random not found
- [ 2.151572] init: /dev/hw_random not found
- shell@android:/ $ [ 4.445051] [VFE_ERR]vfe sensor register check ▒rror at inp ut_num = 0
- [ 4.739674] init: property_opt_for_mem: start!
- [ 4.745987] init: property_opt_for_mem: width_dp = 1024; height_dp = 600; scr eenSize = 2; bSupport64Bit = 0, g_total_mem = 1003
- [ 4.896397] init: cannot find '/system/bin/debuggerd64', disajling 'debuggerd 64'
- [ 4.907157] init: cannot find '/system/bin/install-recovery.sh', disabling 'f lash_recovery'
- [ 4.921658] android_u***: already disabled
- [ 8.074944] ctp_fetch_sysconfig_para: ctp_power_io script_get_item err.
- [ 8.082717] ctp_irq gpio number is 359
- [ 36.062533] [VFE_ERR]sensor standby off error when selecting target device!
- [ 36.070649] [VFE_ERR]sensor standby on error at device when csi close!
- shell@android:/ $ [ 100.220765] ANDROID-ERROR) failed to getting batching resul ts
- [ 100.227792] ANDROID-ERROR) failed to stop batching scan
- shell@android:/ $ ls
- acct
- bootloader
- cache
- charger
- config
- config_mem.ini
- d
- data
- default.prop
- dev
- disp.ko
- etc
- file_contexts
- fstab.sun8i
- init
- init.common.rc
- init.environ.rc
- init.rc
- init.recovery.sun8i.rc
- init.sun8i.common.rc
- init.sun8i.rc
- init.sun8i.u***.rc
- init.trace.rc
- init.u***.rc
- init.zygote32.rc
- logger
- mnt
- nand.ko
- proc
- property_contexts
- res
- root
- ***in
- sdcard
- seapp_contexts
- selinux_version
- sensors_cache
- sepolicy
- service_contexts
- storage
- sunxi_tr.ko
- sys
- system
- uewentd.rc
- ueventd.sun8i.rc
- vendor
- shell@android:/ $ lsmod
- aw5306_ts 81336 0 - Live 0x00000000
- sunxi_gmac 21580 0 - Live 0x00000000
- cdc_ether 3163 0 - Live 0x00000000
- rtl8152 37533 0 - Live 0x00000000
- mcs7830 5644 0 - Live 0x00000000
- qf9700 5904 0 - Live 0x00000000
- asix 13120 0 - Live 0x00000000
- u***net 14128 4 cdc_ether,mcs7830,qf9700,asix, Live 0x00000000
- bcm_btlpm 7658 0 - Live 0x00000000
- bcmdhd 664337 0 - Live 0x00000000
- vfe_v4l2 1044928 0 - Live 0x00000000
- gc2035 12400 0 - Live 0x00000000
- gc0308 10622 0 - Live 0x00000000
- ov5640 27225 0 - Live 0x00000000
- dw9714_act 4077 0 - Live 0x00000000
- vfe_subdev 4691 4 vfe_v4l2,gc2035,gc0308,ov5640, Live 0x00000000
- vfe_os 4113 2 vfe_v4l2,vfe_subdev, Live 0x00000000
- actuator 944 1 dw9714_act, Live 0x00000000
- cci 22800 5 vfe_v4l2,gc2035,gc0308,ov5640,dw9714_act, Live 0x00000000
- videobuf_dma_contig 4165 1 vfe_v4l2, Live 0x00000000
- videobuf_core 16528 2 vfe_v4l2,videobuf_dma_contig, Live 0x00000000
- pvrsrvkm 281786 40 - Live 0x00000000 (O)
- hdmi 39569 0 - Live 0x00000000
- disp 1018389 6 hdmi, Live 0x00000000
- hid_multitouch 7358 0 - Live 0x00000000
- sunxi_tr 9268 2 - Live 0x00000000
- sw_device 14680 0 - Live 0x00000000
- nand 299887 0 - Live 0x00000000 (O)
- shell@android:/ $ adb shell
- * daemon not running. starting it now on port 5038 *
- cannot bind 'tcp:5038'[ 169.509023] init: untracked pid 2303 exited with st▒tus 1
- ADB werver didn't ACK
- * failed to start daemon *
- error: cannot connect to daemon
- 1|shell@android:/ $ adb de6ices
- * daemon not running. starting it now on port 5038 *
- cannot bind 'tcp:5038'
- ADB server didn't ACK
- * faile[ 184.349840] init: untracked pid 2323 exited with status 1
- d to start daemon *
- error: cannot connect to daemon
- 1|shell@android:/ $ adbe shell
- /system/bif/sh: adbe: not found
- 127|shell@android:/ $ exit
- shell@octopus-f1:/ $ ls
- acct
- bootloader
- cache
- charger
- config
- nfig_mem.ini
- d
- data
- default.prop
- dev
- disp.ko
- etc
- file_contexts
- fstab.sun8i
- init
- init.common.rc
- init.environ.rc
- init.rc
- init.recovery.sun8i.rc
- init.sun8i.common.rc
- init.sun8i.rc
- init.sun8i.u***.rc
- init.trace.rc
- init.u***.rc
- init.zygote32.rc
- logger
- mnt
- nand.ko
- proc
- property_contexTs
- res
- root
- ***in
- sdcard
- seapp_contexts
- selinux_version
- sensors_cache
- sepolicy
- service_contexts
- storage
- sunxi_tr.ko
- sys
- system
- ueventd.rc
- ueventd.sun8i.rc
- vendor
- shell@octopus-f1:/ $ c
- shell@octopus-f1:/ $ adb devices
- * daemon not running. starting it now on porT 5038 *
- cannot bind 'tcp:5038'
- ADB server didn't ACK
- * faile[ 387.584423] init: untracked pid 2581 exited with status 1
- d to start daemon *
- error: cannot connect to daemon
- /system/bin/sh:
- 127|shell@octopus-f1:/ $ [ 769.277850] SysRq : Emergency Remount R/O
- [ 770.223863] Power down.
复制代码
`
0
|
|
|
|