您尚未登录。

楼主 #1 2020-12-06 22:27:00

weiyongwill
会员
注册时间: 2019-08-08
已发帖子: 65
积分: 28.5

A33板子修改U-BOOT调试串口失败,大佬们帮忙分析一下

买了个3D打印机,里面有块A33的主板,原来是Android4.4的系统,不过没有引出调试口,但是有个LCD接口,还有测试点,看到有两个端口可以复用为UART1,PD10/PD11
复用UART1
于是开始了艰难的修改之路,用的是主线U-boot 2021.01
直接用了Sinlinx_SinA33_defconfig的配置
sun8i-a33-sinlinx-sina33.dts文件修改以下内容

aliases {
		serial0 = &uart0;
		serial1 = &uart1;
	};

	chosen {
		stdout-path = "serial1:115200n8";
	};
&tcon0 {
	pinctrl-names = "default";
	pinctrl-0 = <&lcd_rgb666_pins>;
	status = "disabled";
};
&uart1 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart1_pins_b>;
	status = "okay";
};

sun8i-a33.dtsi文件修改以下内容

&pio {
	compatible = "allwinner,sun8i-a33-pinctrl";
	interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
		     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;

	uart0_pins_b: uart0@1 {
		pins = "PB0", "PB1";
		function = "uart0";
	};
	uart1_pins_b: uart1@1 {
		pins = "PD10", "PD11";
		function = "uart1";
	};

};

u-boot/arch/arm/include/asm/arch-sunxi/gpio.h增加下面内容

#define SUN8I_A33_GPD_UART1	4

u-boot/arch/arm/march-sunxi/board.c增加下面内容

#elif CONFIG_CONS_INDEX == 2 && defined(CONFIG_MACH_SUN8I)
	sunxi_gpio_set_cfgpin(SUNXI_GPD(10), SUN8I_A33_GPD_UART1);
	sunxi_gpio_set_cfgpin(SUNXI_GPD(11), SUN8I_A33_GPD_UART1);
	sunxi_gpio_set_pull(SUNXI_GPD(11), SUNXI_GPIO_PULL_UP);

u-boot/include/configs/sunxi-common.h增加并修改如下

#elif CONFIG_CONS_INDEX == 2 && defined(CONFIG_MACH_SUN8I)
#define OF_STDOUT_PATH		"/soc@01c00000/serial@01c28400:115200"

#define CONFIG_EXTRA_ENV_SETTINGS \
	CONSOLE_ENV_SETTINGS \
	MEM_LAYOUT_ENV_SETTINGS \
	DFU_ALT_INFO_RAM \
	"fdtfile=" FDTFILE "\0" \
	"console=ttyS1,115200\0" \
	SUNXI_MTDIDS_DEFAULT \
	SUNXI_MTDPARTS_DEFAULT \
	"uuid_gpt_esp=" UUID_GPT_ESP "\0" \
	"uuid_gpt_system=" UUID_GPT_SYSTEM "\0" \
	"partitions=" PARTS_DEFAULT "\0" \
	BOOTCMD_SUNXI_COMPAT \
	BOOTENV

并且把 menuconfig> Device Drivers > Serial drivers>(2) UART used for console
改成2,这样autoconf.h里面的#define CONFIG_CONS_INDEX 2

所有的改完编译运行

sudo sunxi-fel -v uboot u-boot-sunxi-with-spl.bin
Stack pointers: sp_irq=0x00002000, sp=0x00005E08
MMU is not enabled by BROM
=> Executing the SPL... done.
Writing image "U-Boot 2021.01-rc3-00023-gee1e04", 500661 bytes @ 0x4A000000.
Starting U-Boot (0x4A000000).

U-boot的menuconfig里面  总共关了CONFIG_VIDEO_SUNXI  CONFIG_VIDEO  CONFIG_VIDEO_DT_SIMPLEFB 三个选项

可是串口毫无波澜,原本运行Android时那个LCD管脚还会疯狂输出乱码。
大佬们帮忙看看还需要修改哪些内容,才能用这个串口1输出调试信息。

附上从Android里面读出来的fex文件

[product]
version = "100"
machine = "Sinlinx-A33"

[platform]
eraseflag = 0
next_work = 2

[target]
boot_clock = 1008
storage_type = 0

[key_detect_en]
keyen_flag = 1

[power_sply]
dcdc1_vol = 3000
dcdc2_vol = 1100
dcdc3_vol = 1200
dcdc4_vol = 0
dcdc5_vol = 1500
aldo2_vol = 2500
aldo3_vol = 3000

[card_boot]
logical_start = 40960
sprite_gpio0 =
next_work = 3

