腳位:

連接UART

司徒後來改成使用耳機孔當作UART傳輸介面,跳線如下:

完美的開發機器

Baudrate 115200bps
[50]HELLO! BOOT0 is starting!
[53]BOOT0 commit : 749c1f9a-dirty
[57]set pll start
[59]periph0 has been enabled
[62]set pll end
[64][pmu]: bus read error
[66][pmu]: bus read error
[69]PMU: AXP2202
[77]vaild para:8 select dram para0
[81]board init ok
[82]DRAM BOOT DRIVE INFO: V0.651
[86]the chip id is 0x6c00
[88]chip id check OK
[91]DRAM_VCC set to 1100 mv
[93][DST] Dram DST Loop1
[118]read_calibration error
[132]read_calibration error
[146]read_calibration error
[160]read_calibration error
[174]read_calibration error
[188]read_calibration error
[201]read_calibration error
[215]read_calibration error
[229]read_calibration error
[243]read_calibration error
[246]retraining final error
[262][AUTO DEBUG]32bit,1 ranks training success!
[423][DST] Lclk,0x00008888,Memtest Pass
[427][DST] Clk =672 MHz
[429][DST] R_2d
[1608][DST] R_2d_hv_D2:0x1c-0x64,0x49(314mV),0
[1613][DST] R_2d_hv_D2:0x38~0x4c,0x42
[1617][DST] R_2d tpr6 = 0x42808080
[1627][DST] R_1st
[1643][DST] DB0 R_1st:3,0~25,26,0x06
[1660][DST] DB1 R_1st:3,0~26,27,0x07
[1678][DST] DB2 R_1st:3,0~26,27,0x07
[1695][DST] DB3 R_1st:3,0~25,26,0x06
[1699][DST] R_1st Tpr12 = 0x06070706
[1702][DST] W_2st
[1759][DST] DB0 W_2st:0,22~48,27,0x23
[1819][DST] DB1 W_2st:0,26~53,28,0x27
[1881][DST] DB2 W_2st:0,24~53,30,0x26
[1942][DST] DB3 W_2st:0,21~49,29,0x23
[1946][DST] W_2st Tpr11 = 0x23262723
[1950][DST] R_2st
[1982][DST] DB0 R_2st:3,0~24,25,0x06
[2020][DST] DB1 R_2st:3,1~23,23,0x06
[2059][DST] DB2 R_2st:3,2~24,23,0x07
[2092][DST] DB3 R_2st:3,0~23,24,0x05
[2096][DST] R_2st Tpr12 = 0x05070606
[2261][DST] RV_C, VW:0x3c-0x48, DW:120ps
[2358][DST] Dram DST Success
[2361]DRAM CLK =672 MHZ
[2363]DRAM Type =8 (3:DDR3,4:DDR4,7:LPDDR3,8:LPDDR4)
[2375]Actual DRAM SIZE =1024 M
[2378]DRAM SIZE =1024 MBytes, para1 = 30fa, para2 = 4000000, dram_tpr13 = 2006c61
[2392]DRAM simple test OK.
[2394]rtc standby flag is 0x0, super standby flag is 0x0
[2400]dram size =1024
[2403]card no is 0
[2405]sdcard 0 line count 4
[2408][mmc]: mmc driver ver 2021-10-12 13:56
[2412][mmc]: b mmc 0 bias 0
[2420][mmc]: Wrong media type 0x0
[2423][mmc]: ***Try SD card 0***
[2433][mmc]: HSSDR52/SDR25 4 bit
[2436][mmc]: 50000000 Hz
[2439][mmc]: 59638 MB
[2441][mmc]: ***SD/MMC 0 init OK!!!***
[2552]Loading boot-pkg Succeed(index=0).
[2556][mmc]: b mmc 0 bias 0
[2558]Entry_name = u-boot
[2569]Entry_name = monitor
[2573]Entry_name = dtbo
[2576]Entry_name = dtb
[2580]Jump to second Boot.
NOTICE: BL3-1: v1.0(debug):335ab35
NOTICE: BL3-1: Built : 14:03:48, 2023-12-07
NOTICE: BL3-1 commit: 8
NOTICE: cpuidle init version V2.0
ERROR: Error initializing runtime service tspd_fast
NOTICE: BL3-1: Preparing for EL3 exit to normal world
NOTICE: BL3-1: Next image address = 0x4a000000
NOTICE: BL3-1: Next image spsr = 0x1d3
U-Boot 2018.05 (Apr 12 2024 - 20:10:24 +0800) Allwinner Technology
[02.665]CPU: Allwinner Family
[02.668]Model: sun50iw9
I2C: ready
[02.672]DRAM: 1 GiB
[02.675]Relocation Offset is: 35ebb000
[02.724]secure enable bit: 0
[02.726]pmu_axp152_probe pmic_bus_read fail
[02.730]pmu_axp1530_probe pmic_bus_read fail
[02.734]PMU: AXP2202
[04.939]battery probe reset :STATUS0:0x20
[04.942]BMU: AXP2202
[04.945][AXP2202] comm status : 0x0 = 0x20, 0x1 = 0x90
[04.950][AXP2202] onoff status: 0x20 = 0x4, 0x21 = 0x0
AXP2202_IIN_LIM:28
AXP2202_IIN_LIM:28
[04.960][axp][err]:
b12_mode: 0
AXP2202_IIN_LIM:28
FDT ERROR:fdt_get_regulator_name:get property handle twi-supply error:FDT_ERR_INTERNAL
[04.993]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=400Mhz
[05.001]drv_disp_init
[05.035]__clk_enable: clk is null.
[05.041]drv_disp_init finish
[05.043]gic: sec monitor mode
[05.076]flash init start
[05.078]workmode = 0,storage type = 1
[05.081]MMC: 0
[05.083][mmc]: mmc driver ver uboot2018:2021-07-19 14:09:00
[05.089][mmc]: get sdc_type fail and use default host:tm1.
[05.100][mmc]: Using default timing para
[05.103][mmc]: SUNXI SDMMC Controller Version:0x40200
[05.121][mmc]: card_caps:0x3000000a
[05.124][mmc]: host_caps:0x3000003f
[05.129]sunxi flash init ok
[05.132]Loading Environment from SUNXI_FLASH... OK
[05.149]out of usb burn from boot: not need burn key
[05.153]boot_gui_init:start
partno erro : can't find partition Reserve0
[05.167]Get Reserve0 partition number fail!
tcon_de_attach:de=0,tcon=0===LCD_power_on:184
--allen--PE_input[31:0] = 0x77777777
--allen--PE_input[31:0] = 0x6777777
--allen--PE_pull[31:0] = 0x0
--allen--PE_pull[31:0] = 0x5000
--allen--PE_data[31:0] = 0xc0
[05.195]boot_gui_init:finish
[05.199]bmp_name=bootlogo.bmp
partno erro : can't find partition bootloader
=allen==lcd_panel_uboot_fj035fhd05_v1_init:267 lcd_type = 0
921654 bytes read in 185 ms (4.8 MiB/s)
[05.406]Item0 (Map) magic is bad
[05.408]the secure storage item0 copy0 magic is bad
[05.414]Item0 (Map) magic is bad
[05.417]the secure storage item0 copy1 magic is bad
[05.421]Item0 (Map) magic is bad
[05.427]update dts
partno erro : can't find partition private
partno erro : can't find partition private
partno erro : can't find partition private
partno erro : can't find partition private
partno erro : can't find partition private
partno erro : can't find partition private
partno erro : can't find partition private
[05.502]update part info
start detect rtc domain...
rtc domain status: okay [0x90000000]
[05.516]update bootcmd
[05.518]No ethernet found.
Hit any key to stop autoboot: 0
===LCD_bl_open:203
[05.550]LCD open finish
Android's image name: sun50i_arm64
[06.434]Starting kernel ...
[06.436][mmc]: MMC Device 2 not found
[06.440][mmc]: mmc 2 not find, so not exit
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.170 (cc@cc-H81M-S1) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #173 SMP PREEMPT Thu Apr 11 16:15:23 CST 2024
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] allen_boe_lcd=0, str=old
[ 0.081617] BOOTEVENT: 81.612874: ON
[ 0.592221] axp2101-regulator axp2101-regulator.0: Setting DCDC frequency for unsupported AXP variant
[ 0.592314] axp2101-regulator axp2101-regulator.0: Error setting dcdc frequency: -22
[ 0.977322] uart uart1: get regulator failed
[ 1.004620] [NAND][NE] Not found valid nand node on dts
[ 1.106126] hci: request ohci0-controller gpio:272
[ 1.111880] hci: request ohci1-controller gpio:147
[ 1.341178] rtc-pcf8563 5-0051: low voltage detected, date/time is not reliable.
[ 1.352174] VE: get debugfs_mpp_root is NULL, please check mpp
[ 1.352174]
[ 1.360420] VE: sunxi ve debug register driver failed!
[ 1.360420]
[ 1.372492] axp2202_usb_power: axp2202-acin device is not configed, not use vbus-det
[ 1.372492]
[ 2.655567] mmc:failed to get gpios
[ 2.724838] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[ 2.731643] sunxi-mmc sdc1: smc 2 p1 err, cmd 52, RTO !!
[ 2.742055] sunxi-mmc sdc1: smc 2 p1 err, cmd 5, RTO !!
[ 2.748752] sunxi-mmc sdc1: smc 2 p1 err, cmd 5, RTO !!
[ 2.755444] sunxi-mmc sdc1: smc 2 p1 err, cmd 5, RTO !!
[ 2.762137] sunxi-mmc sdc1: smc 2 p1 err, cmd 5, RTO !!
[ 2.776050] ERROR: pinctrl_get for HDMI2.0 DDC fail
[ 2.799119] cpu cpu1: opp_list_debug_create_link: Failed to create link
[ 2.806589] cpu cpu1: _add_opp_dev: Failed to register opp debugfs (-12)
[ 2.814247] cpu cpu2: opp_list_debug_create_link: Failed to create link
[ 2.821688] cpu cpu2: _add_opp_dev: Failed to register opp debugfs (-12)
[ 2.829275] cpu cpu3: opp_list_debug_create_link: Failed to create link
[ 2.836731] cpu cpu3: _add_opp_dev: Failed to register opp debugfs (-12)
[ 2.902299] rtc-pcf8563 5-0051: low voltage detected, date/time is not reliable.
[ 2.910613] rtc-pcf8563 5-0051: hctosys: unable to read the hardware clock
[ 2.919853] [sound 402][CODEC-HDMI sunxi_codec_dev_probe] register codec-hdmi success
[ 2.929605] [asoc_simple_probe, 432]
[ 2.935249] [asoc_simple_probe, 432]
[ 2.939901] [asoc_simple_probe, 432]
[ 2.944020] [asoc_simple_probe, 432]
[ 2.949309] [asoc_simple_probe, 432]
[/init]: getty is ttyS0
[/init]: RootDevice is "/dev/mmcblk0p5" , GPT_SUPPORT=1
[/init]: Try to load EMMC ...
e2fsck 1.42.12 (29-Aug-2014)
/dev/mmcblk0p5 has unsupported feature(s): metadata_csum
e2fsck: Get a newer version of e2fsck!
[ 3.418021] cgroup: cgroup2: unknown option "nsdelegate"
Welcome to Ubuntu 18.04.6 LTS!
[ OK ] Created slice System Slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on Journal Audit Socket.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on udev Control Socket.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Created slice User and Session Slice.
[ OK ] Reached target Slices.
[ OK ] Listening on Journal Socket.
Mounting Kernel Debug File System...
Starting Set the console keyboard layout...
Starting Load Kernel Modules...
Starting Journal Service...
[ OK ] Reached target Swap.
[ OK ] Reached target Remote File Systems.
Starting Create Static Device Nodes in /dev...
[ OK ] Listening on udev Kernel Socket.
Starting udev Coldplug all Devices...
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Reached target Paths.
Starting Remount Root and Kernel File Systems...
[ OK ] Started Journal Service.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Started Set the console keyboard layout.
[ OK ] Started Load Kernel Modules.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Started Remount Root and Kernel File Systems.
Starting Load/Save Random Seed...
Starting udev Kernel Device Manager...
Starting Apply Kernel Variables...
Mounting Kernel Configuration File System...
Mounting FUSE Control File System...
[ OK ] Reached target Local File Systems (Pre).
Mounting /tmp...
Starting Flush Journal to Persistent Storage...
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started udev Coldplug all Devices.
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Apply Kernel Variables.
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Mounted FUSE Control File System.
[ OK ] Mounted /tmp.
[ OK ] Reached target Local File Systems.
Starting Set console font and keymap...
Starting Raise network interfaces...
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Set console font and keymap.
[ OK ] Found device /dev/ttyS0.
[ OK ] Reached target Sound Card.
Starting Create Volatile Files and Directories...
[FAILED] Failed to start Create Volatile Files and Directories.
See 'systemctl status systemd-tmpfiles-setup.service' for details.
[ OK ] Started Raise network interfaces.
[ OK ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
Starting Network Name Resolution...
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Reached target System Initialization.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Started Discard unused blocks once a week.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Login Service...
[ OK ] Started Regular background program processing daemon.
Starting Avahi mDNS/DNS-SD Stack...
Starting Dispatcher daemon for systemd-networkd...
Starting Save/Restore Sound Card State...
Starting Modem Manager...
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily apt upgrade and clean activities.
[ OK ] Started D-Bus System Message Bus.
[ OK ] Started Login Service.
Starting Restore /etc/resolv.conf i…fore the ppp link was shut down...
[ OK ] Started Set the CPU Frequency Scaling governor.
Starting launcher.service...
[ OK ] Started Message of the Day.
[ OK ] Reached target Timers.
Starting WPA supplicant...
Starting Network Manager...
[ OK ] Started Network Name Resolution.
[ OK ] Started Restore /etc/resolv.conf if…before the ppp link was shut down.
[ OK ] Started launcher.service.
[ OK ] Started Save/Restore Sound Card State.
[ OK ] Started Avahi mDNS/DNS-SD Stack.
Starting Authorization Manager...
[ OK ] Reached target Host and Network Name Lookups.
[ OK ] Started WPA supplicant.
[ OK ] Started Authorization Manager.
[ OK ] Stopped Network Manager.
[ OK ] Started Dispatcher daemon for systemd-networkd.
[ OK ] Started Modem Manager.
Starting Network Manager...
Starting Hostname Service...
[ OK ] Started Hostname Service.
[ OK ] Started Network Manager.
Starting Network Manager Script Dispatcher Service...
[ OK ] Reached target Network.
Starting Permit User Sessions...
[ OK ] Started Unattended Upgrades Shutdown.
Starting /etc/rc.local Compatibility...
[ OK ] Started Permit User Sessions.
[ OK ] Started Network Manager Script Dispatcher Service.
Starting Set console scheme...
[ OK ] Started Set console scheme.
[ OK ] Created slice system-getty.slice.
[ 9.540955] [asoc_simple_probe, 432]
[ OK ] Started /etc/rc.local Compatibility.
Starting Bluetooth service...
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Bluetooth service.
[ 9.883124] rtc-pcf8563 5-0051: low voltage detected, date/time is not reliable.
[ OK ] Started Update UTMP about System Runlevel Changes.
Ubuntu 18.04.6 LTS deeplay ttyS0
deeplay login: root
Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.9.170 aarch64)
root@deeplay:/#