V853开发板调试串口改到UART3没有成功,各位大佬帮我瞅瞅 (问题已解决)
-
① configs/vision/sys_config.fex
diff --git a/configs/vision/sys_config.fex b/configs/vision/sys_config.fex index f5ef249..4e92ba5 100644 --- a/configs/vision/sys_config.fex +++ b/configs/vision/sys_config.fex @@ -95,9 +95,13 @@ twi_scl = port:PI01<6><1><default><default> twi_sda = port:PI02<6><1><default><default> [uart_para] -uart_debug_port = 0 -uart_debug_tx = port:PH09<5><1><default><default> -uart_debug_rx = port:PH10<5><1><default><default> +;uart_debug_port = 0 +;uart_debug_tx = port:PH09<5><1><default><default> +;uart_debug_rx = port:PH10<5><1><default><default> + +uart_debug_port = 3 +uart_debug_tx = port:PH00<5><1><default><default> +uart_debug_rx = port:PH01<5><1><default><default> [jtag_para] jtag_enable = 0
② configs/vision/env.cfg
diff --git a/configs/vision/env.cfg b/configs/vision/env.cfg index 9fa229d..e84f386 100644 --- a/configs/vision/env.cfg +++ b/configs/vision/env.cfg @@ -1,8 +1,8 @@ #kernel command arguments -earlyprintk=sunxi-uart,0x02500000 +earlyprintk=sunxi-uart,0x02500C00 initcall_debug=0 -console=ttyS0,115200 +console=ttyS3,115200 nand_root=/dev/ubiblock0_4 mmc_root=/dev/mmcblk0p4 nor_root=/dev/mtdblock3
③ configs/sun8iw21p1_defconfig
--- a/configs/sun8iw21p1_defconfig +++ b/configs/sun8iw21p1_defconfig @@ -232,4 +232,4 @@ CONFIG_LCD_SUPPORT_ICN6202=y # CONFIG_SUNXI_TV_FASTLOGO is not set # CONFIG_SUNXI_FASTLOGO_JPEG is not set - +CONFIG_CONS_INDEX=4
改完之后烧录 img,uart3输出:
[64]HELLO! BOOT0 is starting!T [67]BOOT0 commit : 2a3ec52022 [70]set pll start [71]periph0 has been enabled [74]set pll end [77]PMU: AXP21 [80]board init ok [81]rtc[0] value = 0x80000002 [84]key press : [86]DRAM use external ZQ!! [89]chip id check OK [91]DRAM_VCC set to 1500 mv [93]DRAM BOOT DRIVE INFO: V0.16 [96]DRAM CLK = 936 MHz [99]DRAM Type = 3 (2:DDR2,3:DDR3) [102]DRAMC ZQ value: 0x7b7bfb [105]DRAM ODT value: 0x42. [108]DRAM SIZE =512 M [110]dram_tpr4:0x0 [117]DRAM simple test OK. [120]rtc standby flag is 0x0, super standby flag is 0x0 [125]dram size =512 [128]audio:avcc calibration [130]card no is 2 [132]sdcard 2 line count 8 [135][mmc]: mmc driver ver 2021-12-27 10:07 [144][mmc]: Wrong media type 0x0, but host sdc2, try mmc first [150][mmc]: ***Try MMC card 2*** [165][mmc]: RMCA OK! [167][mmc]: bias 100 [169][mmc]: mmc 2 bias 100 [172][mmc]: MMC 5.1 [174][mmc]: HSSDR52/SDR25 8 bit [177][mmc]: 50000000 Hz [179][mmc]: 7400 MB [181][mmc]: ***SD/MMC 2 init OK!!!*** [234]Loading boot-pkg Succeed(index=0). [237]Entry_name = optee [241]Entry_name = u-boot [247]Entry_name = dtb [250]tunning data addr:0x430003e8 [254]Jump to second Boot. M/TC: OP-TEE version: 15ee1539b (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Tue Mar 29 06:48:41 UTC 2022 arm U-Boot 2018.05-g3a34d5f-dirty (Dec 13 2022 - 12:36:04 +0800) Allwinner Technology [00.425]CPU: Allwinner Family [00.428]Model: sun8iw21 I2C: ready [00.454]DRAM: 512 MiB [00.457]Relocation Offset is: 1ced0000 [00.481]secure enable bit: 0 E/TC:0 fdt_getprop_u32:343 prop trace_level not found [00.496]PMU: AXP21 [00.498]BMU: AXP21 FDT ERROR:fdt_get_regulator_name:get property handle twi-supply error:FDT_ERR_INTERNAL bias_name:pc_bias bias_vol:1800 bias_name:pi_bias bias_vol:1800 [00.522]CPU=900 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=24Mhz MBus=300Mhz [00.528]gic: sec monitor mode sunxi flash map init [00.532]flash init start [00.535]workmode = 0,storage type = 2 [00.538][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00 [00.543][mmc]: get sdc_type fail and use default host:tm4. [00.550][mmc]: SUNXI SDMMC Controller Version:0x50400 [00.578][mmc]: Best spd md: 2-HSDDR52/DDR50, freq: 2-50000000, Bus width: 8 [00.584]sunxi flash init ok [00.587]line:724 init_clocks [00.590]drv_disp_init request pwm success, pwm9:pwm9:0x2000c00. [00.604]drv_disp_init finish [00.608]Loading Environment from SUNXI_FLASH... backup env check CRC fail Now update backup env Saving Environment to SUNXI_FLASH... Writing to env... OK OK [00.646]boot_gui_init:start [00.649]set disp.dev2_output_type fail. using defval=0 [00.654][ICN6202 TO LVDS] LINE:0146-->lcd_open_flow: [00.659][ICN6202 TO LVDS] LINE:0167-->lcd_power_on: [00.676]boot_gui_init:finish partno erro : can't find partition bootloader 54 bytes read in 0 ms [00.686]bmp_name=bootlogo.bmp size 38454 [00.690][ICN6202 TO LVDS] LINE:0575-->lcd_panel_init: [00.855][ICN6202 TO LVDS] LINE:0620-->lcd_panel_init:initialization:icn6202 init reg from mipi 38454 bytes read in 188 ms (199.2 KiB/s) [00.897]Item0 (Map) magic is bad [00.900]the secure storage item0 copy0 magic is bad [00.917]Item0 (Map) magic is bad [00.919]the secure storage item0 copy1 magic is bad [00.924]Item0 (Map) magic is bad [00.927]out of usb burn from boot: not need burn key root_partition is rootfs set root to /dev/mmcblk0p4 [00.936]update part info [00.939]update bootcmd [00.941]change working_fdt 0x5de8fe70 to 0x5de6fe70 [00.948][mmc]: delete mmc-hs400-1_8v from dtb [00.952][mmc]: delete mmc-hs200-1_8v from dtb [00.956][mmc]: get max-frequency ok 50000000 Hz disable nand error: FDT_ERR_BADPATH [00.969]The storage not support sample function [00.976]## error: update_fdt_dram_para : FDT_ERR_NOTFOUND [00.985]update dts [00.989][ICN6202 TO LVDS] LINE:0203-->lcd_bl_open: [00.996]LCD open finish Hit any key to stop autoboot: 0 [02.113]no vendor_boot partition is found Android's image name: sun8i_arm [02.161]Starting kernel ... [02.163][mmc]: mmc exit start [02.182][mmc]: mmc 2 exit ok
然后就没有然后了.
-
-
-
@uuuuid 在 V853开发板调试串口改到UART3没有成功,各位大佬帮我瞅瞅 中说:
@jr_online
谢谢你, 改好了缺这一步:
④ make kernel_menuconfig 找到 Kernel low-level debugging functions,修改寄存器地址
不客气,应该感谢贴主大佬哇。
-
我把修改打了一个patch包:v853_sdk_visiom_uart3_patch.tar
tar cvf v853_sdk_visiom_uart3_patch.tar \ brandy/brandy-2.0/u-boot-2018/configs/sun8iw21p1_uart3_defconfig \ device/config/chips/v853/configs/visiom/ \ kernel/linux-4.9/drivers/input/touchscreen/gslx680new/gslX680_3680.h \ openwrt/target/v853/v853-visiom/ \ prebuilt/rootfsbuilt/arm/toolchain-sunxi-glibc-gcc-830/toolchain/usr/include/linux/version.h \
有兴趣的朋友可以试一试,我把板级目录名改为了visiom,不影响原来的vision
Copyright © 2023 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号