[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF00<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>

[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 4
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>

[twi_para]
twi_port = 0
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

[uart_para]
uart_debug_port = 0
uart_debug_tx = port:PB00<3><1><default><default>
uart_debug_rx = port:PB01<3><1><default><default>

[force_uart_para]
force_uart_port = 0
force_uart_tx = port:PB00<3><1><default><default>
force_uart_rx = port:PB01<3><1><default><default>

[jtag_para]
jtag_enable = 0
jtag_ms =
jtag_ck =
jtag_do =
jtag_di =

[clock]
pll3 = 297
pll4 = 300
pll6 = 600
pll8 = 408
pll9 = 480
pll10 = 297
pll_cpupat = 0
pll_gpupat = -1002379674
pll_videopat = 0
pll_vepat = 0
pll_hsicpat = 0
pll_depat = 0
pll_mipipat = 0
pll_mipitun = -1979703288
pll_mipibias = -133168128

[pm_para]
standby_mode = 1

[dram_para]
dram_clk = 552
dram_type = 3
dram_zq = 0x3bbb
dram_odt_en = 1
dram_para1 = 284295680
dram_para2 = 0
dram_mr0 = 7280
dram_mr1 = 64
dram_mr2 = 24
dram_mr3 = 0
dram_tpr0 = 0x47214f
dram_tpr1 = 0x1c2294b
dram_tpr2 = 0x61043
dram_tpr3 = 0x0
dram_tpr4 = 0x0
dram_tpr5 = 0x0
dram_tpr6 = 0x0
dram_tpr7 = 0x0
dram_tpr8 = 0x0
dram_tpr9 = 0x0
dram_tpr10 = 0x0
dram_tpr11 = 0x0
dram_tpr12 = 0xa8
dram_tpr13 = 0x10901

[pm_para]
standby_mode = 1

[wakeup_src_para]
cpu_en = 0
cpu_freq = 48
pll_ratio = 273
dram_selfresh_en = 1
dram_freq = 36
wakeup_src_wl = port:PL07<4><default><default><0>
wakeup_src_bt = port:PL09<4><default><default><0>

[twi0]
twi_used = 1
twi_scl = port:PH02<2><default><default><default>
twi_sda = port:PH03<2><default><default><default>

[twi1]
twi_used = 1
twi_scl = port:PH04<2><default><default><default>
twi_sda = port:PH05<2><default><default><default>

[twi2]
twi_used = 1
twi_scl = port:PE12<3><default><default><default>
twi_sda = port:PE13<3><default><default><default>

[uart0]
uart_used = 1
uart_port = 0
uart_type = 2
uart_tx = port:PB00<3><1><default><default>
uart_rx = port:PB01<3><1><default><default>

[uart1]
uart_used = 1
uart_type = 4
uart_tx = port:PG06<2><1><default><default>
uart_rx = port:PG07<2><1><default><default>
uart_rts = port:PG08<2><1><default><default>
uart_cts = port:PG09<2><1><default><default>

[uart2]
uart_used = 0
uart_type = 4
uart_tx = port:PB00<2><1><default><default>
uart_rx = port:PB01<2><1><default><default>
uart_rts = port:PB02<2><1><default><default>
uart_cts = port:PB03<2><1><default><default>

[uart3]
uart_used = 1
uart_type = 4
uart_tx = port:PH06<3><1><default><default>
uart_rx = port:PH07<3><1><default><default>
uart_rts = port:PH08<3><1><default><default>
uart_cts = port:PH09<3><1><default><default>

[uart4]
uart_used = 1
uart_port = 4
uart_type = 2
uart_tx = port:PA04<2><1><default><default>
uart_rx = port:PA05<2><1><default><default>
uart_rts = port:PA06<2><1><default><default>
uart_cts = port:PA07<2><1><default><default>

[spi0]
spi_used = 1
spi_cs_bitmap = 1
spi_mosi = port:PC00<3><default><default><default>
spi_miso = port:PC01<3><default><default><default>
spi_sclk = port:PC02<3><default><default><default>
spi_cs0 = port:PC03<3><1><default><default>

[spi1]
spi_used = 1
spi_cs_bitmap = 1
spi_cs0 = port:PA00<2><1><default><default>
spi_sclk = port:PA01<2><default><default><default>
spi_mosi = port:PA02<2><default><default><default>
spi_miso = port:PA03<2><default><default><default>

[spi_devices]
spi_dev_num = 1

[spi_board0]
modalias = "at25df641"
max_speed_hz = 50000000
bus_num = 0
chip_select = 0
mode = 0

[ctp_para]
ctp_used = 1
ctp_name = "gsl1680e_p2"
ctp_twi_id = 0
ctp_twi_addr = 0x38
ctp_screen_max_x = 480
ctp_screen_max_y = 800
ctp_revert_x_flag = 0
ctp_revert_y_flag = 0
ctp_exchange_x_y_flag = 0
ctp_int_port = port:PB05<4><default><default><default>
ctp_wakeup = port:PH01<1><default><default><1>
ctp_power_ldo = "axp22_eldo1"
ctp_power_ldo_vol = 3300
ctp_power_io =

[ctp_list_para]
ctp_det_used = 1
ft5x_ts = 1
gt82x = 1
gslX680 = 1
gslX680new = 1
gt9xx_ts = 1
gt9xxf_ts = 0
tu_ts = 0
gt818_ts = 1
zet622x = 1
aw5306_ts = 1
icn83xx_ts = 0

[tkey_para]
tkey_used = 0
tkey_twi_id =
tkey_twi_addr =
tkey_int =

[motor_para]
motor_used = 0
motor_shake = port:power3<1><default><default><1>
motor_ldo = ""
motor_ldo_voltage = 3300

[ths_para]
ths_used = 1
ths_trip1_count = 3
ths_trip1_0 = 75
ths_trip1_1 = 90
ths_trip1_2 = 110
ths_trip1_0_min = 0
ths_trip1_0_max = 1
ths_trip1_1_min = 1
ths_trip1_1_max = 3
ths_trip1_2_min = 0
ths_trip1_2_max = 0

[cooler_table]
cooler_count = 4
cooler0 = "1344000 4 4294967295 0"
cooler1 = "1200000 4 4294967295 0"
cooler2 = "1008000 4 4294967295 0"
cooler3 = "648000 4 4294967295 0"

[nand0_para]
nand_support_2ch = 0
nand0_used = 1
nand0_we = port:PC00<2><default><default><default>
nand0_ale = port:PC01<2><default><default><default>
nand0_cle = port:PC02<2><default><default><default>
nand0_ce1 = port:PC03<2><default><default><default>
nand0_ce0 = port:PC04<2><default><default><default>
nand0_nre = port:PC05<2><default><default><default>
nand0_rb0 = port:PC06<2><default><default><default>
nand0_rb1 = port:PC07<2><default><default><default>
nand0_d0 = port:PC08<2><default><default><default>
nand0_d1 = port:PC09<2><default><default><default>
nand0_d2 = port:PC10<2><default><default><default>
nand0_d3 = port:PC11<2><default><default><default>
nand0_d4 = port:PC12<2><default><default><default>
nand0_d5 = port:PC13<2><default><default><default>
nand0_d6 = port:PC14<2><default><default><default>
nand0_d7 = port:PC15<2><default><default><default>
nand0_ndqs = port:PC16<2><default><default><default>
nand0_ce2 = port:PC17<2><default><default><default>
nand0_ce3 = port:PC18<2><default><default><default>

[disp_init]
disp_init_enable = 1
disp_mode = 0
screen0_output_type = 1
screen0_output_mode = 4
screen1_output_type = 1
screen1_output_mode = 4
fb0_format = 10
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_width = 0
fb0_height = 0
fb1_format = 10
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_width = 0
fb1_height = 0
lcd0_backlight = 50
lcd1_backlight = 50
lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50
lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50

[lcd0_para]
lcd_used = 1
lcd_driver_name = "default_lcd"
lcd_if = 0
lcd_x = 480
lcd_y = 800
lcd_width = 0
lcd_height = 0
lcd_dclk_freq = 22
lcd_pwm_used = 1
lcd_pwm_ch = 0
lcd_pwm_freq = 50000
lcd_pwm_pol = 1
lcd_hbp = 20
lcd_ht = 520
lcd_hspw = 20
lcd_vbp = 20
lcd_vt = 840
lcd_vspw = 20
lcd_lvds_if = 0
lcd_lvds_colordepth = 1
lcd_lvds_mode = 0
lcd_frm = 1
lcd_gamma_en = 0
lcd_bright_curve_en = 0
lcd_cmap_en = 0
deu_mode = 0
lcdgamma4iep = 22
smart_color = 90
lcd_bl_en = port:PH06<1><0><default><1>
lcd_power = "axp22_dldo1"
lcd_gpio_0 = port:PH07<1><0><default><0>
lcd_gpio_1 = port:PL04<1><0><default><0>
lcd_gpio_2 = port:PL11<1><0><default><1>
lcdd2 = port:PD02<2><0><2><default>
lcdd3 = port:PD03<2><0><2><default>
lcdd4 = port:PD04<2><0><2><default>
lcdd5 = port:PD05<2><0><2><default>
lcdd6 = port:PD06<2><0><2><default>
lcdd7 = port:PD07<2><0><2><default>
lcdd10 = port:PD10<2><0><2><default>
lcdd11 = port:PD11<2><0><2><default>
lcdd12 = port:PD12<2><0><2><default>
lcdd13 = port:PD13<2><0><2><default>
lcdd14 = port:PD14<2><0><2><default>
lcdd15 = port:PD15<2><0><2><default>
lcdd18 = port:PD18<2><0><2><default>
lcdd19 = port:PD19<2><0><2><default>
lcdd20 = port:PD20<2><0><2><default>
lcdd21 = port:PD21<2><0><2><default>
lcdd22 = port:PD22<2><0><2><default>
lcdd23 = port:PD23<2><0><2><default>
lcdclk = port:PD24<2><0><3><default>
lcdde = port:PD25<2><0><2><default>
lcdhsync = port:PD26<2><0><2><default>
lcdvsync = port:PD27<2><0><2><default>

[pwm0_para]
pwm_used = 1
pwm_positive = port:PH00<2><0><default><default>

[pwm1_para]
pwm_used = 0
pwm_positive = port:PH01<2><0><default><default>

[csi0]
vip_used = 1
vip_mode = 0
vip_dev_qty = 1
vip_define_sensor_list = 1
vip_csi_pck = port:PE00<2><default><default><default>
vip_csi_mck = port:PE01<2><default><default><default>
vip_csi_hsync = port:PE02<2><default><default><default>
vip_csi_vsync = port:PE03<2><default><default><default>
vip_csi_d0 = port:PE04<2><default><default><default>
vip_csi_d1 = port:PE05<2><default><default><default>
vip_csi_d2 = port:PE06<2><default><default><default>
vip_csi_d3 = port:PE07<2><default><default><default>
vip_csi_d4 = port:PE08<2><default><default><default>
vip_csi_d5 = port:PE09<2><default><default><default>
vip_csi_d6 = port:PE10<2><default><default><default>
vip_csi_d7 = port:PE11<2><default><default><default>
vip_dev0_mname = "gc0308"
vip_dev0_pos = "rear"
vip_dev0_lane = 1
vip_dev0_twi_id = 2
vip_dev0_twi_addr = 66
vip_dev0_isp_used = 0
vip_dev0_fmt = 0
vip_dev0_stby_mode = 1
vip_dev0_vflip = 1
vip_dev0_hflip = 1
vip_dev0_iovdd = "axp22_dldo3"
vip_dev0_iovdd_vol = 2800000
vip_dev0_avdd = "axp22_ldoio0"
vip_dev0_avdd_vol = 2800000
vip_dev0_dvdd = "axp22_eldo2"
vip_dev0_dvdd_vol = 1800000
vip_dev0_afvdd = "axp22_dldo3"
vip_dev0_afvdd_vol = 2800000
vip_dev0_power_en =
vip_dev0_reset = port:PE16<1><default><default><0>
vip_dev0_pwdn = port:PE17<1><default><default><1>
vip_dev0_flash_en =
vip_dev0_flash_mode =
vip_dev0_af_pwdn =
vip_dev1_mname = "gc2035"
vip_dev1_pos = "front"
vip_dev1_lane = 1
vip_dev1_twi_id = 2
vip_dev1_twi_addr = 120
vip_dev1_isp_used = 0
vip_dev1_fmt = 0
vip_dev1_stby_mode = 0
vip_dev1_vflip = 0
vip_dev1_hflip = 0
vip_dev1_iovdd = "axp22_dldo3"
vip_dev1_iovdd_vol = 2800000
vip_dev1_avdd = "axp22_ldoio0"
vip_dev1_avdd_vol = 2800000
vip_dev1_dvdd = "axp22_eldo2"
vip_dev1_dvdd_vol = 1800000
vip_dev1_afvdd = "axp22_dldo3"
vip_dev1_afvdd_vol = 2800000
vip_dev1_power_en =
vip_dev1_reset =
vip_dev1_pwdn =
vip_dev1_flash_en =
vip_dev1_flash_mode =
vip_dev1_af_pwdn =

[mmc0_para]
sdc_used = 1
sdc_detmode = 2
sdc_buswidth = 4
sdc_d1 = port:PF00<2><1><2><default>
sdc_d0 = port:PF01<2><1><2><default>
sdc_clk = port:PF02<2><1><2><default>
sdc_cmd = port:PF03<2><1><2><default>
sdc_d3 = port:PF04<2><1><2><default>
sdc_d2 = port:PF05<2><1><2><default>
sdc_det = port:PB04<4><1><2><default>
sdc_power_supply = "axp22_dcdc1"
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[mmc1_para]
sdc_used = 1
sdc_detmode = 4
sdc_buswidth = 4
sdc_clk = port:PG00<2><1><1><default>
sdc_cmd = port:PG01<2><1><1><default>
sdc_d0 = port:PG02<2><1><1><default>
sdc_d1 = port:PG03<2><1><1><default>
sdc_d2 = port:PG04<2><1><1><default>
sdc_d3 = port:PG05<2><1><1><default>
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 1
sdc_regulator = "none"

[mmc2_para]
sdc_used = 0
sdc_detmode = 3
sdc_buswidth = 8
sdc_2xmode = 1
sdc_clk = port:PC05<3><1><2><default>
sdc_cmd = port:PC06<3><1><2><default>
sdc_d0 = port:PC08<3><1><2><default>
sdc_d1 = port:PC09<3><1><2><default>
sdc_d2 = port:PC10<3><1><2><default>
sdc_d3 = port:PC11<3><1><2><default>
sdc_d4 = port:PC12<3><1><2><default>
sdc_d5 = port:PC13<3><1><2><default>
sdc_d6 = port:PC14<3><1><2><default>
sdc_d7 = port:PC15<3><1><2><default>
emmc_rst = port:PC16<3><1><2><default>
sdc_power_supply = "axp22_dcdc1"
sdc_det =
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = "none"

[usbc0]
usb_used = 1
usb_port_type = 2
usb_detect_type = 1
usb_id_gpio = port:PH08<0><1><default><default>
usb_det_vbus_gpio = "axp_ctrl"
usb_drv_vbus_gpio = port:power4<1><0><default><0>
usb_restrict_gpio =
usb_host_init_state = 0
usb_restric_flag = 0
usb_restric_voltage = 3550000
usb_restric_capacity = 5
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_regulator_id_vbus = "axp22_dcdc1"
usb_regulator_id_vbus_vol = 3000000

[usbc1]
usb_used = 1
usb_drv_vbus_gpio =
usb_restrict_gpio =
usb_host_init_state = 1
usb_restric_flag = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_not_suspend = 0

[usb_feature]
vendor_id = 7994
mass_storage_id = 4096
adb_id = 4097
manufacturer_name = "Sinlinx USB Developer"
product_name = "Sinlinx-A33"
serial_number = "20080411"

[msc_feature]
vendor_name = "USB 2.0"
product_name = "USB Flash Driver"
release = 100
luns = 3

[serial_feature]
serial_unique = 1

[gsensor_para]
gsensor_used = 1
gsensor_twi_id = 1
gsensor_twi_addr = 0x18
gsensor_int1 = port:PB06<4><1><default><default>
gsensor_int2 =

[gsensor_list_para]
gsensor_det_used = 1
bma250 = 1
stk831x = 0
mma8452 = 1
mma7660 = 1
mma865x = 1
mc32x0 = 0
afa750 = 1
lis3de_acc = 1
lis3dh_acc = 1
kxtik = 1
dmard10 = 0
dmard06 = 1
mxc622x = 1
fxos8700 = 1
lsm303d = 1

[gps_para]

[wifi_para]
wifi_used = 1
wifi_sdc_id = 1
wifi_usbc_id = 1
wifi_usbc_type = 1
wifi_mod_sel = 8
wifi_power = "axp22_dldo1"
wifi_power_ext1 = ""
wifi_power_ext2 = ""
wifi_power_switch =
rtl8189es_shdn = port:PL06<1><default><default><0>
rtl8189es_host_wake = port:PL07<4><default><default><0>

[bt_para]
bt_used = 1
bt_uart_id = 1

[3g_para]
3g_used = 0
3g_usbc_num = 1
3g_uart_num = 2
bb_name = "em66"
bb_vbat =
bb_on =
bb_pwr_on = port:PL03<1><default><default><0>
bb_wake = port:PL04<1><default><default><0>
bb_rf_dis = port:PL11<1><default><default><0>
bb_rst = port:PL05<1><default><default><0>
bb_dldo = "axp22_aldo1"
bb_dldo_min_uV = 2800000
bb_dldo_max_uV = 2800000

[gy_para]
gy_used = 0
gy_twi_id = 1
gy_twi_addr = 106
gy_int1 =
gy_int2 =

[gy_list_para]
gy_det_used = 1
l3gd20_gyr = 1

[ls_para]
ls_used = 0
ls_twi_id = 1
ls_twi_addr = 35
ls_int = port:PB07<4><1><default><default>

[ls_list_para]
ls_det_used = 1
ltr_501als = 1
jsa1212 = 1

[compass_para]
compass_used = 0
compass_twi_id = 1
compass_twi_addr = 13
compass_int =

[i2s0]
i2s0_used = 0
i2s0_channel = 2
i2s0_master = 4
i2s0_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 256
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 1
rx_data_mode = 1
i2s0_mclk =
i2s0_bclk = port:PB04<2><1><default><default>
i2s0_lrclk = port:PB05<2><1><default><default>
i2s0_dout0 = port:PB06<2><1><default><default>
i2s0_dout1 =
i2s0_dout2 =
i2s0_dout3 =
i2s0_din = port:PB07<2><1><default><default>

[i2s1]
i2s1_used = 0
i2s1_channel = 2
i2s1_master = 4
i2s1_select = 1
audio_format = 1
signal_inversion = 1
over_sample_rate = 512
sample_resolution = 16
word_select_size = 32
pcm_sync_period = 64
msb_lsb_first = 0
sign_extend = 0
slot_index = 0
slot_width = 16
frame_width = 1
tx_data_mode = 0
rx_data_mode = 0
i2s1_mclk =
i2s1_bclk = port:PG11<2><1><default><default>
i2s1_lrclk = port:PG10<2><1><default><default>
i2s1_dout = port:PG12<2><1><default><default>
i2s1_din = port:PG13<2><1><default><default>

[audio0]
audio_used = 1
audio_hp_ldo = "none"
headphone_vol = 59
earpiece_vol = 62
cap_vol = 5
pa_single_vol = 62
pa_double_used = 0
pa_double_vol = 62
headphone_direct_used = 1
headset_mic_vol = 3
main_mic_vol = 1
audio_pa_ctrl = port:PH09<1><default><default><0>
aif2_used = 0
aif3_used = 0
headphone_mute_used = 0
DAC_VOL_CTRL_SPK = 41120
DAC_VOL_CTRL_HEADPHONE = 41120
agc_used = 0
drc_used = 0

[pmu1_para]
pmu_used = 1
pmu_twi_addr = 52
pmu_twi_id = 1
pmu_irq_id = 0
pmu_battery_rdc = 100
pmu_battery_cap = 4000
pmu_batdeten = 1
pmu_runtime_chgcur = 300
pmu_earlysuspend_chgcur = 1200
pmu_suspend_chgcur = 1200
pmu_shutdown_chgcur = 1200
pmu_init_chgvol = 4200
pmu_init_chgend_rate = 15
pmu_init_chg_enabled = 1
pmu_init_adc_freq = 800
pmu_init_adcts_freq = 800
pmu_init_chg_pretime = 70
pmu_init_chg_csttime = 720
pmu_batt_cap_correct = 1
pmu_bat_regu_en = 0
pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 0
pmu_bat_para4 = 0
pmu_bat_para5 = 0
pmu_bat_para6 = 0
pmu_bat_para7 = 0
pmu_bat_para8 = 0
pmu_bat_para9 = 1
pmu_bat_para10 = 2
pmu_bat_para11 = 3
pmu_bat_para12 = 5
pmu_bat_para13 = 10
pmu_bat_para14 = 16
pmu_bat_para15 = 31
pmu_bat_para16 = 43
pmu_bat_para17 = 49
pmu_bat_para18 = 53
pmu_bat_para19 = 57
pmu_bat_para20 = 60
pmu_bat_para21 = 63
pmu_bat_para22 = 66
pmu_bat_para23 = 71
pmu_bat_para24 = 77
pmu_bat_para25 = 80
pmu_bat_para26 = 84
pmu_bat_para27 = 88
pmu_bat_para28 = 92
pmu_bat_para29 = 94
pmu_bat_para30 = 96
pmu_bat_para31 = 98
pmu_bat_para32 = 100
pmu_usbvol_limit = 0
pmu_usbcur_limit = 0
pmu_usbvol = 4000
pmu_usbcur = 0
pmu_usbvol_pc = 4400
pmu_usbcur_pc = 500
pmu_pwroff_vol = 3300
pmu_pwron_vol = 2600
pmu_pekoff_time = 6000
pmu_pekoff_func = 1
pmu_pekoff_en = 1
pmu_peklong_time = 1500
pmu_pekon_time = 1000
pmu_pwrok_time = 64
pmu_battery_warning_level1 = 15
pmu_battery_warning_level2 = 0
pmu_restvol_adjust_time = 60
pmu_ocv_cou_adjust_time = 60
pmu_chgled_func = 0
pmu_chgled_type = 0
pmu_vbusen_func = 1
pmu_reset = 0
pmu_IRQ_wakeup = 1
pmu_hot_shutdowm = 1
pmu_inshort = 0
power_start = 0
pmu_temp_enable = 1
pmu_charge_ltf = 2261
pmu_charge_htf = 388
pmu_discharge_ltf = 3200
pmu_discharge_htf = 237
pmu_temp_para1 = 7466
pmu_temp_para2 = 4480
pmu_temp_para3 = 3518
pmu_temp_para4 = 2786
pmu_temp_para5 = 2223
pmu_temp_para6 = 1788
pmu_temp_para7 = 1448
pmu_temp_para8 = 969
pmu_temp_para9 = 664
pmu_temp_para10 = 466
pmu_temp_para11 = 393
pmu_temp_para12 = 333
pmu_temp_para13 = 283
pmu_temp_para14 = 242
pmu_temp_para15 = 179
pmu_temp_para16 = 134

[pmu2_para]
pmu_used = 0
pmu_twi_addr = 52
pmu_twi_id = 1
pmu_irq_id = 0

[recovery_key]
key_min = 3
key_max = 5

[dvfs_table]
extremity_freq = 1344000000
max_freq = 1200000000
min_freq = 120000000
LV_count = 8
LV1_freq = 1536000000
LV1_volt = 1500
LV2_freq = 1344000000
LV2_volt = 1460
LV3_freq = 1200000000
LV3_volt = 1320
LV4_freq = 1008000000
LV4_volt = 1200
LV5_freq = 816000000
LV5_volt = 1100
LV6_freq = 648000000
LV6_volt = 1040
LV7_freq = 0
LV7_volt = 1040
LV8_freq = 0
LV8_volt = 1040

[Vdevice]
Vdevice_used = 1
Vdevice_0 = port:PA01<5><1><2><default>
Vdevice_1 = port:PA02<5><1><2><default>

[s_uart0]
s_uart_used = 0
s_uart_tx = port:PL02<2><default><default><default>
s_uart_rx = port:PL03<2><default><default><default>

[s_rsb0]
s_rsb_used = 1
s_rsb_sck = port:PL00<2><1><2><default>
s_rsb_sda = port:PL01<2><1><2><default>

[s_jtag0]
s_jtag_used = 0
s_jtag_tms = port:PL04<2><1><2><default>
s_jtag_tck = port:PL05<2><1><2><default>
s_jtag_tdo = port:PL06<2><1><2><default>
s_jtag_tdi = port:PL07<2><1><2><default>

[s_powchk]
s_powchk_used = -2147483648
s_power_reg = 32865
s_system_power = 50

[mali_para]
mali_used = 1
mali_clkdiv = 1
mali_extreme_freq = 408
mali_extreme_vol = 1100

[dram_dvfs_table]
LV_count = 3
LV1_freq = 552000000
LV1_volt = 1100
LV2_freq = 360000000
LV2_volt = 1000
LV3_freq = 0
LV3_volt = 1000

[charging_type]
charging_type = 1

[dram_scene_table]
LV_count = 3
LV1_scene = 1
LV1_freq = 360000000
LV2_scene = 2
LV2_freq = 240000000
LV3_scene = 3
LV3_freq = 168000000

[leds_para]
leds_used = 1
red_led = port:power3<1><default><default><0>
red_led_active_low = 1
green_led = port:power1<1><default><default><0>
green_led_active_low = 0
blue_led =
blue_led_active_low = 0

最近编辑记录 weiyongwill (2020-12-07 21:07:06)

离线

楼主 #3 2020-12-07 09:52:29

weiyongwill
会员
注册时间: 2019-08-08
已发帖子: 65
积分: 28.5

Re: A33板子修改U-BOOT调试串口失败,大佬们帮忙分析一下

多谢大佬指点,哪里可以设置关闭LCD,是在uboot设置里面,还是需要改代码?

哇酷小二 说:

有没有可能PD10/11 的 UART1复用 被LCD初始化 覆盖了?

离线

楼主 #4 2020-12-07 09:54:35

weiyongwill
会员
注册时间: 2019-08-08
已发帖子: 65
积分: 28.5

Re: A33板子修改U-BOOT调试串口失败,大佬们帮忙分析一下

只改了设备树里面的这里

&tcon0 {
	pinctrl-names = "default";
	pinctrl-0 = <&lcd_rgb666_pins>;
	status = "disabled";
};
weiyongwill 说:

多谢大佬指点,哪里可以设置关闭LCD,是在uboot设置里面,还是需要改代码?

哇酷小二 说:

有没有可能PD10/11 的 UART1复用 被LCD初始化 覆盖了?

离线

楼主 #7 2020-12-07 10:31:43

weiyongwill
会员
注册时间: 2019-08-08
已发帖子: 65
积分: 28.5

Re: A33板子修改U-BOOT调试串口失败,大佬们帮忙分析一下

我试试看

ubuntu 说:
weiyongwill 说:

多谢大佬指点,哪里可以设置关闭LCD,是在uboot设置里面,还是需要改代码?

哇酷小二 说:

有没有可能PD10/11 的 UART1复用 被LCD初始化 覆盖了?

如果修改设备树没用的话, make menuconfig 禁用这个 CONFIG_VIDEO_SUNXI

离线

楼主 #8 2020-12-07 10:32:08

weiyongwill
会员
注册时间: 2019-08-08
已发帖子: 65
积分: 28.5

Re: A33板子修改U-BOOT调试串口失败,大佬们帮忙分析一下

还没,持续向大佬们学习

raspberryman 说:

关注, 搞定了吗?

离线

楼主 #9 2020-12-07 12:58:20

weiyongwill
会员
注册时间: 2019-08-08
已发帖子: 65
积分: 28.5

Re: A33板子修改U-BOOT调试串口失败,大佬们帮忙分析一下

关掉 CONFIG_VIDEO_SUNXI 之后出现了以下错误,记录一下,继续折腾

board/sunxi/built-in.o: In function `ft_board_setup':
/home/wy/Projects/A33/u-boot/board/sunxi/board.c:911: undefined reference to `sunxi_simplefb_setup'
drivers/built-in.o: In function `cfg_video_init':
/home/wy/Projects/A33/u-boot/drivers/video/cfb_console.c:2022: undefined reference to `video_hw_init'
arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2019.12) 2.28.2.20170706 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release_1/snapshots/binutils-gdb.git~users~linaro~binutils-2_28-branch/bfd/elf32-arm.c:9514
arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2019.12) 2.28.2.20170706 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release_1/snapshots/binutils-gdb.git~users~linaro~binutils-2_28-branch/bfd/elf32-arm.c:9514
Makefile:1757: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1
weiyongwill 说:

