@nathanliu DTS中PE4 PE5 IO占用了?
L
leokemp 发布的帖子
-
使用T113S3 tina linux驱动ST7701S RGB长条屏幕,显示lvgl demo分两半问题
问题卡了两周,各位路过的大佬帮忙看看呗!感激不尽
使用T113S3 tina linux驱动ST7701S RGB屏幕,打开lvgl demo,显示分了两半的问题:
通过指令保存的图片是正常的:
echo 0 > /sys/class/disp/disp/attr/disp echo /data/1.bmp > /sys/class/disp/disp/attr/capture_dump
厂家给的参数:
HS:10 HBP:30 HFP: 50
VS:2 VBP:15 VFP:17
400*960DTS部分配置如下:
&disp { disp_init_enable = <1>; disp_mode = <0>; screen0_output_type = <1>; screen0_output_mode = <4>; screen1_output_type = <3>; screen1_output_mode = <4>; screen1_output_format = <0>; screen1_output_bits = <0>; screen1_output_eotf = <4>; screen1_output_cs = <257>; screen1_output_range = <2>; screen1_output_scan = <0>; screen1_output_aspect_ratio = <8>; dev0_output_type = <1>; dev0_output_mode = <4>; dev0_screen_id = <0>; dev0_do_hpd = <0>; dev1_output_type = <4>; dev1_output_mode = <10>; dev1_screen_id = <1>; dev1_do_hpd = <1>; def_output_dev = <0>; disp_rotation_used = <1>; degree0 = <0>; fb0_format = <0>; fb0_buffer_num = <1>; fb0_width = <400>; fb0_height = <960>; /*read from lcd*/ fb1_format = <0>; fb1_width = <0>; fb1_height = <0>; chn_cfg_mode = <1>; disp_para_zone = <1>; /*VCC-LCD*/ /* dc1sw-supply = <®_dc1sw>;*/ /*VCC-DSI*/ /* eldo3-supply = <®_eldo3>;*/ /*VCC-PD*/ /* dcdc1-supply = <®_dcdc1>;*/ };
&lcd0 { lcd_used = <1>; lcd_driver_name = "st7701s_rgb"; lcd_if = <0>; //0:rgb 1:CPU/I80 2:保留 3:lvds 4:dsi lcd_hv_if = <0>; //0:并行rgb lcd_width = <46>; //物理宽度 mm lcd_height = <110>; //物理高度 mm lcd_x = <400>; //宽度 lcd_y = <960>; //高度 lcd_dclk_freq = <29>; //屏幕时钟 MHz lcd_hbp = <40>; //hbp+hspw,从时序图可以看到hspw包含在hbp中,所以只需要填写hbp的值 lcd_ht = <490>; //lcd_x+hs+hbp+hspw lcd_hspw = <10>; //hspw lcd_vbp = <17>; //vbp+vspw lcd_vt = <994>; //lcd_y+vs+vbp+vspw lcd_vspw = <2>; //vspw lcd_backlight = <50>; //背光默认亮度 lcd_pwm_used = <1>; //使用背光 lcd_pwm_ch = <7>; //使用pwm通道7 lcd_pwm_freq = <10000>; //PWM 频率,单位 Hz lcd_pwm_pol = <0>; //背光 PWM 的极性 lcd_pwm_max_limit = <255>; lcd_bright_curve_en = <0>; lcd_dsi_if = <0>; lcd_dsi_lane = <4>; lcd_lvds_if = <0>; lcd_lvds_colordepth = <0>; lcd_lvds_mode = <0>; lcd_frm = <1>; lcd_hv_clk_phase = <0>; lcd_hv_sync_polarity= <0>; lcd_io_phase = <0x0000>; lcd_gamma_en = <0>; lcd_bright_curve_en = <0>; lcd_cmap_en = <0>; lcd_fsync_en = <0>; lcd_fsync_act_time = <1000>; lcd_fsync_dis_time = <1000>; lcd_fsync_pol = <0>; deu_mode = <0>; lcdgamma4iep = <22>; smart_color = <90>; pinctrl-0 = <&rgb18_pins_a>; pinctrl-1 = <&rgb18_pins_b>; lcd_gpio_0 = <&pio PE 9 GPIO_ACTIVE_HIGH>; //RST lcd_gpio_1 = <&pio PE 8 GPIO_ACTIVE_HIGH>; //CS lcd_gpio_2 = <&pio PE 7 GPIO_ACTIVE_HIGH>; //SDA lcd_gpio_3 = <&pio PE 6 GPIO_ACTIVE_HIGH>; //SCK };
驱动部分参考sdk的st7701改的,spi+rgb驱动
#include "st7701s_rgb.h" #include "default_panel.h" //s32 sunxi_lcd_gpio_set_value(u32 screen_id, u32 io_index, u32 value) #define st7701s_spi_scl_1 sunxi_lcd_gpio_set_value(0, 3, 1) #define st7701s_spi_scl_0 sunxi_lcd_gpio_set_value(0, 3, 0) #define st7701s_spi_sdi_1 sunxi_lcd_gpio_set_value(0, 2, 1) #define st7701s_spi_sdi_0 sunxi_lcd_gpio_set_value(0, 2, 0) #define st7701s_spi_cs_1 sunxi_lcd_gpio_set_value(0, 1, 1) #define st7701s_spi_cs_0 sunxi_lcd_gpio_set_value(0, 1, 0) #define st7701s_spi_reset_1 sunxi_lcd_gpio_set_value(0, 0, 1) #define st7701s_spi_reset_0 sunxi_lcd_gpio_set_value(0, 0, 0) static void LCD_power_on(u32 sel); static void LCD_power_off(u32 sel); static void LCD_bl_open(u32 sel); static void LCD_bl_close(u32 sel); static void LCD_panel_init(u32 sel); static void LCD_panel_exit(u32 sel); static void LCD_cfg_panel_info(panel_extend_para *info) { u32 i = 0, j = 0; u32 items; u8 lcd_gamma_tbl[][2] = { /* {input value, corrected value} */ {0, 0}, {15, 15}, {30, 30}, {45, 45}, {60, 60}, {75, 75}, {90, 90}, {105, 105}, {120, 120}, {135, 135}, {150, 150}, {165, 165}, {180, 180}, {195, 195}, {210, 210}, {225, 225}, {240, 240}, {255, 255}, }; u32 lcd_cmap_tbl[2][3][4] = { { {LCD_CMAP_G0, LCD_CMAP_B1, LCD_CMAP_G2, LCD_CMAP_B3}, {LCD_CMAP_B0, LCD_CMAP_R1, LCD_CMAP_B2, LCD_CMAP_R3}, {LCD_CMAP_R0, LCD_CMAP_G1, LCD_CMAP_R2, LCD_CMAP_G3}, }, { {LCD_CMAP_B3, LCD_CMAP_G2, LCD_CMAP_B1, LCD_CMAP_G0}, {LCD_CMAP_R3, LCD_CMAP_B2, LCD_CMAP_R1, LCD_CMAP_B0}, {LCD_CMAP_G3, LCD_CMAP_R2, LCD_CMAP_G1, LCD_CMAP_R0}, }, }; items = sizeof(lcd_gamma_tbl) / 2; for (i = 0; i < items - 1; i++) { u32 num = lcd_gamma_tbl[i + 1][0] - lcd_gamma_tbl[i][0]; for (j = 0; j < num; j++) { u32 value = 0; value = lcd_gamma_tbl[i][1] + ((lcd_gamma_tbl[i + 1][1] - lcd_gamma_tbl[i][1]) * j) / num; info->lcd_gamma_tbl[lcd_gamma_tbl[i][0] + j] = (value << 16) + (value << 8) + value; } } info->lcd_gamma_tbl[255] = (lcd_gamma_tbl[items - 1][1] << 16) + (lcd_gamma_tbl[items - 1][1] << 8) + lcd_gamma_tbl[items - 1][1]; memcpy(info->lcd_cmap_tbl, lcd_cmap_tbl, sizeof(lcd_cmap_tbl)); } static s32 LCD_open_flow(u32 sel) { printk("=====================LCD_open_flow\n"); /* open lcd power, and delay 50ms */ LCD_OPEN_FUNC(sel, LCD_power_on, 20); /* open lcd power, than delay 200ms */ LCD_OPEN_FUNC(sel, LCD_panel_init, 20); /* open lcd controller, and delay 100ms */ LCD_OPEN_FUNC(sel, sunxi_lcd_tcon_enable, 100); /* open lcd backlight, and delay 0ms */ LCD_OPEN_FUNC(sel, LCD_bl_open, 0); return 0; } static s32 LCD_close_flow(u32 sel) { /* close lcd backlight, and delay 0ms */ LCD_CLOSE_FUNC(sel, LCD_bl_close, 0); /* close lcd controller, and delay 0ms */ LCD_CLOSE_FUNC(sel, sunxi_lcd_tcon_disable, 0); /* open lcd power, than delay 200ms */ LCD_CLOSE_FUNC(sel, LCD_panel_exit, 200); /* close lcd power, and delay 500ms */ LCD_CLOSE_FUNC(sel, LCD_power_off, 500); return 0; } static void LCD_power_on(u32 sel) { printk("=====================LCD_power_on\n"); /* config lcd_power pin to open lcd power0 */ sunxi_lcd_power_enable(sel, 0); sunxi_lcd_pin_cfg(sel, 1); } static void LCD_power_off(u32 sel) { sunxi_lcd_pin_cfg(sel, 0); /* config lcd_power pin to close lcd power0 */ sunxi_lcd_power_disable(sel, 0); } static void LCD_bl_open(u32 sel) { printk("=====================LCD_bl_open\n"); sunxi_lcd_pwm_enable(sel); sunxi_lcd_backlight_enable(sel); } static void LCD_bl_close(u32 sel) { /* config lcd_bl_en pin to close lcd backlight */ sunxi_lcd_backlight_disable(sel); sunxi_lcd_pwm_disable(sel); } //three line 9bit mode static void LCD_WRITE_DATA(u32 value) { u32 i; st7701s_spi_cs_0; st7701s_spi_sdi_1; st7701s_spi_scl_0; sunxi_lcd_delay_us(10); st7701s_spi_scl_1; for (i = 0; i < 8; i++) { sunxi_lcd_delay_us(10); if (value & 0x80) st7701s_spi_sdi_1; else st7701s_spi_sdi_0; value <<= 1; sunxi_lcd_delay_us(10); st7701s_spi_scl_0; st7701s_spi_scl_1; } sunxi_lcd_delay_us(10); st7701s_spi_cs_1; } static void LCD_WRITE_COMMAND(u32 value) { u32 i; st7701s_spi_cs_0; st7701s_spi_sdi_0; st7701s_spi_scl_0; sunxi_lcd_delay_us(10); st7701s_spi_scl_1; for (i = 0; i < 8; i++) { sunxi_lcd_delay_us(10); if (value & 0x80) st7701s_spi_sdi_1; else st7701s_spi_sdi_0; st7701s_spi_scl_0; sunxi_lcd_delay_us(10); st7701s_spi_scl_1; value <<= 1; } sunxi_lcd_delay_us(10); st7701s_spi_cs_1; } static void LCD_panel_init(u32 sel) { printk("=====================LCD_panel_init\n"); //ST7701S+AUO4.58 LCD_WRITE_COMMAND (0xFF); LCD_WRITE_DATA (0x77); LCD_WRITE_DATA (0x01); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x13); LCD_WRITE_COMMAND (0xEF); LCD_WRITE_DATA (0x08); LCD_WRITE_COMMAND (0xFF); LCD_WRITE_DATA (0x77); LCD_WRITE_DATA (0x01); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x10); LCD_WRITE_COMMAND (0xC0); LCD_WRITE_DATA (0x77); LCD_WRITE_DATA (0x00); LCD_WRITE_COMMAND (0xC1); LCD_WRITE_DATA (0x09); LCD_WRITE_DATA (0x08); LCD_WRITE_COMMAND (0xC2);//inv LCD_WRITE_DATA (0x01); LCD_WRITE_DATA (0x02); LCD_WRITE_COMMAND (0xC3); //???? LCD_WRITE_DATA (0x02); //82 HVmode 02 DEmode LCD_WRITE_COMMAND (0xCC); LCD_WRITE_DATA (0x10); LCD_WRITE_COMMAND (0xB0); LCD_WRITE_DATA (0x40); LCD_WRITE_DATA (0x14); LCD_WRITE_DATA (0x59); LCD_WRITE_DATA (0x10); LCD_WRITE_DATA (0x12); LCD_WRITE_DATA (0x08); LCD_WRITE_DATA (0x03); LCD_WRITE_DATA (0x09); LCD_WRITE_DATA (0x05); LCD_WRITE_DATA (0x1E); LCD_WRITE_DATA (0x05); LCD_WRITE_DATA (0x14); LCD_WRITE_DATA (0x10); LCD_WRITE_DATA (0x68); LCD_WRITE_DATA (0x33); LCD_WRITE_DATA (0x15); LCD_WRITE_COMMAND (0xB1); LCD_WRITE_DATA (0x40); LCD_WRITE_DATA (0x08); LCD_WRITE_DATA (0x53); LCD_WRITE_DATA (0x09); LCD_WRITE_DATA (0x11); LCD_WRITE_DATA (0x09); LCD_WRITE_DATA (0x02); LCD_WRITE_DATA (0x07); LCD_WRITE_DATA (0x09); LCD_WRITE_DATA (0x1A); LCD_WRITE_DATA (0x04); LCD_WRITE_DATA (0x12); LCD_WRITE_DATA (0x12); LCD_WRITE_DATA (0x64); LCD_WRITE_DATA (0x29); LCD_WRITE_DATA (0x29); LCD_WRITE_COMMAND (0xFF); LCD_WRITE_DATA (0x77); LCD_WRITE_DATA (0x01); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x11); LCD_WRITE_COMMAND (0xB0); LCD_WRITE_DATA (0x6D); //6D LCD_WRITE_COMMAND (0xB1); //vcom LCD_WRITE_DATA (0x1D); LCD_WRITE_COMMAND (0xB2); LCD_WRITE_DATA (0x87); LCD_WRITE_COMMAND (0xB3); LCD_WRITE_DATA (0x80); LCD_WRITE_COMMAND (0xB5); LCD_WRITE_DATA (0x49); LCD_WRITE_COMMAND (0xB7); LCD_WRITE_DATA (0x85); LCD_WRITE_COMMAND (0xB8); LCD_WRITE_DATA (0x20); LCD_WRITE_COMMAND (0xC1); LCD_WRITE_DATA (0x78); LCD_WRITE_COMMAND (0xC2); LCD_WRITE_DATA (0x78); LCD_WRITE_COMMAND (0xD0); LCD_WRITE_DATA (0x88); LCD_WRITE_COMMAND (0xE0); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x02); LCD_WRITE_COMMAND (0xE1); LCD_WRITE_DATA (0x02); LCD_WRITE_DATA (0x8C); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x03); LCD_WRITE_DATA (0x8C); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x33); LCD_WRITE_DATA (0x33); LCD_WRITE_COMMAND (0xE2); LCD_WRITE_DATA (0x33); LCD_WRITE_DATA (0x33); LCD_WRITE_DATA (0x33); LCD_WRITE_DATA (0x33); LCD_WRITE_DATA (0xC9); LCD_WRITE_DATA (0x3C); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0xCA); LCD_WRITE_DATA (0x3C); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_COMMAND (0xE3); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x33); LCD_WRITE_DATA (0x33); LCD_WRITE_COMMAND (0xE4); LCD_WRITE_DATA (0x44); LCD_WRITE_DATA (0x44); LCD_WRITE_COMMAND (0xE5); LCD_WRITE_DATA (0x05); LCD_WRITE_DATA (0xCD); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x01); LCD_WRITE_DATA (0xC9); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x07); LCD_WRITE_DATA (0xCF); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x03); LCD_WRITE_DATA (0xCB); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x82); LCD_WRITE_COMMAND (0xE6); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x33); LCD_WRITE_DATA (0x33); LCD_WRITE_COMMAND (0xE7); LCD_WRITE_DATA (0x44); LCD_WRITE_DATA (0x44); LCD_WRITE_COMMAND (0xE8); LCD_WRITE_DATA (0x06); LCD_WRITE_DATA (0xCE); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x02); LCD_WRITE_DATA (0xCA); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x08); LCD_WRITE_DATA (0xD0); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x04); LCD_WRITE_DATA (0xCC); LCD_WRITE_DATA (0x82); LCD_WRITE_DATA (0x82); LCD_WRITE_COMMAND (0xEB); LCD_WRITE_DATA (0x08); LCD_WRITE_DATA (0x01); LCD_WRITE_DATA (0xE4); LCD_WRITE_DATA (0xE4); LCD_WRITE_DATA (0x88); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x40); LCD_WRITE_COMMAND (0xEC); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_COMMAND (0xED); LCD_WRITE_DATA (0xFF); LCD_WRITE_DATA (0xF0); LCD_WRITE_DATA (0x07); LCD_WRITE_DATA (0x65); LCD_WRITE_DATA (0x4F); LCD_WRITE_DATA (0xFC); LCD_WRITE_DATA (0xC2); LCD_WRITE_DATA (0x2F); LCD_WRITE_DATA (0xF2); LCD_WRITE_DATA (0x2C); LCD_WRITE_DATA (0xCF); LCD_WRITE_DATA (0xF4); LCD_WRITE_DATA (0x56); LCD_WRITE_DATA (0x70); LCD_WRITE_DATA (0x0F); LCD_WRITE_DATA (0xFF); LCD_WRITE_COMMAND (0xEF); LCD_WRITE_DATA (0x10); LCD_WRITE_DATA (0x0D); LCD_WRITE_DATA (0x04); LCD_WRITE_DATA (0x08); LCD_WRITE_DATA (0x3F); LCD_WRITE_DATA (0x1F); LCD_WRITE_COMMAND (0xFF); LCD_WRITE_DATA (0x77); LCD_WRITE_DATA (0x01); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_DATA (0x00); LCD_WRITE_COMMAND (0x11); sunxi_lcd_delay_ms(120); LCD_WRITE_COMMAND (0x35); LCD_WRITE_DATA (0x00); LCD_WRITE_COMMAND (0x3A); LCD_WRITE_DATA (0x66); //LCD_WRITE_COMMAND (0x11); //sunxi_lcd_delay_ms(120); LCD_WRITE_COMMAND (0x29); return; } static void LCD_panel_exit(u32 sel) { return; } /* sel: 0:lcd0; 1:lcd1 */ static s32 LCD_user_defined_func(u32 sel, u32 para1, u32 para2, u32 para3) { return 0; } __lcd_panel_t st7701s_rgb_panel = { /* panel driver name, must mach the lcd_drv_name in sys_config.fex */ .name = "st7701s_rgb", .func = { .cfg_panel_info = LCD_cfg_panel_info, .cfg_open_flow = LCD_open_flow, .cfg_close_flow = LCD_close_flow, .lcd_user_defined_func = LCD_user_defined_func, } , };
-
回复: T113S3使用spinand启动进不了kernel问题
对比下能够正常启动的固件,和不能正常启动的日志,差异如下,目前还没找到问题的解决办法来着。
正常 [17:24:57.908] [01.880]Loading Environment from SUNXI_FLASH... OK 异常 [11:12:03.078] [01.569]Loading Environment from SUNXI_FLASH... Can't find env-redund partition [11:12:03.158] *** Warning - no device, using default environment 正常 [17:24:57.698] partno erro : can't find partition bootloader 异常 [11:12:03.178] partno erro : can't find partition bootloader [11:12:03.199] partno erro : can't find partition boot-resource [11:12:03.219] [01.662]Get bootloader and boot-resource partition number fail! 正常 [17:24:59.469] List file under ULI/factory [17:24:59.469] ** Unrecognized filesystem type ** 异常 [11:12:03.838] cann't get the boot_base from the env
-
回复: T113S3使用spinand启动进不了kernel问题
看日志说的是找不发到env-redund分区
Loading Environment from SUNXI_FLASH... Can't find env-redund partition
[17:26:53.990] *** Warning - no device, using default environment但是我的sys_partition.fex已经了加了这个分区来着
[code] ;--------------------------------------------------------------------------------------------------- ; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串 ;--------------------------------------------------------------------------------------------------- ;--------------------------------------------------------------------------------------------------- ; 固件下载参数配置 ;--------------------------------------------------------------------------------------------------- ;*************************************************************************************************** ; mbr的大小, 以Kbyte为单位 ;*************************************************************************************************** [mbr] size = 252 ;*************************************************************************************************** ; 分区配置 ; ; ; partition 定义范例: ; [partition] ; //表示是一个分区 ; name = USERFS2 ; //分区名称 ; size = 16384 ; //分区大小 单位: 扇区.分区表示个数最多2^31 * 512 = 2T ; downloadfile = "123.fex" ; //下载文件的路径和名称,可以使用相对路径,相对是指相对于image.cfg文件所在分区。也可以使用绝对路径 ; keydata = 1 ; //私有数据分区,重新量产数据将不丢失 ; encrypt = 1 ; //采用加密方式烧录,将提供数据加密,但损失烧录速度 ; user_type = ? ; //私有用法 ; verify = 1 ; //要求量产完成后校验是否正确 ; ; 注:1、name唯一, 不允许同名 ; 2、name最大12个字符 ; 3、size = 0, 将创建一个无大小的空分区 ; 4、align to logical block size(504 sectors), leb size = 2*(1 nand phy block size - 1 phy page size) ;*************************************************************************************************** [partition_start] [partition] name = boot-resource size = 504 downloadfile = "boot-resource.fex" user_type = 0x8000 [partition] name = env size = 504 downloadfile = "env.fex" user_type = 0x8000 [partition] name = env-redund size = 504 downloadfile = "env.fex" user_type = 0x8000 [partition] name = boot size = 20160 downloadfile = "boot.fex" user_type = 0x8000 [partition] name = rootfs size = 61440 downloadfile = "rootfs.fex" user_type = 0x8000 [partition] name = private size = 10080 user_type = 0x8000 [partition] name = recovery size = 23184 ;downloadfile = "recovery.fex" user_type = 0x8000 [/code]
-
T113S3使用spinand启动进不了kernel问题
使用evb1板卡的配置,跟随下方链接配置为spi nand启动后,发现进不了kernel
https://bbs.aw-ol.com/topic/1701/tina-linux-存储介质切换-emmc-spi-nand-spi-nor-sd-card-sd-nand?_=1699127558925使用的flash是1Gbit的XT26G04CWSIGA,看到id.c中有这个芯片的支持。
完整日志如下:
HELLO! BOOT0 is starting! [09:59:25.488] [140]BOOT0 commit : 1417090655 [09:59:25.498] [143]set pll start [09:59:25.498] [149]periph0 has been enabled [09:59:25.498] [152]set pll end [09:59:25.508] [154][pmu]: bus read error [09:59:25.508] [157]board init ok [09:59:25.508] [159]enable_jtag [09:59:25.508] [160]ZQ value = 0x30 [09:59:25.519] [162]get_pmu_exist() = -1 [09:59:25.519] [165]DRAM BOOT DRIVE INFO: V0.33 [09:59:25.519] [168]DRAM CLK = 792 MHz [09:59:25.519] [170]DRAM Type = 3 (2:DDR2,3:DDR3) [09:59:25.529] [174]DRAMC read ODT off. [09:59:25.529] [176]DRAM ODT value: 0x42. [09:59:25.529] [179]ddr_efuse_type: 0xa [09:59:25.529] [182]DRAM SIZE =128 M [09:59:25.539] [184]dram_tpr4:0x0 [09:59:25.539] [186]PLL_DDR_CTRL_REG:0xf8004100 [09:59:25.539] [189]DRAM_CLK_REG:0xc0000000 [09:59:25.539] [192][TIMING DEBUG] MR2= 0x18 [09:59:25.549] [200]DRAM simple test OK. [09:59:25.549] [202]rtc standby flag is 0x0, super standby flag is 0x0 [09:59:25.559] [208]dram size =128 [09:59:25.559] [211]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32 [09:59:25.569] [216]block from 8 to 32 [09:59:25.569] [300]Check is correct. [09:59:25.648] [302]dma 0x2ac4c int is not used yet [09:59:25.658] [305]dma 0x2ac4c int is free, you do not need to free it again [09:59:25.658] [311]Entry_name = u-boot [09:59:25.668] [318]Entry_name = optee [09:59:25.668] [322]Entry_name = dtb [09:59:25.678] [325]Jump to second Boot. [09:59:25.678] M/TC: OP-TEE version: 8b49ce62-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Aug 12 08:24:15 UTC 2022 arm [09:59:25.718] [09:59:25.718] [09:59:25.718] U-Boot 2018.07-gd9e6718-dirty (Aug 20 2024 - 01:08:36 +0000) Allwinner Technology [09:59:25.728] [09:59:25.728] [00.377]CPU: Allwinner Family [09:59:25.728] [00.380]Model: sun8iw20 [09:59:25.738] [00.382]DRAM: 128 MiB [09:59:25.738] [00.386]Relocation Offset is: 04ec4000 [09:59:25.738] [00.413]secure enable bit: 0 [09:59:25.768] E/TC:0 fdt_getprop_u32:343 prop trace_level not found [09:59:25.778] [00.426]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [09:59:25.788] [00.432]gic: sec monitor mode [09:59:25.788] sunxi flash map init [09:59:25.788] SPI ALL: ready [09:59:25.788] [00.439]flash init start [09:59:25.798] [00.442]workmode = 0,storage type = 0 [09:59:25.798] [00.448]sunxi-spinand-phy: spinand sample_mode:2 sample_delay:8 [09:59:25.808] [09:59:25.808] device nand0 <nand>, # parts = 4 [09:59:25.818] #: name size offset mask_flags [09:59:25.818] 0: boot0 0x00200000 0x00000000 1 [09:59:25.818] 1: uboot 0x00600000 0x00200000 1 [09:59:25.818] 2: secure_storage 0x00200000 0x00800000 1 [09:59:25.828] 3: sys 0x1f600000 0x00a00000 0 [09:59:25.828] [09:59:25.828] active partition: nand0,0 - (boot0) 0x00200000 @ 0x00000000 [09:59:25.838] [09:59:25.838] defaults: [09:59:25.838] mtdids : nand0=nand [09:59:25.838] mtdparts: mtdparts=nand:2048k@0(boot0)ro,6144k@2097152(uboot)ro,2048k@8388608(secure_storage)ro,-(sys) [09:59:25.848] [00.894]ubi0: attaching mtd4 [09:59:26.249] [01.443]ubi0: scanning is finished [09:59:26.798] [01.450]ubi0: attached mtd4 (name "sys", size 502 MiB) [09:59:26.809] [01.455]ubi0: PEB size: 524288 bytes (512 KiB), LEB size: 516096 bytes [09:59:26.819] [01.461]ubi0: min./max. I/O unit sizes: 8192/8192, sub-page size 4096 [09:59:26.819] [01.467]ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192 [09:59:26.829] [01.474]ubi0: good PEBs: 999, bad PEBs: 5, corrupted PEBs: 0 [09:59:26.829] [01.479]ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128 [09:59:26.839] [01.486]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [09:59:26.849] [01.493]ubi0: available PEBs: 0, total reserved PEBs: 999, PEBs reserved for bad PEB handling: 35 [09:59:26.849] [01.502]sunxi flash init ok [09:59:26.859] [01.505]line:703 init_clocks [09:59:26.859] [01.508]drv_disp_init [09:59:26.859] [01.512]handle_num : 6 [09:59:26.869] request pwm success, pwm7:pwm7:0x2000c00. [09:59:26.879] [01.523]drv_disp_init finish [09:59:26.879] [01.568]Loading Environment from SUNXI_FLASH... Can't find env-redund partition [09:59:26.949] *** Warning - no device, using default environment [09:59:26.949] [09:59:26.949] Failed (-19) [09:59:26.959] [01.603]boot_gui_init:start [09:59:26.959] [01.606]set disp.dev2_output_type fail. using defval=0 [09:59:26.959] [01.612]set disp.fb0_rot_used fail. using defval=0 [09:59:26.969] [01.617]set disp.fb0_rot_degree fail. using defval=0 [09:59:26.969] [01.622]boot_gui_init:finish [09:59:26.979] partno erro : can't find partition bootloader [09:59:26.989] partno erro : can't find partition boot-resource [09:59:27.009] [01.660]Get bootloader and boot-resource partition number fail! [09:59:27.018] [01.668]Item0 (Map) magic is bad [09:59:27.028] [01.671]usb burn from boot [09:59:27.028] delay time 0 [09:59:27.028] weak:otg_phy_config [09:59:27.028] [01.682]usb prepare ok [09:59:27.038] [01.793]LCD open finish [09:59:27.148] [01.869]usb sof ok [09:59:27.218] [01.871]usb probe ok [09:59:27.228] [01.873]usb setup ok [09:59:27.228] set address 0x3e [09:59:27.258] set address 0x3e ok [09:59:27.258] set address 0x3f [09:59:27.449] set address 0x3f ok [09:59:27.449] try to update [09:59:27.488] [02.278]do_burn_from_boot usb : have no handshake [09:59:27.639] cann't get the boot_base from the env [09:59:27.639] [02.300]update bootcmd [09:59:27.649] [02.334]change working_fdt 0x45e83e70 to 0x45e63e70 [09:59:27.689] [02.353]update dts [09:59:27.709] Hit any key to stop autoboot: 2 1 0 [09:59:29.718] ## Error: "distro_bootcmd" not defined
env.cfg如下
#kernel command arguments earlyprintk=sunxi-uart,0x02500000 initcall_debug=0 console=ttyS0,115200 nand_root=/dev/ubiblock0_5 mmc_root=/dev/mmcblk0p5 mtd_name=sys rootfstype=squashfs root_partition=rootfs boot_partition=boot init=/init loglevel=8 cma=4M mac= wifi_mac= bt_mac= specialstr= #keybox_list=widevine,ec_key,ec_cert1,ec_cert2,ec_cert3,rsa_key,rsa_cert1,rsa_cert2,rsa_cert3 dsp0_partition=dsp0 #set kernel cmdline if boot.img or recovery.img has no cmdline we will use this setargs_nand=setenv bootargs ubi.mtd=${mtd_name} ubi.block=0,${root_partition} earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1 setargs_nand_ubi=setenv bootargs ubi.mtd=${mtd_name} ubi.block=0,${root_partition} earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nand_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1 setargs_mmc=setenv bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${mmc_root} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1 #nand command syntax: sunxi_flash read address partition_name read_bytes #0x4007f800 = 0x40080000(kernel entry) - 0x800(boot.img header 2k) #boot_dsp0=sunxi_flash read 43000000 ${dsp0_partition};bootr 43000000 0 0 #boot_normal=sunxi_flash read 43000000 ${boot_partition};bootm 43000000 boot_dsp0=sunxi_flash read 43000000 ${dsp0_partition};bootr 43000000 0 0 boot_normal=sunxi_flash read 43000000 ${boot_partition};bootm 43000000 boot_recovery=sunxi_flash read 43000000 recovery;bootm 43000000 boot_fastboot=fastboot #uboot system env config bootdelay=2 #default bootcmd, will change at runtime according to key press #default nand boot #bootcmd=run setargs_nand boot_dsp0 boot_normal bootcmd=run setargs_nand boot_normal
sys_config.fex中storage_type = 5
看日志似乎和分区表sys_partition.fex有点关系?
麻烦各位大佬帮忙看看,提供点思路。