导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. wj8331585
    W
    • 资料
    • 关注 4
    • 粉丝 0
    • 我的积分 2536
    • 主题 15
    • 帖子 35
    • 最佳 5
    • 群组 0

    wj8331585LV 6

    @wj8331585

    2536
    积分
    6
    声望
    19
    资料浏览
    35
    帖子
    0
    粉丝
    4
    关注
    注册时间 最后登录

    wj8331585 取消关注 关注

    wj8331585 发布的最佳帖子

    • mrtos_menuconfig出错了

      mrtos_menuconfig出错了。

      35bf845c-fcda-4aa3-b756-a949f107041e-%ZAAMHK7~5J$N$GF1YZ}C01.png

      发布在 A Series
      W
      wj8331585
    • 回复: D1S移植SDL1.2.15版本

      @lovexulu 你好近进也在研究这个,能一起聊下吗?qq545818496

      发布在 爱搞机专区
      W
      wj8331585
    • 回复: 【R128学习案例】R128平衡小车

      @baiwen 这是啥,我这咋什么都没显示出来。

      发布在 A Series
      W
      wj8331585
    • 回复: R128适配SPI LCD+LVGL

      @akimizu 他们正在录视频。下下周应该会有。👍

      发布在 A Series
      W
      wj8331585
    • t113 tina linux

      1818.jpg
      请问t113 tina linux,这种问题怎么解决呢?纠结好久了

      发布在 A Series
      W
      wj8331585

    wj8331585 发布的最新帖子

    • 回复: 也来驱动8080屏

      18位模式到底要怎么驱动呢?

      发布在 T Series
      W
      wj8331585
    • 也来驱动8080屏

      T113 驱动ili9342 8080屏,rgb565 16位模式下正常显示。
      7824c91f-57c9-43a5-b1bd-43f8a67fc16f-image.png

      	rgb16_pins_a: rgb16@0 {
      				pins = "PD1", "PD2","PD3","PD4","PD5","PD6", "PD7", "PD8", \
      				"PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", \
      				"PD18", "PD19", "PD20", "PD21";
      				allwinner,function = "rgb16";
      				allwinner,muxsel = <2>;
      				allwinner,drive = <3>;
      				allwinner,pull = <0>;			
      			};
      
      			rgb16_pins_b: rgb16@1 {
      				pins = "PD1", "PD2","PD3","PD4","PD5","PD6", "PD7", "PD8", \
      				"PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", \
      				"PD18", "PD19", "PD20", "PD21";
      				allwinner,function = "rgb16_suspend";
      				allwinner,muxsel = <15>;
      				allwinner,drive = <1>;
      				allwinner,pull = <0>;
      			};
      
      
      &lcd0 {
      	lcd_used            = <1>;
      
          lcd_driver_name     = "default_lcd";
      
      	/* part 2 */
      	lcd_if = <1>;
      	lcd_cpu_if = <8>;
      
          /* part 3 */
      	lcd_x = <320>;
      	lcd_y = <240>;
      	lcd_width = <49>;
      	lcd_height = <37>;
          lcd_dclk_freq = <6>;     // DOTCLK频率
          lcd_hspw = <10>;         // Hsync = 10 DOTCLK
          lcd_hbp = <20>;          // HBP = 20 DOTCLK
          lcd_ht = <360>;          // 总水平时序 = 320 + 10 + 20 + 10 = 360 DOTCLK
      
          lcd_vspw = <2>;          // Vsync = 2 lines
          lcd_vbp = <4>;           // VBP = 4 lines
          lcd_vt = <250>;          // 总垂直时序 = 240 + 2 + 4 + 4 = 250 lines
      
      	/* part 4 */
      	lcd_backlight = <170>;
      	lcd_pwm_used = <0>;
      	lcd_pwm_ch = <4>;
      	lcd_pwm_freq = <20000>;
      	lcd_pwm_pol = <1>;
      	lcd_bright_curve_en = <0>;
      
      	/* part 5 */
      	lcd_cpu_mode= <1>;
      	lcd_cpu_te= <2>;
      
      	/* part 6 */
      	lcd_frm = <2>;
      	lcd_gamma_en = <0>;
      	lcd_cmap_en = <0>;
      	lcd_rb_swap = <0>;
      	/* part 7 */
      	lcd_gpio_0 = <&pio PE 1 GPIO_ACTIVE_HIGH>;
      	// cs pin
      	lcd_gpio_1 = <&pio PE 9 GPIO_ACTIVE_LOW>;
      	pinctrl-0 = <&rgb16_pins_a>;
      	pinctrl-1 = <&rgb16_pins_b>;
      };
      
      &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_dvi_hdmi  = <2>;
      	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           = <1>;
      	hdmi_mode_check          = <3>;
      	disp_rotation_used		 = <0>;
      	degree0					 = <0>;
      	fb0_format               = <0>;
      	fb0_buffer_num           = <1>;	
      	fb0_width                = <320>;
      	fb0_height               = <240>;
      	fb1_format               = <0>;
      	fb1_width                = <0>;
      	fb1_height               = <0>;
      	chn_cfg_mode             = <1>;
      
      	disp_para_zone           = <1>;
      	/*VCC-LCD*/
      /*	dc1sw-supply = <&reg_dc1sw>;*/
      	/*VCC-DSI*/
      /*	eldo3-supply = <&reg_eldo3>;*/
      	/*VCC-PD*/
      /*	dcdc1-supply = <&reg_dcdc1>;*/
      };
      
      

      但是如果是在18位模式下,显示是白屏。
      硬件支持18位。原理图是
      1b5fe65f-65df-4768-9863-6397bb7d84d3-image.png
      设备树是:

      			rgb18_pins_a: rgb18@0 {
      				allwinner,pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", \
      				"PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19", \
      				"PD20", "PD21";
      				allwinner,pname = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", \
      				"PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19", \
      				"PD20", "PD21";
      				allwinner,function = "rgb18";
      				allwinner,muxsel = <2>;
      				allwinner,drive = <3>;
      				allwinner,pull = <0>;
      			};
      
      			rgb18_pins_b: rgb18@1 {
      				allwinner,pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", \
      				"PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19", \
      				"PD20", "PD21";
      				allwinner,pname = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9", \
      				"PD10", "PD11", "PD12", "PD13", "PD14", "PD15", "PD16", "PD17", "PD18", "PD19", \
      				"PD20", "PD21";
      				allwinner,function = "rgb18_suspend";
      				allwinner,muxsel = <15>;
      				allwinner,drive = <1>;
      				allwinner,pull = <0>;
      			};
      
      
      
      &lcd0 {
      	lcd_used            = <1>;
      
          lcd_driver_name     = "default_lcd";
      
      	/* part 2 */
      	lcd_if = <1>;
      	lcd_cpu_if = <0>;
      
          /* part 3 */
      	lcd_x = <320>;
      	lcd_y = <240>;
      	lcd_width = <49>;
      	lcd_height = <37>;
          lcd_dclk_freq = <6>;     // DOTCLK频率
          lcd_hspw = <10>;         // Hsync = 10 DOTCLK
          lcd_hbp = <20>;          // HBP = 20 DOTCLK
          lcd_ht = <360>;          // 总水平时序 = 320 + 10 + 20 + 10 = 360 DOTCLK
      
          lcd_vspw = <2>;          // Vsync = 2 lines
          lcd_vbp = <4>;           // VBP = 4 lines
          lcd_vt = <250>;          // 总垂直时序 = 240 + 2 + 4 + 4 = 250 lines
      
      	/* part 4 */
      	lcd_backlight = <170>;
      	lcd_pwm_used = <0>;
      	lcd_pwm_ch = <4>;
      	lcd_pwm_freq = <20000>;
      	lcd_pwm_pol = <1>;
      	lcd_bright_curve_en = <0>;
      
      	/* part 5 */
      	lcd_cpu_mode= <1>;
      	lcd_cpu_te= <0>;
      
      	/* part 6 */
      	lcd_frm = <1>;
      	lcd_gamma_en = <0>;
      	lcd_cmap_en = <0>;
      	lcd_rb_swap = <0>;
      	/* part 7 */
      	lcd_gpio_0 = <&pio PE 1 GPIO_ACTIVE_HIGH>;
      	// cs pin
      	lcd_gpio_1 = <&pio PE 9 GPIO_ACTIVE_LOW>;
      	pinctrl-0 = <&rgb18_pins_a>;
      	pinctrl-1 = <&rgb18_pins_b>;
      };
      
      

      初始化时改了3A寄存器

      	u32 id[5];
      	DBG_INFO("\n");
      	lcd_bl_init();
      	/*lcd_cs, active low */
      	lcd_cs(0);
      	sunxi_lcd_delay_ms(10);
      	panel_reset(1);
      	sunxi_lcd_delay_ms(20);
      	panel_reset(0);
      	sunxi_lcd_delay_ms(20);
      	panel_reset(1);
      	sunxi_lcd_delay_ms(120);
      
      	memset(id,0,sizeof(id));
      	tcon0_cpu_rd_24b_data(0, 0xD3, id, 4);
      	printk("ili9342 0x%02x 0x%02x 0x%02x 0x%02x\n", id[0], id[1], id[2], id[3]);
      
      	sunxi_lcd_cpu_write_index(0,0xB9);
      	sunxi_lcd_cpu_write_data(0,0xFF);
      	sunxi_lcd_cpu_write_data(0,0x93);
      	sunxi_lcd_cpu_write_data(0,0x42);
      
      	//sunxi_lcd_cpu_write_index(0,0x21);
      	
      	sunxi_lcd_cpu_write_index(0,0x36);
      	sunxi_lcd_cpu_write_data(0,0x88);
      
      	sunxi_lcd_cpu_write_index(0,0xB6);
      	sunxi_lcd_cpu_write_data(0,0x0A);
      	sunxi_lcd_cpu_write_data(0,0xA2);//0x80
      	
      	sunxi_lcd_cpu_write_index(0,0xC0);
      	sunxi_lcd_cpu_write_data(0,0x1D);
      	sunxi_lcd_cpu_write_data(0,0x0A);
      	
      	sunxi_lcd_cpu_write_index(0,0xC1);
      	sunxi_lcd_cpu_write_data(0,0x02); //Vgate voltage
      	
      	sunxi_lcd_cpu_write_index(0,0xC5);
      	sunxi_lcd_cpu_write_data(0,0x2F);
      	sunxi_lcd_cpu_write_data(0,0x2F);//27
      	
      	sunxi_lcd_cpu_write_index(0,0xC7);
      	sunxi_lcd_cpu_write_data(0,0xC3); //A4vcom offset
      	
      	sunxi_lcd_cpu_write_index(0,0xB8);
      	sunxi_lcd_cpu_write_data(0,0x0B);
      	
      	sunxi_lcd_cpu_write_index(0,0xE0);
      	sunxi_lcd_cpu_write_data(0,0x0F);
      	sunxi_lcd_cpu_write_data(0,0x33);//24
      	sunxi_lcd_cpu_write_data(0,0x30);//
      	sunxi_lcd_cpu_write_data(0,0x0c);
      	sunxi_lcd_cpu_write_data(0,0x0F);
      	sunxi_lcd_cpu_write_data(0,0x08);//06
      	sunxi_lcd_cpu_write_data(0,0x5D);//50
      	sunxi_lcd_cpu_write_data(0,0x66);//75
      	sunxi_lcd_cpu_write_data(0,0x4A);//3f
      	sunxi_lcd_cpu_write_data(0,0x07);
      	sunxi_lcd_cpu_write_data(0,0x13);//12
      	sunxi_lcd_cpu_write_data(0,0x05);
      	sunxi_lcd_cpu_write_data(0,0x1B);//11
      	sunxi_lcd_cpu_write_data(0,0x0E);//0B
      	sunxi_lcd_cpu_write_data(0,0x08);
      	
      	sunxi_lcd_cpu_write_index(0,0xE1);
      	sunxi_lcd_cpu_write_data(0,0x08);
      	sunxi_lcd_cpu_write_data(0,0x0E);//1D
      	sunxi_lcd_cpu_write_data(0,0x11);//20
      	sunxi_lcd_cpu_write_data(0,0x02);
      	sunxi_lcd_cpu_write_data(0,0x0E);
      	sunxi_lcd_cpu_write_data(0,0x02);//04
      	sunxi_lcd_cpu_write_data(0,0x24);//31
      	sunxi_lcd_cpu_write_data(0,0x33);//24
      	sunxi_lcd_cpu_write_data(0,0x37);//42
      	sunxi_lcd_cpu_write_data(0,0x03);
      	sunxi_lcd_cpu_write_data(0,0x0A);//0B
      	sunxi_lcd_cpu_write_data(0,0x09);
      	sunxi_lcd_cpu_write_data(0,0x26);//30
      	sunxi_lcd_cpu_write_data(0,0x33);//36
      	sunxi_lcd_cpu_write_data(0,0x0F);
      
      	sunxi_lcd_cpu_write_index(0,0x11); //Exit Sleep
      	sunxi_lcd_delay_ms(10);
      	
       	// 设置18位RGB接口
          sunxi_lcd_cpu_write_index(0,0xB6);    // Display Function Control
          sunxi_lcd_cpu_write_data(0,0x0A);     // RGB interface control
          sunxi_lcd_cpu_write_data(0,0xA2);     // RGB interface setting [7]=1 18bit
      
      	sunxi_lcd_cpu_write_index(0,0x3A);
      	sunxi_lcd_cpu_write_data(0,0x66); //55=16 bits/pixel  66=18 bits/pixel
      
      	sunxi_lcd_cpu_write_index(0,0x11); //Exit Sleep
      	sunxi_lcd_delay_ms(80);
      
      	//sunxi_lcd_cpu_write_index(0,0x29);
      	//sunxi_lcd_cpu_write_index(0,0x2C);
      #if defined(CPU_TRI_MODE)
      	/* enable te, mode 0 */
      	sunxi_lcd_cpu_write_index(0, 0x35);
      	sunxi_lcd_cpu_write_data(0, 0x00);
      
      	sunxi_lcd_cpu_write_index(0, 0x44);
      	sunxi_lcd_cpu_write_data(0, 0x00);
      	sunxi_lcd_cpu_write_data(0, 0x80);
      #endif
      	//sunxi_lcd_cpu_write_index(0, 0x11);
      	//sunxi_lcd_delay_ms(120);
      	sunxi_lcd_cpu_write_index(0, 0x29);
      	sunxi_lcd_cpu_write_index(0, 0x2c);
      
      
      发布在 T Series
      W
      wj8331585
    • tina linux tcon

      c177426a-00b7-46bf-b0e0-847bcaf6f358-image.png

      请问一下在初始化I8080屏时
      s32 tcon0_cpu_wr_16b_index(u32 sel, u32 index)
      {
      tcon0_cpu_wr_24b_index(sel, tcon0_cpu_16b_to_24b(index));
      return 0;
      }

      s32 tcon0_cpu_wr_16b_data(u32 sel, u32 data)
      {
      tcon0_cpu_wr_24b_data(sel, tcon0_cpu_16b_to_24b(data));
      return 0;
      }

      tcon0_cpu_16b_to_24b为什么要这样转换一下呢?

      发布在 T Series
      W
      wj8331585
    • t527 板子一开机网口灯就亮

      t527 板子一开机网口灯就亮,网线都没插灯就亮这不正常吧。

      发布在 T Series
      W
      wj8331585
    • T527 android固件

      烧录android固件后,HDMI没任何显示。然后自己编译的android固件卡这里

      60cf43c1-b408-4cf7-8d60-2cc828afac6b-image.png 。

      买来的一直没用。我的T527还能用吗?

      发布在 T Series
      W
      wj8331585
    • Avaota A1 T527开发板Android SDK网盘失效了

      请问一下Avaota A1 T527开发板Android SDK网盘失效了。
      8a587f72-1d6b-44d6-8c01-3437751e839d-image.png

      发布在 T Series
      W
      wj8331585
    • 回复: 关于屏的TE脚的使用方法
      lcd_gpio_0 = <&pio PE 11 GPIO_ACTIVE_HIGH>;
      lcd_vsync = <&pio PD 21 2 0 3 0>;
      //lcd_vsync  = port:PD21<2><0><3><default>
      pinctrl-0 = <&dsi4lane_pins_a>;
      pinctrl-1 = <&dsi4lane_pins_b>;
      

      设备树这样写,好像没起到作用。

      发布在 MR Series
      W
      wj8331585
    • 关于屏的TE脚的使用方法

      请问一下,屏显示有撕裂,TE脚要怎么使用呢?

      发布在 MR Series
      W
      wj8331585
    • t113 mipi屏

      uboot下配置好mipi屏(设备树和初始化)后,卡在uboot了。请问uboot下驱动mipi屏有什么依赖吗或先决条件吗,还是要怎么配置呢?

      发布在 MR Series
      W
      wj8331585
    • 回复: T113在内核中采用硬解jpeg方式实现开机动画

      U-Boot 2018.05 (Jul 18 2023 - 07:06:50 +0000) Allwinner Technology

      [00.330]CPU: Allwinner Family
      [00.333]Model: sun8iw20
      [00.335]DRAM: 128 MiB
      [00.338]Relocation Offset is: 04ebe000
      [00.366]secure enable bit: 0
      [00.368]smc_tee_inform_fdt failed with: -65526[00.372]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz
      [00.379]gic: sec monitor mode
      [00.382]flash init start
      [00.384]workmode = 0,storage type = 1
      [00.387][mmc]: mmc driver ver uboot2018:2021-11-19 15:38:00
      [00.392][mmc]: get sdc_type fail and use default host:tm1.
      [00.399][mmc]: can't find node "mmc0",will add new node
      [00.403][mmc]: fdt err returned <no error>
      [00.407][mmc]: Using default timing para
      [00.411][mmc]: SUNXI SDMMC Controller Version:0x50310
      [00.437][mmc]: card_caps:0x3000000a
      [00.440][mmc]: host_caps:0x3000003f
      [00.445]sunxi flash init ok
      [00.447]line:703 init_clocks
      [00.450]drv_disp_init
      request pwm success, pwm7:pwm7:0x2000c00.
      fdt get node offset faill: hdmi
      [00.466]unable to map hdmi registers
      [00.470]drv_disp_init finish
      [00.472]boot_gui_init:start
      [00.475]set disp.dev2_output_type fail. using defval=0
      [00.481]set disp.fb0_width fail. using defval=0
      [00.485]set disp.fb0_height fail. using defval=0
      [00.490]boot_gui_init:finish
      partno erro : can't find partition bootloader
      [00.511]ili9488 3line spi init...
      [00.680]ili9488 init ok
      54 bytes read in 1 ms (52.7 KiB/s)
      [00.686]bmp_name=bootlogo.bmp size 307272
      307272 bytes read in 15 ms (19.5 MiB/s)
      [00.724]Loading Environment from SUNXI_FLASH... OK
      [00.746]Item0 (Map) magic is bad
      [00.748]the secure storage item0 copy0 magic is bad
      [00.757]Item0 (Map) magic is bad
      [00.759]the secure storage item0 copy1 magic is bad
      [00.764]Item0 (Map) magic is bad
      secure storage read widevine fail
      [00.770]secure storage read widevine fail with:-1
      secure storage read ec_key fail
      [00.777]secure storage read ec_key fail with:-1
      secure storage read ec_cert1 fail
      [00.785]secure storage read ec_cert1 fail with:-1
      secure storage read ec_cert2 fail
      [00.792]secure storage read ec_cert2 fail with:-1
      secure storage read ec_cert3 fail
      [00.800]secure storage read ec_cert3 fail with:-1
      secure storage read rsa_key fail
      [00.807]secure storage read rsa_key fail with:-1
      secure storage read rsa_cert1 fail
      [00.814]secure storage read rsa_cert1 fail with:-1
      secure storage read rsa_cert2 fail
      [00.822]secure storage read rsa_cert2 fail with:-1
      secure storage read rsa_cert3 fail
      [00.830]secure storage r[00.833]LCD open finish
      ead rsa_cert3 fail with:-1
      [00.837]out of usb burn from boot: not need burn key
      nkx_debug:board/sunxi/board_common.c:board_late_init:735
      partinfo: name animation, start 0x9ac40, size 0x1000 4499e900
      cann't get the boot_base from the env
      partno erro : can't find partition private
      root_partition is rootfs
      set root to /dev/mmcblk0p5
      [00.954]update part info
      [00.958]update bootcmd
      [00.962]change working_fdt 0x4487de70 to 0x4485de70
      disable nand error: FDT_ERR_BADPATH
      [00.983]update dts
      Hit any key to stop autoboot: 0
      card0 has inited
      curr_device:0
      Device: SUNXI SD/MMC
      Manufacturer ID: 3
      OEM: 5344
      Name: SD32G
      Bus Speed: 50000000
      Mode : SD High Speed (50MHz)
      Rd Block Len: 512
      SD version 3.0
      High Capacity: Yes
      Capacity: 29.7 GiB
      Bus Width: 4-bit
      Erase Group Size: 512 Bytes

      Partition Map for MMC device 0 -- Partition Type: EFI

      Part Start LBA End LBA Name
      Attributes
      Type GUID
      Partition GUID
      1 0x00008a40 0x0000aa3f "boot-resource"
      attrs: 0x0000000000000000
      type: 0fc63daf-8483-4772-8e79-3d69d8477de4
      guid: 95cb543e-7ee1-4fa4-a48d-19f4c0352c8a
      2 0x0000aa40 0x0000ab3f "env"
      attrs: 0x0000000000000000
      type: 0fc63daf-8483-4772-8e79-3d69d8477de4
      guid: 94d4b072-13b6-4699-9676-6f05233998db
      3 0x0000ab40 0x0000ac3f "env-redund"
      attrs: 0x0000000000000000
      type: 0fc63daf-8483-4772-8e79-3d69d8477de4
      guid: ed68367a-e492-4fc3-a7bb-66e052ca2ac7
      4 0x0000ac40 0x0001ac3f "boot"
      attrs: 0x0000000000000004
      type: 0fc63daf-8483-4772-8e79-3d69d8477de4
      guid: 8f4db6e3-c9ec-42c3-9ba2-ce67fa773c22
      5 0x0001ac40 0x0009ac3f "rootfs"
      attrs: 0x0000000000000000
      type: 0fc63daf-8483-4772-8e79-3d69d8477de4
      guid: e893bf91-0818-4fb8-a9c6-b3dad0d78a22
      6 0x0009ac40 0x0009bc3f "animation"
      attrs: 0x0000000000000000
      type: 0fc63daf-8483-4772-8e79-3d69d8477de4
      guid: 6d14f6bf-af7c-424d-a1eb-ff0a2e972b52
      5183488 bytes read in 217 ms (22.8 MiB/s)
      [03.333]no vendor_boot partition is found
      Android's image name: sun8iw20p1
      [03.345]Starting kernel ...

      [03.348][mmc]: MMC Device 2 not found
      [03.351][mmc]: mmc 2 not find, so not exit
      [ 0.000000] Booting Linux on physical CPU 0x0
      [ 0.000000] Linux version 5.4.61 (bob@bob) (arm-linux-gnueabi-gcc (Linaro GCC 7.2-2017.11) 7.2.1 20171011, GNU ld (Linaro_Binutils-2017.11) 2.28.2.20170706) #61 SMP PREEMPT Wed Apr 17 13:45:54 CST 2024
      [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
      [ 0.000000] CPU: div instructions available: patching division code
      [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
      [ 0.000000] OF: fdt: Machine model: sun8iw20
      [ 0.000000] printk: bootconsole [earlycon0] enabled
      [ 0.000000] animation reserve base 0x4499e900 ,size 0x200000
      [ 0.000000] Memory policy: Data cache writealloc
      [ 0.000000] cma: Reserved 8 MiB at 0x47800000
      [ 0.000000] On node 0 totalpages: 32512
      [ 0.000000] Normal zone: 256 pages used for memmap
      [ 0.000000] Normal zone: 0 pages reserved
      [ 0.000000] Normal zone: 32512 pages, LIFO batch:7
      [ 0.000000] psci: probing for conduit method from DT.
      [ 0.000000] psci: PSCIv1.0 detected in firmware.
      [ 0.000000] psci: Using standard PSCI v0.2 function IDs
      [ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
      [ 0.000000] psci: SMC Calling Convention v1.0
      [ 0.000000] percpu: Embedded 15 pages/cpu s30796 r8192 d22452 u61440
      [ 0.000000] pcpu-alloc: s30796 r8192 d22452 u61440 alloc=15*4096
      [ 0.000000] pcpu-alloc: [0] 0 [0] 1
      [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32256
      [ 0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p5 init=/sbin/init partitions=ext4 cma=8M gpt=1 androidboot.hardware=sun8iw20p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.05(07/18/2023-07:06:50) animation_reserve=0x4499e900,2097152 disp_reserve=614400,0x448e6000 androidboot.dramsize=128
      [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
      [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
      [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
      [ 0.000000] Memory: 104808K/130048K available (7168K kernel code, 356K rwdata, 2476K rodata, 1024K init, 177K bss, 17048K reserved, 8192K cma-reserved)
      [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
      [ 0.000000] rcu: Preemptible hierarchical RCU implementation.
      [ 0.000000] Tasks RCU enabled.
      [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
      [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
      [ 0.000000] random: get_random_bytes called from start_kernel+0x248/0x3d0 with crng_init=0
      [ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
      [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
      [ 0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
      [ 0.008026] Switching to timer-based delay loop, resolution 41ns
      [ 0.014226] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
      [ 0.024006] Console: colour dummy device 80x30
      [ 0.028479] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
      [ 0.038833] pid_max: default: 32768 minimum: 301
      [ 0.043591] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [ 0.050927] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [ 0.059307] CPU: Testing write buffer coherency: ok
      [ 0.064563] /cpus/cpu@0 missing clock-frequency property
      [ 0.069889] /cpus/cpu@1 missing clock-frequency property
      [ 0.075243] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
      [ 0.081477] Setting up static identity map for 0x40100000 - 0x40100060
      [ 0.088171] rcu: Hierarchical SRCU implementation.
      [ 0.093469] smp: Bringing up secondary CPUs ...
      [ 0.099223] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
      [ 0.099376] smp: Brought up 1 node, 2 CPUs
      [ 0.109219] SMP: Total of 2 processors activated (96.00 BogoMIPS).
      [ 0.115391] CPU: All CPU(s) started in SVC mode.
      [ 0.120496] devtmpfs: initialized
      [ 0.135954] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
      [ 0.144130] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
      [ 0.154019] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
      [ 0.161295] pinctrl core: initialized pinctrl subsystem
      [ 0.167970] NET: Registered protocol family 16
      [ 0.174058] DMA: preallocated 256 KiB pool for atomic coherent allocations
      [ 0.220474] rtc_ccu: sunxi ccu init OK
      [ 0.226724] ccu: sunxi ccu init OK
      [ 0.230599] r_ccu: sunxi ccu init OK
      [ 0.281353] iommu: Default domain type: Translated
      [ 0.286541] sunxi iommu: irq = 24
      [ 0.291090] SCSI subsystem initialized
      [ 0.295248] usbcore: registered new interface driver usbfs
      [ 0.300885] usbcore: registered new interface driver hub
      [ 0.306316] usbcore: registered new device driver usb
      [ 0.311572] mc: Linux media interface: v0.10
      [ 0.315956] videodev: Linux video capture interface: v2.00
      [ 0.323232] sunxi-msgbox-amp 3003000.msgbox: invalid resource
      [ 0.330070] Advanced Linux Sound Architecture Driver Initialized.
      [ 0.336934] Bluetooth: Core ver 2.22
      [ 0.340580] NET: Registered protocol family 31
      [ 0.345027] Bluetooth: HCI device and connection manager initialized
      [ 0.351421] Bluetooth: HCI socket layer initialized
      [ 0.356314] Bluetooth: L2CAP socket layer initialized
      [ 0.361398] Bluetooth: SCO socket layer initialized
      [ 0.366672] pwm module init!
      [ 0.370505] [DISP]disp_module_init
      [ 0.374612] disp 5000000.disp: Adding to iommu group 0
      [ 0.380366] [DISP] parser_disp_init_para,line:1430:
      [ 0.380370] of_property_read fb0_width fail
      [ 0.389481] [DISP] disp_init,line:2387:
      [ 0.389486] smooth display screen:0 type:1 mode:4
      [ 0.415103] do not get the node of hdmi
      [ 0.419300] display_fb_request,fb_id:0
      [ 0.425893] disp_al_manager_apply ouput_type:1
      [ 0.430537] [DISP] lcd_clk_config,line:744:
      [ 0.430547] disp 0, clk: pll(294000000),clk(294000000),dclk(49000000) dsi_rate(294000000)
      [ 0.430547] clk real:pll(288000000),clk(288000000),dclk(48000000) dsi_rate(0)
      [ 0.435562] [DISP]disp_module_init finish
      [ 0.450767] platform 2000c17.pwm7: pinctrl_get failed
      [ 0.455559] input: sunxi-keyboard as /devices/virtual/input/input0
      [ 0.467300] free logo buffer src_phy_addr=0x448e6000 fb_height=320 src_stride=1920
      [ 0.475109] clocksource: Switched to clocksource arch_sys_counter
      [ 0.475480] Freeing logo buffer memory: 600K
      [ 0.494821] sun8iw20-pinctrl pio: initialized sunXi PIO driver
      [ 0.515080] sunxi cedar version 1.1
      [ 0.518995] animation:dec_test_init:489 dec test version 1.0
      [ 0.528775] 8<--- cut here ---
      [ 0.531888] Unable to handle kernel NULL pointer dereference at virtual address 00000064
      [ 0.540109] thermal_sys: Registered thermal governor 'user_space'
      [ 0.540116] thermal_sys: Registered thermal governor 'power_allocator'
      [ 0.546264] pgd = (ptrval)
      [ 0.547067] NET: Registered protocol family 2
      [ 0.552842] [00000064] *pgd=00000000
      [ 0.557030] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
      [ 0.560172] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
      [ 0.563588] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [ 0.571898] Modules linked in:
      [ 0.571910] CPU: 0 PID: 22 Comm: kworker/0:1 Not tainted 5.4.61 #61
      [ 0.571913] Hardware name: Generic DT based system
      [ 0.571931] Workqueue: events test_decoder
      [ 0.577271] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
      [ 0.584888] PC is at cedar_get_device+0x8/0x14
      [ 0.587969] TCP: Hash tables configured (established 1024 bind 1024)
      [ 0.594200] LR is at mem_ion_create+0xa4/0xe0
      [ 0.599102] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
      [ 0.603097] pc : [<c0524298>] lr : [<c051bc44>] psr: 40000013
      [ 0.610169] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
      [ 0.614569] sp : c7149d90 ip : c721d6f8 fp : 00000000
      [ 0.621134] NET: Registered protocol family 1
      [ 0.625268] r10: c721d554 r9 : 00000000 r8 : c721d540
      [ 0.625272] r7 : 00000001 r6 : c0c04e08 r5 : 00000000 r4 : c721d6c0
      [ 0.625277] r3 : 00000000 r2 : ffffffd8 r1 : 00000000 r0 : c721d6e0
      [ 0.625284] Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
      [ 0.625290] Control: 10c5387d Table: 4000406a DAC: 00000051
      [ 0.635324] Initialise system trusted keyrings
      [ 0.638156] Process kworker/0:1 (pid: 22, stack limit = 0x(ptrval))
      [ 0.645696] workingset: timestamp_bits=30 max_order=15 bucket_order=0
      [ 0.650347] Stack: (0xc7149d90 to 0xc714a000)
      [ 0.670029] squashfs: version 4.0 (2009/01/31) Phillip Lougher
      [ 0.673337] 9d80: 00000000 00000000 c6965c00 c051fefc
      [ 0.716267] Key type asymmetric registered
      [ 0.721749] 9da0: ffffe000 c76b7d40 c7138640 c703be80 c7149de4 c07b5e14 00000000 c0c7e0d8
      [ 0.725890] Asymmetric key parser 'x509' registered
      [ 0.734013] 9dc0: c8e45000 c0c04e08 00000000 c0526f68 c76b7d40 c7138640 c703be80 c7138a44
      [ 0.738917] io scheduler mq-deadline registered
      [ 0.747063] 9de0: c7149e14 c07b224c 00000000 00000000 00000000 ffffe000 c0c04efc c0c04e28
      [ 0.747073] 9e00: c018b0e4 c7149eac c7149e5c c0b42b54 c7149e24 e10e32e3 00000001 c7149e68
      [ 0.751596] io scheduler kyber registered
      [ 0.759776] 9e20: c7149e64 7fffffff 00000002 00000001 00000000 00000000 00000000 00000000
      [ 0.759785] 9e40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      [ 0.788353] 9e60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      [ 0.796548] 9e80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      [ 0.804715] 9ea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      [ 0.812900] 9ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      [ 0.821068] 9ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      [ 0.829262] 9f00: 00000000 00000000 00000000 00000000 00000000 e10e32e3 c7038000 c7011800
      [ 0.837474] 9f20: c76b7940 c721d550 c76baa00 00000000 00000000 c721d554 00000000 c012f42c
      [ 0.845651] 9f40: c7011800 c721d550 c7011800 c7011814 c76b7940 c7148000 c76b7958 c0c02d00
      [ 0.853829] 9f60: c0c0cb40 c012fa38 00000000 c7016c40 c7148000 c7016d40 c7011800 c7053ec4
      [ 0.861997] 9f80: c012f808 c7016c5c 00000000 c01341f0 c7016d40 c01340d8 00000000 00000000
      [ 0.870191] 9fa0: 00000000 00000000 00000000 c01010e8 00000000 00000000 00000000 00000000
      [ 0.878368] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      [ 0.886544] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
      [ 0.894726] [<c0524298>] (cedar_get_device) from [<c051bc44>] (mem_ion_create+0xa4/0xe0)
      [ 0.902820] [<c051bc44>] (mem_ion_create) from [<c051fefc>] (CreateVideoDecoder+0x88/0x13c)
      [ 0.911173] [<c051fefc>] (CreateVideoDecoder) from [<c0526f68>] (test_decoder+0x50/0x40c)
      [ 0.919366] [<c0526f68>] (test_decoder) from [<c012f42c>] (process_one_work+0x16c/0x20c)
      [ 0.927452] [<c012f42c>] (process_one_work) from [<c012fa38>] (worker_thread+0x230/0x2d4)
      [ 0.935640] [<c012fa38>] (worker_thread) from [<c01341f0>] (kthread+0x118/0x124)
      [ 0.943049] [<c01341f0>] (kthread) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
      [ 0.950259] Exception stack(0xc7149fb0 to 0xc7149ff8)
      [ 0.955304] 9fa0: 00000000 00000000 00000000 00000000
      [ 0.963481] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
      [ 0.971664] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
      [ 0.978300] Code: c0523ce4 e12fff1e e59f3008 e5933000 (e5930064)
      [ 0.984526] ---[ end trace ff862de5f4f40aa5 ]---
      [ 0.984578] atomic64_test: passed
      [ 0.995783] sunxi_sid_init()551 - insmod ok
      [ 1.000499] pwm-regulator: supplied by regulator-dummy
      [ 1.008250] sun8iw20-pinctrl pio: pio supply vcc-pe not found, using dummy regulator
      [ 1.016734] uart uart0: get regulator failed
      [ 1.021027] uart uart0: uart0 supply uart not found, using dummy regulator
      [ 1.028271] uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
      [ 1.036142] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
      [ 1.044123] printk: console [ttyS0] enabled
      [ 1.044123] printk: console [ttyS0] enabled
      [ 1.053024] printk: bootconsole [earlycon0] disabled
      [ 1.053024] printk: bootconsole [earlycon0] disabled
      [ 1.064277] sun8iw20-pinctrl pio: pio supply vcc-pg not found, using dummy regulator
      [ 1.073298] uart uart3: get regulator failed
      [ 1.078203] uart uart3: uart3 supply uart not found, using dummy regulator
      [ 1.086220] uart3: ttyS3 at MMIO 0x2500c00 (irq = 35, base_baud = 1500000) is a SUNXI
      [ 1.096087] misc dump reg init
      [ 1.102575] libphy: Fixed MDIO Bus: probed
      [ 1.107483] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      [ 1.114763] sunxi-ehci: EHCI SUNXI driver
      [ 1.119635] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      [ 1.126569] sunxi-ohci: OHCI SUNXI driver
      [ 1.131659] usbcore: registered new interface driver uas
      [ 1.137720] usbcore: registered new interface driver usb-storage
      [ 1.144469] usbcore: registered new interface driver ums-alauda
      [ 1.151143] usbcore: registered new interface driver ums-cypress
      [ 1.157920] usbcore: registered new interface driver ums-datafab
      [ 1.164666] usbcore: registered new interface driver ums_eneub6250
      [ 1.171626] usbcore: registered new interface driver ums-freecom
      [ 1.178390] usbcore: registered new interface driver ums-isd200
      [ 1.185048] usbcore: registered new interface driver ums-jumpshot
      [ 1.191912] usbcore: registered new interface driver ums-karma
      [ 1.198484] usbcore: registered new interface driver ums-onetouch
      [ 1.205371] usbcore: registered new interface driver ums-realtek
      [ 1.212118] usbcore: registered new interface driver ums-sddr09
      [ 1.218788] usbcore: registered new interface driver ums-sddr55
      [ 1.225452] usbcore: registered new interface driver ums-usbat
      [ 1.232007] usbcore: registered new interface driver idmouse
      [ 1.239142] sunxi_gpadc_init,2151, success
      [ 1.244019] sunxi_gpadc_setup: get channel scan data failed
      [ 1.250560] input: sunxi-gpadc0 as /devices/virtual/input/input1
      [ 1.259652] sunxi-rtc 7090000.rtc: registered as rtc0
      [ 1.265445] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:19 UTC (19)
      [ 1.274396] sunxi-rtc 7090000.rtc: sunxi rtc probed
      [ 1.280320] i2c /dev entries driver
      [ 1.284328] IR NEC protocol handler initialized
      [ 1.289811] sun8iw20-pinctrl pio: pio supply vcc-pb not found, using dummy regulator
      [ 1.298769] sunxi-rc-recv 7040000.s_cir: sunxi_irrx_resource_get: get ir protocol failed
      [ 1.307900] Registered IR keymap rc_map_sunxi
      [ 1.312914] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
      [ 1.321601] rc rc0: lirc_dev: driver sunxi-rc-recv registered at minor = 0, raw IR receiver, no transmitter
      [ 1.332695] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
      [ 1.344147] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
      [ 1.353288] Bluetooth: HCI UART driver ver 2.3
      [ 1.358279] Bluetooth: HCI UART protocol H4 registered
      [ 1.364006] Bluetooth: HCI UART protocol BCSP registered
      [ 1.369938] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
      [ 1.379719] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-11-18 10:02)
      [ 1.389665] sunxi-mmc 4020000.sdmmc: ctl-spec-caps 8
      [ 1.395853] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
      [ 1.402160] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
      [ 1.408578] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
      [ 1.414982] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
      [ 1.421494] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
      [ 1.428006] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
      [ 1.434507] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
      [ 1.441471] sunxi-mmc 4020000.sdmmc: Got CD GPIO
      [ 1.790006] random: fast init done
      [ 47.221340] random: crng init done

      按照上面方法内核崩了。也没有动画出现。

      发布在 其它全志芯片讨论区
      W
      wj8331585