我试试看

ubuntu 说:
weiyongwill 说:

多谢大佬指点,哪里可以设置关闭LCD,是在uboot设置里面,还是需要改代码?

如果修改设备树没用的话, make menuconfig 禁用这个 CONFIG_VIDEO_SUNXI

离线

楼主 #10 2020-12-07 13:03:30

weiyongwill
会员
注册时间: 2019-08-08
已发帖子: 65
积分: 28.5

Re: A33板子修改U-BOOT调试串口失败,大佬们帮忙分析一下

又关了CONFIG_VIDEO,报下面错误,继续

board/sunxi/built-in.o: In function `ft_board_setup':
/home/wy/Projects/A33/u-boot/board/sunxi/board.c:911: undefined reference to `sunxi_simplefb_setup'
arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2019.12) 2.28.2.20170706 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release_1/snapshots/binutils-gdb.git~users~linaro~binutils-2_28-branch/bfd/elf32-arm.c:9514
Makefile:1757: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1
weiyongwill 说:

关掉 CONFIG_VIDEO_SUNXI 之后出现了以下错误,记录一下,继续折腾

board/sunxi/built-in.o: In function `ft_board_setup':
/home/wy/Projects/A33/u-boot/board/sunxi/board.c:911: undefined reference to `sunxi_simplefb_setup'
drivers/built-in.o: In function `cfg_video_init':
/home/wy/Projects/A33/u-boot/drivers/video/cfb_console.c:2022: undefined reference to `video_hw_init'
arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2019.12) 2.28.2.20170706 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release_1/snapshots/binutils-gdb.git~users~linaro~binutils-2_28-branch/bfd/elf32-arm.c:9514
arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2019.12) 2.28.2.20170706 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release_1/snapshots/binutils-gdb.git~users~linaro~binutils-2_28-branch/bfd/elf32-arm.c:9514
Makefile:1757: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1
weiyongwill 说:

我试试看

ubuntu 说:

如果修改设备树没用的话, make menuconfig 禁用这个 CONFIG_VIDEO_SUNXI

离线

楼主 #11 2020-12-07 13:08:25

weiyongwill
会员
注册时间: 2019-08-08
已发帖子: 65
积分: 28.5

Re: A33板子修改U-BOOT调试串口失败,大佬们帮忙分析一下

又关了CONFIG_VIDEO_DT_SIMPLEFB,现在没有报错了,编译成功,晚上试试串口输出

现在才知道怎么能快速在Menuconfig里面定位搜索,只需要按 / 就可以输入搜索的内容了,总共关了CONFIG_VIDEO_SUNXI  CONFIG_VIDEO  CONFIG_VIDEO_DT_SIMPLEFB 三个选项,用搜索功能可以很快能定位到

感谢上面的几位大佬

weiyongwill 说:

又关了CONFIG_VIDEO,报下面错误,继续

board/sunxi/built-in.o: In function `ft_board_setup':
/home/wy/Projects/A33/u-boot/board/sunxi/board.c:911: undefined reference to `sunxi_simplefb_setup'
arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2019.12) 2.28.2.20170706 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release_1/snapshots/binutils-gdb.git~users~linaro~binutils-2_28-branch/bfd/elf32-arm.c:9514
Makefile:1757: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1
weiyongwill 说:

关掉 CONFIG_VIDEO_SUNXI 之后出现了以下错误,记录一下,继续折腾

board/sunxi/built-in.o: In function `ft_board_setup':
/home/wy/Projects/A33/u-boot/board/sunxi/board.c:911: undefined reference to `sunxi_simplefb_setup'
drivers/built-in.o: In function `cfg_video_init':
/home/wy/Projects/A33/u-boot/drivers/video/cfb_console.c:2022: undefined reference to `video_hw_init'
arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2019.12) 2.28.2.20170706 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release_1/snapshots/binutils-gdb.git~users~linaro~binutils-2_28-branch/bfd/elf32-arm.c:9514
arm-linux-gnueabihf-ld.bfd: BFD (Linaro_Binutils-2019.12) 2.28.2.20170706 assertion fail /home/tcwg-buildslave/workspace/tcwg-make-release_1/snapshots/binutils-gdb.git~users~linaro~binutils-2_28-branch/bfd/elf32-arm.c:9514
Makefile:1757: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1
weiyongwill 说:

我试试看

离线

楼主 #12 2020-12-07 18:31:38

weiyongwill
会员
注册时间: 2019-08-08
已发帖子: 65
积分: 28.5

Re: A33板子修改U-BOOT调试串口失败,大佬们帮忙分析一下

依然是没有数据,可以确认U-boot是启动了,USB设备变成了RNDIS/Ethernet Gadget 了。

离线

楼主 #14 2020-12-10 10:11:35

weiyongwill
会员
注册时间: 2019-08-08
已发帖子: 65
积分: 28.5

Re: A33板子修改U-BOOT调试串口失败,大佬们帮忙分析一下

还没呢,等大佬指导。另外改变思路,从LCD打印调试信息了

笨企鹅 说:

还没能找到问题吗?

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn